Posts

Showing posts from February, 2010

vb.net - Visual Studio 2010 vs. Visual Studio 2013 - Different Compiler Errors - Why? -

We can not explain this by keeping some strange things in mind. In one class we did these 2 functions: Public Overloads Shared Function ToList (ByVal as input object, _ Optional ByVal StringSeparator as string = ",", _ Optional In the form of ByVal CharacterCasing string = "", _ as the optional ByVal StartRow integer = 0, _ OptionalVal EndRow as integer = -1) as the string ... End Sub Folk Overloads Shared Function ToList (ByVal Input As an object, _ OptionalValitStringSeparator = ",", _Validate as String Logic String as ByVal JoinStringSeparator String = ",", _ = Optional ByVal as PreFixStr String = "", _ = Optional ByVal String = "" as PostFixStr) ... End Sub We will not get any errors if we try to compile this project in VS 2013. If we try to compile this same exact project in VAS 2010, it returns the following error (which makes sense): Error 1 'Public Shared Overload Function Tooltip ( In the form of an o...

javascript - Data is not passed from AngularJS controller to NodeJS server -

I am trying to pass some values ​​from my client-side angles JS script to a server-side nodejs script. I established a POST request like this: $ scope.addUser = function () {console.log ($ .param ($ scope.user)); $ Http ({method: 'POST', url: '/ addUser', data: $ .premium ($ scope.user), header: {'Content-type': 'application / x-www-form-urlencoded'} }). Success (work (feedback) {console.log ("success");}) error (work (feedback) {console.log ("error");}); }; $ scope.user variable {name: "john", email: "dow"} , and name = john & amp; Evaluates Email = When When Passed $ Passed through the ultimate ($ scope.user) . I originally thought that the request for the problem was the type of content, which was originally a JSON object. After reading about similar problems, I changed the content-type to the x-www-form-urlxode, but still could not take data from the POST request. Here is a server-side nodej...

bison - Using yacc precedence for rules with no terminals, only non-terminals -

Someone can help me This is my rule on: e: T_NUM {$$ = Mk_ant ($ 1);} | T_POP E [l] {$$ = Mk_Ap (Mk_op (POP), $ l);} | T_NEXT E [l] {$$ = MK_Ap (MK_op (NEXT), $ l);} | "{" E [x] "," e [y] "}" {$$ = mk_point ($ x, $ y);} | E T_PLUS E {$$ = Mk_Ap (Mk_Ap (Mk_op (plus), $ 1), $ 3);} | E T_MINUS E {$$ = MK_Ap (Mk_Ap (MINUS), $ 1), $ 3);} | E T_DIV E {$$ = MK_Ap (Mk_Ap (Mk_op (DIV), $ 1), $ 3);} | E T_MULT E {$$ = MK_Ap (Mk_Ap (MKTOP (MULT), $ 1), $ 3);} | E T_LEQ E {$$ = MK_Ap (Mk_Ap (LEQ, $ 1), $ 3);} | E T_LEE {$$ = MK_Ap (Mk_app (Mk_op ($ 1), $ 3);} | E T_GEQ E {$$ = MK_Ap (Mk_Ap (MKAOP), $ 1), $ 3);} | E T_GE E {$$ = MK_Ap (Mk_Ap (Mk_op (GE), $ 1), $ 3);} | E T_OR E {$$ = Mk_Ap (Mk_app (MK_OP, $ 1), $ 3);} | E T_AND E {$$ = Mk_Ap (Mk_app (AND, $ 1), $ 3);} | T_ID {$$ = MK_ID ($ 1);} / * RECONCISE DIIIPUTER and variable variable * / | E T_EQ E {$$ = MK_Ap (Mk_Ap (Mk_op (EQ), $ 1), $ 3);} | T_NOT e [expr] {$$ = mk_app (mk_op (not), $ expr)}} T_FUN T_ID...

ios7 - iPhone App Submission - Bluetooth BLE Enable -

Can anyone tell me how Apple handles the Bluetooth BLE enabled app? Actually, I have created a Bluetooth iPhone app. Which connects to third-party devices. And, I'm not sure that Apple is testing apps that connects to third-party devices Has recently launched its first iOS app using iBeacon. It took 3 attempts to accept them. I recommend making a video that shows how your app works and sends them to them. Generally, they also ask for hardware, but most of us are not able to provide it with one to send the instructions to the object lab at the end of their hardware setup and test the app. Was there. They will not even know their work. That's why I would suggest sending a video and step-by-step on how to setup the hardware at the end.

Full screen activity in Android -

I have a setting activity in which the user can set the app in full screen mode. When the back button is hitted, the user jumps back on the main activity. I would like to make the activity full screen if it has set the fullscreen inside the setting activity, then the activity will be restarted with priority. In addition, it would be great that this method is supported for Android API1 from Android API 9. If there is no way I do not kill activity, P> text "itemprop =" text "> this API supports 7 to 1, add the following before the set content view, Prefix

c++ - How to replace std::string with vstring? -

