Posts

javascript - How to change format between currency and percent in Google Charts? -

Image
I created a chart in the Google Charts. I have a category filter, where I have filters in different years and so on I can do it, and I also have a filter which I can choose which data to compare, but for my question now: How can I make a selected filter that chooses between currency and percentage? As you can see, I have a column filter (selection) at the top, I need "Format filter" which changes vAxis from percentage and currency. Example of work Here is my code: google.setOnLoad callback (draws) Chart); Function drawChart () {var data = google.visualization.arrayToDataTable ([['Date', 'A', 'B', 'C', 'D', 'E'], ['2012 Population', 100, 126] , '' 2012 '', 152, 254, 242, 168, 136], '' 2012 '', 300, 232, 234, 195, 343], ['April 2012', 450, 242, 325, 121, 126], ['Major 2012', 600, 224, 234, 151, 124], 'June 2012, 750, 121, 867, 152, 235],' 2012 Julie ',...

mysql - Multiple conditions in SQL joins -

How does the specification of several conditions in SQL ? To specify several conditions in SQL below is correct, I know A key = bee is different from this OR Pre> at (a.kk = bk where condom 1 and / or con2. Etc) I think your first option is correct. You can use more than one circumstance such as: ON (A key = B and / or COD 1 and / or CD2 ... etc). For second, WHERE should come after the nuclear block (involved in using all the join clauses) Again, it will filter the data after it's inserted. Just close the first bracket, then it will also work. Like: ON (A key = BK) WHERE cond1 and / or cond2 ..ETC All the above options can be used depending on your requirement .

ios - Persistent allocation of Heap Memory NSTimer -

Image
I got a problem with my sample project, I just create a scheduled timer that "animate" a label And then, when I reach the result that I want, I invalidate the timer and I set each other, at the moment as "clock" This is the code that I use // // ViewController.m // // // #import "ViewController.h" ANIMATION_DURATION 1 // View Interface @ Interface Controller () {int contatore; NSString * hour; NSString * minutes; NSString * Second; } @end @ Implementation View Controller - (zero) viewDidoadload {[Super Viewedload]; // Setup an additional after loading the view, usually from a nib Contatore = 0; [Starttime animation]; } - (zero) did risiv memorialisation [[super davidimmemi warning]; // Any resource settlement which can be reproduced. } - (Zero) Starttime animation {NSTIMER * AnimationTimer = [Estimator Scheduled Timer with Time: Animator Target: Self Selector: @Sillector (Timeout :) User Inc.: Zero Repeats: Yes]; } - (zero) timeout: (NSTimer *) time...

php - dynamic dropdown is populated ONLY if I click on it -

मेरे पास एक टेक्स्ट बॉक्स है (ऑटो-पूर्ण) जहां उपयोगकर्ता एक अभिनेता / अभिनेत्री का नाम दर्ज कर सकते हैं जो ठीक काम करता है। जैसे ही उपयोगकर्ता टेक्स्ट बॉक्स में एक नाम डालने के लिए, एक गतिशील ड्रॉपडाउन उस अभिनेता की फिल्मों की सूची दिखाने में पॉपुलेट होना चाहिए। समस्या: जब उपयोगकर्ता टेक्स्ट बॉक्स में कोई नाम डालें, एक खाली ड्रॉपडाउन पॉपुलेटेड हो जाता है, लेकिन अगर उपयोगकर्ता पृष्ठ में ड्रॉपडाउन या कहीं पर क्लिक करता है, तो फिल्मों की सूची दिखायी जाती है ड्रॉपडाउन में! एक और मुद्दा यह है कि अगर उपयोगकर्ता प्रेस पाठ बॉक्स के अंदर प्रवेश करता है (उसके बाद वह नाम डाला जाता है), तो टेक्स्ट बॉक्स साफ़ हो जाएगा !! कोई मुझे कृपया मुझे अपने कोड में क्या समस्या है, यह जान सकता है? यहां कोड है: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; link type = "text / css" href = "res / jquery-ui.css" rel = "स्टाइलशीट" / & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "res / jquery.min.js" & gt; &...

regex - List unique positions from list combined with associated string -

I need to list the unique numerical positions from a file, and then let the exclusive Indels after every position. If there are more than one different indices, then I want to list each status / indel on different lines. I am the best solution to collect, but I have no luck. Is there a module-free way? Please tell me if my description does not understand. FILE1 data: 7065_8 # 10 99269 T 7065_8 # 10 126,477 -c 7065_8 # 10 413,711 + T 7065_8 # 10 586,681 single 7065_8 # 10 820,739 + T 7065_8 # 10 927,l02 + T 7065_8 # 10 942 973 + T 7065_8 # 10 L,075,448 + G 7065_8 # 11 99,269 tax 7065_8 # 11 126 477 income tax 7065_8 # 11 4l3,7ll + T 7065_8 # 11 470,2ll + G 7065_8 # 10 927,l02 7065_8 -a # 10 942,973 + T intermediate result: 99269 (-T-T) 416,411 (-T-T) 413,711 (+ t + t) 586 681 (-A ) 820 739 (+ t) 927 102 (+ T-A) 942 973 (+ t + t) 1,075,448 (+ g) 470 211 (+ G) The final output: 99269 (-T) 126,477 (SI) 126 477 (-T) 413,711 (+ T) 586,681 (single) 820,739 (+ T) 927...

Jni object growing memory in java loop -

When creating a JNI object in the Java loop, the memory continues to grow in Java. Example: class net {original zero hello (); Public static zero main (string [] args) {while (true) {// jni object play net = new net (); // This loop is mounting in memory}} Static {System.loadLibrary ('Hello')}} JNIEXPORT void JNICALL Java_Nat_hello (JNIEnv *, jobject) {// nothing code ........... ... .........} pass loop one The new net object that requires memory since the loop is always running and there is no break-in situation, so the memory actually increases rapidly.

php - I try upload the user comment into my db. After I click submit, everything looks fine but I look in my db, there are no record. -

I tried a tutorial from some websites. I try to upload a user comment in my DB. After submitting, everything looks fine but I see in my DB, there is no record This php code is $ dbhost = 'localhost: 8090'; $ Dbuser = 'root'; $ Dbpass = 'Password'; $ Conn = mysql_connect ($ dbhost, $ dbuser, $ dbpass); If ($ _POST) {$ con = mysql_connect ("localhost", "root", "password"); } If (! $ Conn) {dead ('could not get DB');} mysql_select_db ("doctor", $ conn.); $ Ticket_user_fname = $ _POST ['fname']; $ Ticket_user_lname = $ _POST ['lname']; $ Ticket_email = $ _ POST ['email']; $ Ticket_hp = $ _ POST ['contact_number']; $ Ticket_content = $ _POST ['Content']; $ Ticket_category = $ _POST ['category']; Include VALUES ('ticket_id', 'ticket_time', '' 'ticket_id', 'ticket_id', ' Ticket_user_fname ',' ticket_email ',...