Posts

Showing posts from January, 2013

php - Parsing a Web Page's Source given URL -

By looking at the URL, how do you parse the source code of a certain web page? I was authored with source code, title and last time it was modified. My idea is to parse the source code with file_get_contents (), then, for the author, I'll be able to & lt; Meta name = "author" content = "[...]"> and then remove what's in the content. For the title, I & lt; Title> [...] & lt; / Title> and remove what's inside. I'm not sure what I will do when finally it was modified. Will these methods work? You can use file_get_contents. For example: $ content = file_get_contents ('http://www.external-site.com/page.php'); Then the variable $ content will contain the contents of the external site.

ios - Objective-c parsing JSON -

I'm totally new in Objective-c programming. I try to get a request for my app I am using OpenC for Unirest as HTTP libraries. My API will return JSON as below: - {"merchant_list": [{"_id": "543ce2887ca4e102af44a5a8", "address": "MyAddress Null, "dollar_ratio": Null, "American Plan": Null, "Logo": Null, "min_spending_VIP": "Bla bla bla", "administrator": ["543ce2887ca4e102af44a5a7"], "card" "Proposal": [], "referral_ratio": null}], "status": "ok"} , "modification_timestamp_utc": 1413276296.0, "name": "Lorem ipsum", "outlet" Code> Unirest library as you see body.JSONObject [@ NSDictionary or NSArray can pars this JSON "status"] Give me Area "right" price. But the problem is, I'm unable to use all the features in merchant_list. UNIJsonNode...

vb.net - Delete registry after year Vb net -