I have recently learned that for some years the library has been known as vstring in LibasteDis ++ (which is also known as versa_string ), which provides the same functionality as std :: string , but apparently conforms to the C ++ standard. I have tried to use vstring as the replacement for std :: string , but I have not found any easy way to do this. With std :: string with vstring , is there an easy way to change without changing the libstdc ++ sources? I am fine with the place. All the use of std :: string inside my code by the nickname according to the following code, however, the problem with this approach is , That std :: string is also used internally in some places, e.g. In std :: ostringstream it means, statement std :: ostringstream os; My: string s = os.str (); no longer works namespace my {#ifdef __GLIBCXX__ string = __gnu_cxx :: __ vstring; #else string = std :: string; #endif} No, there is no way to change std :: With std :: string ...

python - Mysterious SyntaxError in nosetest of functions/files -

So I'm trying to write a test for the part of a word parser function which will basically confirm that the parser returns The part for which I am writing a test is a function called "peak", where it takes a list of Tuples ('TYPE', 'WORD' format in Tuples), and returns the value in 'TYPE' to Tupal The code for the peak part of the part parser (the file is in parser.py) is as follows: def peek (word_list): if word_list: word = word list [0] is back word [0] and: there is no back where " The word_list "is a list of Tupe's in the question, so my test is basically designed to see if the Peak Function actually recognizes the Tupe's list in" Word_list "and returns the value 'TYPE' from Tipple which runs it is. My code for this test is as follows: Import nose.tools from * Import parser DEF from ex49 test_peek (): word_list = [('direction', 'answer')] assert_equal Parser) .peek ([['directi...

ibm mobilefirst - WL App installed on server still pointing to local URL for adapter -

I'm having trouble deploying a simple hybrid app on the WL 6.1 server. I am using the Configure Vertical Build and Deployment Targets window to override the local dev server and enter the reference on the server and the server. After this I build one (I have created both all environments and Run on the Vertical Development Server option ) and on the server Upload the Wlapp file. The point is that when my simple app is deployed to an adapter process on the same server, it is always going back to my dev server, I have verified this by stopping my local and seeing errors in the log. Do I not miss any action address change? 5.x you modified and modified the App XML to specify it. If I turn off my local Dev server in the log, then I get the following when running from my remote server in my Chrome console (note xenotp is my god laptop): Post http: // xenotp: 10080 / bobCATWLProject / apps / services / api / test / common / query net :: ERR_CONNECTION_REFUSED FYI, I crea...

css - clearing a relative div -

I have a problem with two selective divs that are working fine on scaling the screen size, but if I Add overflow is hidden and making a scroll bar I have tried clearing with overflow auto, I tried and made a div to clear it, I even made the old school clear but some Not even working? & lt; Div class = "wrapper" style = "margin top: 20px;" & Gt; & Lt; Div class = "column container" style = "overflow: auto;" & Gt; & Lt; Div class = "leftColumn" & gt; & Lt; H2 & gt; Get in touch & lt; / H2 & gt; & Lt; P & gt; & Lt; / P & gt; & Lt; Form & gt; & Lt; Input type = "text" & gt; & Lt; Br / & gt; & Lt; Input type = "text" & gt; & Lt; Br / & gt; & Lt; Input type = "text" & gt; & Lt; Br / & gt; & Lt; Text area & gt; & Lt; / Text field & gt; & Lt; Br / & gt; & Lt; Button type...

ruby on rails - How might Apache cause duplicate requests? -

I have two rail applications that talk to each other. A few times a day requests App A to show a duplicate (or triple / quadruple) in App B. All outbound and inbound requests are logged. Logs show that the app is sending an outbound request and that App B receives two or more requests during the same second. App B is behind Behind the Apache and Amazon Lowsticks Load Balancer. I'm not sure where to ask about this issue, to ask about where or even what questions to ask. If you want more data, I would love to provide it. The possibility of retries is the Amazon flexible load balancer or some network component (eg router, for example). Actually, a idle time is exhausted at some level in the request request chain. If it does not return the appropriate HTTP 5xx status to the time-out customer (for example, it can only shut down the connection quietly), then the source of the timeout and the potentially dependent on the component between the client Decide to try how they are...

Javascript Array Sorting Headache -

I have articles that look like this: [{id: { ID: 5, status: 2}, {id: 1, status: wrong}, {id: 2, status: wrong}, {id: 3, status: 4}, {id: 4, status: false} 6, Position: 5}, {id: 7, position: 3}, {id: 8, position: 1},] I would like to sort this array using the position property ( Ascending) of each object so that the array looks like this: [id: 8, position: 1}, {id: 5, position: 2}, {id: 7, Status: 3}, {id: 3, status: 4}, {id: 6, status: 5}, {id: 1, status: wrong}, {id: 2, status: wrong}, {id: 4, status: false}] thoughts only The object is to move with a condition that is not false at the top, without affecting an object object without affecting the incorrectly set object. Looks very easy, right? I have tried to do this problem in so many ways, but nothing is functioning steadily. Hopefully someone can help me with my head to go about this right. Help me over the stack overflow, you are my only hope. I tried to add a bunch of comments to help you follow your thou...

python - Django Hidden Redirection -

I want to create a mechanism for in-app redirecting which will not redirect, but simply load another view function Please. So we say that I am going to localhost: 8000 / a , the digenano looks at the last line of the scene and says Returns HTTPRPSPoint Redirect ('/ B ') will now go to my browser localhost: 8000 / b>, see Django and return it to me. Now I want to do only on the server side, so when I go to localhost: 8000 / a and redirecting Django to / b , Then it gives the view for / b returns to all intermediate etc. (such as redirection will work) and without any redirection without any redirection (as for the user Has been observed). I have called this type of redirection HttpResponseSmartRedirect and just like this: (which runs in the form of all middlemen), want to create midware for that time, that Is: Example of process_response check if response class HttpResponseSmartRedirect on . Now I have a problem - when I go to that position - ho...

HTTP static resources caching forever stategy -

जेसी विल्सन में निम्नलिखित का उल्लेख किया है: छवियों जैसे स्थिर संसाधनों की सेवा? एक स्थायी यूआरएल का उपयोग करें और इसे हमेशा कैश करें मैं छवियों को लाने और कैशिंग के लिए एक विशिष्ट उदाहरण के साथ उपयोग कर रहा हूं। मैं सोच रहा हूँ कि कैसे सेटअप को हमेशा कैश करें रणनीति? मैं केवल उच्चतम संभव मान के साथ HTTP कैश कंट्रोल हेडर अधिकतम-बासी ( कैश-कंट्रोल: मैक्स-बासी = ) ओवरराइड करने के बारे में सोच सकता हूं, वहाँ एक और (बेहतर) जिस तरह से? सबसे अच्छा तरीका है अपने सर्वर को एक अधिकतम अधिकतम-आयु को शामिल करने के लिए कॉन्फ़िगर करना है उदाहरण के लिए, इस हेडर के साथ 365 दिन निर्दिष्ट करें: कैश-नियंत्रण: अधिकतम-आयु = 31536000 यदि आप क्लाइंट पर असीमित कैशिंग सक्षम करना चाहते हैं , आप एक लंबी अधिकतम-बाड़ी का उपयोग कर सकते हैं: कैश-नियंत्रण: अधिकतम-बासी = 31536000

c# - passing input text from view to contoller with FacebookContext using Facebook app -

I'm trying to pass an input text from the viewer to the controller in the Facebook Birthday app: Link to app: In the Home Controller [FacebookAuthorize ("email", "user_photos")] Public async Tasks & lt; ActionResult & gt; Index (FacebookContext reference) {if (ModelState.IsValid) {var user = waiting for reference. Client.Gate CurrentUserAsync & lt; MyAppUser & gt; (); View return (user); } See Return ("Error"); } [Http post] [facebook authorized ("email", "user_photo")) public async task & lieutenant; Actionsclass & gt; Index (string textile, facebookcontonte context) {if (ModelState.IsValid) {var user = wait context.Client.GetCurrentUserAsync & lt; MyAppUser & gt; (); // See my code, see the use of txt here (user); } See Return ("Error"); } View: @using facebookpostc.models @ Microsoft.AspNet.Mvc.Facebook.models using @ Microsoft.AspNet.Mvc. Facebook @model MyAppUser @ {ViewB...

