Posts

Showing posts from May, 2010

jquery - Slide two divs at the same time using Foundation's Orbit content slider -

Image
मुझे एंटेट / स्लाइड की जरूरत है एक पोर्टफोलियो पृष्ठ पर (संलग्न छवि के अनुसार, लैपटॉप और फोन दोनों पर स्क्रीनशॉट के अनुसार) एक साथ जब तीरों पर क्लिक किया जाता है मैं सामान्य रूप से समझ सकता / बदल सकता हूं जेएस प्लगइन्स बदल सकता हूं और HTML / CSS के साथ बहुत कुशल हूं। किसी भी अनुशंसित प्लगइन्स या विशिष्ट जेएस कोड लिखने के बिना ऐसा करने के तरीके? पीएस मैं ज़बर से फाउंडेशन ढांचे का उपयोग कर रहा हूं जिसमें 'ऑर्बिट' स्लाइडर प्लगइन बनाया गया है, यह सुनिश्चित नहीं है कि यह पर्याप्त रूप से अनुकूलन योग्य है ऐसा करने का कोई आउट-द-बॉक्स तरीका नहीं है, लेकिन आप यह कर सकते हैं चारों ओर हैक कहें कि आपके पास निम्न कक्षाएं हैं: & lt; div class = "row" & gt; & Lt; div वर्ग = "बड़े -8 स्तंभ" & gt; & Lt; ul डेटा-ऑर्बिट आईडी = "स्लाइडर 1" & gt; & Lt; li & gt; & Lt; img src = "http://placehold.it/800x350&text=slide 1" / & gt; & Lt; / li & gt; & Lt; li & gt; & Lt; img src = "ht...

android - What is the best practise to use with default drawables? -

डिफॉल्ट ड्रॉएबल के लिए एक विशिष्ट फोल्डर ("स्कैन योग्य" नहीं स्क्रीन आकार एक्सटेंशन के साथ) अधिक सहज और आत्म व्याख्यात्मक होगा, जिससे फ़ाइलों को ढूंढना आसान है लेकिन क्या यह क्रम में तार्किक त्रुटियों का कारण होगा? सम्मेलन क्या है? क्या अधिकांश डेवलपर्स स्क्रीन-साइज-विशिष्ट फ़ोल्डरों में से एक में डिफॉल्ट डिज़ायर डालते हैं (और यदि ऐसा है, तो कौन सा?) या अधिकांश डेवलपर्स एक गैर-विशिष्ट "ड्रॉएबल" फ़ोल्डर बनाते हैं? यह समस्याएं पैदा नहीं करता है एंड्रॉइड पहले "ड्रॉएबल" फ़ोल्डर में दिखता है, और फिर ओवरराइड के रूप में किसी अन्य फ़ोल्डर को दिखता है।

How to dynamically create a class and instantiate it in Java? -

