Posts

Showing posts from September, 2012

android - Rendering a square -

The following is not giving me the triangle sections, why do anyone know ?? // defined as ... addcube (2, -2, 1, -1, 10); AdCube (Float LX, Float Hx, Float Lee, Float HE, Flatz) {Final Float Array 1 [] = New Float [] {// Front Face Lex, LE, HZ, LX, High, HZ, HX, High, HZ , Hx, Lee, H.J.}; } // Draw as ... gl.glDrawArrays (GL10.GL_TRIANGLE_STRIP, E, 4); E = E + 4; Gl.glDrawArrays (GL10.GL_TRIANGLE_STRIP, E, 4); E = E + 4; Gl.glDrawArrays (GL10.GL_TRIANGLE_STRIP, E, 4); E = E + 4; Gl.glDrawArrays (GL10.GL_TRIANGLE_STRIP, E, 4); E = E + 4; Gl.glDrawArrays (GL10.GL_TRIANGLE_STRIP, E, 4); E = E + 4; Gl.glDrawArrays (GL10.GL_TRIANGLE_STRIP, E, 4); E = E + 4; I have tried to add gl.glDisable (GL10.GL_CULL_FACE); But it only puts the rest of the square in the foreground, I've included Drawing Methods ... Public Waste on Draffam (GL 10GL) {onDrawFrameCounter ++; Gl.glEnable (GL10.GL_TEXTURE_2D); Gl.glClear (GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); BindCameraTextu...

android - Custom onDraw() method not called -

& lt; linearLayout एंड्रॉइड: id = "@ + id / svLL" एंड्रॉइड: अभिविन्यास = "क्षैतिज" एंड्रॉइड: Layout_width = "fill_parent" एंड्रॉइड: layout_height = "fill_parent" & gt; & Lt; ScrollView एंड्रॉइड: एंड्रॉइड: एंड्रॉइड: layout_width = "wrap_content" एंड्रॉइड: layout_height = "wrap_content" xmlns: एंड्रॉइड = "http://schemas.android.com/apk/res/android" & gt; ; & Lt;! - & lt; TextView एंड्रॉइड: layout_width = "match_parent" एंड्रॉइड: layout_height = "wrap_content" android: text = "@ string / scrollbar_2_text" / & gt; - & gt; & Lt; com.mypackage.MyDrawableView एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "wrap_content" / & gt; & Lt; / scrollview & gt; & Lt; / LinearLayout & gt; सार्वजनिक वर्ग MyDrawableView विस्तार देता है देखें {संदर्भ इस संदर्भ सार्वजनिक वर्ग MyActivity गतिविधि को बढ़...

Google Maps API - V2 key x V3 no key -

OK, Google Maps API V2 requires a key and not V3. Why is my question really that? What was the key for? And why did they take it to V3? My theory why they needed a key in V2 so that they Guarantee that you agreed to the terms of use According to their lawyers, for V3, Google developers decided not to charge because it is a pain that does not really guarantee anything. Therefore, in disagreements between developers and lawyers, the developers won. Google is one of the few companies where this can happen.

sandbox - Google Checkout reports error to user but not admin -

I am using the following to generate a Google Checkout: echo & Lt; Form method = "post" action = "https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/'.$id." "Accept-charset =" UTF-8 "& gt; while ($ line = mysql_fetch_array ($ result)) {echo '' & gt; 'echo' & lt; Input type = "hidden" name = "item_price_1" value = "' $ Line ['value']. ​​"" & Gt; '; Echo '& lt; Input type = "hidden" name = "item_change_1" value = "GBP" />; '; Echo '& lt; Input type = "hidden" name = "item_quantity_1" value = "1" />; '; Echo '& lt; Input type = "hidden" name = "item_merchant_id_1" value = "1" />; '; } Echo '& lt; Input type = "hidden" name = "_ charset_" />; '; // button code - & ...

c# - How to get Messenger contact list through .NET -

I want to be able to get the list of Messenger users of a certain user through .net I looked, but it's still under the beta and with limited reach. Any ideas for easy choices? I thought it would be as easy to start the WCF service. Thank you for your help. is an option, which includes the documentation. Keep in mind that the API is considered deprecated, and will eventually be replaced by Messenger Connect. For more information about potential deadlines for shutting down service, refer to it.

flash - Clear Class ( new ClassName() ) -

Question: What's behind the var animals: Pets = new pets (); ?? Script: package {import flash.events.MouseEvent; PublicClick Pets {Public Function Pets () {// Constructor Code on my_btn.addEventListener (MouseEvent.CLICK, onClick)} onClick (e: MouseEvent) {trace (start); }}} Problem: When I call pet classes with second class (new pet); , This class runs and addEventListener works fine but: First time: trace result start second time: Trace Results Start Start Third Time: Detecting Result Start Start Assume my_btn is an example of a button on the forum, every time you pet Creates a new example of animals So you are adding a new MouseEvent.CLICK event handler to the same my_btn example. There are some different ways to decide this, but it depends on how you want to work. If you want a my_btn example to exist, then MouseEvent.CLICK is excluded from the Pets class (and only add it once) Add out If your own button is needed f...

datepicker - Localize Android DatePickerDialog -

Is it possible to configure Android .app.DatePickerDialog so that it can be easily transferred for European format (exchange Exchanging English button names with day and month and local people)? DatePictureDialog is localized by default. I used to make it a real device and system localization to be the default form of the system. Tried to upgrade from.

database - .NET Parameterize Queries Injection -

What are parametriz queries in NAT secured with SQL injection? So, when you use the parameter, does the .NET automatically avoid dangerous characters? When you use the parameter, they are usually not sent as text in the first place They can use the native wire protocol for the database. If the parameter is only a text parameter, then it will usually be deemed appropriate in the protocol so that the database is to know that it is a parameter rather than a SQL. While I estimate the provider translate the parameter into a complete SQL statement, it will be a terrible way of working. So the queries with the parameter "yes" - are effectively safe from the attacks of SQL injection, T SPL, etc. have stored processes that dynamically execute their parameters .

Crystal Reports: Need advice on how to avoid use of subreports -

I'm trying to write a report to hit a very large database, which uses sub-reports ... unpleasant at least tell me how can I survive in this situation: I am starting from a table of patient trips. There may be more than one important reading in each visit (say in the widget of the widget, which is one of the many travel tables) out of which I want the minimum and maximum of each type. So to accomplish this, I visit the patient by grouping and then use the formulas to calculate the minimum / maximum and display them in the group footer. So far, so good. However, another table is the order in which all the orders for that trip are included, from which I want to choose some minimum / maximum value to display for the encounter. To use a subreport, the skirt, I've added some formulas for the details that have been pressed, which also displays the minimum / maximum order values ​​of the group footer. The problem is that the crystal only visits the patient, that gives the order...