node.js - Mongo - Update the database while creating a new entry if necessary -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब सबसे अच्छा तरीका क्या है नोडजेएस (आमतौर पर मोंगोज के साथ) से मोंगो डीबी में एक पंक्ति को अद्यतन करना, जबकि पंक्ति पहले से ही मौजूद नहीं है, इसे बनाने के लिए। मैंने कई फ़ंक्शन की कोशिश की है, सहेजें findOneAndUpdate अपडेट । वे सभी एक-दूसरे पर निर्भर हैं, उदाहरण के लिए, पंक्ति को अपडेट करने में सक्षम होना है। हम इन सुविधाओं को किसी फ़ंक्शन में कैसे जोड़ सकते हैं: यदि प्रविष्टि 'नाम' से मौजूद नहीं है, तो इसे बनाएं, और फिर ... अगर प्रवेश होता है एक डेटा संग्रह के साथ 'पासवर्ड' अपडेट करें एक मोंगो संग्रह को मानते हुए ऐसा लग सकता है: {"_id": ObjectId ("5357c8e0b12b6c375bb0217b" ), "नाम": "किम्बर्ली", "पासवर्ड": "डेटा"} मेरे वर्तमान कोड में बहुत कुछ है अगर बयान और पर निर्भर डेटाबेस कार्य कॉल करने के लिए प्रतिक्रियाएं (उदाहरण के लिए, यदि उपयोगकर्ता को जोड़ने से पहले मौजूद मौजूद है, तो जांच करें) क्या कोई सुनिश्चित करने का कोई बेहतर तरीका है क...

php - Why the fields from the form do not get printed? -

When the data from the following form is submitted to action.php , then this second variables Prints the form's date but returns an error for the first and third fields, why is it so? HTML: & lt; form method = "post" action = ". / Action.php" & gt; & Lt; Span id = "type_tweet" & gt; Write your tweet & lt; / Span & gt; & Lt; Period & gt; & Lt; textarea rows = "4" cols = "80" id = "tweet_entered" & gt; & Lt; / Text field & gt; & Lt; / Span & gt; & Lt; Hour / & gt; & Lt; Span & gt; When to Tweet & lt; / Span & gt; & Lt; Span id = "date" & gt; & Lt ;! - Date - & gt; & Lt; Input type = "text" name = "selected date" id = "selected date" just click to read = "GetDate (this);" & Gt; & Lt; / Span & gt; & Lt; Span id = "at" & gt; @ & Lt; ...

Saving progress in vb.net -

New to vb.net, so be easy for me How can I save progress in vb.net? To reduce it, I give an example. I have 100 checkboxes, 100 text boxes, with a save button and submit button. WHEN DO I use to use the saved button? When I clicked while saving the button, all the checkboxes were checked and all the values ​​in the text box can be saved in progress, when it logs in again, then it can continue. One of my friends said, save it in SQL. But is it too much if im ganna use sql any advice on which im ganna is used? Actually, your friend is right, the best solution will probably save data recorded in a database . This is not too much work, as you can use techniques like databanking so that you can simplify the database connection.

how to show multiple line notification in android? -