I'm quite new in Java and I'm coming to C ++ from the background. I am working with a class that must be expanded before the protected manufacturer. I need class only in one instance. Is there any way I can dynamically create a class and at the same time can I install? I have received similar terms, but not marking Mark I have the following code as an example, but of course this syntax is incorrect. last ffd.tokens.CountryTokens cToken = new class USA ffd.tokens.CountryTokens {USA (String value) {super (value); }} ("America"); something like that? last ffd token. CountryToken cToken = new ffd.tokens.ountryTokens ("someValue") {// some override}; Correction: You can also create a builder in protected ways, which will increase ffd.tokens.CountryTokens (Very strange?) Public abstract class countrybuilder ffd.tokens.CountryTokens {Public Contributor () {super ("useless-data") extends; } Public essence ffd.tokens.CountryToken...

How to read contacts on Android 2.0 -

I am working on Android 2.0 and am trying to get a list of all the contacts. android.provider.Contacts.People has been deleted, I have to use android.provider.ContactsContract , but I think it Can not find a proper example of how to use (for example: retrieve a list of all contacts on the Phonebook.) Anyone know where such an example is ? First of all, make sure you have added & amp; ; Usage-permission Android: name = "android.permission.READ_CONTACTS" /> In your AndroidManifest.xml file, you can loop through your phone contacts like this. cursor cursor = getContentResolver () query (ContactsContract contact.contENT_URI, empty, empty, empty, empty); While (cursor.movetext ()) {string contactID = cursor.gate string (cursor.gate column index (contact contact ._id)); String isphone = cursor.get string (cursor.zstallmandindex (contactCact.CommunicationsHAS_PHONE_NUMBER)); If (Boolean.parseBoolean (hasPhone)) // // You know this is now a number so c...

git - What do I have to push to github to update my octopress blog? -

I have just created a blog hosted on Zithub. Now I have adapted something locally on my machine and now Would like to take them to Gitanbu. The octopus in the documentation () says that you have to make the content generated in the master branch. Call me dumb, but I do not get it. what I have to do? My source code or my _deploy folder in my code? You need to push the content of public Unless you explicitly do nothing to copy data from public to _deploy , _deploy . You can simplify this once and after rake deploy . By using the rack task deployed setup_github_pages via

matlab - find exact numbers of true postive in weka -

In WEKA, I can easily find the corrupt matrix TP rate and total truth classified examples I, but no precise view The way is the number of TP and / or TN? And do you know any way to find these values ​​in matlab-anfis? Since you mention MATLAB, I'm assuming that you are programming Vrka Library Are using to create classifier. In that case, you can evaluate the class using the model, which provides all types of statistics. an example Let's say you already have a weka.jar file on the Java class path (see javaaddpath View function), MATLAB here Is: % # data fname = 'C: \ program files \ weka-3-7 \ data \ iris.arff'; Loader = weka.core.converters.ArffLoader (); Loader.setFile (java.io.file (fName)); Data = loadergatedataSet (); Data.setClassIndex (data.numAttributes () - 1); % # Classifier Classifier = weka.classifiers.trees.J48 (); Classifier.setOptions (weka.core.Utils.splitOptions ('- 0.25-m2')); Classifier.buildClassifier (data); % # Evaluati...

fluent nhibernate - Losing the record ID -

I have a record structure where I have parental record with many children's records. On the same page, There will be some questions to get. One subsequent query will get me a detailed set, when I increase it, it shows "proxy". It is all right to get data from the record because everything is usually done. I only have a problem when I go to get the record "id", it always is "0" because it is a proxy, making it a lot difficult when creating a dropdown list, where I have a "selected value" Using record id What makes this bad is it's random. Therefore, out of the 5 items list, 2 will have an ID of "0" because they are a proxy. I can force the use of eviction to be loaded on time. But when I need lazy load (for grid), the eviction is bad, because it kills lazy loads and I can not show grid content on the fly. I started using the following to start my session: Issension session = Fluent session manager. Session Fact. Open...

ios - Is it better to observe properties or override setters? -

मान लें कि हमारे पास यह CustomButton इंटरफ़ेस है: @ इंटरफ़ेस कस्टमबटन: UIButton @property (nonatomic, असाइन करें) CGFloat minWidth; @end हर बार minWidth बदल जाता है, हम फिर से हमारा CustomButton लेआउट करना चाहते हैं जहां तक ​​मुझे पता है, हमारे पास दो समाधान हैं: संपत्ति के मान को देखकर // इन-इनिटविथफ्रेम: [स्वयं addObserver: स्वयं केकेपैथ: @ "मिनेविड्थ" विकल्प: 0 संदर्भ: शून्य]; // इन-प्रेस्व्हरएवल्यूफॉरेपाथ: ऑफ ऑब्जेक्ट: परिवर्तन: प्रसंग: [स्व सेटनेड्स लेआउट]; ओवरराइडिंग minWidth के सेटर // इन -सेटमिनविड्थ: _minWidth = minWidth; // साइड नोट: यह एक एआरसी परियोजना है [आत्म सेटनैड्स लेआउट]; कौन सा समुचित समाधान है और क्यों? मैं 1: साइड इफेक्ट बदल सकते हैं जब तक आपको स्पष्ट रूप से जरूरत नहीं है या पक्ष-प्रभाव की आवश्यकता है, कम से कम का पथ प्रतिरोध (या इस मामले में ओवरहेड) सेटर को ओवरराइड करना है। केवीओ में केवल दी गई संपत्ति के लिए बंधन शामिल नहीं है, लेकिन यह धारणा है कि प्रेक्षक बाध्यकारी अवधि के दौरान जीवित रहेगा। मुझे भी शुरू करने क...

c# - losing session variable on popup -

When I try to open a popup from a hyperlink, I'm losing data stored in session session. and asp: hyperlink id = "hyperlink 1" runat = "server" target = "_ blank" navigate = '& lt;% #' '/ / viewer / description description.aspx? Id = "+ Evil (" ID ") +" & QueryID = "+ Request .QueryString [" QueryID "]%> 'Text = "view" /> The session variable in the code above is cleared in IE, the version I am using is 8. Any help would be appreciated. I'm not sure that IE8 has organized a session in a new window. To check, try opening a hyperlink in the same window (exclude target = "_ blank" ). Either way, I recommend that it is stored in a cookie or passes it with query string if it is not sensitive data

c++ - Simplest way to initialize multiple related const properties in a constructor? -

When the many cost properties of a C ++ class depend on some intermediate calculations, the simplest way to get them started What is it? For example, how can I correct the constructor for the class given below? class MyClass {public: const int a; Const int b; MyClass () {int relatedVariable = rand ()% 250; A = related wearable% 100; B = ABS (related weenble - 150); }}; With C ++, you can simply use a delegate: class MyClass {public: const int a; Const int b; Private: Michelle (Intimate related Weaponal): One (related variable% 100), B (ABS (related weenable - 150)) Public: MylCass (): MylCass (rand (%) 250} {}};

ios - Fetch request template - fetch all objects -

Image
I'm starting with fetch request templates, so I'll do my best to explain. I have created a fetch request template: and trying to print all the items in a method below: - (zero) printofflineactivities {EntityManager * entityManager = [[EntityManager alloc] init]; ActivityFetcher * Activity Fetcher = [[Activity Alloc] initWithEntityManager: entityManager]; Activity * activity = [activityfatter activitiesofline: [nsnumber number whitabulls: yes]]; NSLog (@ "print ..% @", activity.name); } The Kodoflain activities - (activity *) Gtividhionoflain: (Ansanmber *) offline {Ansdineshn * Variables = [Ansdisd Square dictionary with object : Offline Offline: OfflineTemplatePlaceholder]; NSFetchRequest * Request = [entityManager fetchRequestFromTemplateWithName: ActivityOfflineReplacementWeb: variable]; Activity * activity = [entityManager entityForFetchRequest: request]; Return activity; } But it only prints the final value. I'm not sure how to print all ...

entity framework 5 - EF5 and Ado.Net -

I have an existing code that uses Ado.Net and I'm trying to integrate some new code Which uses the Entity Framework 5. For the concept as a proof, I wanted to try a transacted operation with both ado.net and EF5. I tried to use the transaction skip but as I was using "two connections", I got an error about the promotion of the transaction and DTC is available. Can I use the same connection to Edonate and EF5 to avoid the above problem? If so, any code example .... Any other suggestion appreciated. BTW, I am using the EF5 database first. Thanks for advance help. Regards, Travis Yes, but only if you have a distributed transaction Coordinator (DTC) configured DTC transaction is very slow with local transactions. This can help: Another option is to obtain the EntityConnection object and obtain SqlConnection and use it in your ADO. Net command, but you have to be careful about it because if the inserted unit is settled, the connection can be closed. ...

javascript - How to get 4 vertex coordinates from gmaps RECTANGLE ( Overlay)? -

कैसे जीएमएक्स RECTANGLE (ओवरले) से 4 शीर्ष निर्देशांक प्राप्त करें? मैं केवल ईई ई MySQL php फ़ंक्शंस में पोस्ट प्रक्रिया जांच करने के लिए मुझे 4 शीर्ष की आयत की आवश्यकता है। नॉर्थवेस्ट = उत्तरएस्ट लाट, साउथवेस्ट एलएनजी दक्षिणईस्ट = दक्षिणवेस्ट लाट, नॉर्थईस्ट एलएनजी var सीमाएं = आयत। गठबंधन (); Var NE = bounds.getNorthEast (); Var SW = bounds.getSouthWest (); // उत्तर पश्चिम var एनडब्ल्यू = नया google.maps.LatLng (NE.lat (), SW.lng ()); // दक्षिण पूर्व var एसई = नया google.maps.LatLng (SW.lat), NE.lng ()); कोड स्निपेट: var जिओकोडर; Var नक्शा; फ़ंक्शन इनिशियलाइज़ () {var नक्शा = नया google.maps.Map (document.getElementById ("map_canvas"), {center: new google.maps.LatLng (37.4419, -122.1419), ज़ूम: 13, मैप टाइप-आईड: google.maps MapTypeId.ROADMAP}); Google.maps.event.addListenerOnce (नक्शा, 'bounds_changed', फ़ंक्शन) {var आयत = नया google.maps.Rectangle ({bounds: map.getBounds ()}) var bounds = rectangle.getBounds (); var NE = Bounds.getNo...

ios - Undefined declaration error -

I'm trying to develop an iPhone app that gives current latitude and longitude values ​​and "undefined announcement" Please help me sort it out. thank you in advanced. #import "LoginViewController.h" // # import & lt; Core location / Core location. & Gt; @ Interface log in viator controller () @ app @implementation log in VIPU controller @ sinescase locator; - (zero) DLok {// [Super Delooc]; } - (zero) did risiv memorialisation [[super daviditamammy warning]; // Any resource settlement which can be reproduced. } - (zero) viewDidUutup {[SuperWooddownload]; // Setup an additional after loading the view, usually from a nibb. } - (IBAction) button: (ID) sender {locationManager = [[CLLocationManager alloc] init]; LocationManager.delegate = self; LocationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; LocationManager.distanceFilter = kCLDistanceFilterNone; [LocationManager startUpdatingLocation]; CLLocation * location = [locationManager locat...

iphone - Batching OpenGL sprites -

I am learning OpenGL and am able to create a successful 2D drawing system using triangle strips. I wrote a particle generator to test the geometry batching and everything works well, I am able to present 30k + corner at 60 fps on an iPhone 5. I use the defective triangle to add particles and pull them in at a time. What am I trying to do? Batch rendering without the use of the delisting triangle, because the amount of data sent for 1/3 of the amount in the GPU will be reduced which will be large. I am trying to use glDrawElements to draw 2 demons with the following code with triangle // class (2D) GLfloat class Shorts for [] = {50, 50, // bottom left 100, 50, // bottom right 50, 100, // top 100, 100, top top 150, 200, // bottom left 200, 150, // Bottom right 150, 200, // top 200, 200 / top right}; // Texture Cores GL Float Tax [] = {0,0, 1,0,0,1,1,1,1,0,0,0,0,0, 0,1, 1,1}; GLubyte index [] = {0,2,3, 0,3,1, 0,2,3, 0,3,1}; // actual drawing code glBindBuffer (GL_ARRAY_BUFFER, 0)...

Reading in characters and creating array c++ -

How to go about reading in a row of characters from a file. The first program reads in an integer from the file. This number indicates how many letters to be read in the next step. Reads the next letter and stores them in an array. So how do I create the 'char' variable, so that I can read Michael's characters correctly to display in the array. file.txt: 8 Michael im inputfile & gt; & Gt; Integer, from there, I need an integer to make four mikes [integer] of this array; Then, in the head, in the head To answer your question: #include & lt; Fstream & gt; using namespace std; Int main () {ifstream f ("file.txt"); Int n; F & gt; & Gt; N; Char chs = new four [N]; For (Int i = 0; I & lt; n; ++ i) F & gt; & Gt; Chs [i]; // chs delete [] Do something about chs; } But, I go along (if your Michael appears on your line): #include & Lt; Fstream & gt; #include & lt; String & gt; using namespace std;...

oop - Selective exposure of methods and variables of one class to another in Python | (interfaces?) -

I'm trying to create a simple robot simulation that runs in 2-D world using PagMem. The obstacles in the world are the only contact sensors in the robot, so it can only understand a few if it is linked to the boundaries of the world or its obstacles. Therefore, the detection of conflict is of utmost importance here. I have two major classes World and Robot. World class contains information about the geometry of the world and includes a list of obstacles in it. Robot class contains information about robot geometry and it The current situation in the world is. I believe, (but I'm not sure) that the robot should be involved in the world level because it is part of the world. Robots have their own way of displaying and moving, which changes their position in the world. But to find out the confrontation, I have knowledge of the world like its limitations and a list of obstacles. Now, I could have used my simple simulation by making a world class example a member of the robot...

c# - Is it possible to get the properties and associated attributes of an object? -

itemprop = "text"> This is possible to obtain properties and their associated properties as a collection or asset set is? The properties of the object that I see are the properties for use in JSON.NET, and I want to know what they are all about. Later, I will try to find out who are not weak of them Here is a sample object:. [JSONObject] Public category terms {[JsonProperty ("opened_since")] Public Date Time? Set set; } [Jasonproperty ("Added")] Public Date Time? Added {get; Set; } [Jasonproperty ("Open_Intil")] Public Datetime? Unless {open; Set; } [Jasonproporty ("archived_form")] Public Date Time? Receive {until the interval; Set; } "itemprop =" text "> After this it will give you all the attributes, values ​​of their properties and logic for the characteristics of PropertyInfo [] Theater content = obj.GetType () GetProperties (BindingFlags.Public | BindingFlags.Instance); Foreign Currency (...

get image from folder outside yii -

संपादित करें मेरा htdocs / myprojectyii फ़ोल्डर सी ड्राइव में है, तो क्या मुझे E ड्राइव में फ़ोल्डर से छवि मिल सकती है? मैं इस पर मेरी कोडिंग को संपादित करता हूं & lt;? Php $ path = 'file: /// E: /image/myimage.jpg'? & Gt; & Lt; img src = "& lt;? Php ईको $ पथ? & Gt;" चौड़ाई = "100" ऊंचाई = "100" / & gt; अगर मैं src छवि (फायरबग) पर पथ क्लिक करता हूं, तो पथ सही है (यह छवि प्रदर्शित करता है) परन्तु mypage में, चित्र प्रदर्शित नहीं किया जाता सबसे पहले आपको फ़ाइल की कोशिश करनी चाहिए: /// E: /images/myimage.jpg केवल ई: /image/myimage.jpg के बजाय। दूसरा यह काम नहीं करेगा: डी क्योंकि।

java - Facebook DIV not rendering on page -

I have this script which I placed at the top of the GWT nocache.js & Lt; Top & gt; & Lt; Script type = "text / javascript" language = "javascript" & gt; (Function (D, S, ID) {var js, fjs = d.getElementsByTagName (s) [0]; if (d.getElementById (id)) returns; JS = D.Socket element (s); js.id = Id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore (js, fjs);} (document, 'script', 'facebook-jsddk' )); & Lt; / Script & gt; & Lt; Script type = "text / javascript" language = "javascript" src = "app / app.nocache.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "fb-root" & gt; & Lt; / Div & gt; & Lt; Div id = "rootPanel" & gt; & Lt; / Div & gt; & Lt; / Body & gt; And on one of my pages on the page (which I am URIUIUI) this is ad...

c# - Getting a single result from a LINQ statement -

मेरे पास निम्न कोड का कोड है: निजी शून्य selectRowData (int wire, int बांड, स्ट्रिंग svid) {var results = myRow से PPLoadedData.AsEnumerable () में जहां myRow.Field & lt; Int32 & gt; ("Wires.OperationOrder") == तार & amp; MyRow.Field & lt; Int32 & gt; ("बॉन्ड। ऑपरेशन ऑर्डर") == मेरीरो [svid] का चयन करें; } मैं देख सकता हूं कि जब मैं डिबग करता हूं तो मेरे परिणामों में मेरी एकल स्ट्रिंग आइटम अपेक्षित होगा। हालांकि मैं किसी भी तरह से जान सकता हूं कि मैं किसी भी तरह से डेटा को इंडेक्स या फिर से दोहरा सकता हूं। जो मैं देख रहा हूं वह कुछ है जहां मैं डेटा एक्सेस कर सकता हूं। यहां बताया गया है कि डीबगर कहां है: नाम: (नया सिस्टम.लिंक। सिस्टर्म्सकोर्यूनेबलडेब्यूब दृश्य (परिणाम)) आइटम [0] मान : 700.0 प्रकार: ऑब्जेक्ट {डबल} PPLoadedData एक DataTable है। अग्रिम धन्यवाद। यदि आप क्वेरी को एक ही आइटम में परिणाम की उम्मीद करते हैं, तो आपको उपयोग करना चाहिए जैसा कि सिंगलऑरा डीफॉल्ट विधि ऐसा है: var परिणाम = (MyRow से PPLoade...

How to alter powershell command line for mongodb export into a Powershell script (for scheduled task purposes) -

I'm not a code, but rather trying to help my development work, so that I do myself a simple job With the help of a Windows scheduled task to export the components of our Mengodeb through one powerhelf, and some litigation and error (as well as a little help from troubleshooting of friends), I write some power-shield command lines Right in I am able to export the relevant mosaic archives that were manually executed inside the Powershield: cd c: \ mongobinlocation. \ Mongoexport - db db --collection Collection 1 --jsonArray --out "\\ server \ archivelocation \ collection1.json". \ Mongoexport - DB DB - Collection Collection 2 - JasonRay - Out "\\ server \ archivelocation \ collection2.json". \ Mongoexport - db db --collection Collection 3 - Jason Array - Out "\\ server \ archivelocation \ collection3.json" However, I then scheduled a script to run the script in PowerShell Setting up the task to set up (using instructions here) and I realized th...

html - Seeing CSS margins for debugging -

I use the following CSS styles to debug where the settings of my div and span (usually commenting on it) : div {outline: 1px dashed blue} Duration {outline: 1 px dashed green} While it shows the outer boundary of divs and spans And padding gives the idea of ​​a relative inside the object / text, it does not help visualize, where The margins handed style. I understand the difference between padding and margin, but I should be able to see the visual effects on page creation (too much detail, very little attention period). Is there an external form to show the rectangle where the margins are for a style? I do not have any attributes in the form of a margin outside range which is the purpose of a margin Is against Although this was a great technique in early web development, but for a few minutes to familiarize myself with installing firebug or Chrome's developer tools, or "inspection" features of Safari, etc. Can not strongly recommend strongly. Get more d...

iphone - what is the maximum value that can be assigned to rununtildate for runloop? -

I'm trying to run this runloop forever (if not always at least for one day) I Runloop [self.runLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 100000]] using the following function; The problem is that the app crashes after 3 hours.Can someone help me? If you want to run it continuously (and assuming you have timer and / or input sources attached ), Then you [self. Ron Loop Run]; If you want to be with your current build, you can use it: [self.runLoop runUntilDate: [NSDate distantFuture] ]; I have seen that the applet uses the following pattern (for example listing of 3-14; I have also seen the NSOperation objects when it is a Asynchronous operation which they want to wait to complete): // Run the talk run loop process [[[Run NSRON loop] RunMode: NSDFaultRon date before loop mode : [NSDT remote futures]]; } whereas ( ... ); // Wherever you have a condition, you want to check for

jquery - stop all jwplayers -

$ ('। गैलरी li: नहीं (। वर्तमान) a')। क्लिक करें (फ़ंक्शन () {jwplayer ()।रुकें(); }); ... काम करता है, लेकिन केवल एक खिलाड़ी के लिए, यदि अलग-अलग टैब में कई खिलाड़ी चल रहे हैं, तो ये उन सभी को नहीं रोकेंगे मैं सभी चलने वाले खिलाड़ियों को कैसे रोकूं? यह पोस्ट आपकी समस्या का समाधान कर सकता है :

windows 7 - Checking user account settings in C# -

Image
To see the status of the user account control settings, see # /. Code>. Specifically, I want to know that it is set to for any one neverify I do not want to change the settings, but I would like to know what they are. I'm not sure you can do this. What you can do to create and embed a manifest In Windows Vista®®, the right way to mark your application is to embed an app manifest in your program that is operating Tells the system what the application is needed. In the Windows Vista release, there are provision to allow non-manifest or unsigned code to run with full administrative access tokens. Please see the post. From my experiences, it is not only for Vista, but also for Win7, Win2008. We tried to play clearly, and it works. In addition, it may also help you: To run such an order to appear in the exe: mt.exe-manifest "C: \ path \ to \ ypur \ manifest \ My.manifest" -outputresource: "path \ to \ your \ exefile \ my.exe...

php - TRIGGER CREATED successfully , but no triggers in information_schema TRIGGERS table -

Image
Hi, I'm trying to use the trigger, my MySQL version is 5.5.8 This is when I'm creating a trigger, PHPMadmin says it has been created successfully, This is my trigger DELIMITER $$ INSTORE before the 'triggers' check_pipil_apaign' for every line, if it starts at `pupil_data`, CHAR_LENGTH (new.Defferth) & lt; 4 THEN SIGNAL SQLSTATE '12345' SET MESSAGE_TEXT: = 'Check interruption on pupil_data. Debtoffbirth failed '; end if; END $$ DELIMITER; It says that your SQL query has been executed successfully DELIMITER create $$ trigger 'check_pipil' before leaving 'for each line' Before signing the pupil_data`, CHAR_LENGTH (New. Datfurth) & lt; 4 THEN signal SQLSTATE '12345' SET MESSAGE_TEXT: = 'Check interruption on pupil_data. Debt failure failed '; end if ; But when I select from info_schema.triggers * MySQL returned an empty result set (i.e. zero lines). (Query took 0.0843 seconds) SELECT * inf...

c# - fixing the gridview column width not working. -

I have the following code I set "150px" for width = footerstyle, rowstyle and headerstyle Code & lt; Strong & gt; Title & lt; / Strong> & Lt; Br / & gt; & Lt; Asp: GridView ID = "socGridView" runat = "server" CaptionAlign = "top" HorizontalAlign = "justify" DataKeyNames = "id" onselectedindexchanged = "socGridView_SelectedIndexChanged" tooltip = "Excel file download tool" CellPadding = "4" ForeColor = " # 333333 "Gridline =" none "& gt; & Lt; RowStyle width = "150px" BackColor = "# E3EAEB" /> & Lt; Columns & gt; & Lt; Asp: CommandField ShowSelectButton = "True" SelectText = "Download" ControlStyle-ForeColor = "Blue" /> & Lt; / Column & gt; & Lt; FooterStyle width = "150px" BackColor = "# 1C5E55" font-bold = "true" ForeColo...

c# - How to retrieve data from node in XtraTreeList.TreeList? -

I am using XtraTreeList.TreeList to display hierarchical data. The data is stored in my custom business objects, which implement DevExpress.XtraTreeList.TreeList.IVirtualTreeListData. While the column "name" of the data is usually displayed on, retirieved by the following code: (DevExpress.XtraTreeList.VirtualTreeGetCellValueInfo information public void VirtualTreeGetCellValue) {if (info .column.FieldName == "name") info.CellData = root.providers [ProvGroup.Key] ;; If (info.Column.FieldName == "imageindex") info.CellData = imageIndex; } I have met difficulties in providing a suitable image index for nodes. To keep it just, I do not know how to provide it. I Trolist have tried to set the ImageIndexFieldName List "Imejindaks" and custom Drayod image impression is to be managed in this way: void Boundtrycostdroud Images (object sender, Devakspres.akstatryelaist. CustomRediodSizeSewgentargesE) {E. State Image = E. State Image Index =...

console - How to write binary data into stdout in Delphi? -

How do I write from the Delphi console application to stdout? Here's what I've tried I've processed this simple test app as infos, I can read a file from the disk and can output it to the stdout console: Program console auto; {$ APPTYPE CONSOLE} uses classes, Windows, SUUSUtils; Var S: TMemoryStream; OutputStream: Thandalstream; SS: string; Buffer: pibet; I: integer; Start S: = TMemoryStream.Create; S.LoadFromFile ('1.jpg'); s. Shake (0, Sophrambegging); // Am I right that the output stream will now be written to stdout? OutputStream: = Thunderstream. Create (GetStdHandle (STD_OUTPUT_HANDLE)); GetMem (Buffer, S. Size); Eseridbuffer (buffer, S. size); I: = Outputstream. Write (buffer ^, S. size); // i = 0 here for some reasons (buffer, s. Size); Written (I, 'Byte Written on Output'); Readln (SS); // Do not leave the app to read the previous line S.Free; End. But for some reason it fails, can you direct me to write standout? Your approach is s...

Image Preprocessing before OCR process -

) और यह 'अच्छा है कि ऐसा नहीं है मूल छवि फ़ाइलें पुराने समाचार पत्र हैं, मूल रूप से, और कुछ पृष्ठभूमि शोर हैं, मुझे यकीन है कि टेसरेक्ट के साथ समस्या है। इसलिए मैं कुछ छवि प्रीप्रोसेसिंग को इसे टेसरेक्ट में खिलाने से पहले उपयोग करने का प्रयास कर रहा हूं। क्या ओपन सोर्स इमेज प्रीप्रोसेसिंग इंजिन के लिए कोई सुझाव है जो इस स्थिति को अच्छी तरह से फिट बैठता है ??? और इसका इस्तेमाल करने के निर्देशों को और भी सराहा जाएगा! मैंने कभी नहीं सुना " छवि प्रसंस्करण इंजन "उस उद्देश्य के लिए, लेकिन आप (ओपन सोर्स कंप्यूटर विजन लाइब्रेरी) पर एक नज़र डाल सकते हैं और अपना स्वयं का" प्री-प्रोसेसिंग इंजन "लागू कर सकते हैं। ओपनसीवी एक कंप्यूटर दृष्टि पुस्तकालय है जो इमेज प्रोसेसिंग करने के लिए कई विशेषताएं प्रदान करता है। एक दिलचस्प चीज जिसे आप प्रीप्रोसेटिंग स्टेप के रूप में परीक्षण कर सकते हैं, शोर और सामान को हटाने के लिए छवि में थ्रेसहोल्ड लागू होते हैं वैसे भी, मैंने इस तरह की चीजों के बारे में से बात की है।

Can any one tell me how to schedule the exporting of salesforce report in csv format -

I have a sales force report and what do I want to do is schedule this report in CSV format on a daily basis so that Users match with this attachment. You can schedule a report using the following code Global Class Exporter implements CSV system. Schedulable {Global Zero Execution (Scheduled Consultancy SC) {List & lt; Merchandise § & gt; Click here = [ID, name, date created, last modified date from merchandise_cc limit] 10]; String header = 'record id, name, date created, modified date \ n'; String finalstr = header; (Merchandisex a: access) {string recordString = a.id + ',' + a.Name + ',' + a.CreatedDate + ',' + a.LastModifiedDate + '\ n'; Finalist = Finalist + RecordString; } Messaging Email File Attachment csvAttc = New Messaging EmailFileAttachment (); Blob csvBlob = Blob.valueOf (finalstr); String csvname = 'Invoice.csv'; CsvAttc.setFileName (csvname); CsvAttc.setBody (csvBlob); Messaging.Synlemail Message Email =...

Design patterns: exception / error handling -

Is there a resource (web or book) in which handling exception handling / error designing patterns? How to write clean code there are a lot of literature, and there are many books covering design patterns, however, I've never seen any design patterns in which errors are better and most How best can be controlled and how best to show an error at the level of abstraction in a lower-level function. These patterns and best practices are often bound for a specific platform / language, so they Looking first. A common pattern is resource. Check the following link for Java as an example: Going through such materials will give you a general idea to follow in ways to deal with the exception. Also check other questions:

Jquery validation for a custom form -

In a webpage, I am using a form that displays an upload file input or text input based on the current tab selection. Does. Since I am using the same form for both tabs, the validation of jQuery is failing. I am using both text input and fileinput for verification, but if the form has text input and no reports, then this file has not been submitted. I think because after submitting it, the verifier is also looking for the report that does not exist Ex: Rules: {"textInput": "Required "," Report file ": {required:" true ", accept:" pdf "}}, I can see what you are talking about, " Similar for both tabs " , etc., because you want us to show any part of that code Have failed Where is the HTML for the form, at least? However, It works perfectly well on a form of these two areas ... Rules: {"textInput" : "Required", "Report file": {Required: true, // & lt; - Remove the quotatio...

html - get data from select option field and set comma separate format using Jquery -

Image
I have a table with the selection list box. My requirement is when I hit the submit button, Get the data and display the price with a different format than a comma. Here I have attached the image file for your reference. In this case I have suppressed the button Data to { d: D, SDF: SDF, D: D }. Demo page: Note: I have added the button to another page This is a method to do this: $ ("# ok"). ("Click", function () {var output = [], $ chooses = $ ("# s select"), i; (I = 0; i Demo: That is, to get the .text () value of the selected options in each, select by twos After loop pair through and insert that pair into an array then after loop array elements are included in the string separated by comma. Note that if you want to display, this code will be simplified in the value property of the element element, because the line will be in the loop: output. Push ($ selects.eq (i) .val () + ":" + $ selects.eq (i ...

c# - Filter Outlook AppointmentItem gives strange result -

मैं [प्रारंभ] : var कैलेंडर = दृष्टिकोण अनुप्रयोग। GETNamespace ("MAPI")। GetDefaultFolder (OlDefaultFolders.olFolderCalendar); अगर (कैलेंडर == नल || कैलेंडर। आईटम == नल) {वापसी नल; } दिनांकटाइम नियुक्ति स्टार्ट = नया दिनांक समय (2013, 03, 25, 10, 0, 0); स्ट्रिंग फ़िल्टर = स्ट्रिंग। फ़ॉर्मेट ("[प्रारंभ]> gt; '{0}' और [प्रारंभ करें] & lt; '{1}' ', नियुक्ति स्टार्ट। अतिरिक्त मीन्यूज़ (-1) .ओस्ट्रिंग (" जी "), नियुक्ति स्टार्ट.एडमिनेट्स ( +1)। टॉस्ट्रिंग ("जी")); Var कैलेंडरआयटम = कैलेंडर.आइटम। रिसर्च (फ़िल्टर); और मेरे पास AppointemtItem में आउटलुक पर 25.03.2013 at 10:00 : 00 । calendar.Items.Respect (फ़िल्टर) के परिणामस्वरूप इस नियुक्ति आईटीएम प्राप्त करने के लिए इंतजार कर रहा हूं; लेकिन मैं 2 Appointmen बनता हूं: सही और 05.04.2012 से एक - 05 अप्रैल से 2012 (2013 नहीं) जो 10:30 से शुरू होता है: 00 और अंत 10:40:00 मुझे समझ में नहीं आ रहा है कि 05.04.2012 10:30:00 - 10:40:00 के साथ क्या करना ...

excel - Sort Combobox VBA -

I was wondering how to sort values ​​in a blanket. I use the combo box when I disable the form because the number of values ​​continuously increases on one sheet. I use the following code to add items: Lastcell = ThisWorkbook Sheet ("1") with the combo box. Range ("F1000000"). End (xlUp) .ow + 1 = 2 i .addItem to finalcell thisWorkbook.Sheets ("1"). Cells (i, 6) Next I end with I would like to add a thought to copy those values ​​in a sheet on which I Comocoks and bring them into a new sheet, it's okay Works, but it does not look like a smart option, which means that I make another sheet and then copy the values ​​and sort them instead of sorting them. My question is, how do anyone directly with the original sheet? I do not know anything of the API, please, only VBA code I am checking on ARDS MSDN but I did not know how to work it. Thanks and if more information is needed, please let me know. PS: I they can not sort directly from th...

i want a error msg that the entry is already there in django forms for a particular field -

I am using model forms. My form contains a code named tagged . If I enter tagged in the tagged field and then I am submitting the form if the entered tagis already exist in the database and It should say "Tag ID already exists" above the Tag ID field, then the form should not be stored in the database. How Can I Do It My Form Class Inventory Items (Model Form): Class Meta: Model = Items My item is getting an area in the table tags so if I am entering existing tagid and if I submit. It should throw up an indication or text or something like "the signal ID already exists" Add it to your form method: def clean_tagid (auto): data = self.cleaned_data ['tagid'] if item.objects.filter (tagid = data) .count (): Increase forms Validation error ("Tagged already exists") Return data

.htaccess - 301 redirect ugly URLs to clean URLs -

Hello I have a problem here I was searching for the solution, but no solution was found on it ... then my HTC file rewrite the code on rewriting% {REQUEST_FILENAME}! -f rewrite% {REQUEST_FILENAME}! -d RectitRule ^ (. +) $ Index.php? Page = $ 1 [QSA] This sends prety URLs like www.example.com/index.php?page=xxx to my URL at www.example. Com / xxx So this works, but the problem is that I can access the same page from those two URLs. That's why it is similar to the same content from Google for different URLs for Google. How do 301 redirects from old links? correct RewriteEngine On line, add it: rewrite% {THE_REQUEST} ^ (get | top | POST) \ /index.php = page = ([^ & amp; \] +) & amp; ; ([^ \] *) Revised Rules ^ /% 2?% 3 [L, R = 301] This checks for the actual request (and request URI) Extends the value of the /index.php and the page parameter, then redirects the browser to the value of the parameter's URI (adding any remaining query string for it)...

liferay - Why any user can edit another user Public page -

I have created 3 users (user test1, test2, test) for testing, but when I have user 1 test 1 Entered and entered the public page of test2, I can edit that page ??? How to disable Config? What do you say with "edit page": If all users have "Administrator" role, they will be able to add portlets on the page This is a public page, so by default all people can access that page. If there is a wiki with a public write permission, then all people will be able to edit that wiki. If users are "friends" - either explicitly or connected to the same organization - they can write on each other wall As You tell in the comments for this reply, only PowerUser or user role is sufficient for one user only for your users: Try to reproduce on a new installation - like you have to download the version (and the latest available) See more Could you do it reproduce. It may be that the permissions for these roles are messy. You can also compare that to what contr...

android - What happens when all activities of an application finishes? -

Scenario: In my Android application I have four activities, A, B, C and D . To maintain global application status, there is a constants.java class in the app that increases the applications class. In the stable class, all the constant variables in the app are the activity flow such as a -> b -> c -> D when the back button is pressed from Activity A, then I call the Finnish () which will end the activity and close the application. After this if I'm opening the app from all apps, then there is a variable in Constants.java , which is the value of the last launch. The same thing is not happening when I System.exit (10) after Process.killProcess (Process.myPid ()) Activity A (pressed back)) . Question: Eliminating all the activities and terminating all the activities will stop the application (its process)? How does the value of a variable remain even as long as all its activities are completed (closed)? Is it appropriate to call system.exit (10) to ...

html - can content attribute of meta element and style attribute contains line breaks? -

क्या निम्न HTML कोड कानूनी है? & lt; मेटा नाम = "कीवर्ड" सामग्री = "Keyword1, keyword2" & gt; और: & lt; div शैली = "रंग: सफेद; पृष्ठभूमि: हरा;" & gt; & lt; / div & gt; निम्न मार्कअप वास्तव में & Lt;! DOCTYPE html & gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; title & gt; asd & lt; / title & gt; & Lt; मेटा नाम = "खोजशब्द" सामग्री = "कीवर्ड 1, कीवर्ड 2" & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; div शैली = "रंग: सफेद; पृष्ठभूमि: हरा;" & gt; & lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; हालांकि मैं इसे करने के खिलाफ सुझाऊंगा। कारणों की वजह से: यह दस्तावेज निकाय को अनावश्यक अक्षर जोड़ रहा है, जिससे वेबपेज के समग्र आकार में वृद्धि हो सकती है। यह खराब अभ्यास है। एचटीएमएल को एक पूरे के रूप में पढ़ने में आसान है अगर टैग एक पंक्ति तक सीमित हैं मेरी राय में यह बहुत अच्छा ...

sql - Row Number for a view where the number is not affected by the where clause -

SQL Server 2008 I have a view with several lines, where this is possible the exact line Many times I have already tried ROW_NUMBER above row_id (as per order 1) but ran into a problem: When using a JOIN or WHERE block, row_ids Dynamically new results are adjusted in the set. Any thoughts? EDIT: I have added one that is given for a line without any row. For example, it should have been done before posting. Without WHERE clause: SELECT ROW_NUMBER () Select (call 1 according to call 1) as line_ID, result. Select 'Adam' call1, 'West' col2 Union all - SELECT 'Adam' col1, 'Cole' col2 UNION ALL SELECT 'Adam' col1, 'west' col2 Union All - SELECT 'Danny' col1, 'west' col2 ) Result Result: row_id col1 col2 1 Adam Cole 2 Adam West 3 Adam West 4 Danny West Now when I use the WHERE section as a line segment SELECT ROW_NUMBER () uses (ORDER BY COL1), results * FROM ( SELECT 'Adam' col1, ...

box api - box-api is still using v1 -

Any ideas when the box-API will be upgraded, it is still using the same old v1. Latest API's There is no implementation using the latest box-APIs? You should probably check attachements.me ruby ​​sdk that they have posted now

sap - Getting customer master -

How can I get and print client master data from a report? I have customer number but I do not know other details such as: Name Street address Communication (Contact persons in the future) In my research I have found the option as: To do a query on KNA and other customer master data tables BAPI_CUSTOMER_GETLIST BAPI_CUSTOMER_GETDETAIL2 ridden I need a snippet report The customer can print the master. You can try the function module BAPI_CUSTOMER_GETDETAIL2 , the CUSTOMERADDRESS . More importantly, one minute Start the transaction BAPI Click on the 'Alphabetical' tab Find a customer (looks good on my part, but not very predictable) Stick at the ways and see that only GETDETAIL, GETDETAIL1 & amp; Likely GETDETAIL2 Click twice on GETDETAIL2 is the version number (end means) View the name of the function module in the right-hand detail pane. My shoulder is called cipher surfing buddies that you simply BAPI_CUSTO...

c# - How to export all the source code from Visual Studio into a text file? -

मेरे पास एक अपेक्षाकृत बड़ा दृश्य स्टूडियो समाधान है मुझे सभी स्रोत कोड को एक पाठ फ़ाइल में निर्यात करना होगा। मैं कहीं एक फ़ाइल नाम शामिल करना चाहूंगा मैं ऐसा कैसे कर सकता / सकती हूं? उदाहरण के लिए यदि मेरे पास एक प्रकार नामस्थान MyProject.Core {/// & lt; सारांश & gt; /// संभव रिकॉर्ड स्थिति बताता है /// & lt; / सारांश & gt; सार्वजनिक enum RecordType {NonWearTime = 0, WearTime = 1, NotClassified = 2}} मुझे यह output.txt फ़ाइल में जाना है (या कोई अन्य पाठ स्वरूप) और ऐसा दिखता है // ****************************************************************************** **** // फाइलनाम: रिकॉर्ड टाईप सीएस। *************** .कोर (/// & lt; सारांश & gt; /// संभव रिकॉर्ड स्थिति बताता है /// & lt; / सारांश & gt; सार्वजनिक एंमान रिकॉर्डटाइप {नॉनवेयरटाइम = 0, वेयरटाइम = 1, नोटक्लाइज्ड = 2}} अन्य सभी प्रकार की फ़ाइल को सिर्फ फ़ाइल के अंत में जोड़ दिया जाएगा। मैंने Resharper की कोशिश की, लेकिन इसके हैडर फ़ाइल विकल्प में केवल स्थैतिक पाठ (मैं fileenam...

javascript - How to wrap a JS library with a function and put it into a namespace? -

मेरे पास भुगतान गेटवे एपीआई आवरण जावास्क्रिप्ट में है। लेकिन यह बुरी तरह तैयार किया गया है। यह 163 वैश्विक (विंडो) ऑब्जेक्ट का उपयोग करता है। मुझे क्या करना है P> तो PG.methodName () मैं जावास्क्रिप्ट के साथ इसे कैसे पूरा कर सकता हूं? या क्या नामस्थान के साथ लिपियों को लोड करने के अन्य तरीके हैं? यहां समस्याग्रस्त जेएस लाइब्रेरी है: आप एक की तलाश कर रहे हैं। अपना कोड लपेट और निष्पादित करने के लिए एक "" (जिसे "स्व-क्रियाशील बेनामी फ़ंक्शन" भी कहा जाता है) का प्रयोग करें; (फ़ंक्शन (विंडो, दस्तावेज़, एनएस, अपरिभाषित) {एनएस EName = "स्ट्रिंग मान"; NS.methodName = फ़ंक्शन () {}; फ़ंक्शन myFunction () {चेतावनी ('समापन के भीतर'); }; } (विंडो, window.document, (window.NS = window.NS || {}))); आप बंद होने के बाद से ns तक पहुंच सकते हैं, लेकिन फ़ंक्शन myFunction को बंद करने के दायरे तक सीमित नहीं है। हाँ, आप NS से पीजी या यहां तक ​​कि PayGate का नाम बदल सकते हैं:)

android - Mutiple YouTubePlayerViews within one Actvity -

I have an activity that can create many YouTubePlayerViews programs, here square is containing each YouTubePlayerView. public class expands MyYouTubeView LinearLayout implements YouTubePlayer. Initial Listener {Private string mYouTubeVideoId; Private YouTubePlayerView mYouTubePlayerView; Public Journal YouTubeView (activity reference, string youTubeVideoId) {super (reference); MYouTubeVideoId = youTubeVideoId; String APIYE = reference.greaterSource (). GetString (R. string.Ut_EPI_key); MYouTubePlayerView = New YouTubePlayerView (reference); MYouTubePlayerView.setTag (mYouTubeVideoId); MYouTubePlayerViewInitialize (APKI, it); LinearLayout.LayoutParams parameter = new LinearLayout.LayoutParams (LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); Int margin = (int) ScreenUtils.dip2pixel (10, reference); Params.leftMargin = Margin; Params.rightMargin = margin; Addview (mYouTubePlayerView, parameter); } @Override public void onInitializationFailure (provider arg0, YouTubeInitializa...

c# - asp.net imageurl -

Uploading images to my web page server folder 'd: \ upresim' Images I'm adding are: Secure Zero Button 2_Click (Object Sender, EventArgs e) {FileUpload1.SaveAs (Server.MapPath ("~ / image / a.png")) ; Image1.ImageUrl = "~ / image / a.png"; } I have a selected image, that I received from FileUpload that I selected in the server from the selected image in the upresim folder Has added to. AdWords needs to show me the image I added on Image 1, but it can not show anything what can I do? You must upload an image under your web app folder, for that folder your app is on the filesystem There should be a rifeth to write, and then set the relative URL to the image control image url. You should also check that the upload has a file, and preferably use it from the file uploaded with the file name. For example, suppose you have upescim folder in your web site root folder, then use this code: if (FileUpload1.HasFile) {FileUpload1.SaveAs (Serve...

asp.net - How do I debug a common DLL project? -

The question title shows that I have two solutions: one for the ASP.NET site and for the other DLL projects. P> When I debug the site, I want to stop the breakpoint at DLL. How can I do that * without entering the code from * .pdb files? Add a common DLL project to resolve your site, change context in project context from DLL reference and You can take easy steps in code of normal DLL and breakpoints can be affected in both projects. Alternatively, you can keep the DLL reference, and open the code that has been compiled in DLL in the project using it. Then you can set a breakpoint in this code and take action through it, but in this way you lose a lot of metadata which makes debugging difficult.

Google Map API v3 Color Customization -

Image
मैं Google मानचित्र का उपयोग कर ऊपर की छवि की तरह मानचित्र प्राप्त करने का प्रयास कर रहा हूं। मैंने स्टाइलमार्क टाइप ऑब्जेक्ट में -100 को संतृप्ति देकर नक्शा ग्रेस्केल बना दिया और सर्कल ऑब्जेक्ट का उपयोग कर मार्कर के चारों ओर त्रिज्या खींचा। अब पूरे नक्शा ग्रेस्केल है क्योंकि मैं सर्कल के अंदर एक और संतृप्ति स्तर सेट नहीं कर सकता क्या इसको प्राप्त करने का कोई तरीका है? एक और विचार दूसरा नक्शा बनाना है, इसे किसी अन्य तरीके से शैली बनाना है StyledMapType के माध्यम से, यह पूरी तरह से तैनात है, और इसे पहले ग्रेस्कॉल मानचित्र के सामने रख दिया गया है। आप इसे वर्णित रूप में -बीबीकिट-मुखौटा का उपयोग करके गोल कर सकते हैं आपको नक्शे के बीच की घटनाओं को भी सिंक्रनाइज़ करना चाहिए, ताकि वे एकजुट हो जाएं, अर्थात एक ही स्थिति में केंद्रित हो और हमेशा वही ज़ूम स्तर पुनरावर्ती कॉल से बचने के लिए आपको कुछ प्रकार के अवरोधकों को भी बनाने की आवश्यकता है var block = false; Google.maps.event.addListener (thismap, 'center_changed', फ़ंक्शन (ईवेंट) {यदि (ब्लॉक) रिटर्न; ब्लॉक = सच; अन...

php - MySQL result to large -

I have 2 tables, both of which have 300,000 values ​​for technical reasons, we can directly match timestamps or a unique ID can not do. But we want to achieve this result: SELECT * ads from del.icio. (AdsDelivered.session = pageViews.session and adsDelivered.referer = pageViews.referer and abs (unix_timestamp (adsDelivered.timeCreated) - unix_timestamp (pageview time edited)) & lt; = 5) where pageviews Timeline & gt; = '2013-03 -21 00:00:00' and Pageviews. Timed & lt; = '2013-03-21 23:59:59' LIMIT 100 The response is bigger and takes longer. I recommend planning an expansion on the query. If you see a table scan, you will know that you have to type the query again so that you can use the index effectively. I'm guessing that this is the time-generated that is killing you, because you have to scan every single row to see, which is a WHERE segment Satisfies. Having some operations that cuts down the size of the required set for you to...

python - Csv Writer - Trying to write variable in each Column -

I am trying to write some data in a CSV file but I can not select different columns. car = ["car 11"] expired = ["Landhaus, Nord"] Time = ["['05: 36 ']", [['06: 06'] "," [ '['08: 36'] "," ['08: 36 '] "," ['08: 36'] "," ['08: 36 '], "['08: 36']," ['07: 36 '], '' ['9: 36'] ", '[' 10: 06 ']", [' 10: 36 '] "," ['11: 06'] "," ['13: 06'] ", '[' 13: 36 ']",' ['13: 36'], '[' 12: 36 '],' ['12: 36'] ", '[' ['14: 06'] ", '['14: 36']", "['15: 06 ']," ['15: 36'] "," ['16: 06'] "," ['18: 36'] ", '[' 17: 36 ']," [' 17: 36 '], "[' 18: 06 ']," [' 18: 36 '...