iphone - Can i use Base SDK 4.0 for iPad only app? -

We are developing an iPad app for which I am trying to use Sharekit I am getting this error if I use Base SDK 3.2 Protocol for NSXMLParserDelegate can not be declared But if I base Switching to SDK 4.0, it works just fine. I think it is possible to use Base SDK 4.0 when creating universal applications. Does anybody know whether Apple has compiled an IPD only application into Base SDK 4.0 and Target 3.2? This will work, I'm using them in the same configuration, but I can use the NSXMLPerser diLyetate for up to 3.2 years. I am using it, in fact it is not certain why this will not work for you. The NSXML was googling for the ParserDelegate and question came on - or Maybe it will work?

variables - How to use zval in PHP? -

Can you tell me any practical example how to use the zval container? The only related function that I know is debug_zval_dump , but I have never really used it. Edit: I think, to monitor Zalve containers, I could see how to optimize the code, how the memory is used from references. It seems that this may be a useful tool in some cases. Certainly there are some good reasons that exist for the debug_val_dump function. Each PHP variable is stored in zval so you can see That your question really does not understand. debug_val_dump is not a very well-thought-out function because it is difficult to interpret, because by passing a variable in the function you are changing the reference number of the zwal. If you pass the context of debug_val_dump without passing it by reference, you will force a zig-isolation and you will always get a zvill back with reference number 1 with reference flag, and if you reference it from context Pass (which should be done at call time, whic...

Launching Blackberry application using Eclipse debugger resets device -

I'm trying to debug a BlackBerry application on the device. I had some initial success, but recently the device is rebooted when the debugger tries to launch the application. The application is installed, and after rebooting the device I can run it from the device, but till now I'm unable to run it under the debugger. Configuration Devices: 9700 OS: v5.0.0.602 Eclipse: Galileo (3.5.2) Blackberry Java plug-in: 1.1.2.201004161203-16 Blackberry SDK: 5.0.0.25 I have seen other references to this problem elsewhere, but no real There is no solution. I tried to delete an app from the device before launching the debugger, but I get a reboot even when the app is installed. It appears that this problem may be related to the size of the application (it is getting bigger and bigger). Install a small application and debug it properly. If I can install the application as a step and then attach the debugger as a second step, but it is not available from BlackBerry SDK. The...

asp.net - Google Apps mailserver - works fine for < 50 messages; problems when sending more -

मेरा asp.net (mvc2) वेब ऐप webinar पंजीकरण प्रणाली कनेक्शन जानकारी के साथ ईमेल भेजता है। वर्तमान में हम केवल अटेंडीज़ की सूची के माध्यम से पाश और हर एक के लिए System.Net.Mail.SendMail मारा। हम अपने GoogleApps खाते (गैर-प्रीमियम) के माध्यम से मेल भेजते हैं। मेरा उपयोग केस भेजना है & lt; एक बार में 50 ईमेल और सिस्टम ठीक काम कर रहा है ऐसे अवसरों पर जहां संख्या 100 पतों को दबाती है, मुझे त्रुटि संदेश मिल जाता है: सेवा उपलब्ध नहीं है, ट्रांसमिशन चैनल बंद कर रहा है सर्वर प्रतिक्रिया थी: 4.7.0 बाद में पुन: प्रयास करें, कनेक्शन बंद करें। (मेल) g31sm4823143ibh.4 क्या यह संदेश Google के सर्वर के लिए विशिष्ट है (वाक्यांश पर खोजा गया - 'नहीं' जैसा लगता है) क्या कोड द्वारा ईमेल भेजने के लिए कोई मान्यता प्राप्त 'सर्वोत्तम अभ्यास' है? क्या यह हो सकता है कि जीमेल सिर्फ नोटिस करता है कि आप एक तीव्र दर में बहुत सारे संदेश भेज रहे हैं यह उनके लिए आप स्पैमर (उनकी आंखों में) हैं? यदि आप होस्ट कर रहे हैं तो मेरा सुझाव है कि आप अपने प्रदाता से बात करते हैं और देखें कि वे ...

php - How to use PHP5 SoapClient::SoapClient() with client certificate? -

The I need to use PHP SOAP client with myfile-ca.crt I Client Certificate (CRT file) How can I tell Sopclant Constructor to work with? I have experience with PHP SOAP client, but I do not have to ever work with a safe soap client. Any help When creating your SoapClient, Can pass a configuration array in the form. This array option allows local_cert . The local_ cert option should point to the certificate file (in my experience it was necessary to get the full path). $ wsdl = "service.wsdl"; $ Cert = "c: \ secure_cert \ webservice.pem"; $ Client = new SOAP client ($ wsdl, array (= 'local_cert' & gt; $ cert); Also see examples here Note: I always Given .pem files; Not sure that .crt is the same / does the same thing ...?

php - Download CSV file using "AJAX" -

I'm trying to accomplish a lot of simple work for my website, but I'm not sure how to actually do it I want that the user should see a table, then click on a button, at which point the user can save the contents of that table as a CSV file. This request can sometimes be very complex, so I have a progress page to alert the user. In addition to creating a CSV file, I have many things I (use jQuery and PHP) jQuery code running on click: hmis_query_csv_export: function (query_name) {$ .uiLock ('& lt; p & gt; query being loaded. & Lt; / p & gt; & lt; img src = "/ images / loading.gif" /> ') $ .get ({url:' /php_scripts/utils/csv_export.php ', data: {query_name: query_name}, success: function (data) {$ .uiUnlock ();}})}} related PHP: header ("content-type: text / x-csv"); Header ("content-dispute: attachment; file name = search_results.csv"); // // Generate csv // echo $ csvOutput exit (); What th...

norm - Mongo one to many relation and update problems -

I am implementing a blog based on MongoDB. We first see how Mongo people advise us to store a blog post and comment on it (): The post should be a collection. Comments should be embedded in a post to display. I came to know that it is very difficult to accept the comment in this schema. Due to the comment, a part of the post document, I can not edit it separately because there is no identifier to find in the comment archive. This is the reason why I am editing all the comments together. Another problem is that whenever I can post a new comment, then I am editing all the comments and this commentary collection After saving it will be overridden. Am I doing something wrong? Or the use case described by people of Mongo is expected that the comments will not be edited. Regards, Alexei Zakrowov You should be able to "save all comments" I should be able to use the surroundings. For example, something like this should be done: db.posts.update ({_id: [ID]}...

licensing - Under which license are DirectShow Samples and Base Classes distributed? -

DirectShow 9.0 DirectShow samples from SDK and base classes are under which specific license distributed? I have searched for the entire SDK and it is not able to understand. I know that I am free to use samples and base classes, however, specific license to people in more legal thinking in my organization I have any help, thanks, Andrew I'm looking into the DirectShow Ship with Platform SDK (Windows SDK), I suspect that the platform SDK ULa is applicable.

git gui that shows branches well -

I am using gitk and shows some of my branches and shows the branches available on some redundes. Can you recommend one? EDIT: I resize too much between the branches and want to easily see which branch to be pulled from check out. I love the interface with gitk Edit: The above link is shown below (permanently?). From: gitg has been moved to GNOME infrastructure. Bug reports can be found on the sources, but sources say. Development has been shifted.

java - How to read and write a HashMap to a file? -

मेरे पास निम्न हैशमैप है: हैशमैप & lt; स्ट्रिंग , वस्तु & gt; FileObj = नया हैशमॉप & lt; स्ट्रिंग, ऑब्जेक्ट & gt; (); ArrayList & LT; स्ट्रिंग & gt; Cols = new ArrayList & lt; स्ट्रिंग & gt; (); cols.add ( "एक"); cols.add ( "ख"); cols.add ( "सी"); fileObj.put ( "MyList", कॉलम); मैं इसे किसी फ़ाइल में लिखता हूं: फ़ाइल फ़ाइल = नया फ़ाइल ("अस्थायी"); FileOutputStream f = नया FileOutputStream (फ़ाइल); ObjectOutputStream s = नया ऑब्जेक्टऑटपुटस्ट्रीम (एफ); s.writeObject (fileObj); s.flush (); अब मैं इस फ़ाइल को एक हैशमैप में वापस पढ़ना चाहता हूँ जहां ऑब्जेक्ट एक ArrayList है I अगर मैं बस करता हूं: फ़ाइल फ़ाइल = नया फ़ाइल ("अस्थायी"); FileInputStream f = नया FileInputStream (फ़ाइल); ObjectInputStream s = नया ObjectInputStream (f); FileObj = (हैशमैप & lt; स्ट्रिंग, ऑब्जेक्ट & gt;) s.readObject (); s.close (); यह मुझे उस स्वरूप में ऑब्जेक्ट नहीं देता है जिसे मैंने इसे सहेज...

php - Call to a member function getDOM() on a non-object -

I'm trying to create a PHP function that adds an event to Google Calendar. It seems that the object is being created correctly but this error is a brief category when attempting to add an event to a member function getDOM () on non-object in feedpartyperient.fpp, which is only the constructor And the function that adds an event: class GCal_datasource {private $ user = 'xxxxxxx'; Private $ pass = 'xxxxxxxxx'; Private $ customer; Private $ gdata_cal; Private $ calendar; Private $ visibility; Public function __ composition ($ settings = NULL) {session_start (); Need_once 'Zend / Loader.php'; Zend_Loader :: loadClass ('Zend_Gdata'); Zend_Loader :: loadClass ('Zend_Gdata_ClientLogin'); Zend_Loader :: loadClass ('Zend_Gdata_HttpClient'); Zend_Loader :: loadClass ('Zend_Gdata_Calendar'); If ($ settings == tap) {$ settings = array (); $ Settings ['calendar'] = 'default'; $ Settings ['visibility'] = '...

Linq custom comparer for contains? -

I have 2 lists, I want to compare each element with both lists using LINQ ( Versus using nested loop) but, my needs have not been fulfilled because I need to make custom comparisons. I think a custom quicker is needed, but I do not believe 100%. I do not think it should be very difficult, but it is not certain what I want for this device. There are 2 different and different types of objects in 2 lists. Update: Sorry, if I was not clear. I have 2 lists (or calculators), I can do something like this: (object I in list 1) foreach (2ItemType in other list) {if (compare (x) ) Do something; } What I want to do is something like this: var matches = myList1 Where (t = & gt; myList2.Something (t)) Where are some custom comparisons, maybe I can override the parity compared to the comparison? I can use . But I have to argue for comparison. Update: I thought about using the IEqualityComparer but it is set to take the type of T, T and T, Y. There are some common obstacles ...

python - persistant TCP connection in Django -

I have a DJ ango application which sometimes needs to send some data through TCP and I will continue to do this connection Want to do The way I wanted to do this was to create a simple twisted TCP server (I'm the only one who is waiting for the initial connection) and whenever I say it in any way from the DEGENGO view I need it Use Usage. This container only runs WSGI applications in several twisted threads, so that you can call any twisted ADI through bus. not actually!

WPF, am I a bitmap or a PNG -

My goal is to work with bitmaps but I have to store them in PNG bit arrays: bitmap image imaggrus = (bitmap image) this.FindResource ("imageGrass"); I'm curious at this point if it's bitmap or PNG. If I copy the pixels to the user, then I know that its uncompressed bitmap where I've been unsuccessful: PngBitmapEncoder encoder = new PngBitmapEncoder (); Encoder.frames.Add (bitmapFrame.Create (imageGrass)); Byte [] ImageData; (Using memorystream imagestream = new memorystream ()) {encoder. Save (Image Stream); ImageData = New Byte [Imagestream. Lamps]; ImageStream.Read (imageData, 0, (int) imageStream.Length); ImageStream.Flush (); ImageStream.Close (); } Now it can be related to memory stream because I can encode and save a file. Main question: How can I store a PNG byte array? This article should be screwed for you Good luck.

javascript - Using "bottom: expression (0+ ... ;" for IE 6 Fixed Positioning -

It seems that I'm just missing some syntax or doing wrong, but on a specific style sheet Locking remains visible on the top of the scene-port, and despite the scrolling: top: expression (0 + ((e = document.documentElement.scrollTop)? E: document.body .scrollTop) + 'pixels'); But, it does not lock on the bottom like this: Below: Expression (0 + ((e = document.documentElement scrollBottom) E: Document.body.scrollBottom) + 'pixels'); Any ideas? There is no such property scrollbottom . Below is the distance between the lower edge of the element located and the lower edge of the block contained. Assuming the element is not within any of the other elements located, which is an initial block containing, effectively the initial viewport in the convention. So when the viewport scrolls down from its initial (top) position, then move down position to negative to move it downwards Required: // Set to script. It is more reliable than solifing f...

debugging - JavaScript: Possible uses for #debug directive? -

Where do I work, all our javascript is run through a compiler before being deployed for a release . One of the things in this Javascript compiler (next to things like minify), is for lines of code that looks like this, and stops us from the release versions of JavaScript: / / # debug warning ("This line of code will not do it in the release build") // # / debug I do not see much, but I still have to see this // #dbug instructions to any of our javascript T is used in This is useful utility? I fail to see that it can be a good idea and it seems that #debug instructions (whether in C # or Javascript language) is generally a sign of poor programming. Is it a waste of time // # Functionality for debug or what? If you were using a large JavaScript library such as YUI, there is a logger in it, in debug mode Only debug messages can be logged for display.

php - Is saving enormous user information into a MySQL table good if one wants to display it for later use? -

I have a file named discussion.php , where a form is located in this form , One user will enter the information, and the information will be posted on savedisc.php . Below is the code for discussion.php : & lt; Form action = 'savedisc.php' method = 'post' & gt; & Lt; P & gt; What would you like to discuss? & Lt; / P & gt; & Lt; Textarea name = 'message' rows = '15 'cols =' 40 '& gt; & Lt; / Textarea & gt; & Lt; Input type = 'submit' value = 'submit' / & gt; & Lt; / Form & gt; Once the user hits the submit button, the text the user typed is savedisc.php Should be saved through To wit. I will be connected to the database, and the user was typed in the texteras. Now to display that information, the user who typed the text, I will be connected from the database to another file and show the appropriate content. Some of my questions are as follows: should not I...

mysql - Problem with writing an SQL Sub Query -

I know that I should be missing something simple ... but I'm having trouble writing a SQL sub query . Looking at the following data user_id question_id ANSWER_TEXT 89 1 value 1 89 2 value 2 80 2 value 2 99 2 value 2 96 1 value 1 96 2 value 2 111 1 value 1 111 2 value 2 p> I have both question_id of user_id1 = 'VALUE1' and 2 = 'value2' above the results The query is generating the question_id that needs to be received> User_answer`.user_id`, `User_answer`.question_id`,` User_ant`.`answer_text` Selection` `` user_answers` User_answer` where` User_answer`. In question_id` (1, 2) and `User_answer` in ('value1', 'value2') .`_txt` but of course it Land that "value 1" but has a fully answer the question with a question with different answers 2 than 1 return value "2" (and vice versa). I need to add in more circumstances but I think I can add that if I can at least do these two things. One way to use self joi...

Mobile applications built with .NET? -

Can we use the mobile application .net? Which mobile phones are supported? Are they all mobile, or apps supported on a particular mobile? Consider writing a web application that exposes ideas / specifically for mobile clients Created page You can write your application in ASP.NET webforms or MVC, and find out which page / view the best service is to the client. How to make that application look, look. Also recommended for listening, they focus their discussions on definitions for individual mobile devices and browsers. At run time, ASP.N.T What type of device / browser is requested by the information in the request header. Basic Apps Currently, with Silverlight / XAM with Visual Studio.

iphone - error message: expected ')' before 'NSRect' -

I'm getting a strange error in the program, however, I did not get any syntax error. I have the error: Expected ')' ' #import & lt; Foundation / Foundation. H & gt; @IntefaceMyquartzlook: NSobage {} - (ID) InitVithframe: (NSRact) frame; // Line 1 - (empty) Direct: (NSR) Rect; // line 2 @ and NSRect, NSSize, NSPoint, and similar type of iPhone Use CGRect / CGSize / CGPoint instead.

ruby on rails - extended permissions in authlogic facebooker plugin? -

How does a request allow extended? Adding one: the key to be done in the hash & lt;% # = authlogic_facebook_login_button: text = & gt; 'Login with Facebook' ,: v = & gt; 2 ,: perms = & gt; "Email, user_index"%> to FBML & lt; Form id = 'connect_to_facebook_form' method = 'post' verb = '/ user_session' & gt; The reason for submission is as follows. & Lt; Input type = 'hidden' name = 'authentication_token' value = 'code here' /> & Lt; / Form & gt; & Lt; Script type = 'text / javascript' charset = 'utf-8' & gt; Function connect_to_facebook () {$ ('connect_to_facebook_form'). Submit (); } & Lt; / Script & gt; & Lt; Fb: login-button js = "prototype" onlogin = "connect_to_facebook ()" perms = "email, user_birthday" v = "2" & gt; Login with Facebook & lt; / Fb: login-button & gt; ...

java - Sorting+merging lines of multiple files according to a timestamp -

I have several text files that represent logging entries that I need to parse later. Each file is 1 M is above the size and I have about 10 files. Each row has the following format: timestamp \ t data I merge all the files And the entries must be sorted by the timestamp value. There is no guarantee that entries of 1 file are in the correct chronological order. What will be the smartest approach? My proxy code looks like this: list & lt; FileEntry & gt; EkBeglist = New Arrestist & lt; File Entry & gt; (); For each file {parse each row in an instance of the file extension; Add an example to a buglist; } Collections.sort (According to OneBigList, FileEntry.getTimestamp ()); If you are not sure that your work will fit in the available memory, After parsing the database table, worry about putting your lines and how to order the data in the database (an index will help in the timestamp column: -) If you are sure that there is a problem with the storage ...

How to add search bar in navigation bar for iphone? -

संभव डुप्लिकेट: यह खोज बार प्रदर्शित करने के लिए कोड है, लेकिन मैं इसे नेविगेशन बार में रखना चाहता हूं sBar = [[UISearchBar alloc] initWithFrame: CGRectMake (0,10,320,30)]; SBar.delegate = self; [Self.view addSubview: एसबीआर]; //[self.navigationItem.rightBarButtonItem addSubview: एसबीआर]; //self.navigationItem.rightBarButtonItem=sBar; क्या कोई तरीका है? सर्च बार को जोड़ें नेविगेशन बार में शीर्षक देखें इस कोड के उदाहरण में इसे अतिरिक्त शीर्षक के रूप में जोड़कर अतिरिक्त पैडिंग के लिए एक फिक्स भी शामिल है। UISearchBar * searchBar = [[UISearchBar alloc] initWithFrame: CGRectMake (-5.0, 0.0, 320.0 , 44.0)]; SearchBar.autoresizingMask = UIViewAutoresizingFlexibleWidth; UIView * searchBarView = [[UIView alloc] initWithFrame: CGRectMake (0.0, 0.0, 310.0, 44.0)]; SearchBarView.autoresizingMask = 0; SearchBar.delegate = self; [SearchBarView addSubview: searchBar]; Self.navigationItem.titleView = searchBarView;

html - Button text shifts on click -

I've noticed that when I click on a form submit button, the text of the button is almost 1px firefox (PC) Okay, and on the right in the iPad and Opera 1px and the bottom It does not happen at all in Chrome. It looks sloppy. Does anyone know why this is happening and if it is possible to stop it? I am using Mala theme and Zen sub-subject and this happens in both. Thanks Try a CSS reset file; Such issues are contained in the browser rendering difference ... that a CSS reset is effectively; It can throw off your design settings, but after implementing it, it will be very easy to decide:

which is the best javascript lib for google maps and iphone -

मैं एक मानचित्र साइट को iPhone उपयोग पर विकसित करना चाहता हूँ v3 धन्यवाद नवीनीकृत मुझे एक मिल गया है: जो मुझे iui और jqtouch से बेहतर लगता है, लेकिन मुझे इसकी दस्तावेज़ नहीं मिल पा रहा है, क्या आप पेस्ट्रीकिट के डॉक्टर को जानते हैं?

php - PayPal Adaptive Payments and SOAP SDK -

I am integrating the adaptive payment in a PHP application that already uses PayPal SOAP SDK for messpe. Everything seems very simple. The problem is that when MSP calls integration, then its name is conflicts because Caller Services has already been announced by the Adaptive Payments API. Is there any easier (and better) way to live those APIs together? Why do I need both APIs if they declare objects with the same name? I have checked that both CallerServices.php files were the same, but they are not ... Error Message: Fatal Error: Caller Services in Class 35 (...) / PayPal / CallerServices.php Thank you. Which version of PHP are you using? If> = 5.3, you will be able to solve it by declaring it.

ASP.NET Ajax Control Kit versus JQuery -

In the last 2 years, JQuery has become more and more popular. So, do you think, now ASP.NET projects with AGX have time to like JQuery like ASP.Net Ajax? ASP.NET AZ Control Kit Is A Future In ASPNET World? short answer: If your page / site is currently running UpdatePanel or ACT controls Definitely use jQuery and jQuery UI for any new task It is still Microsoft's own recommendation. Long answer: When it is important to be clear about the terminology related to this topic. ASP.NET is part of AJAX client-side, but also server-side also. System.Web.Extensions came from Atlas and was eventually integrated into ASP.NET 3.5. Even if you do not use a ScriptManager or MicrosoftAjax.js, then the server-side part of ASP.NET AJAX is still creating JSON-based server-side end points (and which are not, there are no ScriptManager) Very useful for jQuery and MicrosoftAjax.js are something similar, but both of these things that others do not do it right to say that they compet...

sql - Mysql Update Records -

I need to update a column from my user table. Current record in user table ** id, user_name ** 1, true Rathore 2, Dilip Chohan 3, summer Jain I update user_name Like Columns like 1, Sachin Rathore 2, Dilip Chauhan 3, Garam Jain User's column should be in the form of the title of each word The first letter should be Here is a query that will do this Update Set Table SET user_name = CAP_FIRST (CO NCAT (SUBSTRING_INDEX (user name, '', -1), '', SUBSTRING_INDEX (user_name, '', 1))) it depends Here's another one:

directory - Android special directories -

I think that as API level 8, you handle special directories with Environment.getExternalStoragePublicDirectory () Can request for . It takes a type like DIRECTORY_MUSIC , DIRECTORY_PICTURES , etc. I have other media types such as documents (Word Docs, PDFs, etc.). My HTC Desire has a / sdcard / my document / folder which is exactly what I want, but to use it with the above method DIRECTORY _ Specification Is not it a standard Android directory on which I can trust? If I can not use getExternalStoragePublicDirectory () , then I get the getExternalStorageDirectory () instead of which only indicates the root of the SD card I can clearly check and use the presence of my document below the root. I have it: // Save the default document location to the file's default SaveDir = Environment.getExternalStorageDirectory (); File myDocs = new file (default SaveDir, "My Documents"); If (myDocs.exists () & amp; amp; myDocs.is directory ()) defaultSaveDir = ...

iphone - Getting black screen when loading navigation controller -

The code below is attempting to implement a method where my navigation controller has two different views. Launches on. The problem is that whenever I launch my application I keep a screen black. #import "SugarCRMReleaseOneAppDelegate.h" #import "SettingsViewController.h" #import "ModuleViewController.h" @Explementation SugarCRMReleaseOneAppDelegate @Synthesize window; @Synthesis Navigation Controller; #pragma mark - #pragma mark Application Lifecycle - (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) launchOptions {// App Launch NSString * a2 = [[NSString alloc] init] after override for optimization Point; A2 = [[NSUserDefaults Standard User Default] ObjectForekey: @ "Saved User Name"]; NSString * b2 = [[NSString alloc] init]; B2 = [[NSUserDefaults Standard Standard Defaults] ObjectForreq: @ "saved password"]; [Window-making and knowledgeable]; If (A2 == zero and amp; B2 == zero) {Se...

jquery - Is it possible to destroy "sortable" when "sortstart" starts? -

यह मेरा कोड है: $ ("। Myclass")। बाँध (" ("# Div_1")। $ ("# Div_1 .li_1")। Droppable ({होवरक्लास: 'लाल', ड्रॉप: फ़ंक्शन (इवेंट, Ui) {$ (this) .addClass ('लाल');}});}); क्या कोई मुझे गलत पहचानने में मदद कर सकता है? I मिल गया:) $ ("। Myclass")। बाँध ('मूसुडाउन', फ़ंक्शन () {$ ('# div_1')। Sortable ('नष्ट');}); $ ("। Myclass")। बाइंड ("सॉर्टर्ट", फ़ंक्शन (इवेंट, यूआई) {$ ("# div_1 .li_1")। ड्रॉपपाबल ({होवर क्लास: 'लाल', ड्रॉप: फ़ंक्शन (इवेंट, यूआई) {$ (यह) .addClass ('लाल');}});});

c# - Is there any way of create or altering VS Keyboard shortcuts -

I recently installed Reshaper .... It is very good and useful though it changed all my keyboard shortcuts E.g. To comment outside the code, it was Ctrl + e then C , now it has Ctrl + then c ... it is a pain that I have found myself in the natural swing of using all the shortcuts and now I want to use them. . A solution is to be silent and to use the new shortcuts ... I agree, but if any change solution is possible then The way I work it is unnecessary to change - so this need not change. You can tell Resharper to use VS shortcuts instead. For at least those people you already know, they will be the same

3D Graphing Package For C# Winforms? -

I am using the zgraph for the needs of my 2D graphing, but for a project, I want something like this What 3D Drawings do I use the best package for this? I want to make graph pens as much as zigraph is easier to manipulate. EDIT: From 3D I mean that I want to be able to specify X, Y, Z to get a surface. Thanks! Using the source code which can be found in the link below as well as you WPF can create a very good 3D graph, it is nothing but it may suit your needs:

How to add OWL:imports to a .owl file by jena -

I'm new to Jenna I want to create a new OntModel and want to import some other exchanges for this model. I am If I write it in the file, then I hope the file can look something like this: & lt; Owl: ottology rdf: about = "" & gt; & Lt; Owl: Import rdf: resource = "http: //test.owl#" /> & Lt; / Owls: Ontology & gt; Right now, I do not know how Jana can import other mechanisms in the model. Can anyone give me some advice? Thanks see Jena ( String base = "http: //www.example." Com / ont "; OntModel model = ModelFactory.createOntologyModel (); Ontology ont = model.createOntology (" "); ont.addImport (model.createResource (" http: Result: Code> & rdf: RDF xmlns: rdf = "http://www.w3.org/1999/02/22-rdf-sitex-ns #" xmlns: owl = "http://www.w3.org/2002 / 07 / owl # "xmlns: xsd =" http://www.w3.org/2001/XMLSchema# "xmlns: Rdfs =" http://www.w3.org/20...

Problem aborting ASP.Net UpdatePanel or Telerik RadAjaxPanel -

I'm trying to solve a problem. My nested detourpets have a slow loading set that takes a few minutes to fully render. I need a cancel button. At first I tried a simple Update Panel with an Cancel button in an update upgrade, which has an abortPostBack. This update hides the panel, but wait until the datatorpeter was done before doing anything on the page. We have TeleReak AJX control, hopefully they are more advanced, I now wrap it up in RadjaxPanel it seems that the only issue is that I have an AJAX manager Attempted to firing Ages Revest and tried to set up a bull to try and cancel the database, but that incident was not caught until the database was completed. How to cancel the large set of Nested Dataparents? I think you can cancel from Alex Ajax panel or AJAX manager only on AJAX request server Before reaching, i.e. by setting args.set_cancel (true) in both of the ORCSTest client events. Dick / html>

Java, IO - fastest way to remove file -

My problem is that I have an app that is writing relatively (100-500kb) small CSV files (tens And millions) The contents of those files are then loaded into the database through the SQL loader call (its Oracle DB) and I have to be with it Therefore, I will use those small files from time to time to eat all the places Need to remove to stop. I would like to engage the activity that writes that file and loads it as the last final form in DB. My question is - how can we remove a bunch of small files in Java with low load on display? Thanks in advance! Michael OK, file.delete () should be sufficient (this Internally applicable as a basic method)

ruby on rails - get 5 random favorites from flickr -

I need to retrieve 5 random favorite photos from Flickr profile. Work with the Flickr API. And it . Using the Favorites method works great, I can get the full list of user's favorite photos. This is Flickr :: PhotoCollection and I do not know how to get 5 random records from it. Thanks in advance! user.favorites.sort_by {rand} [0..4] = "Post-text" itemprop = "text">

javascript - Handling Application abandonment -

I have an application which spreads many pages of engagement for the applicant and I do not want the user to be long ago Without kidnapping back and forward button (I think most of the forum will agree that this is a bad practice) I have onbeforeunload Which handles some of the typical use cases where the system could consider the fluctuation of the document Land, the user is equivalent to leaving the application, that page refresh (F 5, Ctrl / Meta + R). However, do I have to woo how to allow movement in the context of the application, such as page 1> submit> PG2> ops, back button> page 1. or where the URL is physically May be but the application is still "in the area". What happens by using the back button to return to PG 1 (or forward to go back to PG2) onbeforeunload fire ( which is expected ), it seems that the applicant should leave the application Maybe . What I see and woo me is the power to inspect the destination document / domain...

Linux File Logs -

I need to see the logs of files I opened, of course there are stored logs for this, but I have not Is able to find them in the / var / log / directory Thanks, Dave By default, there is no such log file opened Use the audit subsystem to find out when going.

c# - LINQ to Entities - limiting included tables -

Using two tables with one to many relationships (like make -> models), I made a built-in IQueryable function Model children in? When I'm in "Camry" as a variable, I only want to return to a Toyota Make with kids called "Carrie", not all the kids, in fact, this SQL Want to recreate the statement: Select , Leave on Model from MakeName, ModelName. So far the LINQ statement will look like this: Return to it. Object contact Make. ("Model"). Where (make => .modelnameEnglish ("camry") This is clearly not correct in formative form, because in the model where there is an entity collection and There is no .modelName property in it How do you limit the tables involved? Is this possible in LINQ units? Note, this is far from the top of my head, and I did not bother to compile so that could be a little bit Is: this return. ObjectContext.Make.Include ("model"). Where (make => make model any. (Model => model.mo...

java - how does BufferedReader keep track of what line has been read? -

I am reading a line from a file, and I believe that once I have read all the lines, I get an exception Is due to my loop position Exception in thread "main" on java.lang.NullPointerException liarliar.main (liarliar.java:79) ... code ... // Read the first line of the file iNumMembers = Integer.parseInt (br.readLine () .tim ()); // When reading the file ((sLine = br.readline (). Trim ()) = null) {// name and value remove 'm' string [] split = sLine.split ("\\ s +"); SAccuser = Partition [0]; Im = integer Pirice (split [1]); SaTheAccused = New String [IM]; (Saixide [i] = breadline (). Trim ();} // create member // initial name and the start of the number of subscribers member subscribers (for int i = 0; ii lt; im; i ++) = New member (); member.setName (sAccuser); member.setM (IM); member.setAccused (saTheAccused); veteranMembers.add (member);} inside the loop Many lines have to be read so that the last line of the file can be read, then when re...

android - 9-patch bitmap on a widget using RemoteViews -

I have a widget with an image view on it I set this imageview in bitmap created with 9-patch PNG resource Have done The image is set properly but does not spread correctly - that is, my image spreads like a 9-patch defined in PNG. If I set the 9-patch image as a resource, then it works. How can I fix this? // does not work (9-patch is not displayed correctly) bitmap bitmap = bitmapfactory.d decodeResource (context.getResources (), R.drawable.SomeNinePatch); RemoteViews.setImageViewBitmap (R.id.someImageView, Bitmap); // Works (9-displays patch correctly) Remote visualization. Image Image Resource (RID.IMAViewview, ArdoubableomNominipatch); Android knows that a PNG is a nine patch, based on 9. PNG file extension on the resource. I do not know in any way to use nine patch images out of resources, because Android will not have a file extension and will not know that the image is nine patch.

javascript - How to make this work in all other browsers other than Firefox -

I have a list with a number in it, this number goes from 0 to 30. I want to hide the numbers based on the current date and the number of days other than the user set So if today is 28 July 2010 and they have set July 29, 2010 it should only be shown "0" If it was 28 July 2010 and they were on September 20, 2010 , It should show 0 to 30. Then I have it var selectedDate = new date ($ ('# text box'). Val (). Replace (/ \ / (\ d \ d ) $ /, "/ 20 $ 1")); Var currentDate = new date (); Var month = currentDate.getMonth () + 1 var day = currentDate.getDate () var year = currentDate.getFullYear () currentDate = new date (month + "/" + day + "/" + year); If (isNaN (selectedDate) == false) {$ ('# selectList') Find ('Select'). Attr ('disabled', ''); Var diffDays = parseInt ((selected date - current date) / (1000 * 60 * 60 * 24)); Var option = $ ('# selectList'). Find ('option'); JQuery.each...

asp classic - vbscript time zones and Daylight Savings -

I am looking for an easy way to get UTC time and date / time information in VBSScript, even When specifying time zones I need to be able to get the current time in the time zone of my choice. I have seen to set DST for posting work on the web, but I do not want to use the thing which I have, if the DST or time zone has changed then to update - therefore The use of a standard library would be ideal. I do not have the option of using the web service with this application. I am open to other ideas, however. Code here can help:

winapi - win32api vs Python -

What is Pro and Con to use win32api for I / O and only other things than Python, if Both a specific con (less) portability hard / more error prone Supporter Performance (potentially, it should be measured because it will only depend on API calls)

Detect the minimum permissions PHP needs to write to a directory: 0777, 0770 or 0700? -

Some scripts & amp; Generally, folder permissions were incorrect and its folders were uploaded with FTP and the script should notify which permissions to set. Of course, it is not good to set 0777 which I am going to write. But there are 3 possible webserver configurations: PHP user = user FTP, need writing 0700 The user is different, but it is related to the same group. It is 0770 does not run from PHP or there is no normal GID: this is 0777 What to find out The way that octets allow enough scripts to work for? The PCNTL extension is not welcome because it lacks in some configurations.

web applications - Blocking a record from editing while another user is editing the record - how? -

I am trying to add record locking to a site. This is not locking the database, where I have the process of editing the same record at the same time, but 2 users with the same record at the same time instead. Here's the situation: I should be able to lock a record, while 1 person is editing it, so anyone can make changes to record at the same time (and therefore confusion The reason). What might happen is that the user starts recording a record, in the mean time (user saves records before A), User B starts editing the record, now the user saves records with field_a, which is a value of "A" 0001 Now user is watching and editing the older version of the B record. Then the user saves records with the value of "0002" ends with the value of the database 0002. I can understand what happened, but for the user it is difficult to understand that the value in DB will be 0002 instead of 0001. In my case, they are using this number to record online records to another...

Script for retrieving datas -Oracle -

I need to write scripts to capture Excel data in the database table. The table name is B_USER then .. choose from ..? Any help would be appreciated INSERT in B_USER (SELECT U_ID, U_NUMBER - FROM ????) SQL loader is an Oracle utility that can be used to load data files in database tables. But I do not think this supports the Excel file. Please convert the Excel file into CSV or any other delimited format, then use the SQL loader. Please know about this.

html - html5 audio codec -

I am using html5 audio tags and it seems that codecs are not specified for both mp3 and wav Is able to do I know that OG is: Does anyone know what I will write for mp3 and wav? For WAV, & lt; Source type = "audio / wave" & gt; Use ; For MP3 you want audio / MPEG, you do not have to say exactly what code you are using, the browser will detect it.

C# DateTime time zone subtract issues -

मेरे पास कोड की यह पंक्ति है: डबल सेकंड = नया दिनांकटाइम (2006,7 , 6,12,1,0, डेटटाइमकिंड.लोकल)। सब्ट्रैक्ट (नया दिनांकटाइम (1970,1,1,0,0,0,0, डेटटाइमकिंड। लोकल)। कुल सेकेंड; यह मैं चाहता था सही नंबर नहीं था, इसलिए मैंने निम्नलिखित की कोशिश की: डबल सेकंड = नया दिनांकटाइम (20067,6,12,1,0, डेटटाइमकिंड। लोकल)। सब्ट्रैक्ट (नया दिनांक समय (1970,1,1,0,0,0, डेटटाइमकिंड.यूटीसी)। कुल सेकेंड; (अंतर यह है कि एक मामले में, मैं युग के लिए स्थानीय समय का उपयोग करता हूं, और दूसरे में, मैं यूटीसी का उपयोग करता हूं)। दिलचस्प है, हालांकि, वे मुझे समान मूल्य देते हैं, और मुझे नहीं पता कि यह क्यों है। मैं जी -20 में जीता हूं, इसलिए दिनांक का समय। स्थानीय वास्तव में चीजों को प्रभावित करना चाहिए। एमएसडीएन () पर डेटटाइम किंड पेज में, यह बताता है: डेटटाइमकिंड गणना के सदस्य स्थानीय समय और बीच के रूपांतरण कार्यों में उपयोग किए जाते हैं समन्वित यूनिवर्सल टाइम (यूटीसी), लेकिन इसकी तुलना या गणित के संचालन में नहीं। समय रूपांतरण के बारे में अधिक जानकारी के लिए, समय क्षेत्र के बीच टाइम्स को परि...

iphone - audio video photo path and access method -

I hope to know what is the complete path to storing audio, video and photos, are they in the same way ? I know that I can use UIImagePicker to access saved photos. Are there standard SDK / frame to use audio video? Or do I need to prepare the code by myself? thanks interdev Yes: in iOS 4.0 , The API will allow you to access the media directly.

asp.net - Retaining PreviousPage information after postback -

I am using asp.net previous page functionality and cross-page postback. The problem I am running is that if there is a postback on my page, the information on the previous page has been lost. I do not want to keep it in the viewstate because it will be quite big. I have thought about the session, but I do not want the data to continue after moving to a different page, and I really do not like the idea of ​​putting code in all my other pages to remove the old session variable. What methods do you use to keep such information passed through a cross-page postback? Update: Responding to most questions raised about refreshing the page using the feedback. Redirect I can not use it because it was posted informally on the page instead of posting, resulting in loss of this information and I was stopped from calling my controls with the last time of the selection criteria. Page. I need to update the data in the grid while maintaining postback information. I thought about using AJAX, ...

c# - logged in to PureVolume.com programatically ! -

I tried several ways, but purevolume.com program !!! Login URLs failed to login. Try it out to anyone and provide sample code to achieve this goal After "div class =" text "itemprop =" text "> Something like this should be done ... you need to post an http and send your username and password. To remain "logged in" you need a cookie container, which you re-use for all other requests again. EDIT: The verification code which was tested was required initial GET request to login / session session before login to POST. I also make it similar to a "normal" request from a browser Has added some HTTP headers for. Zero main () {// We need a container to store cookies in. CookieContainer Cookies = New Cookie Container (); // Request a login to receive a session cookie GETHML ("http://www.purevolume.com/login", cookies); // Now we can login login ("some user name", "some-password", cookies); } Public bo...

c# - Autocomplete text box like "Tags" text box on

How do I & amp; Apply the same "tag" text box to the stack overflow? It looks like me, multiple to true and set to multiple separator ( '' ).

Avoid stepping into c++ std header files in Visual Studio 2008 Debugger -

संभव डुप्लिकेट: गुड मॉर्निंग, मैं डीबगर को कुछ हेडर फाइलों में कदम रखने से बचने का एक तरीका देख रहा हूं जो मेरे कोड को डीबग करते समय मुझे कोई दिलचस्पी नहीं रखते। उदाहरण: जब मेरे पास फ़ंक्शन के पैरामीटर के रूप में एक std :: string है और मैं केवल मेरे फ़ंक्शन में कदम रखना चाहता हूं, तो मैं पहले STL स्ट्रिंग कोड में गिरता हूं लेकिन मुझे लगता है कि मैं कभी भी मेरी बग एसईएल हेडर फाइलों में नहीं खोजूँगा और इसलिए मैं वीएस को इन फ़ाइलों को पूरी तरह से अनदेखा करना चाहता हूं। क्या ऐसा करने का कोई तरीका है? इससे बहुत से Shift-F11 + F11 कीस्ट्रोक बचाएगा I : -) थॉमस जहां तक ​​मुझे पता है कि कोई समाधान नहीं है हेडर फाइल को छोड़ दें आप, हालांकि, उस कोड को परिभाषित कर सकते हैं जो हमेशा से आगे बढ़ेगा देखें:

excel - About creating a massive survey -

I'm looking for devices that will help me create & amp; Analyze surveys I have a list of approximately 8000 questions and the expected answer is a set set (yes, no, can not say). Does Excel / Google Docs allow me the freedom to implement such a requirement in a short time? I have been working through Excel.

c# - How to Insert Data on ServerA that comes from Select Data on ServerB? -

Scenario: I have a development server, which allows me to insert data from my table with ServerB TableA I need to. SERVERA.TableA: serialnumber = empty, partnumber = blank ex: database connection string 1 Select SerialNumber, partnumber from ServerB.TableA where (serialnumber = '1') then database connection string 2 insert in serialnumber, partnumber from SERVERA.TableA: SERVERA.TableA: serialnumber = 1, Partnumber = 2 If you are using SQL Server, you can use the facility to provide convenience, you 'd be able to execute the following code on ServerB: INSERT [dbo]. [Table] (Serial Number, Part Number) Select Serial Number, Partnumber FAR [Server A]. [Database Name ServerA] [DBO]. [Table] Where serial number = '1' If you can not use linked servers, or it needs to be done in code, it is also quite simple: connection query.Open (); Var query = "Selection serial number, Partnumber FDR [DBO]. [Table AA] where serial number = (Var ...

Aggregate child table values in Birt -

I have it Birt report, which I inherited from another developer, including a child table in the master table For each line in the master table, the child lists the table items related to the current master line item. Two tables are fed from different data sets, the child table dataset takes parameters that point to a master item in bringing the baby items. Now, I have to add a total sum to the lower part of the master table, the total child needs to do a certain area of ​​the field (for all the master items) showing. Consider When, for example, the following data: MasterItem1 ChildItem1 SomeValue ChildItem2 SomeValue ChildItem3 SomeValue MasterItem2 ChildItem1 SomeValue ChildItem2 SomeValue ChildItem3 SomeValue -------- - ---------------------- Total (Why was not it done with the group instead? Small Answer These are actually two in each master row child tables with different numbers and types of fields, so not searched this way to meet with the previous developer pro...

echo - Comparing GWT vs Echo2 -

I currently propose to do my web portal using GWT, however, I have researched that its nearest rivals Echo2 But what is the difference between them? I got the article "" Hope this will be helpful for you. But in my opinion, GWT will be a better choice, then Echo2GWT is more popular so you have more possibilities to get a suppot from the GWT community.

c - Linken list in Visual Studio 2010 problems -

#include & lt; stdio.h & gt; # शामिल करें & lt; stdlib.h & gt; Typedef संरचना नोड {int मूल्य; संरचना नोड * अगला; } LLIST; LLIST * list_add (लिस्ट ** पी, इंट आई) {if (p == NULL) वापसी नल; LLIST * पहले = मॉलोक (आकारओफ़ (एलआईएलआईएसटी)); अगर (प्रथम == नल) वापसी नल; प्रथम-> मान = * पहले; * P = पहले; प्रथम-> मान = i; } Int main (int argc, char ** argv) {int i = 0; LLIST * पहले = नल; List_add (और पहले, 0); वापसी (EXIT_SUCCESS); } मुझे त्रुटि दे रहा है जैसे IntelliSense: प्रकार "शून्य *" का मान "एलआईएलआईटी *" प्रकार के एक इकाई को प्रारंभ करने के लिए इस्तेमाल नहीं किया जा सकता सूची_एण्ड में malloc लाइन पर आप मेरी मदद कर सकते हैं ??? जब मैं कोड टाइप कर रहा हूँ कोई त्रुटि प्रदर्शित नहीं हो रही है intellisense मुझे नोड कोड बनाने में मदद कर रहा है ... लेकिन जब यह इस संकलन को संकलित ... क्या आप इसे ठीक करने के लिए मेरी मदद कर सकते हैं? क्या आप इसे सी कोड के रूप में संकलित कर रहे हैं? सी ++ में शून्य से * अन्य पॉइंटर प्रकारों में कोई रूपांत...

c++ - QT and SQLITE problem during building -

I am developing a simple application to use sqlite, the problem is that the following code / * ... * / QSqlDatabase.db = QSqlDatabase :: addDatabase ("QSQLITE"); Db.setDatabaseName ("hellogoodbye"); If {QMessageBox :: key (0, qApp-> tr ( "Impossibile aprire Il database"), qApp-> tr ( "non-job stato possible aprire Il" "database"), QMessageBox (db.open ()!): : Cancel);} me: C: \ Qt \ 2010.04 \ August to build desktop /../ August / main. CC: 17: `_imp___ZN12QSqlDatabase17defaultConnectionE the undefined reference 'C: \ Qt \ 2010.04 \ August manufacture desktop /../ August / main.cc: 17:` _imp___ZN12QSqlDatabase11addDatabaseERK7QStringS2_ undefined reference': \ Qt \ 2010.04 \ August create C Desktop /../ August / main.cc: 17: `_im P___ZN12QSqlDatabaseD1Ev is undefined reference 'C: \ QT \ 2010.04 \ August-creation desktop /../ August / main.cc: 18: `_imp___ZN12QSqlDatabase15setDatabaseNameERK7QString is unde...

Comparing two Hexadecimal values in C++ -

I want to have two hexadecimal (stored in the long run) my code is Long continuous = 80040e14; If (continuously == 80040e14) COT & lt; & Lt; "Success" & lt; & Lt; Endl; And cout & lt; & Lt; "Fail !!" & Lt; & Lt; Endl; This code flow always comes back to any other part in control, can anyone suggest how to compare. Thanks Santhosha K Prefix with '0x'. Your constant only 'e' will treat the number of compiler form and the number: NN Nei uses the '0x' prefix as a scientific notation to tell the compiler that the following characters are in hexadecimal notation. In your code, 80040e14 is 8004000000000000000 which is too big to fit 32bit value, but may fit in 64 bit value. But, 80040e14 is a floating point number, so the comparison varies in the long run to float, making it continuous in the same type of form and hence due to the complications of the floating point code two values ​​will be dif...