After I am making a notification with several lines, such as code: private zeros sendNotification (String Msg) {mNotificationManager = (Notification Manager) this.getSystemService (Reference.NETIFICATION_SERVICE); Pending Content ContentIntent = PendingEntactivity.activity (this, 0, new intent (this, home class), 0); MBuilder = New NotificationCompat.Builder (this) .setSmallIcon (R.drawable.ic_launcher) .setContentTitle ("") NotificationCompat.Builder; // // Notice the Big View Styling to see the full contents of the message. BigTextStyle InboxStyle = New Notification BigTextStyle (); InboxStyle.setBuilder (mBuilder); inboxStyle.bigText (MSG); InboxStyle.setBigContentTitle (""); inboxStyle.setSummaryText (""); // Transfers the big visual style object in Notification Object mBuilder.setStyle (inboxStyle); MBuilder.setContentText (MSG); MBuilder.setDefaults (Notification.DEFAULT_ALL); MBuilder.setContentIntent (contentIntent); MNotificationManager.not...

html - How to set border-radius just using border property -

Is setting this to an border-radius using only the range Is possible property? I want the same result given below: #myelement {limit: 1px solid # 535353; Range radius: 5px 5px 5px 5px; } I want the following code (but the code below does not work): #myelement {limit: 1px solid # 535353 5px 5px 5px 5px; } And if you know the answer, will you answer that how will you get the answer? I could not find it in Google: ( In short, it is not possible. Formal syntax: You Limit for property

How to get S&P 500 current price by using Yahoo API -

Is there a way to get the current price of S & P 500 using the Yahoo API? I read through this page, but I do not know how to do this. I also tried to use YQL to get the data, but it seems YQL does not currently provide the finance API. I use their CSV interface. The symbol is ^ Using GSPC WGT A Demos: wget -O - 'http: /download.finance.yahoo.com/d/quotes.csv? S = ^ gspc & amp; f = sl1p2 ''

java - Connecting pc to android phone using bluetooth -

I want to set up a Bluetooth connection between my PC and Android phone and want to send the string to Android phone from my PC. I'm using Bluecove 2.1.0 I'm able to find nearby Bluetooth devices. Now I want to add the devices and send the string to the Android phone from the PC Thanks, in advance, this is the device that I am looking for device import java.io .OutputStream; Import java.util.ArrayList; Import javax.bluetooth.DataElement; Import javax.bluetooth.DeviceClass; Import javax.bluetooth.DiscoveryAgent; Import javax.bluetooth.DiscoveryListener; Import javax.bluetooth.LocalDevice; Import javax.bluetooth.RemoteDevice; Import javax.bluetooth.ServiceRecord; Import javax.bluetooth.UUID; Import javax.microedition.io.Connector; Import javax.obex.ClientSession; Import javax.obex.HeaderSet; Import javax.obex.Operation; Import javax.obex.ResponseCodes; Public class MyDiscoveryListener DiscoveryListener applied {Private station object lock = new object (); Public Arrestist ...

java - MyEclipse Enterprise Workbench 10 is really very very slow -

I am using MyEclipse Enterprise Workbench 10 and is paying this version. It has been very slow since I started using it. I do not know what to do to increase the speed. This is my myeclipse.ini # utf8 (do not delete) # utf8 (do not remove) -start start ../Common/ plugins / org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library ../commons/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700 -install C: / Myclipus / Myclippus 10-VM C: / MyClipse / Common / Binary / Com. sun.java.jdk .win32.x86_64_1.6.0.013 / bin / javaw.exe -vmargs -Xmx768m -XX: MaxPricesies = 384M -XX : Reserved codecasceptors = 64m - users.nl.Worning = ignore Please system information RAM: 8GB o Q: Windows 7 64 bit JDK: 7 Look for some tips, however, new The release has also improved. Try to install the latest release (currently 2014) for better support, if you have an existing license, then it applies to all releases of MyEclipse.

add apostrophes with regular expression in perl -

I'm searching the directory with command ls -ld /path1/*.ext1 / path2 / *. Ext2 , e.t.c. Sometimes, files have special characters in the name: ) , ( , etc.). For this reason, I want to add aproprows in every search directory. For example: $ filter = "ls -ld / Path1 / * ext1 / path2 / * ext2 "; (1) $ filter = ~ ...; (2) After the regular expression is applied, the result should be: ls -ld '/ path1 / * ext1' '/ path2 / * ext2' (with apostrophes) What is a regular expression (2) $ Filter = ~ s! (\ S +)! '$ 1'! G; Better way to do this: while (globe ("/ path1 / * ext1 / path2 / * ext2") {process_file ($ _);} Regards,

bucket - If Couchbase key size is greater than RAM quota, how can i move some keys from RAM to disk -

For example; I have a huge data to save in a bucket, the size of all keys is 4g, and the bucket's RAM quota is 3G, now I can save huge data in bucket, there is no way in which some keys are in RAM It will not be fit, and how can I do this? This is not possible (Couchbase 2.5.1). Currently, the metadata in RAM (including the key) is , to quickly determine client requests to determine if a key exists or not so your example You will not be able to store more than 3 GB key (bucket quota). Note Even you do not have any RAM left for actual document values, because they always have to be read from disk.

Calling a C++ function from C# by passing a string with variable size to it -

I am calling a string with a C + code and calling from the C # code. The C ++ function is responsible for filling the string material. The following code is: C #party: var abc = new string builder (4096); // will have to change this var result = Basic methods. SignCrcFile (ABC); C ++: bool __cdecl SignCrcFile (char * abc) {... char * tempStr = "hello all"; // for example // copy it to ABC string strcpy (ABC, tempStr); Back true; } The problem is that tempStr's size in the C ++ function is dynamic (the above assignment for TempStr is only an example). In such a case, it is not a hard code that the size of ABC string is in the size of 4096 bytes on the C #. The first solution can be a solution to create 2 functions on the C ++ side to get the size of the string. Then allocate that size using StringBuilder in the C # side then use the next function to bring the entire string from C ++ to the C #. But no suggestion this may not be the most optimal way? ...

php - Open a new page with posted variable when the user select the dropdown -

I have a dropdown puller from the database. When the user selects any of the dropdowns, then he should open a new page with a post variable pulled from the dropdown value. So far, let me do this echo ' ';; Option '& lt; OPTION VALUE = "- 1" selected & gt; '. 'Choose project.' & Lt; / OPTION & gt; '; While ($ row = oci_fetch_array ($ compCuttingResult, OCI_ASSOC)) {$ projectName = $ line ['PROJECT_NAME']; Echo "& lt; OPTION name = 'value selected' VALUE = '$ projectName' class = 'icon-facebook' & gt; $ projectName & lt; / OPTION & gt;"; } Echo '& lt; / SELECT & gt; & Lt; / Label & gt; & Lt; Br / & gt; '; echo & lt; Label & gt; & Lt; SELECT name = "cd-dropdown" id = "cd-dropdown" onchange = "myfunction ()" class = "cd-select" & gt; '.' & Lt; Br> '; Option ...

php - Redirect not working. $.ajax + Cakephp -

Good day. I have a question that I could not solve it, I am using the cpp and $ AJAX . Data can be passed in my database from $ .jax but the problem is that if I succeed I can not redirect to any other page. I tried the if (save $$) {some echo} and is working, only $ this-> Redirects part. As a cakefip code: public function testadd () {$ this- & gt; Layout = zero; $ Name = $ _GET ['name']; $ Email = $ _GET ['email']; $ Phone = $ _GET ['phone']; $ This- & gt; Newlead- & gt; Create (); $ This- & gt; Newlead- & gt; Set ("name", $ name); $ This- & gt; Newlead- & gt; Set ("email", $ email); $ This- & gt; Newlead- & gt; Set ("phone", $ phone); Save $ = $ this- & gt; NewLade-> save (); If (Save $ $) {$ this- & gt; Redirect ('/ NewLead / Homesu'); }} Ajax code below: $ ("# btn-submit"). Click (function () {var obj = new object (); Obj.n = $ ("# ...

pattern matching - Finding two strings in a file within n lines of each other -

How do I want to find two strings in a text file within each other of the lines, for example, the file was given : ABC DF - ssssss ssssss ssssss ssssss ssssss pqr xyz I "myscript abc pqr 5" Do not want to return "myscript abc pqr 7 (or more)" to return the file name that was found and return (bonus) mailing lines and intermediate people. It should work with any string . Just to make it interesting, I am working on Solaris 10 and I do not have access to any gnu commands or extensions. This is like swimming. TIA Nigel. This script gets you in almost any way: / P> #! / Bin / bash if [[$ (pcregrep -M "$ 1. * (\ n ..) * $ 2" test .txt | wc -l] == $ 3 ]] Then you can resonate "echo" and resonate "not found" file Instead of printing, you can modify the file name to find "found". This script was inspired by.

jquery - HTML5 input type Colour , how to change its value using javascript -

Image
छवि में आप पेंसिल और इरेज़र बटन देख सकते हैं, मुझे क्या चाहिए, जब पेंसिल पर क्लिक किया जाता है तो इनपुट का मूल्य काला हो जाता है, और जब इसका इरेज़र होना चाहिए मैंने कोशिश की है & lt; बटन onclick = "$ ('# color-select')। val (0,0,0); $ ('# stroke-select') .val (3); "& gt; पेंसिल & lt; / button & gt; बटन onclick =" $ ('# color-select')। Val ('255,255,255') ; $ ('# स्ट्रोक-चयन')। वैल (30); "& gt; इरेज़र & lt; / button & gt; लेकिन इसका काम नहीं करना, इसकी ब्रश आकार का मान बदलना, लेकिन रंग दोनों मामलों में काले रंग बदल रहा है ... मदद की ज़रूरत है। आपको 6 अक्षरों का हेक्स मान का उपयोग करना चाहिए रंग। इसकी आवश्यकता है Ie: & lt; बटन onclick = "$ ('# color-select')। Val ('# ffffff'); $ ('# स्ट्रोक-चयन ') .val (30), "& gt; इरेज़र & lt; / बटन & gt; Val (3); "& gt; पेंसिल और लेफ्टिनेंट; / बटन & gt;

distributed - Datomic query performance on multiple inputs as fast as on a single input? -

Datomic allows us to have multiple database servers in the same query. In the form of queries, it seems that it may be almost likely to run queries that add data to many of the dynamic servers, if not the same on a single databank server, it is not fast to join. Is this the case or how is it a qualitative difference that the query engine works when using multiple sources? (If there is no one, then we can get around the fact that a data server is all written in, one is known through a transactor, Edit: It has been detected, even inside a single data server,: Community-related data in your sample data Like institutions - often the units you can ask - To increase query performance, there should be a uniform partition A . Then repeat to me: DATOMI queries almost intensively in servers and efficient (memory, CPU usage, network) A single datamic server? The data engine of the datacom does not care that underlying index segments Where do they come from, so a query...

c# - ToUpper method for a string of words in a foreach loop not working -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब मेरे पास एक स्ट्रिंग सरणी है नाम, और मैं चाहता हूं कि सभी नाम सभी टोपी में हों। यह मेरा सरल कोड है, लेकिन यह नामों में कुछ नहीं करता। foreach (नामों में स्ट्रिंग x) {x.ToUpper (); कंसोल.प्रकाश रेखा ("{0}", x); } आप स्ट्रिंग में वापस असाइन नहीं कर रहे हैं (जो भी आवश्यक नहीं है) ऐसा करें - foreach (नामों में स्ट्रिंग x) {Console.WriteLine ("{0}", x.ToUpper ()); } से स्ट्रिंग्स अपरिवर्तनीय हैं - ऑब्जेक्ट बनने के बाद स्ट्रिंग ऑब्जेक्ट की सामग्री को बदला नहीं जा सकता, यद्यपि वाक्यविन्यास यह रूप में प्रकट करता है अगर आप ऐसा कर सकते हैं उदाहरण के लिए, जब आप यह कोड लिखते हैं, तो कंपाइलर वास्तव में वर्णों के नए अनुक्रम को पकड़ने के लिए एक नया स्ट्रिंग ऑब्जेक्ट बनाता है, और यह नया ऑब्जेक्ट बी को सौंपा गया है। स्ट्रिंग "एच" तब कचरा संग्रह के लिए योग्य है।

routing - In RIP the data part why we are limiting to to 512 bytes -

The data size allowed in the RIP packet is limited to 512 bytes, including RIP path and MD5 authentication . We can use up to 1460 bytes of Ethernet for why we are limited to 512 bytes. IPv4 assures only 576 bytes of MTU. This includes headers like IP and UDP. Additional headers can be added by PPPoE, MPLS, IPsec, or other protocols. 512 is just a round binary number which leaves some room for this type of header.

How to rescue the Linux system from erroneous insmod in rc.local in Fedora Core? -

I have placed a faulty kernel object in rc.local. Due to this faulty kernel object, the system crashes on bootup. Now, my purpose is to remove that defective from rc.user. However, I can not use rc.user because my system crashes on bootup. How can I fix this problem? If you are getting a GRUB screen, then you can change the runlevel 1 and file Are there. On the GRUB screen, press after selecting the Fedora kernel with which you want to boot. Go to one place after the space in that row and press b to open it in single user mode You can edit any file in this mode.

android - Why is this a bad MYSQL query in PHP? -

Is this a bad mysql query that I used in php? $ tablenamep = $ _POST ["tablenamep"]; $ Res = mysqli_query ($ con, "SELECT * FROM $$ tablenamep` where number = 9"); So when I try to get the result using: while ($ row = mysqli_fetch_assoc ($ res)) There is a SQL injection error: mysqli_fetch_assoc () parameter 1 is expected to be mysqli_result, given the boolean I have many questions about this error and The answer is read, but my question is that is a boolean returning query when I added a value for the $ tablenamep variable. I added the value to the variable from my Android app using this code: nameValuePairs.add (New BasicNameValuePair ("tablenamep", msg)); The code is working and there is no error, but when I try to get results of php, my Android app is crashing. How can I solve this! (Note: Nothing wrong in my Android app, I have checked it completely) Why is this a bad query? What can I do for the query to not return the bul...

performance - How get average CPU usage in Android? -

I want to get the average CPU usage per 100ms or 500ms. I have tried using top and dumpsys cpuinfo , but none of them tells me the average usage or timestamp. So how do I get the average usage? I have seen that there is some CPU usage information in / proc / stat , can I calculate the average CPU usage by using / proc / stat Am I This has already been answered on SO: private Float read use (try {try {RandomAccessFile reader = new RandomAccessFile ("/ proc / stat", "r"); String load = reader Readline (); String [] tox = load. Split (""); Long idle1 = long.parsling (tox [5]); Long CPU 1 = Long. Parslong (Toux [2]) + Long. Pars Long (Tox [3]) + Long.Perselong (Tox [4]) + Long.Parceleong (Tox [6]) + Long.Presse Long (Token [7]) + Long.paras long (tox [8]); Try {Thread.sleep (360); } Hold (exception e) {} reader.sec (0); Load = reader.readLine (); reader.close (); Tox = load. Split (""); Long idle2 = long.parsling (tox [5]); Long CP...

osx - Mac keyboard enter is now return -

Either way my iMac keyboard is acting strangely. Now press FN + Enter to enter me properly. And the entrance now comes back. How can I turn it off? I have searched without any luck. You can change keyboard mapping, system preferences - & gt; Must say mapping the keyboard and somewhere. Enter and Backspace Change Peace

css - Add Content To Dialog Box DOJO -

Writing an app for opensocial raises the following problem: I'm creating a dialogue box (CSS Tundra) myDialog = new dijit.Dialog ({title: "My Dialogue", Content: "Test Content", Style: "width: 300px"}); How can I change the "overflow" and / or "height" of properties, in the form of this object, contained in myDialog "dijitDialogPaneContent" ? Thanks subin There are several ways you can use, depending on how But there should be a solution normally. Apply to all dialogs If you want to apply the same style to all the dialogues, you can "expand" a subject, for example, in general You use a Tundra theme like this: & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Link rel = "stylesheet" href = "location / to / tundra.css" /> & Lt; / Head & gt; & Lt; Body class = "tundra" & gt; & Lt ;! - Your conte...

ruby - How do I give one method invoked in a block the ability to see variables set in the context of the calling function? -

I have a module that defines a method, log , which results in a The prefix will add a different method, : : Module M DF log (and block) str = "log in:" block.call say end def ( Value) + value and end I want to be able to use M inside a class block, such as : Expand square C extension M (say "one" "two"} End and get: # = & gt; "Login: one" # = & gt; "log in: two" Essentially, I should be able to reach values ​​in the log in logs which only call logging Consequently, I like to avoid example variables, global variables, et. What is the correct way to turn it off? One way to do this is: - Module M def log (and R block) str = "log:" block.call (str) say enddef (str, value) extends str + value end end class c {{s | | Say, "one", "two"} end

database - Couchdb document deletion and performance -

DELETE HTTP अनुरोध का उपयोग करते हुए हटाए गए Couchdb दस्तावेज़, दस्तावेज़ को वास्तव में नहीं हटाते हैं, इसके बजाय दस्तावेज़ अभी भी "हटाए गए" :सच। यह दस्तावेज़ को अपडेट करता है, ताकि देखे जाने वाले इंडेक्स को अपडेट किया जाना चाहिए (जो मुझे लगता है कि महंगा है)। तो मेरा सवाल यह है कि यदि अंतरिक्ष कोई चिंता नहीं है, तो कोई निष्पादन लाभ है जो दस्तावेज़ों को हटाकर प्राप्त किया जा सकता है मैं नीचे एक समय पहले टेस्ट किया यह कुछ बहुत बड़े दस्तावेज़ों के साथ एक डेटाबेस में है मैंने डेटाबेस को दोहराया और डिजाइन दस्तावेज़ में एक दृश्य को फिर से चलाया। इस दस्तावेज के प्रत्येक दृश्य में प्रति दस्तावेज सौ सौ है, कुल मिलाकर डेटाबेस पर लगभग 10 मिलियन उत्सर्जन होते हैं। सूचकांक फ़ाइल को खरोंच से उत्पन्न करने के लिए लगभग 3 घंटे लग गए। मैंने एक डिज़ाइन दस्तावेज़ में एक दृश्य चलाया जो केवल doc._id फ़ील्ड का उपयोग करता है, और केवल प्रति दस्तावेज़ उत्सर्जित करता है यह लगभग 3 मिनट लग गया। मैंने तब सभी दस्तावेजों को हटा दिया और दो बार से कम समय में दो बार पूरा किया, दोनों विचार फिर से...

lambda - Iterate an Enumeration in Java 8 -

Is it possible to iterate enumeration by using long expression? What would be the lengthy representation of the following code snippet: computation & lt; Network Interface & gt; Net = NetworkInterface.getNetworkInterfaces (); While (NetsHouseAirAllements ()) {Network Interface Network Interface = NetsxAllement (); } I did not find any stream within it. (This reflects one of the answer options only because it was accepted by the OP It did not mean that it is the best one. I read the other answers and depending on the situation in which you are in. There is no other repetition of simplicity - which is in my solution) You can copy the elements of your calculations with ArrayList with Collections.list and its Prahlad use it Collection. List (your encryption). ForEach (yourAction);

css3 - CSS bottom Border Issue -

I think the box shadow is visible with the border or on my site. If needed, I will post CSS for those areas whose limitations are applicable, but it may be easy to link to your site only: Please see below Tr & gt; & Lt; Td colspan = "6" class = "c_foot" & gt; & Lt; / Td> & Lt; / TR & gt; and below the padding: add 10px from the table (css.css line number: 31) like the table {clear: both; Width: 100%; Padding-down: 10px; }

c++ - Integer not incrementing correctly -

OK, I am currently trying to implement an MIPS program counter, in which I stored a hex value Includes where the program is on (program counter). But the point is that the following codes will not go before one digit because this increase is 0,4,8,0 etc., where repeats 0 should be equal to 10. This source works if str_pc is basically set to 00000010 but otherwise it will not. #include & lt; Iostream & gt; # Include & lt; iomanip & gt; # Include & lt; Sstream & gt; #include & lt; String & gt; #include & lt; Map & gt; using namespace std; String str_pc = "00000008"; Int main () {int temp_pc; Stringstream ss; SS & lt; & Lt; Hex & lt; & Lt; Str_pc; SS & gt; & Gt; DCD & gt; Temp_pc; Cout & lt; & Lt; "Temp_PC:" & lt; & Lt; temp_pc & lt; & Lt; Endl; temp_pc = temp_pc + 4; Ostringstream SS1; SS1 & lt; & Lt; Hex & lt; & Lt; Temp_pc; String x (ss1.str ()); Str_...

linux - Where to get Yum-Folders? -

Image
I hope this is not off-topic, but I have to get these folders: etc / yum and etc. / yum.repos.d From CentOS6 Can anyone make me out of here? Edit: @ ilent2: I'm sorry, I did not tell myself right, I mean, I had a RHEL6 system I have installed yum but want a yum configuration from CentOS6. Is there a way where I can download these files and folders ?? I have never used RHEL, but from what I think, CentOS packages / Provides complete replacement of binaries, just install CentOS treasury on your RHEL system and install CentOS and RHEL packages, as I think, causes confrontation and possibly a useless system (unless you both have a repo Do not install binary only, you want to be correct A disabled by default Sensô repo and enable only then when you want to install a special package). He said, this link might be useful, the author wants to get you such a thing: In the first comment of the above link, can be useful.

for loop - How to concatenate the string value to the integer value in Jquery? -

How to add integer values ​​with string in jquery I am using Google Maps and working with map markers I am for (var x = 0; x & lt; addresses.length; x ++) {infowindow1.open (map, x); } How can I add variables 'x' with infowindow to infowindow1, infowindow2 and so on any signal? Maybe this way: for (var x = 0 ; x & lt; addresses.length; X ++) {window ["Infondo" + x]. Open (map, x); } This only works when infowindow + Any number is in a global area.

xslt - Using XSL transformation for XML to CSV conversion -

I am working on XML using CSV Transformation and method. However my .xsl file can not produce expected .csv results How can I move forward? How do I change my .xsl file? Here's my .xml file : & lt; RAVVALUUGS & gt; & Lt; RowValue & gt; & Lt; VALUE & gt; XYZ & lt; / Pricing & gt; & Lt; / RowValue & gt; & Lt; RowValue & gt; & Lt; VALUE & gt; Xyz1 & lt; / Pricing & gt; & Lt; / RowValue & gt; & Lt; RowValue & gt; & Lt; VALUE & gt; Xyz2 & lt; / Pricing & gt; & Lt; / RowValue & gt; & Lt; RowValue & gt; & Lt; VALUE & gt; Xyz3 & lt; / Pricing & gt; & Lt; / RowValue & gt; & Lt; RowValue & gt; & Lt; VALUE & gt; Xyz4 & lt; / Pricing & gt; & Lt; / RowValue & gt; & Lt; / RowOfValues ​​& gt; & Lt; RowOfValues ​​& gt; & Lt; RowValue & gt; & Lt; VALUE & gt; ABC & lt; / Pricing & gt...

php - Symfony2 - Show bad credentials error -

I am writing a custom author in Symfony2. Everything works by now, but when I enter the wrong password, an internal server error is displayed: "LDAP authentication failed". Now, this is the message that I want to display, but I would like to display it above my entry form and not throw internal server error. In my audience, I have the following: Try {$ authToken = $ this-> authentication manager-> Authenticate ($ token); $ This- & gt; SecurityContext- & gt; setToken ($ authToken); Return; } Hold (authentication exception $ fail) {throw new badcredentialsException ($ fail-> getMessage (), 0); } Anyone can tell me what should I do to send a message to the user, rather than throwing an internal server error? Thank you in advance. You can manually add an error to your login form. For example: $ form-> Receive ('username') - & gt; Junk error (new form error ($ message));

javascript - Show/hide a by link -

When I click on a link, I want to show an element that has all the link questions and answers to each question in all Both questions and answers are taken from the database so I have to identify them. The problem is that when I work on the link, it does not work and nothing happens this code is: & Lt ;? Php $ req = 'select * from plot queue, curse c where q.id_quest ='. $ Data ['id_q']. ' And q.id_curs = c.id_cursus'; $ Result = mysql_query ($ req) or die ('erroor sql! & Lt; br & gt;' $ sql2. '& Lt; br & gt;' mysql_error ()); $ Currentid = $ data ['id_q']; $ Test = 'test'; . $ Currentrep = $ currentid $ test; Echo '& lt; An id = '. $ Currentid 'Href = "javascript: toggle (,' $ currentrep .. '' $ currentid .. ');" & Gt; & Lt; P & gt; & Lt; H8 & gt; Question: & lt; / B & gt; '. $ Data ['int_question']. ' & Lt; / H...

html5 - JQuery - loadedmetadata listener within for loop -

I am trying to create a loop in jQuery to get the duration of different audio tracks taken from an array. It appears that an event within the loop overrides another statement to add the listener, due to the looping indefinitely and crashing the browser. Here is the code: var TrackSources = new array (); Track source [0] = "music / haken.mp3"; Track source [1] = "music / drive home.mp3"; Track source [2] = "music / luminol.mp3"; Var audio playlist = document.createElement ("audio"); Audio playlist. Preload = "metadata"; Function getDurations () {var max = trackSources.length; (Var i = 0; i & lt; max;) {audioPlaylist.src = track source [i]; Audio playlist.Advent Listener ('LoadedMedataData', function () {trackdusion = audio playlistdruck; warning (trackedjan); i ++;}, false); }} Is there any way to do this work? Thanks! You can try: Note one side: You've mentioned jQuery but your question code is pla...

javascript - Resolve data for common controller angularjs -

Just wanted to know if there is no way to handle data for an administrator, which is not kept by any route (Normal BaseController for all actions) App.controller ('BaseCtrl', function ($ http, service) {$ scope.data = null; Service.getData (function ) {$ Scope.data = data;});}); Am I service. Gedetta (); App.controller ('BasCtrl', function ($ http, baseData) {$ Scope.data = BaseData;}); Base.resolve = {Besadata: function (service) {return service .getData (); }} Please help if possible. PS: I want to prepare data from the service before loading BaseCtrl and inject it into it. "post-text" itemprop = "text"> If your baskuton is full with your homepage then you have to fetch the data before loading the base code and into the window.BaseData, other intelligent Whatever the controller there is loaded the load data before there. If basectrol is the first page, then you can implement it through an instant-applied function in diffe...

websphere portal - Unable to get instance of RenderingContext -

I am facing a problem in introducing rendering references in portal themes of WPS8. The following are the code snippets I used to use: Rendering Contact RC = (Rendering Concert) request.getAttribute (Workspace .imirINNTTEXEKE); Rc.getPath (); When I am using the code snippet above, I am rendering the reference null . I have to get the current WCM path from the browser URL but I'm getting null Please help me in this regard. Use the steps below to create the rendering context Repository = WCM_API.getRepository (); Workspace workspace = repository. Get Workspace (user, pass); ), "","connect"); In addition, a render material should be set as shown below, only the render path will be displayed: renderingContext.setRenderedContent (siteArea); System.out.println ("Gatepath:" + Rendering Contains. Gate Path (True));

How do I include the currency conversion block in Paypal Express Checkout -

Image
I've attached a screenshot of an example PayPal Express checkout payment page that includes some currency conversion information (with blue arrows Given). I am trying to replicate the implementation of the PayPal Express checkout on my own app. Whether to show the information or whether the parameters or settings are used to set? It is not clear in the documentation. Note: I am using classic API Only paypal adaptive payment is not in express checkout. If you really want to use PayPal currency conversion, you can still use this API. But, in addition to this you need to send "APP-ID" in your request. The sandbox is continuous for the APP-ID that is APP-80W284485P519543T . For Live, you need to create an API from apps.paypal.com to get an app from APP ID and then to send the request.

node.js - Can I serve both PHP and Node apps from the same server but with different internet domains? -

I have a Dabian server with the same IP address, which I use for all my personal projects For example Code> www.myblog.org:80 To wordpress / index.php my_app.com:80 should give the node instance localhost: at 3000 Is it possible in some way? Stop using Apache , if this is what it takes You can serve on many domains using a reverse proxy server such as nginx. Look at this question here: But the basic idea is that a server actually listens on port 80, and this is the correct app server on your machine's internal (local host: 8000) service (PHP, node, etc.). It is not technically very difficult, but a new piece of software like NGNX can be a little challenging, of course, definitely!

java.io.FileNotFoundException: content://com.android.contacts/contacts/24093/photo for old photos only -

I am receiving my contact image urets from my phone's contact list. However, when I convert the image to a bitmap I get an error: java.io.FileNotFoundException: content: //com.android.contacts/contacts/ 24093 / photo There is something with the old pictures on my device, as if I take a new photo, it is shown okay. Therefore, old photographs are probably too big or not good, but exception means java.io.FileNotFoundException How do I issue an access rights to it Can i do last bitmap bitmap; Try {bitmap = MediaStore.Images.Media.getBitmap (ab.getContentResolver (), tryUri); ab.runOnUiThread (New Runnabel () {@Override public void run ()} / / Ensure that the tag is still set at the beginning of this function if (toSet.getTag () == urlStr) {toSet.setImageBitmap (bitmap) );}}}); } Hold (FileNotFoundException e) {string A = "1"; } Hold (IOException e) {string A = "1"; } Hold (exception e) {string A = "1"; } Two possibilities: 1) Yuri, who...

JMeter JMS Point To Point Queue Testing - "No reply message received" -

I have a Jmeter Point Point to Point Point in which I am sending an XML document which is on the queue which goes to Mangodebi. And gives the XML document back When I run a trial in JMTR, I can see through the Redhat logs that the request has gone to Mongo and returned correctly. However, testing within Jmator fails and I get a message: "No reply message was received" If I ' only request ' from 'Communication-style '. I've read forums to change the jmeter.properties file to enable JMSSampler.useSecurity.properties = false . It is not working. Any thoughts on this will be highly appreciated, thanks, fixed I removed the property for the Q field named JNDI, along with ' queue.Response '. It seemed to do the trick

sql - SELECT count(*) then output empty or not empty with yes or no -

Find out if the location of the sales department is in cities similar to that of the TRANSPORT department "(assuming the empty result means yes and No non-fair result is the meaning) This table was found in my database. // DEPTLOC DAME CITY ---------- ------ Sales London Transport London Transport Boston Science Boston Definitely how to write queries but at least I try SELECT COUNT (*) DEPTLO How to write after AND operator in SKL in order to get something out of the output (DNAME = 'SALES' and DNAME = 'TRANSPORT') and C WHERE // Display Yes. (& Lt; --- London, sales and transport in the same city) You can use SELECT Decode (Count (*), 0, 'No', 'Yes') from your remaining question} DECODE compares each search value with one. If the expr is equal to one search, then the Oracle database gives the same result. If no mail is found, then Oracle default comes back. If the default is omitted, then the oracle is empty. ...

filtering - Kendo Grid: Clearing filter without calling server side read of data -

I have a condo grid with server side paging. On the same page, I also have a clear button, which Grid data should be cleaned and replaced with blank lines. Is it possible to clarify the filter of that grid, without reading the server side? Currently when I do this, $ ("# grid"). Data ("candrog") Datasource.sfilter ({}) , this server will call the side function and will load the data. Can someone point me in the right direction? Thank you. Regardless of the server, despite the filing set by default, it seems that filter () automatically Read the call transportation once every time However, you can try it: dataSource._filter = null; This will read the transport without canceling any filters applied to this data source. But , you have to be cautious of this approach because it is not "official" configuration by the telefilm. _filter is internal, so to speak. You can do this by logging the request event by the console and you can see t...

sql - Unable to delete a row from a table due to a dependency/reference in another table -

I have a stored procedure that removes a record from a table, where one of the columns matches the specified value : Alternate Processes [DBO] [Spadel Branch] @Detafield Remove from branch (50) as Brankonamam = @Detafield ed Unfortunately I get the following error: DELETE statement is contradictory with the reference reference "fk_BranchIdDept" conflict in the database "MproWorkSpace", the table "dbo.Department", column 'branch ID'. Can anyone explain why I see this error? The reference to the Delei statement is contradictory with reference barrier "fk_BranchIdDept". The record you are trying to remove is referred to in other tables; With the removal of the branch recorder, other tables will become orphans, and will give any such reference which is no longer present. There are two approaches to this: Delete all records in previously referenced tables

android - how to pass 2 dimensional array to broadcast reciver class -

I'm new to Android and my main activity class is facing a problem to keep in mind that with the intention of class Is passing, which enforces the broadcast receiver and intends to include a 2-dimensional array // Here curDts is my 2-dimensional array bundle b = new bundle (); B Pedestrians ("dates", crores); Intent = new intent (this, alarm receiver class); Intent.putExtras (b); Receiver on Public Zero (Reference ARB0, Intent AR1) {Bundle B = arg1.getExtras (); //Log.v("hahahha" ,"curDts "); String [] [] my_date = (string [] []) b.getSerializable ("Date"); Log.v ("date", my_date + "-"); } My_date looks null here Please help me .. this way. But I never compile it and run it. bundle b = new bundle (); Intent = new intent (this, alarm receiver class); Intent.putExtra ("lane", curDts.length); For (int i = 0; i & lt; curDts.length; i ++) {intent.putExtra ("items" + i, curDts [i]);...

android - Pass data between Activitys before start the new activity -

I am trying to pass any data in some other activity, but when I click on a button the data pass But do not start new activity and when I have data from the past, launch the new activity and see all of my content that I have passed earlier. This process is similar to shopping cart, add products and then see the list of another activity cart. I am trying with SharePrerences, but I pass only one data. The last shared context mSettings = this.getSharedPreferences (PREFS_NAME, 0); SharedPreferences.Editor Editor = mSettings.edit (); Editor.putString (NOMBRE_TAG, TVNotes.Get Text). ToString ()); Editor.putString (PRECIO_TAG, pantalla.getText () + ""); editor.commit (); With putExtra I do not think it works, because I do not know how much data I will pass intent = intention (new intention) , Name orbit); Intent.putextra ("some", "value"); StartActivity; String data = getIntent (). GetExtras () GetString ("Something"); And I do not kn...

php - How to use namespaces in non space classes? -

Is there a way to use namespace classes in non-namespace classes? Example: // Note, class A and B. have no namespace ... extension of class A B {public functions () {$ obj = new My \ Namespace \ SomeObject (); Return $ obj; }} Thank you. Just use the operator: or you can use a fully qualified name, eg: $ obj = new \ My \ Namespace \ SomeObject () ; Pay attention to the major backslash. Contained namespace, because in fact there is no non-nomenclature): No requires a leading backslash. Using namespace is a syntax error because it does not matter in a reserved word (case is PHP because class, method and function Many keywords with names are case-insensitive). Using do is a syntax error, as it is also a reserved word ( do / while control Structure).