How can I make my license work only for one year? When I activated my program, I add the registry to the current date. On every run, I check whether the registry exists or not. If the registry is present then I can use my application otherwise it is prompted for me to activate. I have to do that my license works only one year. I tried pre-> public sub-licence_heck () dim delayed days as the licenca integer as licenca = CDate (My.Computer.Registry.GetValue ("HKEY_CURRENT_USER \ tFull", "tFull", is nothing)) day = CInt (365 - (DateDiff (DateInterval.Day, licenca, now)) then the day & lt; = 0 Then My.Computer.Registry.CurrentUser.DeleteValue ("tFull") pbInfo.Value = pbInfo.Maximum gpbInfo.Text = "More than one year license" RbContinue.Enabled = false end then End Sub " itemprop = "text"> I have already warned you of weakness of this approach, but this is that you gave up You can write License_Check Public s...

c++ - Using strcpy throws "stack smashing detected" error -

मेरे पास दो प्रकार के struct s, struct msg और स्ट्रेट pkt । मेरा कार्य एक struct pkt का उपयोग करके एक कोड के रूप में पारित किया गया है। struct msg {char डेटा [20]; }; संरचना pkt {int seqnum; इंट आक्नम; इंट चेकसम; चार पेलोड [20]; }; जबकि शून्य A_output (संरचना संदेश संदेश) {// विफल रहता है ... struct pkt snd_pkt; Strcpy (snd_pkt.payload, message.data); ...} विफल, शून्य A_output (संरचना संदेश संदेश) {// सफल होता है ... struct pkt snd_pkt; Memcpy (& amp; snd_pkt.payload, & amp; संदेश, sizeof (struct msg)); ...} सफल होता है। मुझे समझ में नहीं आ रहा है कि अगर मैं वर्ण [20] को चार [चार] प्रतिलिपि बना रहा हूं, और Strcpy , यह ठीक नहीं होना चाहिए? यह स्टैक स्मैशिंग त्रुटि क्यों फेंक रहा है? क्यों काम के उत्तर में, यह struct msg > की स्मृति को कॉपी करता है char [20] फ़ील्ड में struct pkt , और तीसरे तर्क क्यों sizeof (struct msg) होना चाहिए, strlen (message.data) + 1? मुझे समझ में नहीं आ रहा है, अगर मैं वर्ण [char] को प्रतिलिपि बना रहा हूँ ...

why does the Selenium IDE script doesnt work for next use -

New to selenium, so please clear my suspicions if possible: Why work after a few days in the Sylennium IDE test What is the alternative way of choosing a standard path, so that I can use the script for the next use Use the Salonium IDE with simple code Selenium IDE is not a good solution for complex pages.

java - Understanding what is going on under the hood of Mockito framework -

I have a problem understanding what is going on in the macro framework. I have the following classes Model class value of the public class {Private string key; Private string value; Public string getKey () {return key; } Public Zero Set (string key) {this.key = key; } Public string getValue () {return value; } Public Zero Set Val (string value) {this.value = value; }} "business logic class" public class valuefinder {public key ValueMailWellForKee (key value value) {keyValue.setValue ("foo"); Return key quality; }} Utility class to return expected results (will be velvety) Public class expatation manager {public string expected value () {return "LoremSpadDolorum"; }} test class public class ValueFinderTest {@Test with public zero test} {KeyValueImpl keyValue = Mockito.mock (KeyValueImpl.class); Key value = (new valuefinder ()). FindFail (key value); Candidate Manager Candidate Manager = Mokito Mock (expatnation manager. Class); Wh...

c++ - Qt for android: change the application icon -

Image
How can I change the icon of Qt project targeted for Android so that the app launcher has this icon? You should create an Android manifest file and edit it in QT creator. To create the manifest file and open it in the editor, go to Projects> Create Android APK> Details Create Template As shown in the picture, you can set up three sets Versions of the mouse with lower, medium and high DPI values ​​can be left to right. This new method of creating Android Manifest files since Qt 5.4 has been available since Qt 5.4. In the previous versions, the Create AndroidManifest.xml button was used in Projects-> Run-> Deploy .

Turning a workspace in Linux desktop into a permanent terminal -

I have my laptop on the desktop Linux desktop. You can have multiple desktops in desktop environment. I want to convert to a permanent terminal. A full full screen terminal that you receive when you do not have a desktop environment installed. Does anyone have to convert to a permanent terminal in a kde ?? Do you try to use a plasmoid? It's not completing full screen, but it's as close as it gets. For example, or besides, have you tried Yukuik? It is not located on the desktop, but is used by a key press (usually F12) or by the mouse reaching the top limit if you want. This is the first program I install on any KDE setup, it is important for my workflow.

intellij idea - Breakpoints not getting hit in Android Studio -

I am using Windows 7 and recently switched from Eclipse to Android studio. I am having trouble in debugging now. To run Android Studio 0.8.6, I establish a completely default installation, I am creating a new blank project, targeting the ICS SDK using the new project wizard. I then put a breakpoint on the street, click the debug button and run it. Debugger is attached because I can see the message "Connecting to target VM" in the debugger window. I know the code is being executed because I am updating some text in the UI to show it. I have tried to put breakpoints in many places but no hits have happened. My hair is pulling out here because I can not see what I am doing wrong. I'm gradually new, so I think there might be some setting in Grendel that I should change, but surely one of the very standard projects created with the wizard should allow me to kill the breakpoint? One thing I have noticed is that there is no mention of any debug build in my build....

excel - Getting the Second Lowest Value from a Range -

My input range is in which a value is or empty. There is also a limit, $ AC $ 58: $ BH $ 58 , which contains the value of "Y" or is also empty Inside a cell $ AC $ 58: $ BH $ 58 has the value "Y" , then the row 38 does not have related cell empty. I want the values ​​within that cell if its value is greater than 0. Required answers (formatted as answer # _ =): Input class AC38: last cell of BH38 '(on the right hand side) fulfills the above 2 conditions Does. The value of 1 cell on the left side of the cell which satisfies the answer # 1 if it also satisfies the initial conditions 2 cells for the above cell (answer # 1) The value of LEFT provided that it also meets the above conditions. The value of 3 cell LEFT (Answer # 1) in the above cell, provided that it also meets the above conditions. What you can do for the topmost part of the cell enters this formula: = IF (and ($ BH $ 58 = "Y", $ BH $ 38 & gt; 0), TRUE, ...

arm - Opencl on mali SDK -

I have a Juno ARM versatile board, which has ARM CPU and Mali GPU, we think of using OpenCL which Useful in such odd forums will be useful. I think there should be an OpenCL SDK for ARM, so that I have to write a program for the host ARM CPU, which will actually speed up the kernel running on the GPU. Is this my right understanding? I was searching for ARM for OpenCL SDK (to write program for host ARM) and no one found. Instead, I found OpenCL SDK for Mali GPU on ARM's website. Am I able to use OpenCL SDK of Mali GPU for ARM? Can anyone put some light on it? Normally, you should be able to run the OpenCL kernel on the GPU if you have a Mali driver and Amp; OpenCL SDK

mysql - How to fetch all the data from database in php -

यह मेरा कोड है: & lt;? Php / *** mysql hostname * ** / $ होस्टनाम = 'लोकलहोस्ट'; / *** mysql उपयोगकर्ता नाम *** / $ username = 'root'; / *** mysql पासवर्ड *** / $ पासवर्ड = ''; {$ Dbh = नया पीडीओ ("mysql: host = $ hostname; dbname = नमूना", $ उपयोगकर्ता नाम, $ पासवर्ड) का प्रयास करें; / *** एक संदेश को गूंजते हुए कहते हैं कि हमने जुड़ा हुआ है *** / गूंज 'डेटाबेस से जुड़े & lt; br / & gt;'; $ Sql ​​= "नमूना से चयन करें"; $ Stmt = $ dbh- & gt; क्वेरी ($ sql); $ परिणाम = $ stmt- & gt; प्राप्त करें (पीडीओ :: FETCH_ASSOC); विदेशी मुद्रा ($ कुंजी के रूप में $ परिणाम = & gt; $ val) {echo $ key '-'। $ Val। '& Lt; br / & gt;';; } $ Dbh = नल; } पकड़ (PDOException $ ई) {गूंज $ e- & gt; getMessage (); }? & Gt; अब मैं PHP सीख रहा हूं, मुझे पोडो कनेक्शन को सम्मिलित करने के बारे में जानना चाहिए, डाटाबेस से फ़ेच डेटा अपडेट करें। मैंने इस लिंक को संदर्भित किया है अब मुझे पहला कॉलम मान...

php - Converting relative URL to absolute -

Assume that I have a URL of a document that connects to another document (which can be both full or relative ) And I need it ($ parent_url); If (strcmp (substr ($ url, 0,7), 'http: //') == 0) {return $ url; } Otherwise (strcmp (substr ($ url, 0,1), '/') == 0) $ parent_url ['plan']. "$ .parent_url ['host']. $ Url;} and {$ path = $ parent_url ['path']; $ path = substr ($ path, 0, strrpos ($ path, '/')) ; Return $ parent_url ['Plan']. ": //". $ Parent_url ['Host']. "$ Path /". $ Url;}} $ Parent_url = 'http: //example.com/path/to /file/name.php? Abc = abc '; echo absolute_url (' name2.php ', $ parent_url). "\ N"; // output http://example.com/path/to/file/name2.php Echo absolute_url ('/ name2.php', $ parent_url). "\ N"; // output http://example.com/name2.php echo absolute_url ('http: //name2.php',$parent_url). "\ N"; // output http: //...

ios - What is NSdocumentdirectory's limitation size? -

अधिकतम का NSDocumentdirectory जो संग्रहीत ?. अधिकतर मैं बचत छवियों में NSDocumentdirectory हूँ, क्योंकि यह बैकड ऊपर iCloud । अब मैं जानना चाहूंगा कि उसमें अधिकतम आकार क्या रखा जा सकता है कृपया मदद करें। यह कोड बाइट्स की सही संख्या दे रहा है। - (अहस्ताक्षरित लंबे समय तक) फ़ोल्डर आकार: (NSString *) फ़ोल्डरपथ {NSArray * folderArray = [[NSFileManager defaultManager] subpathsOfDirectoryAtPath: folderPath त्रुटि: शून्य]; NSEnumerator * folderEnumerator = [फ़ोल्डरअरे ऑब्जेक्ट एन्यूमरेटर]; NSString * folderName; अहस्ताक्षरित लंबे समय से लंबी फ़ाइल फ़ाइल आकार = 0; जबकि (फ़ोल्डर का नाम = [फ़ोल्डरअनुक्रमक अगली ऑब्जेक्ट]) {NSDictionary * folderDictionary = [[NSFileManager defaultManager] फ़ाइल विशेषताऐटपैथ: [फ़ोल्डरपैथ स्ट्रिंगबैफ़िंगिंगपाथकंपनी: fileName] traverseLink: हाँ]; FolderSize + = [folderDictionary फ़ोल्डर साइज़]; } वापसी फ़ोल्डर आकार; } आशा है कि यह मदद करता है ...

installation - Install MongoDB on centos without YUM -

I am trying to install Mangodeb to St OS. As outlined in the question, I have to install it without the Wiim command. I downloaded the file from .rpm I used the rpm -ivh mongo-10gen-2.4.8-mongodb_1.x86_64.rpm command to install .rpm I have successfully installed mongodb. You can check the situation. Can not I find the way to move forward after this? Files mongod.conf and mongod are also not getting on the system. Any help will be greatly appreciated. Mongo-10 gene-2.4.8-mongodb_1 X86_64.rpm is only a MongoDib client if you need a server, then install a server package (Mongo-10-Gene-Server-X.x-MX.x86_64.rpm) or compile it from source.

php - Unable to install a extension from Download Manager -

The I have this problem I can not solve, partly because I can not explain it with the right words this clumsy question I am very sad for this. Below you can see an overview of your goal. I mangansi CE 1.4.2.0 on my web site. I want to install the following extension in my site I tried to install it, but it is giving the following error. Warning: Use Channel "Connect.magentocommerce.com/community" updated its protocols, to update download "channel update Knektkmgentocom / community" VS_Ajaxscrolling -1.0.0.tgz ... VS_Ajaxscrolling-1.0.0.tgz (41,899 bytes) to download. . . . . . . . . ... be: 41899 bytes Error: mkdir \ var \ www \ magento14 \ app \ code \ community \ vs \ Ajaxscroll \ block Please failed to help me why give Used to be? And I'm only using Magento Connect 1.0, if I try to use Magento Connect 2.0, give it the following error provided invalid package Identifier: http: // connect20 Any ideas? Thank you. Thank you. I w...

Why a JavaScript function with some specific name is not working while others are? -

One of the most interesting problems I am facing these days is one of my JavaScript functions. My javascript work is not working with some specific names, but if I change its name to some other place then it is working. A look for the toolbar function to maintain jquery ui css - // function retain_css () {Warning ('Hi'); $ ("#new_sort_options") .buttonset (); } // new type $ (document) .on ("click", ".new_sort_button", function () {var order = $ (this) .val (); var make_id = $ ('# new_make_id'). Val ( ); $ .ajax ({before: start_loader (), type: 'POST', url: '/ ajax / new-sort.php', data: 'order +' + order + '& amp; make_id =' + Make_id, data type: 'jason', success: work (data) {$ ("# new_saltts_tolbar") .html (data.toolbar); $ ("#new_update") .html (data.moles); retain_css () ; And_loader ();}});}); but retain_css () is not working at all. Even alert () is not firing ...

c# - reset button for a simple counter -

I am creating a very simple counter app for C # in Windows 7.1 using Visual Studio 2010. I've added two buttons, one + and one - (for adding or subtracting) the results are being printed in a text block, which all work well. Now I am trying to add a reset button to return zero to the text box and I'm struggling. I can exclude it with a toasting as 0. But the counter value does not reset to zero! I know that this is a very simple problem to fix, but I'm coming out empty! Thank you. using the system; Using System.Collections.Generic; Using System.Linq; Using System.Net; Using System.Windows; Using System.Windows.Controls; Using System.Windows.Documents; Using System.Windows.Input; System.Windows.Media; Using System.Windows.Media.Animation; Using System.Windows.Shapes; Using Microsoft.Phone.Controls; Namespace PhoneApp1 {Public Partial Class Home Page: Phone Application Page {int counter = 0; // Constructor Public Manpage () {Initialization (); } Private Zero add_...

java - How to remove 'unchecked' warning from my method? -

मेरे पास निम्न कोड है निजी स्थिर वर्ग पार्सल योग्य & lt; T & gt; {निजी अर्रेलिस्ट & lt; T & gt; पार्स (लिस्ट & लेफ्टिनेंट; पार्सलेट योग्य & gt; पार्सलबल) {ऐरे लिस्ट & lt; T & gt; पर्सडडेटा = नया अर्रेलिस्ट & lt; T & gt; (); के लिए (पार्सल योग्य पार्सल योग्य: पार्सलबल) {parsedData.add ((टी) पार्सल योग्य); } वापसी पार्सडेटा; }} इसे निम्न के रूप में कहा जाता है पार्सलेबल पार्सर & lt; SomeClass & gt; सेलपरर्स = नया पार्सल योग्य पार्स & lt; कुछ क्लास & gt; (); सेलपरर्स.परसे (बंडल.टेटेलबलअरेलेलिस्ट ("कुछ स्ट्रिंग")); यह चेतावनी देता है प्रकार की सुरक्षा: अनुलग्नित कलाकारों को पार्सल योग्य से टी । कोई फर्क नहीं पड़ता कि मैं क्या करता हूं, मुझे हमेशा कुछ बुरा संकलन त्रुटि। मैंने पीईसीएस नियम के बारे में पढ़ा है, लेकिन मैं इसे यहां लागू नहीं कर पा रहा हूं। नमूना समाधान (संकलन नहीं करता है) निजी स्थिर वर्ग पार्सल योग्य पार्सल & lt; {निजी अर्रेलिस्ट & lt; T & gt; पार्स (सूची & lt; T & gt;...

node.js - How to get distinct value of sub document field with their count in collection in mongodb? -

I have a collection with the documents below. I want to get all the documents with their sub-documents counting in different values ​​and collections. Example: var record = [{"property": [{"" ":" color "," value ":" [["" name ":" "", "Name": "ddd"}, {"attributes": "red", "value": "red", "_id": "", "", "" "" "," _id ":" 544103a0348ebc91ee75b33 "}, "{Name:"}: "one"}, {"attribute": [":" "", "name": "size", "value": "l", "_id": "5441091393450f1619be99b0"}], "name" Color "," value ":" black "," _id ":" 5441092593450f16 ("name": "size", "value": "l", "_id": "5441...

charts - VBA Data Validation from another worksheet -

I currently have 2 work sheets in sheet 1 and sheet 3 sheet 3, I have more than one publicly traded There are companies that are going to the first line under each company, I have a chart / graph name which I was able to find through another workbook relevant to the company. In Sheet 1, I have a column for companies and a column for the graph, I want to create a drop down list which will allow a user to choose a graph and open it in PDF or extended version. How would I go about doing this? sub-appendGraphs (dimmer), the target worksheet dim locator, set the RC = Sheet5 set as the source of the set target = sheet 1 as the control line = source.Cells (1, Columns.Count) feed .End (xlToLeft) for .Column I = 2 control to collect the 'wire each column line and datavalidation RC = source.Cells (Rows.Count, i) .End (xlUp) For archived in tempList Line ReDim tempList (RC to 1) = 2 UBound (tempList As String n) tempList (N) = source.Cells (i, n) .Value (findRowB (source.Cells (with ...

Limit number of lines displayed in a table by wordpress (php( -

I have a table in WordPress that stays long and long. I want to set a limit, so only the last 250 results are shown or only last 30days. Which is easy. This code comes from the Wordpress Affiliate Manager plugin ViewData ['Impressions']), $ this-> ViewData [' Impression Count ' ]); ? & Gt; & Lt; / P & gt; & Lt; Table class = "wide" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Width = "25" & gt; & Lt ;? Php _e ('id', 'wpam')? & Gt; & Lt; / Th & gt; & Lt; Width = "200" & gt; & Lt ;? Php _e ('Date', 'wpam')? & Gt; & Lt; / Th & gt; & Lt; Width = "100" & gt; & Lt ;? Php _e ('creative', 'wpam')? & Gt; & Lt; / Th & gt; & Lt; Th & gt; & Lt ;? Php _e ('Referrer', 'wpam')? & Gt; & Lt; / Th & gt; & Lt; / TR & gt; & Lt; / T...

Hibernate Search poor performance when calling FullTextQueryImpl.getResultList() -

I am developing a web app using Hibernate Search 4.4. I'm having a performance issue while calling me getResultList () 's full text . The generated query is implemented in approximately 30 milliseconds, but takes approximately 1 second to complete the entire method. The query will return a small set; About 15 items. Does anyone have any information about what might be the reason for this poor performance or how it can be improved or corrected. If you need any other information, please leave a comment to add it. Thank you in advance From its description it looks like the Lucene query is fast , But the database load is slow. Fulltextclaim normally performs two steps: - Perform Lucene Query - Load Results from the Database > Unless you The estimates are not used: In that case the results are loaded from the index and you avoid loading from the database. So you can avoid killing the database completely, or at least to confirm that the database is loa...

Off canvas menu with Foundation 5 doesn't work -

I followed closely, I did not find any JS error, even then it does not work. Clicking on a link does nothing: Why does not it work? Place it at the end of your body: Launch the Foundation After adding the Foundation JavaScript to you, just add a simple call to start all the plugins on your page. We recommend that you start the Foundation at the end of the page

vb.net - Storing files in Azure SQLdatabase -

मेरे पास एक vb.net आधारित अनुप्रयोग है जो एक नीला SQL डाटाबेस का संदर्भ देता है, मैंने एक स्टोरेज अकाउंट स्थापित किया है जिस पर मैं चाहता हूं फाइलों को एप्लिकेशन से स्टोर करना है मुझे यकीन नहीं है कि डीबी और स्टोरेज खाते के बीच उस लिंक को कैसे बनाया जाए? "विंडोज Azure संग्रहण सेवा में SQL सर्वर डेटा फ़ाइलें" ट्यूटोरियल के माध्यम से जा रहा मैं sotrage बूँद के लिए एक यूआरआई नहीं बना सकता। एज़ूर स्टोरेज एक्सप्लोरर का उपयोग करना मैं अपना कंटेनर चुनता हूं सुरक्षा में जाता हूं और एक हस्ताक्षर तैयार करता है जो सभी ठीक काम करता है। जब मैं "ब्राउज़र में टेस्ट इन" बटन के साथ यूआरआई का परीक्षण करता हूं तो मुझे यह त्रुटि मिलती है: & lt; त्रुटि & gt; & LT; कोड & gt; AuthenticationFailed & lt; / संहिता & gt; & LT; संदेश & gt; सर्वर अनुरोध को प्रमाणित करने में विफल रहा। सुनिश्चित करें कि प्राधिकरण शीर्षलेख का मान सही रूप से हस्ताक्षर सहित बनाया गया है। अनुरोध इड: 22ab2830-0001-001d-67a0-5460bb000000 समय: 2014-10-17T14: 06: 11.9864269Z &...

java - How to handle jersey and tomcat errors consistently? -

I have applied with some (REST) ​​service jersey if a wrong request jersey handles errors and answers with some JSON content is. There is an exception mapper that should catch everyone: public class MyExceptionMapper exceptionsManper But if there is an invalid HTTP request - e.g. Invalid Content Type - Jersey is an opportunity to do this before Tomcat handles exceptions. The resulting response is a somewhat ugly badge html error page instead of the desired JSON I know that it is possible to set a . & Lt; Error page & gt; In the deployment descriptor but there I have no access to any error details. Is there a way to prevent this from catching this error? If so, the jersey can hold it with its ExceptionMapper and return the correct answer. After "text" itemprop = "text"> You know that you can set up an "error page", but what do you mean by this Are you? If this is just a static webpage, yeah, you will not have access to the err...

Powershell -match and weird results -

I have a problem with the conditional statement in the strengths with the -mail feature. Say I have 3 files: Test.dll (this is the word [TestClass] in dll) Test1 Dll ( TestClass is without parentheses in this DLL) Test2 DLL (this is not DLL at all) I am searching for files whose If I use the following code, both Test.dll and Test1.dll work in this situation: (By the way, every $ _ is a DLL) if ([IO.File] :: readAllText ($ _) -Match "TestClass") {$ ProjectTestContainers + = $ _ Write-Host $ ProjectTestContainers} Which should do it, but it's not what I want. I only want the files with [TestClass] , so I tried to do it if ([IO.File] :: ReadAllText ($ _) - Mail "[[TestClass`]") {$ ProjectTestContainers + = $ _ Write-Host $ ProjectTestContainers} All these conditions, Test.dll, Test1.dll and Test2.dll, which It should not. This should give me only test.dll because it is the only one that has [TestClass] any idea? Tell me that y...

tsql - Data conversion for Max() in sql -

Here's my query that does not refer to variable results resulting in that I'm not sure. Announcements @ performance, @MaxPediodPaid int, @MaxDate daytime, @ Diaelarfebar varchar (11), @QuoteDate datetime SET @ DealRef = '140200100538136' SET @QuoteDate = GETDATE () SELECT @MaxPediodPaid = Max (period), @ Maksdet = MAX (Pedet) Pementhastik Dblyuecii Dilfrif = @ Delarf; SELECT @MaxPediodPaid, @MaxDate; I declare variable @MaxPediodPaid and @MaxDate to int and datetime P>

ios - Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc? -

Image
I have searched a lot on the internet but none of the solution works for me. I create an IPA with which it Successfully creates my application and creates an IPA, but when I want to upload it to testflightapp, I get this error: Invalid IPA: missing embedded provisioning profiles Are you sure that this Is an ad hoc? I have added the provisioning profile to create a profile like If I create an IPA manually with Xcode> Product> Archive, then I can successfully upload an IPA to testflightapp. So my guess is that Xcode Maven plugin can not read my provisional profile. I tried to force it by using a private profile in a pom file: Any help would be appreciated. I thought trouble. I was using the wrong IPA file with the Maven goal. I am using IPA from this path: / target / checkout / src / xcode / build / debug-iphonimulator / target / checkout / src / xcode / build / release-iphoneos This was a stupid mistake.

load javascript and css only when needed RAILS -

I am learning Ruby on Rail and Javascript Is there any way to load JS file only by the Railways? I tried to make simple application, but when I check on logs, I know that it always loads JS, even unnecessary libraries. I already searched it and found that it is using configurations to load specific JS only for specific pages. It's good, but I think that when we have a library Work that is used by many pages, it is difficult to maintain whether someone can give good advice? Thanks requireJS : RequireJS is a javascript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments such as rhino and node. Using modular script loader like RequireJS will improve the speed and quality of your code.

Searching for words in Ruby on Rails -

Text after " My application currently lists words that have been parsed in a database (SQLite). I want to add a search box for my Rail app that looks through its dictionary of words and returns the search for the words in the table format that is currently presented in my opinion: & lt;% @ words Do it Words | & Gt%; & Lt; TR & gt; & Lt; Td> & Lt;% = word.word% & gt; & Lt; / Td> & Lt; Td> & Lt;% = word.wordtype% & gt; & Lt; / Td> & Lt; Td> & Lt;% = word.description% & gt; & Lt; / Td> & Lt; Td> & Lt;% = link_to 'Show', word% & gt; & Lt; / Td> & Lt; / TR & gt; & Lt;% end% & gt; I am new to the rail and deep red has appreciated any help. You want a simple search (that misspellings are not allowed But allows partial spelling) You can do something like this in your action (assuming that the name of the name you want to be / whatever it needs to ...

Ruby Method - Won't Take Second Parameter - Blackjack -

To create a blackjack game that I put the second parameter display_cards method, if everything goes if I method breaks parameter removes am and then I call it, then everything works fine what's going wrong? def play game_deck = initialize_deck game_deck = shuffle_deck (game_deck) human_cards = [] computer_cards = [] end def initialize_deck (number_of_decks = 6) deck_values ​​= [ 'A "," 1 " "2" 3 "," 4 "," 5 "," 6 "," 7 "," 8 "," 9 "," 10 "," J "," Q "," K "] suit = [" - small "," -dayands "," -club "," -speeds "] deck = [] number_off_desk.times suits.choice | deck_values.each do | value | deck & lt; value + suit end end end back deck end def display_cards (player_cards, PLAYER_NAME) card_string = "# {PLAYER_NAME} card \ n -----------------" player_cards.each to | charts | card_string + = ...

python - ElementTree findtext doesn't find leaf nodes -

I'm using Elementary to scan the XML string drawn from a text file. & lt; Root & gt; & Lt; Branch_a & gt; & Lt; Leaf & gt; Foo & lt; / Leaf & gt; & Lt; / Branch_a & gt; & Lt; Branch_b & gt; & Lt; Another_leaf & gt; Bar & lt; / Another_leaf & gt; & Lt; / Branch_b> & Lt; / Root & gt; When I parse it and try to find the nodes of the leaf, I do not get any results: gt; & Gt; Elem_tree = xml.etree.ElementTree.fromstring (xml_string)> gt; & Gt; & Gt; Leaf_text = elem_tree.findtext ('leaf') & gt; & Gt; & Gt; Leaf_text is not true But when I cross the tree, everything works fine: gt; & Gt; Elem_tree.findtext ('branch_a / leaf') 'foo' & gt; & Gt; & Gt; Branch = elem_tree.find ('branch_a') & gt; & Gt; & Gt; Branch.findtext ('leaf') 'foo' Is there a way for Elementary to scan the whole tree f...

android - SharedPreferences and Countdown Timer: I can't save the time -

I am making a countdown timer and I am using this code. (For the first time sorry for my bad english) I use the time to share, when I return to any other activity and return, but when I return to the countdown activity, it restarts the timer Can not you save me anything else? This is the code used! Public Class Main 8 Extends Extremity Activity OnClickListener {Myapp application; String eleg = ""; Calculation device timer start 1; Button claimant; Long cont = 0, q = 0; Personal SimpleDataFormat Time Format; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); RequestWindowFeature (Window.FEATURE_NO_TITLE); GetWindow () SetFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); SetContentView (R.layout.fragment8_main); Timeformat = New SimpleDateform ("HH: mm: SS"); Button SEG = (Button) findViewById (R.id.button1); // seguir seg.setOnClickListener (New OnClickListener) {@Override Publi...

arguments - Additional processing of arugments for a function in Python -

In writing a small library, I need to sanitize input on all the arguments of the function shown below: Src = pipes Import import pipes DP copy (source, DST, ID_file = '/ path / to / key'): .quote (src) import = pipes.quote (dest): import: Src = pipes.quote (src) Id_file = pipes.quote (id_file) subprocess.check_output ('scp -r -i% s% s% s'% (id_file, src, dest)) Argument through pipe rather than driving each one clearly. Question (), how can I do this more beautifully, and in any number of arguments (* Args and ** quad, if present)? Most subsystem accepts a list of task arguments: The subprocess.check_output (['scp', '-r', '-i', id_file, src, dest]) The quote is no longer necessary. -r ',' -i '] call_args.extend (args) call_args.extend (for arg in the item for kwargs.items () arg in arg) subprocess.check_output (call_args) Of course, with the quads, you never know in what order they will call. . ...

c - what is the maximum possible height of an AVL tree with n nodes -

Is the maximum height of the AVL tree to be found with n nodes. We know that the AVL tree which is approximately 1.44 * logan. If we have 7 nodes, then the maximum possible height is 3 n4 (1.44 * log7). I think you will know that 1.44 * log (n) log base2 ... is such that ~ 2.08 * ln (n) , which is ~ 7,0475 for 7. I have seen, Various: 1.4404 * log2 (n + 2) - 0.328 1.44 * Log2 (n + 1) - 0.3 But in the case of log2 () all.

jquery - if else conditions problems -

Hi, I have some problems with this function. I want to create a carousel / slider with five sliders, click on the left arrow - 336px to the left of the first diva, but do not click on the next div (box 2). On the left side, I do not know why the conditions are not verified. & lt; Div class = "test" & gt; & Lt; Div id = "box1" class = "box_img" style = "background: black" & gt; & Lt; Img src = "picture / 1.jpg" /> & Lt; / Div & gt; & Lt; Div id = "box2" class = "box_img" style = "background: black" & gt; & Lt; Img src = "picture / 2.jpg" /> & Lt; / Div & gt; & Lt; Div id = "box3" class = "box_img" style = "background: black" & gt; & Lt; Img src = "picture / 4.jpg" /> & Lt; / Div & gt; & Lt; Div id = "box4" class = "box_img" style = "backgroun...

python - Read the cell value -

जब मैं दस्तावेज़ीकरण वेब का सरल उदाहरण देता हूं: wb = load_workbook (filename) = 'Fileroute.xlsm') sheet_ranges = wb ['Export_PM'] प्रिंट ((sheet_ranges ['b5']। मान)) स्क्रिप्ट मुझे एक और कक्ष के संदर्भ में प्रदान करता है अलग वर्कशीट। = calculo_PM! AK20 मैं मूल्य को 'लिंक' या सेल के संदर्भ में कैसे प्राप्त कर सकता हूं जहां मूल्य प्राप्त किया जाता है? धन्यवाद दस्तावेज पढ़ें और आप देखेंगे कि कार्यपुस्तिका लोड करते समय डेटा_ऑनली विकल्प।

ios - How does NSrange work here? -

I saw a video about ios7 programming and saw the piece of code below. I can not really understand how the variable range works here. We create a NSR variable variable and never give it a price, so I think the end range pointer should be returned from zero. Can be used in the effective range and how much the value is in the range. Location and category. Length? Thank you very much for the help! - (NSMutableAttributedString *) charactersWithAttribute :( NSString *) attribute name {NSMutableAttributedString * characters = [[NSMutableAttributedString alloc] init]; Int index = 0; While (index & lt; self.textToAnalyze.length) {ennange range; ID value = [self.textToAnalyze attribute: attributeName atIndex: index effective range: & amp; category]; If (value) {[Attach characters: string: [self Texanage attributed asbestring formation: Range]]; Index = category.location + border Lamps; } And {index ++; }} Returning character; } declare allocated memory on the NSRange...

python - Django server returning different status code -

I am using the Django Framework to implement a simple API. In my view.py I have this method: DEF business_profile_detail (request, p): "" "Get, update, or delete a profile." Try "Profile": Profile = BusinessProofile.objects (Status = 404) return HttpResponse if request.method == 'get': (P = P) received BusinessProfile.DoesNotExist except serializer = BusinessProfileSerializer (profile) put back JSONResponse (Serializerkdata) Elif request.method == '': "" "method just is not supported by" "" return response (status = status.HTTP_405_METHOD_NOT_ALLOWED) Elif Requestkmethod == 'delete': "" "" "method not supported yet" return response (status = status.HTTP_405_METHOD_NOT_ALLOWED) P> Edit: Traceback: file "/ user / ******* / Documents / dev / offers / project / offers / venv / lib / python2.7 / site-packages / Django-1.7-py2.7.egg / django / core / handl...

Access 2010 query truncates memo field -

The following query access to use the report to select data to me I it works except that he What_is_hidden field is smaller. SQL what database strike the field as a Nrwcr (maximum) - Access 2010, it has been viewed as a memo field. me. .full_name, dbo_event_log_shack.actual_date, dbo_e_l_v_al_id_is_active_client, [dbo_all_clients_view query] .policy_num, dbo_event_log_shack.event_log_id, dbo_all_clients_view.dob, dbo_event_log_shack.eventtime1, dbo_event_log_shack is_deleted, dbo_event_log_shack.staff_name, dbo_event_log_shack.staff_supervisor, including cir_descrip_staff_resp rights cir_descrip_staff_resp.what_happened jOIN ((dbo_all_clients_view left dbo_all_clients_view.people_id = dbo_event_log_shack.people_id dbo_event_log_shack are) [dbo_all_clients_view query cir_descrip_staff_resp lEFT jOIN] dbo_all_clients_view.id_no = [dbo_all_clients_view query] Current .dbo_all_clients_view_id_no). [Event id] = dbo_event_log_shack.event_log_id WHERE (((dbo_event_log_shack.is_dele...

javascript - Animate video on scroll like iPhone 6 website -

I am trying to revive a video on such a scroll. I have an animated video on the scroll, but I'm trying to make some effort to get the video easily after the release of the musicwill. I'm not sure how should I go with this challenge, should I try to use a real smooth out function? Or should I do it any other way? Here JS is the snippet of IT which is currently i and a live example. function at least (T, B, C, D) {return C * (T = T / D-1) * T * T * T * T + 1 + + B ; }; Var $ win = $ (window), $ video = $ ('video'), frame rate = 29.97, target = 0, scroll = 0, ticketing, scroll timeout, delta, target; Var scroll video = function () {this.scrollY = 0; $ Win.on ('MouseWill DomusScroll', this. On scroll, .bind (this)); }; ScrollVideo.prototype = {/ ** * Callback for our scroll event * Keeps track of previous scroll value * / onScroll: function (event) {var e = event.originalEvent? Event.originalEvent: Event; // Get the original event if available target availa...

jekyll - How do I convert a sitemap.xml to an html fragment? -

I am using the jekyll-sitemap plugin () to create a sitemap.xml file. Would I like to use this style SlickMap CSS () or () Is it possible? Yes it is possible. Just create the sitemap.html page to present your sitemap as a slimmap HTML pattern. seems to die (last 2011 committed).

Drupal 7 Workbench: node title/type/date info missing -

I am working on a Drupal 7 site which uses the workbench module to see the modifications. All the names are empty except for a few nodes in the list, and the option to remove the node. Then, these are just a few "phantom" nodes, and all of them are in the lower part of the list (after the minimum draft). For this site admin, this view is for other partners, they can not see those nodes on their Workbench tab. When everything looks fine when looking at content under "content" rather than workbench. Thank you in advance for your help! Do you have a UI installed? And check and the field for the view of a particular workspace is a problem for you.

javascript - Full Calendar loads before the data loads -

My full calendar will load after a few seconds, data will appear. I am loading my data with JSON I have tried to add a loading icon to Loading but it shows the loading icon, calendar and then the data is visible, so this is the same The issue is Any calendar and data to load at the same time? This is my code. $ (document) .ready (function () {$ ('# calendar'). Fullcalendar ({header: {left: 'previous, next to next', center: 'title' True: 'Month, Basic Options, Basic'}, Default View: 'Original', All Dell Slots: True, Selectable: True, Weekend: Wrong, Theme: True, eventLimit: true, eventLimitClick: 'week', eventTextColor: '# 000000', // Black Event: '/ MEO / GetCalendarEvents /', eventClick: function (calEvent, jsEvent, view) {warning (calEvent.title)}, loading: function (boole) {if (bool) {$ ('# Loading'). Show ();} and {$ ('# l oading') to hide ().}}}});}); CSS & lt; Div id = 'ca...

Are there any Android Camera components I could reuse / buy instead of coding from scratch? -

I'm in the middle of making my camera based app for Android. I built my work base on me and I believe that 100 times handling all the Camera.Preferences has already been done and dozens of developers went through the path of Find out that Flash / Li is there Flash mode supported Check Use the fancy icon to show those modes so that the user wants what he / she does . ... and ... and .. and ... preview and final image ... and ... and ... and select which scene settings Should be used ... Process data from reconstruction [] can take a photo, and take it from each other if you want rather - end In, when you selected all the user (which is close to step 66) the wheel then I find a component that will handle the UI slice and play with me (takePhoto) and coming from the camera When I tried to let the data [] assume I need it (mine will be a semi-class one) After failing to find it ... I realized that I usually have problems finding components that anyone can use free...

java - How to avoid the ConcurrentModificationException -

I'm trying to remove items from an array list with the repeater and I'm having time ConcurrentModificationException Here is my code: Public Zero Forward (for (Sprites: sprites) {s.move ()); For (Iterator Lt; Sprite & gt; IARR = sprites.iterator (); iter.hasNext ();) {s = iter.next (); If (for example an attacker) {Sprite s2: sprites} {if (s.overlaps (s2)) s2.hit (); }} If (s.shouldRemove ()) iter.remove (); }}} It works about 15 to 20 times and then I get an error in every couple's click exception in the thread "Adbluti -ivent Khuiu -0" java.util.ArrayList $ Itr.next (ArrayList.java:851) java.util on java.util.ArrayList $ Itr.checkForComodification (ArrayList.java:901) on Model.forward. ConcurrentModificationException (Model.java: 46) javax.swing.JComponent.processMouseEvent on java.awt.Component on Controller.mousePressed (Controller.java:29) java.awt.Component.processMouseEvent (Component.java:6522) (JComponent.java : 3321 .processEvent java.a...

php - Escape special characters in a filename -

We've got a system that allows file uploads to be originally used to access the file name of the original file - now We make a hash and change names, all uploads, but there are approximately 20,000 legacy files mostly in the + and () file names such as Bob_smith (2) .doc We use all files through an htaccess rewriterule Passing and none of those characters give an error - it's all manually Ailnamon and related database column to manually is not a viable option file change we can avoid those characters at runtime so that rules rewrite can still work? The current rewrite is: RewriteRule ^ view / ([a-zA -Z0-9. \ -_] +) \. Php /documents/view.php?doc=$1 [L]

javascript - Nav anchor doesn't apply active class correctly while scroll jQuery -

I have a website, in & lt; Header & gt; The sticky nav is under the element, as long as I scroll to a section, it activates a class using data-attributes , here's the bug: when I class If I scroll to active , half the section also does not scroll according to the section section. What do I need active to turn on the class until I get the anchor of each section, I leave my code below a JSfield, you can see that What is the problem, I hope you guys can help me. HTML: & lt; Header class = "testheader" & gt; & Lt; Nav id = "cloud_nav" class = "absolute" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" data-scroll = "overview" & gt; Section 1 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" data-scroll = "readiness" & gt; Section 2 & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & ...

java - How to solve "The certificate is not valid and cannot be used to verify the identity of this website" error? -

Image
The question is, how to solve "the certificate is not valid and can not be used to identify it Is the website "error? . Here are the details: I have a signed applet that is working fine, as long as I have Java 8u25 (1.8.0_25- B18). Now, the app shows a warning message "Do you want to continue? The connection to this website is unreliable". There is also a note in this message, "The certificate is not valid and can not be used to verify the identity of this website ". The applet is full without problems but when the user tries to use the specific function of that application, a warning message is displayed. I have tested the Java console on this, and this warning message is displayed immediately after these lines: Security: SSL root CA certificate store security Obtain certificate archive in: Invalid certificate from HTTPS server network: The cache entry was not found [url: https://sub.domain.net:9876, version: Null] Downloaded from a di...

javascript - Tab hard to be clickable -

I have a tab to display at the lower left corner of the window, but it is actually difficult to make it click Eligible (even iframe is not clickable), it does not even have an animation on the cell phone and even a web browser. How can I fix this arrow? In the console it says: Unkit Reference Error: $ Not Defined . Problems making clickable tabs on mobile browsers and creating clickable iframes? Note: The tab has an IFrame, so I can not even have it to be clickable, so far I have not done anything correctly Note: Clicking Hard work is typically sent to the old Mimi devices and safari. (It's hard to work on them) ¿Can I make a clickable zone bigger? Look at this Bella, the animation is working fine and smooth: I just remove the infection There is property and lubricant from the "#A-Tab" category and there is $ (" # a-tab, # a-tab * "). $ ("$ (" $ ("$ Ak-tab"). $ ("Width: '320px'}," sharp "); $ (...

solr - how to index all metatags in nutch -

I have installed the 1.9.9 and have configured it to crawl successfully with Solar 4.10.1. I am trying to define index metadata in Nutch as defined by How can I set it in an index of all metadata on a site? I like the values ​​for metatags.names * like & lt; Property & gt; & Lt; Name & gt; Metatags.names & lt; / Name & gt; & Lt; Price & gt; * & Lt; / Pricing & gt; & Lt; Details & gt; To remove metatag names, separated by ','. Use '*' to remove all metatags, prefix names with 'metatags'. For index details and keywords in parse-metadata, for example, you must activate the plugin index-metadata and set the parameter 'index.parse.md' to 'Metatag Desassembly, Metatag .keyword'. & Lt; / Description & gt; & Lt; / Property & gt; But I am unsure about setting the value of index.parse.md without listing individual metatog names. I tried it & lt; Property & gt; ...

angularjs - highcharts-ng model data not working -

I am trying to populate several charts with data in .json file. I have a chart that works with some dummy / link coded values ​​(commented on plunker), but when I want to add value to a .json file / model it does not work. HTML Template: & lt; Highcharct = "chartConfig" & gt; & Lt; / Highchart & gt; Controller: series: [[Data: ['part.before_hp', 'part.before_torque'], // It does not work / / Data: [2,3], // This dataLabels works: {Enabled: True, Color: '#FFFFFF', Y: 40, Style: {fONTSIZE: '24px', FontFamily: 'TG, sans- Serif ', textShadow:' 0 0 3px black '}}, BorderColor:' Transparent ', pointPadding: 0.03} {data: [' part.after_hp ',' part.after_torque '], // This // data does not work [5,6], // This dataLabels works: {Enabled: True, Color: '#FFFFFF', Y: 40, Style: {fONTSIZE: '24px', FontFamily: 'TG, sans-serif' , TextShadow: '0 0 3px black'}},...

countdowntimer - Countdown Timer JS -

Hello, I have a JavaScript countdown timer, without entering the day. Okay, I want to add it to the right formula for the day's report. This is my js code: (sorry for my english, i use google translate) var tick = function init) {if (init == undefined) {init = False; } Var current_time = new date (); Current_time = current_time.valueOf (); If (current_time & gt; target_time) {var time = new date (); Target_time = new date (time.guulular (), time.get (), time.getrate ()); Target_time = target_time.valueOf () + 1000 * 60 * 60 * 24 * 45; } Var time_diff = Math.floor ((target_time - current_time) / 1000); // warning (time_diff); Var second_2 = time_diff% 10; Time_Diff = Math Floor (Time_dif / 10); Var second_1 = time_diff% 6; Time_diff = Math.flur (time_delay/6); Var min_2 = time_diff% 10; Time_Diff = Math Floor (Time_dif / 10); Var min_1 = time_diff% 6; Time_diff = Math.flur (time_delay/6); Var hour_2 = Time_diff% 10; Time_Diff = Math Floor (Time_dif / 10); Var hour_1 = tim...