Posts

Showing posts from April, 2011

Is there a way to convert between a Ref parameter type and the non-ref version in C# -

I'm looking at the parameters of a method and removing the types. I return (for example) "System.String & amp;", because the parameter is an outside parameter, I want to know that the parameter is string - but string & amp; There is not a way to make conversions. Thank you! The array or an indicator, or the context is not passed, or represents a type parameter in a general type or definition of the common type. Example: var stringRefType = typeof (string) .MakeByRefType (); Var stringType = stringRefType.GetElementType (); Console.light line (string type == typef (string)); // True

javascript - precision of Math.random() -

जावास्क्रिप्ट के Math.random () फ़ंक्शन का क्या सटीक है? गणित.रेंडम () शून्य से अधिक या बराबर 16 दशमलव स्थानों की एक अस्थायी बिंदु संख्या उत्पन्न करता है और 1 से कम।

python - Hiding the time in a datetime model field in Django? -

I am using Thuuber, but I am running in a problem: I can not understand how the part of time Removal is Dat Time Field My Form Class and Lame Exclusion effort looks like this: Class Laundry DeliveryForm (Event Form): Start = Form. DateTimeField (widget = form.plitditviewjet) End = forms.DateTimeField (widget = forms.SplitDateTimeWidget, help_text = ("The end time should be after the start time.")) Square meta: Model = Laundry Delivery boycott = EventForm.Meta. Exclude + ('active', 'Startup Ideally, I just want to store the day, or store the start up. As time goes by some arbitrary time at 8 o'clock, but keep the active field out of happiness Goes, time fee The tree is open. Tried trying sifting through the document, but I could not track down what I needed. You can use, date input widget a widget for an existing form, or forms.DateField () , in which the default DateInput widget.

How to make matched text bold with jquery ui autocomplete? -

मैं jquery ui autocomplete का उपयोग करते समय स्वत: पूर्ण सुझावों के मिलान वाले हिस्से को कैसे बनाने के लिए सोच रहा हूं? उदाहरण के लिए यदि आप "ja" टाइप करते हैं और सुझाव जावास्क्रिप्ट और जावा (जैसे कि jquery ui डेमो पेज पर उदाहरण में) तो मैं दोनों सुझावों में "ja" बोल्ड करना चाहता हूं। किसी को भी यह कैसे करना है पता है? मदद के लिए बहुत बहुत धन्यवाद ... मुझे यकीन नहीं है कि यह स्वत: पूर्ण क्यों अन्य कार्यों के मुकाबले इतना ही है कि (जैसे ड्रॉपजबल, सॉर्ट करने योग्य, ड्रैग करने योग्य इत्यादि)। यह वास्तव में होना चाहिए एक स्टाइलनीय विकल्प प्रदान करते हैं, जैसे & lt; span class = "ui-autocomplete-term" & gt; शब्द & lt; / span & gt; या कुछ इसी तरह के साथ लपेटकर। आप ऐसा कर सकते हैं यह बहुत आत्म व्याख्यात्मक होना चाहिए; यदि नहीं, तो चिल्लाओ।

java - Problem launching android AVM/SDK gui using the tools/android executable in the android SDK. Ubuntu 10.04, i686 -

Hello, I'm just running an Android SDK with Eclipse 3.5 on Ubuntu 10.04 (Lucid) running its i686 ThinkPad T60 I am (The eclipse was installed through a package from synaptic, i.e. repository.) I installed the add-ons on Eclipse and everything looks fine on the eclipse end I also put the Android-SDK device directory on my user path is. Now without any argument, the launch of the device / Android is to bring the SDK and AVD manager GUI, but instead I get the following error: Exceptions in the thread "main" java.lang UnsatisfiedLinkError: Swt. Jar file at gtk-3550 or swt-gtk, swt.library.path, java.library.path, or org.eclipse.swt.internal. Org.eclipse.swt.internal.C at org.eclipse.swt.internal.Converter.wcsToMbcs (unknown source) at Org.eclipse.swt.internal at Library.loadLibrary (unknown source) Org.eclipse.swt. On & lt; Clinit & gt; Library on (Unknown Source) Load Library (unknown source). Com.android.sdkmanager.Main.showMainWindow (main.java desk65) on or...

sql server - Practice SQL Queries -

I wanted a website in which SQL (SQL Server 2005 or 2008) related queries in order to practice at home Please tell me if you have any idea about it. Thanks Try this one: difficult to distinguish questions from difficult Its difficult.

c++ - the functionalities of two lines of code -

When I was trying to learn from an existing program, I could not understand that trying the following two lines ? for (i = 0; 0 == (x & amp; 1); ++ i) x >> gt; = 1; If (0 == (x- = y)) return Any explanation will be appreciated. for (I = 0; 0 == (x & amp; 1); ++ i) x >> gt; = 1 sets the least important bit to 1 in an integer if (0 == ( X- = y)) Return y & lt; & Lt; I; Removes x from , and if the result is 0, returns y More important bits by i bits.

iphone - UIPopoverController animates when keyboard pops up -

In my iPad application I have UIFopoverController which contains some text fields containing UIViewController. P> When the keyboard comes, Popover gets animated to fit. Does anyone know how it is disabled? Thank you I do not think you can make popover height in small Except ... this is done when your keyboard gets slipped, no popovers are covered by it (thus it contracts back), although I often harass it because it's table The idea gets messed up (they are not able to scroll and resize them all the way In due)

What is wrong the Java enum definition -

I defined public Enum ABC in ABC.java and then it was abc. Compiled in class. In another XYZ.java, I use Private ABC _abc . XYZ and ABC are in some packages. But this signal class ABC . What's wrong? Package Teacher 26; In other files, I use package teacher 26; Public class questionnaire {private semester _ shweta; Collect commands: javac -d ../classes/ Questionnaire.java semester.class .. / class / teacherII / Semester.class Before I compile the questionnaire. Java Thank you very much for your reply. Season is that, Chris and Vineet had said that, I did not classpath during the compilation of the questionnaire. It works now thanks you again! It seems that you are not compiling correctly your The definition of enum looks ok because you are receiving this error message because the compiled ( .class ) file does not exist (or accessible) when you are trying to compile another file Then, for example: ---- Ezava ---- package a; Public e...

A design problem involving Collections, Generics and Interfaces in C# -

There are lots of code in this post, but I really appreciate it if you read something and understood It ... and hopefully one solution will come with Assume that I am structuring a network game where the institutions need to draw and some of them accordingly to the server Has been updated. / P> Drawable is in charge of drawing entities on the square screen: class drawable {public int id {get; Set; } // I have inserted the ID instead of any other // class which is obtained from Drawable, as does not make the code of example // more complicated Public Zero Draw () {}} The data received from the server implies IData with each code IData . Assume that we have the following data that will receive player and enemy : interface IData {int ID {get; Set; }} Class PlayerData: idata {public id id {get; Set; } Public string name {get; Set; }} Category EnemyData: IData {public int id {get; Set; } Public perfection loss {received; Set; }} Game organizations that update...

ASP.NET Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack -

मुझे उस कोड के साथ समस्या है: HttpContext.Current.Response.Redirect (" ~ / उदाहरण / my.aspx "); // या HttpContext.Current.Response.Redirect ("~ / उदाहरण / my.aspx", सच); उपर्युक्त कोड त्रुटि को उत्पन्न करता है जैसा मैंने इस विषय के शीर्षक पर वर्णित किया है। मुझे बस अपने एएसपी.नेट पृष्ठ को ताज़ा करने की आवश्यकता है, मैं इसके बजाय उस कोड का उपयोग नहीं कर सकता: HttpContext.Current.Response.AddHeader ("Refresh", " 2 "); क्योंकि यह आईआईएस पाइपलाइन मोड के बारे में कहता है यह puprose है कि मुझे ओनलोड विधि में जाना चाहिए जहां रीफ्रेश / रीडायरेक्ट के बाद कुछ स्थितियां सही हैं निम्नलिखित कोड के साथ प्रयास करें strURL = "" ~ // उदाहरण // मेरा Aspx ""; ScriptManager.RegisterStartupScript (यह, यह। GetType (), "लाल", "window.location.href = '" + strURL + "';", सत्य);

php - How to get CKeditor to switch from Hspace and Vspace to proper CSS -

I am working with CKeditor, and for whatever reason, they have included Hspace and Vspace in their UI Convenient idea to allow their images to be manipulated, but those methods have been disliked. Has anyone converted the C space of H Space and Space to CSS, and its interpretation of the conversion How is it done? I am a JavaScript novice .. hspace And vspace the margins in pixels The conversion should be direct, immediate and simple. Where do you want to improve? I do not know anything about the source of CKAditator, which helps me choose three options. Option 1: Change the properties with hspace and vsspace Relevant CSS Submit the Time This Affects The Effectiveness Later Can do. Change option 2: hspace and vspace properties with appropriate CSS at render time If you do it correctly, it can be slow. Option 3: Change the hspace and vsspace attributes with the appropriate code on the client side at the render time. It should be trivial in jQue...

c# - Bad RawFormat when loading emf file -

I am trying to load an emf file in an image object, though RawFormat is always false {[ImageFormat: b96b3cac -0728-11d3-9 d7b-0000f81ef32e]} Instead of trying to load an EMF file from the stream and the memory stream, I have also tried to create a metafile object instead of an image but it has no effect. Is it a bug or is there any other trick I do not know? MemoryStream Stream = new memorystream (image data); // Image data is a byte array Image tempImage = Image.FromStream (stream); Is this help? The system. Drawing Imaging ImageFormat.Emf.Guid = {B96b3cac-0728-11d3-9-7-7-0000f81ef32e} Donation

php - From month to month and year -

For example, I have 13 months and I want to convert it to PHP in 1 year and 1 month. 26 - 2 years and 2 months How to "convert" it? $ totalmonths = 26; $ Years = floor ($ total month / 12); $ Months = $ total month% 12; Echo every year, "year", $ years == 1? "": "S"; If ($ months! = 0) echo "and", $ months, "month", $ months == 1? "": "S";

unit testing - How can one use the logging module in python with the unittest module? -

I would like to use Ajith logging module to log in with all output so that I include it in the test I'm trying to write the structure. Its goal is to run the test with 2 sets of output, with a simple output, which tells the test case phase and more debug level output so that when things go wrong We know as much as possible Ho. Production will be placed in two files, one is that I can email people, and in case of other failures. I saw that TextTestRunner could use a stream, can it be used with logging modules? I am planning to use some new features in Dragon 2.7. You can, but I can ' Instant an in-memory stream that can be used by TextTestRunner . Like this thing, io.StringIO will be almost complete, except that it only works with Unicode input, and I'm not sure TextTestron writes UNICODE properly in the stream. Create your own. Make your own investment initialize with TextTestRunner and this in-memory stream. Create a class that reads from the st...

My QT static builds run out of memory on other systems -

When I design my application statically, it exceeds 5 MB, so it's a small, simple The program is. However, 3G can not run any system with Ram, saying that there is not enough memory. This program does not have a lot of hard work, and I have not done anything specifically to allocate memory. I believe that the low 1 MB built code can easily fill 10 GB memory. Make sure your code does not use redundant memory.

objective c - Buggy navigation controllers, porting iPhone app to the iPad -

I have a fairly simple iPhone application, which I want to run on both the iPhone and the iPad. I just want to be a bigger version of the iPhone version in the iPad version, I've been enhanced or not - I'm working on an iPad-specific version of the app that makes better use of the interface, but I wanted to make sure that my current There is something among the customers. The app is a simple tab-based application, and within each tab is a navigation controller that presents a table view, each of which has some layers below. Everything works mostly - I have some examples of scenes of filling space available, but I can fix it. My biggest problem is that navigation controllers break universally when I try to use them. Let me try to explain in more detail: A tab begins with a "year" table view, which are entries all year; If you tap in a year, then another month with another month is pushing the table in which the entries are; If you tap in a month, it will put ...

confusing python urlencode order -

OK, so "Parameter Tuples in sequence sequence of parameters in encoded string." when I try to run this code: import urllib values ​​= {'one': 'one', 'two': 'two' , 'Three': 'three', 'four': 'four', 'five': 'five', 'six': 'six', 'seven': 'seven' 'data = urllib.urlencode value) Output as seven = seven and six = six and three = three and two = two and four = four & Five = five and one = one 7,6,3,2,4,5,1? It does not look like the order of my Tuples. Due to the implementation of the dictionaries, it has been naturally unmodified. If you want to order them, you should use the list of tuples instead (or list of tuples, or tuples, or lists of lists ...): value = [('One', 'one'), ('two', 'two') ...]

asp.net - How do I get rid of the IE8 ssl warning message "Do you want to view only the webpage content that was delivered securely?” with ScriptManager? -

A login page on our asp.net website uses https - while all our other pages do not make this login page However, IE8 users "Are you just delivering webpage content safely?" Want to receive messages. Many people say "yes" out of habit that breaks our login page. I know that the problem arises from WebResource.axd and ScriptResource.axd script tags which are generated by ScriptManager. I have tried every method to refer to ScriptResource.axd / WebResource.axd - but no matter what I do, the same IE8 warning - get some examples: & lt; Script src = 'https: //www.mysite.org/ScriptResource.axd? 123 'type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = '/ScriptResource.axd?123' type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = '//www.mysite.org/ScriptResource.axd?123' type = "text / javascript" & gt; & Lt; / Script & gt; ...

objective c - Seeking advice for iPhone app structure -

I have been working with creating an iPhone app that will tap into a series of Twitter from the REST API JSON feed. I am somewhat new to the development of iPhones, but I have made some apps in the past, although none of them need to tap into the API data. So we say that we have 3 ideas in the interface Builder, which is being controlled by a controller: Feed Followers The following Each of these ideas needs to display a JSON feed in a table view. The data should be loaded at the time of the display. There will also be a search box that requests the Twitter Search API JSN feed and returns results in a UITWview in another view. I have installed and imported the Jason-Interface Library in my project. I have also successfully received the feed in NSSTING But here's my question: How do I present my application to request for many JSON feeds and separate on different views - Display related data in different tables? All the tutorials I see show a JSON request...

WPF: Command bindings for Buttons in datagrids -

The button works in the header, I have two buttons in this sample, but one of the grids shows me the error below . & lt; Groupboxes dockpanel.doc = "top" & gt; & Lt; GroupBox.Header & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; Label content = "recent server" /> & Lt; Checkbox content = "auto-refresh" /> & Lt; Button content = "monitor" command = "{binding monitor comand, element name = top}" commandpalmter = "{binding}" /> & Lt; / StackPanel & gt; & Lt; /GroupBox.Header> & Lt; DataGrid CanUserAddRows = "False" CanUserDeleteRows = "False" AutoGenerateColumns = "False" ItemsSource = "{Binding ServerHistory}" & gt; & Lt; DataGrid.Columns & gt; & Lt; DataGridTextColumn Header = "Machine Name" Binding = "{Binding Data Point [Server Name}, Mode = Options]" / ...

apache - DJANGO allow access to a certain view only from a VPN Network -

I try to specify access to VPN IP (10.8.0.3) for a specific DJGEVAV view I'm My Deggo Server Using Apes Apache Supported & lt; VirtualHost * & gt; ServerAdmin webmaster@demo.cl DocumentRoot / home / project / virtualenvs / env1 Server Name Client 1.project.cl ServerAllace www.client1.project.cl Error Log / / / / / Password / Terror Custom Custom / var / log / apache2 / access Joint combined & lt; Place "/" & gt; SetHandler Python-Program Python Handler Virtual Handler Set ANV DJJG STARTING SMODE Project.Settings Python Opps DJ.Root Set ANV SITE_CLIENT_ID Client 1 Python Debug On PythonPath "['/' Home / Project / Virtual Envise / NY1 / Djeje-site ',' / Home / Project / Virtual Envij / Nova1 / bin '] + Sys.path "& lt; / Location & gt; Aliases / media "/ home / project / virtual enviz / ANV1 / LIB / Python 2 / site-packages / documents / content / admin / media /" & lt; Location / media & gt; No...

c# - AutoMapper and inheritance - How to Map? -

इस परिदृश्य को करें: सार्वजनिक वर्ग बेस {सार्वजनिक स्ट्रिंग नाम; } पब्लिक क्लास क्लास ए: बेस {सार्वजनिक int32 संख्या; } पब्लिक क्लास कक्षा बी: बेस {सार्वजनिक स्ट्रिंग विवरण;} सार्वजनिक वर्ग डीटीओ {सार्वजनिक स्ट्रिंग नाम; सार्वजनिक int32 संख्या; सार्वजनिक स्ट्रिंग विवरण; } मेरे पास एक आईएलआईटी और लेफ्टिनेंट; बेस & gt; मेरे नक्शे हैं: ऑटोमैपर। मैपर। क्रेटमैप & lt; IList & lt; बेस & gt; , आईआईएलआईटी एंड एलटी; डीटीओ & gt; & gt; () .मेल मेम्बर (डेस्ट = & gt; डिस्ट.नंबर, ऑप्ट = & gt; ऑप्ट। अन्वेषण करें ()) .मेल के लिए (डेस्ट = & gt; डिस्ट। डिस्क्रिप्शन, ऑप्टी = & gt; opt.Ignore () ); AutoMapper.Mapper.CreateMap & lt; ClassA, DTo & gt; () .मेल के लिए (dest = & gt; dest.Description, opt = & gt; opt.gnore ()); AutoMapper.Mapper.CreateMap & lt; ClassB, DTO & gt; () .मेल के लिए (dest = & gt; dest.Number, opt = & gt; opt.Ignore ()) Mapper.AssertConfigurationIsValid (); //ठीक है! लेकिन क्लास ए या क्लासबी में म...

c# - Start Internet Explorer on debugging -

I am currently writing an ASP.NET WebApplication in Visual Studio 2010. My default browser is Firefox. If I start a WebApication, then the webpage starts in the same instance of Firefox. How is it possible to avoid? How do I configure Visual Studio, which starts in web applications Internet Explorer's New example? Thanks in advance! 1) Right click on the .aspx page in your Solution Explorer 2 ) Select the "browse" context menu option 3) In the dialog, you can choose or add a browser. If you want Firefox in the list, click on "Add" and Firefox. Click on the exe file name 4) When you turn on any page, click on the "Set as default" button to make it the default browser. Scott Th

asp.net mvc - Problem switching culture -

I have 2 links to change the culture if I click on a link then program calls a method with this code Does: threads Present. Thread Existing content Current Ukraine Agriculture = CultureInfoGetCalcherInfo (LN); Return Redirect Reactions ("Index"); If I have changed the culture properly with debug, but in index redirection, the culture GUI is not changed. I'm trying to localize the Visual Studio Web server (Cassini). Thank you We do the same thing with the link on the scene though we code Do not put into action, but make a method on the base controller class. This is the verb: public executive setculture (string syntactic) {string returnUrl = string.Empty; If (request! = Zero) {returnUrl = Request.UrlReferrer.ToString (); // Write the cookie response. Add cookies (new HTTP cookie ("language", culture code)); } If (! String.IsNullOrEmpty (returnUrl)) {come back} Redirect (return URL); } Other {Return Redirect ("List"); }} and it i...

asp.net - Using LDAP Server on top of our database to allow iPhone / Blackberry Access -

We have ASP.NET contact databases that run on SQL Server. We are not interested in synchronizing contacts (for various reasons), but to explore using the LDAP connectors in iPhone / Blackberry, users are not allowed to view their database contacts on their mobile device. Is this idea possible? I have not played with LDAP before ... Is there a tool or server that permits sinking on database (s) LDAP server? I do not know if there are tools to do this, but using a combination of SQL and script Writing a tool is not that hard to write (VBScript, for example) short story: Temporary / work table from current content of LDAP server Population (use ADSI to read). Use SQL Copy to code from script To avoid and to populate another table of entries in your database entries, "Entries to create" and "Modify entries" (and "Entries to delete") Also, update and Deletion. Work from time to time. If your contact database has a revised date, then you...

asp.net - Will using Entity Framework be a good choice for databases containing tables with 80k-100k records? -

I VS 2010, Working with Unit Structure, SQL Server 2005, ASP.NET Web Forms Currently, I am working on the Data Access Layer Library which will soon be a web service, using various design patterns such as various design patterns such as the Entity Framework Collaboration and some of the best practices posted in various blogs. I am also testing every repository using the Unit Testing project I thumbs up! working fine. What I'm worried about, will I be benefiting from using the Anti Framework when getting data from tables with records of 80-100 thanks I go with SteveCav and @ Craig Stants comments. I just tried with a table, which is more than one hundredth of thousands of records. It works fine.

styles - WPF: Resources in a GroupBox header -

क्या मैं ऐसा कुछ कर सकता हूं? & lt; ग्रुपबाक्स। हेडर & gt; & LT; GroupBox.Header.Resources & gt; & Lt; शैली TargetType = "Label" & gt; & Lt; सेटर संपदा = "अग्रभूमि" मान = "सफ़ेद" / & gt; & Lt; / शैली & gt; & LT; /GroupBox.Header.Resources> & Lt; स्टैकपैनेल ओरिएंटेशन = "क्षैतिज" & gt; & Lt; लेबल सामग्री = "रीयलटाइम इवेंट व्यूअर" वर्टिकलएलिन्मेंट = "सेंटर" / & gt; & Lt; लेबल सामग्री = "देख रहा है:" मार्जिन = "20,0,0,0" वर्टिकलएलिंमेंट = "केंद्र" / & gt; & Lt; लेबल सामग्री = "{बाध्यकारी मॉनिटर सर्वर नाम}" वर्टिकलएलिन्मेंट = "केंद्र" / & gt; & Lt; / StackPanel & gt; & LT; /GroupBox.Header> आप एक स्टैकपैनेल ऑब्जेक्ट के लिए एक समूहबॉक्स ऑब्जेक्ट की हेडर प्रॉपर्टी सेट कर रहे हैं। यदि आप हेडर में उपलब्ध संसाधन चाहते हैं, तो उसे स्टैकपैनेल ऑब्जेक्ट के संसाधन में जोड़ें: & lt...

FTP upload file works manually, but fails using Python ftplib -

I have installed vsFTP in a Debian box. When manually uploading the file using the FTP file, it's okay. I.e, the following session works: JOH @ @ myhost: ~ $ ftp xxx.xxx.xxx.xxx Connect to 5111 xxx.xxx.xxx.xxx. 220 Hello, Welcom name (xxx.xxx.xxx.xxx:john) on my FTP server: ftpuser 331 Please specify password. Password: 230 Login The type of successful remote system is Unix. Using binary mode to transfer files. Ftp> put st.zip local: st.zip remote: st.zip 200 pORT Commands Consider using a successful PASV 150 is fine to send data. 226 file gets ok 12773 bytes is 0.00 seconds (277198.8 KB / S) Feet> 221 was sent in bye. (Please note that as explained above, I have configured a FFTP server vs. for any non-default port, for example 5111 for some reason) Now when I write a script to upload a file to Python, programmatically, this failed error says, 'Out for time', shows the following sessions as follows: John @ Myhost: ~ $ Dragon 2.5.2 (r252: 60911, 24 January...

Wordpress tags - select from pre-determined list? -

I have a WordPress installation in which registered users are allowed to post articles. The problem is in the tag section. I like the idea of ​​adding them tags, but it's going crazy often tags similar to 3 or 4 are spelled differently, sometimes people put funny stuff for the tag, etc. I want to be able to "add" the tags in the post, but do not tag the actual "creation" - I want the user to choose from the pre-defined list. This list can be a drop-down menu, some fancy jQuery thing, I really do not care. There may be something open for ideas / suggestions that how does StackOverflow do this? Thanks! Are you able to use categories instead of tags? It is easy to do this through preload categories and limit users to a role that can not create categories. If you really want to stay with the tag, then I think you have to find out if you add a tag, find out the fire hook. If a suitable action hook is not available, you can. I understand that the tags a...

stored procedures - Have an issue of extrem slow sp and he dont do his job -

I found this SP: drop table when split value is dimmed; Create tablet splitwalls dump (value VARCHAR (1000) primary key); DELIMITER $$ drop process if the current changes the site redirects $$ The process of making 'Change Sites Redirects' (Productman Address varchar (255), subdomain ii vendor varchar (255)) has been annulled the declaration of SQL security Inverters varchar (1000) ; DECLARE tvalue varchar (1000); DECLARE prepValue varchar (1000); Removal subdomain full address varchar (1000); Total records total difference; Clear tclientid; DECLARE sitedone INT DEFAULT 0; DECLARE splitdone INT DEFAULT 0; Derler Damon Vrchar (1000); DECLARE curlSites for Coors (Select domains; Clients from sites where redirections.com = 'N'); Set set for DECLARE set = 1; Set sitedone: = 0; Open curlSites; Scan_Sites: WHILE (sitedone = 0) if sitedone = 1 then skip Scan_Sites; End; ELSE DECLARE for curlStringDump cursor (select `value 'from SplitValuesDump); Set set for handler...

XPath query. Preceding-sibling of a conditionally reduced set of nodes -

मुझे निम्न की तरह html कोड मिला: & lt; p style = "margin: 0 0 0 0 0 0 0, "& gt; लेफ्टिब; बी & gt; ब्लॉब्लुब & lt; / b & gt; & lt; / p & gt; & lt; तालिका & gt; ... & lt; / table & gt; अब मैं तालिका के ऊपर & lt; b & gt; की सामग्री को क्वेरी करना चाहता हूं, लेकिन तभी तालिका नहीं होगी कोई विशेष गुण हैं मैंने निम्नलिखित प्रश्न की कोशिश की: // table [not (@ *)] / पूर्ववर्ती-सिबलिंग :: p / b अगर मैं पूर्व-भाई-बहन को निकालता हूं: : पी / बी हिस्सा पूरी तरह से यह काम करता है यह मुझे सटीक तालिकाओं देता है जो मुझे चाहिए। हालांकि, अगर मैं इस क्वेरी का उपयोग करता हूं तो मुझे एक और ; b & gt; टैग की सामग्री देता है जो एक विशेषताओं के साथ तालिका से पहले होती है। उपयोग करें : // तालिका [नहीं (@ *)] / पूर्ववर्ती-सिब्लिंग :: * [1] इसका अर्थ है: सभी b तत्वों का चयन करें जो कि सभी p तत्वों के बच्चे हैं सवाल में उल्लिखित समस्याग्रस्त अभिव्यक्ति से यह काफी भिन्न है >: // तालिका [नहीं (@ *)] /...

java - How to check if a string contains two asterisk characters? -

हमारे पास एक स्ट्रिंग इनपुट है और निम्न संयोजन मान्य हैं (जैसे sunday , * रवि * * , सूर्य * दिन * , * सूर्य * दिन , सु * nda * y ) अगर इसमें केवल एक सिंगल तारांकन चिह्न, तो यह एक खराब इनपुट है। इसलिए उपरोक्त इनपुट को देखते हुए, मैं यह कैसे देखूं कि स्ट्रिंग में कई एस्टेरिस्क हैं। String.matches का उपयोग कर सकते हैं: "^। * (?: \" Post-text "itemprop =" text "> \ *। *) {2} $ " यदि आप चाहते हैं बिल्कुल दो तारांकन: " ^ [^ * ] * (?: \\ * [^ *] *) {2} $ " हालांकि इस कार्य के लिए स्ट्रिंग पर दोबारा चलना और तारांकन गिनना आसान हो सकता है। / P>

algorithm - Solving jumbled word puzzles with python? -

I have an interesting programming puzzle for you: Two things will be given to you: P> subset = ['I', 'A', 'M', 'AMT', 'M', 'T', 'TI' 'Tier', 'Tired', 'I' 'R', 'R', 'Re', 'Lal', 'Redre', 'E', 'D', 'Da', 'Dar', 'Dear', 'A', 'R', 'are '' '' '', '' '' '' '' '' ' Level-1: Let me practice the members in practically Find a subset of in an order with "iamtiredareyou" or ['i', 'am', 'tired', 'are', 'you' ] Level 2: The original string may contain some additional characters in the sequence that are not present in the subset. Like "iamtired12aareyou" . The given subset is similar to the above, the solution automatically will automatically include...

asp.net - How to view the last ran sql query from SqlClient data provider on Sql server 2000? -

After Although I have been able to see the last running query which is performed on a stored procedure, but I have parameter value Not found in which SP was implemented. StoredProcedureName; 1 By the following order: I got the following BCC INPUTBUFFER (SPID) I Where to find SPID by seeing it in ObjectExplorer-> Management> ActivityMonitor Any method can get full text including parameters, with which SP was executed? "itemprop =" text "> I know, this question can not be answered for what you are not looking for In the form of not really answering your question, I thought that I took a leap and it ended up thinking that it could help. I do not know how many questions you have and how big your program is ... but for purposes of debugging I want to do something similar to all my questions, plain text and stored procedures both. So I wrote a simple wrapper class that allows me to execute plain text queries / mount processes without parameter...

log4net - regarding log4view file receiver -

I'm trying to open old files that are logged long ago, but I'm not sure with whom Logging framework, but it seems like log4net can not see the log4view receiver file because the date of the file, thread and a message is basically now the problem is. Is log4view specific to only log4net files or am I missing? If the file is not written with XML format, then you need to know that exact pattern , So that Log4View can open them. You must check the Read the complete file checkbox.

c# - How to get correct timezone for client -

To get the user's correct time zone, I first get offset using Javascript: - off offset = new date (). GetTimezoneOffset (); and after that I apply the value to server side variables. Where do I use the timezone: - ReadOnlyCollection & lt; TimeZoneInfo & gt; Time zone = TimezoneInfo GetSystemTimJohn (); Foreign currency (Time ZoneIndo Time Zone in Time Zone) {If (Time Zone. BASUITIC Offset. Ecloss (Offset)) {Return Time Zone.ED; }} Now the problem is that: - There are multiple timezones with the same offset, I use the time zone for the user How can i separate Whether the light saving mode of day (-60 and 0) is allowed for GMT Dubulin, Edigur, Edson and London's timezones, there are two offsets, how can I get the right offset . No idea how can I get the right time zone and offset? Which are familiar with the timezone (I thought there might be a unique offset in a given time zone, but it appears to be incorrect). But I was posted on 4guysfromro...

sql like - Is it possible in sql to group by fields matching some pattern? -

Is it possible to group with LIKE pattern in SQL? I would like to achieve something like this: ID | Name 1 Mike 2 | Bob 3 | Bill 4 | Alice and then like the query: _pattern_ Select the user group by name, for example i want to match pattern 'b *', '* l *' and 'Mike' gives output: B * | Bob | Bill * L * | Bill | Alice Mike | Choose 'B *' as the Mike, select the name WHERE name 'B' 'Union All' from the table, '* L *' as the mask, name ''% l% '' from the table Unius all 'Mike 'Choose' Mike 'name from table,' Mike 'as table name, select Mask'

.net - TSQL command to call *.sql files -

I have several * .sql files to create a new database with script and tablets and sprocs. What is a way to create a TSQLLL script that runs from the SSL query analyzer, which can call * .sql files, respectively? Example: Call Script 01; Call script 02; Call script 03; Sorry, but I was not able to express my problem properly before. I need to create a db with several tables, at this time all the scripts are in a unique file (very long). I use MS Management Studio to run a script in the query editor to create a database. Because this script is too long, I was thinking of dividing it into separate pieces. So I have a main script that will order execution of separate scripts to run. For example script 1 script2 script3 etc Do you know it hot to do in MS SQL 2008 in TSQL. Thanks once again I use SQL Server 2008 In SSMS Use SqlCmd mode: : r file name Sure it works in question analyzer Does.

iphone - NSUserDefaults changing values between launches -

मेरे ऐप प्रतिनिधि में मेरे पास निम्नलिखित कोड है: NSLog (@ "स्रोत:% d", [[NSUserDefaults मानक यूसर डीफॉल्ट] पूर्णांकफ़ोरकी: @ "स्रोत"]); और मेरे ऐप डीडीफिनिश में एक ही ऐप प्रतिनिधि में एक ही कोड है। जब मैं ऐप से बाहर निकलता हूं, लॉग एक मान (101) कहते हैं और जब मैं ऐप पुनः लॉन्च करता हूं, लॉग दूसरे मान (105) कहते हैं। इसके बाद उपयोगकर्ता डिफ़ॉल्ट में मूल्य (102 से कहते हैं) को सही ढंग से बदलता है जब से मैं फिर से ऐप छोड़ देता हूं, सही मान (यह समय 102) आवेदन में लॉग ऑन किया जाता हैउल्टनटिनेट विधि हालांकि, एप के लॉग को बार-बार लॉन्च करना 105 बार-बार भले ही मूल्य में बदला जा रहा हो। अगर मैं सिम्युलेटर से ऐप निकालता हूं और उसे पुन: लॉन्च करता हूं, तो एक पूरी तरह से अलग मान लॉन्च पर दिखाया गया है और यह मान लगातार दिखाया गया है बाद की लॉन्च के लिए। मुझे कोई सुराग नहीं है कि यहां क्या हो रहा है। किसी के पास कोई विचार है? मुझे आपके लॉन्च के बीच मूल्य बदलने के बारे में नहीं पता है हिस्सा है, लेकिन जब आप वरीयता कुंजी के लिए मूल्य निर्धारित करते हैं तो मान ...

c# - how to use update in detail view -

There is a button update update veiw which can automatically change the column to the text box, no one can tell me that Where the code is to update the code; Edit in the .aspx or .aspxcs Edit -> Description view mode to edit Update -> Depending on your data source, the details view saves changes by calling event upgrading, it can call an update method on your previous end.

php - detecting failed uploads -

Is it possible to detect that an upload has failed due to file system in PHP. I know about upload_max_filesize and post_max_size and set them to what I want but if a user does not see my file size range (which is displayed in red) and uploads a large file then it displays an error Does not just take a real time. I have & lt; Input type = "hidden" name = "MAX_FILE_SIZE" value = "20000000" /> I thought that to check before sending the browser but I do not think so. (At least on Firefox) you upload_max_fillesize $$ FILES ['file'] ['error Can check '], but only post_max_size has not been started. In the second case, you can put a mark in some way to try to send the file, for example, by adding parameters to the action of your form; Filesended = 1 And if you think the fileend is set, but $ _POST global array is empty, this means that the user has reached the limit of a post size.

c# - Finding the char index of a Font Style in a RichTextBox -

I am looking for an effective way to find the character index of various font styles in RichTextBox. I have the following: for (var i = 0; i & lt; index; i ++) {_activeCopyBox.Select (i, 1); If (! LinkFound & Active Copx SelectionFont.Underline) UnderLineFound = true; } It is very slow because it has to select each letter at a time. I can get formatting from RFT, but trying to find the correct indicator by mistake can be used to embrace this way. If someone knows better (should be one) I would love to hear I think That's what you want. RTF property, it gives you the built-in RTF information, which contains all the special tags, and as such the ones outlined and bold and otherwise format information in RichTextBox. Here is a link to the RTF markup, which may be of any help to you, more efficiently: 'underlined' and Search for 'bold' and you'll see how it works. To get as much information as you want quickly and efficiently, it is ...

authentication - detect that an email is sent to a mailing-list -

मेरा अनुप्रयोग प्रमाणीकरण टोकन युक्त मेल भेजता है उपयोगकर्ता जो एक लिंक पर मेल प्राप्त करता है और एक वेबपेज पर निर्देशित होता है ऐप उसे पहचानता है। समस्या यह है कि कभी-कभी मेल एक निजी पता के बजाय मेलिंग सूची में भेजी जाती है। फिर कई लोग पेज पर आते हैं और एक दूसरे के कार्यों को ओवरराइड करते हैं। मुझे लगता है कि मैं इसे हल कर सकता है 2 तरीके हैं: यह पता लगाओ कि ईमेल पता मेलिंग है मैं मेल भेजने से पहले ईमेल में लिंक में अंतिम प्राप्तकर्ता पता शामिल करें। क्या संभवतः 2 में से कोई भी संभव है? नहीं। प्राप्तकर्ता आपको बता सकता है कि संदेश मेलिंग सूची से आया है (यदि सूची में सही है Guidlines), लेकिन प्रेषक नहीं कर सकता। अंतिम प्राप्तकर्ता के आधार पर गतिशील रूप से एक ईमेल के शरीर को संशोधित करने के लिए प्रेषक के लिए कोई रास्ता नहीं है।

Visual Studio - SharePoint 2010 - Include Assembly > Quick Question -

Let me have a quick question ... Creating VS 2010 SharePoint Project and I am referring to a custom assembly . I can refer this assembly to my code and write this code and work fine for everyone. My feature activation code does not run when I get the project to SharePoint because the custom assembly is not deployed with the project. I have set the copy locale correctly on the referenced assembly. Am I missing something? Thanks When you create a SharePoint project in Visual Studio 2010, Will see an item called package. Open it and click on the left edge of Advanced, you will see an option to add additional assemblies, add as much as you want> You will deploy all the assemblies selected here as part of the SHarePoint package you have created .

Which style exists for mocking with Rhino? -

I have heard that the latest style is AAA, is there any other? Why do we use one and not use the other? I think there are 2 main styles - a classic one (not sure what the name is) ) - From the very beginning and the early versions of the net (I definitely used it with Net 1.1) and both AAA still are fully functional, so feel free to use any (but you mix them) Can not - it just does not work and you're funny Entries will). AAA style was developed after the lambda quote and the extension methods in C # and many people (including me) were introduced that it is clear, easy to read and intent to test Better expresses

Static variables in C++ -

Look at this pseudo code today I ran into an interesting issue: zero loop () {Fixed int x = 1; Printf ("% d", x); X ++; } Zero main (zero) {while (true) {loop (); }} Even if X is stable, why does not this code just print "1" every time? I'm starting X1 again on every repetition before printing it. But for any reason, expected increments in the form of X. The start of a stable variable is only for the first time. After that, the example is shared in the functions in all calls.

Java equal and hashCode with non primitive types -

I have a class with some non-primitive members. class relations {string name; From role role; Role role; } Role of the class (rolltype role type); String description; } Class RoleType {String typeName; String description; The two relationships are the same, when the name is equal the role type (unique type name identification) is the same as the role How to equal and hash code for members (role and role) class relationship Write Tried with Netbeans, it displays only 3 fields ( name , roleFrom and roleTo ) because that is because someone Primitive types should not be used in RAP and roll to (rollotype -> typename). Thank you. When is implemented, hash code () and With the non-primitive types of fields, it is believed that this type is also hash code () and equals () correctly Go to other classes and apply hashhead () and equals () (again using the Auto-Generating Features of your IDE).

java - Validating arguments to a method -

I have the best practice to validate logic for a method when the argument is contained within a method. For example, if you have: student of public class {public ink} scholarship (); Public string getStudentName (); Public string getStudentSSN (); Public double getStudentGpa (); Public string millstudent major (); // Other Student related Gators} Again, I have a method: Public Zero Print Stendent Report (student student); In this method, I need to do the logic of ID, name, GPA, and the key. Therefore, it is necessary that all the other student witnesses do not need to be populated Is it ok to validate student object for the first time and then those four methods are needed? I think that this is a bit misleading because I am going through this method, even then all areas are not required, so in reality this half-populated object is being sent on this method. Just seems strange to me If some properties should populate forever always be valid for a student For, you...

jQuery, altering css class itself -

Is it possible to change the CSS class with jQuery? For example, if I have a definition of this class: .my-class {right: 10px; } and now I will call it .my-class {right: 20px; } with $ (". MyClass") without selecting all the elements of this class. The reason for this is that I am adding a lot of elements in running time in JS and it is good to swap the class definition before time. .MyClass is defined in the CSS file, otherwise it was on the page with JSF / JSTL that I could change my definition. Technically, you can edit stylesheets using JavaScript with the document.styleSheets object, But you find it much more work than worth it. Read this article to find out what it is wrong:

linux - Auto-Backup script for mysql in Unix -

I am a Windows user, but I have been asked to write a script that runs on the script that automatically backs up the MySQL database I know how to backup (using mysqldump), but I do not know how to write a script in Linux and how to schedule it to run daily. How can this be done? Just a shell script? Bash should be quite easy for it: For scheduling, you would like to use cron:

wss 3.0 - SharePoint deployment, ghosted file returns 404 -

After upgrading to a special feature that includes the Ghost page template, the Page 404 response starts coming back In the SharePoint log, I get the following Ghost document can not be found: FEATURES \ FeatureName \ SubFolder \ PageName.aspx Unknown SPRequest Error occurred. More information: 0x80070002 I am working on the page via SharePoint Designer and by deleting the file, then deactivating / activating the feature on that site. I have tried to reset the web with no change in my definition. I have to make a program solution, whether it is to update something in the configuration of the facility or to make an update program. Is it possible that the upgrade file was deleted from the file system? Due to this reason the probability is to go to the feature folder and see that the file is still there. The feature folder will be in the template under 12/14 (depending on the SP version).

Searching for an image element whose src contains a keyword, in an iFrame's HTML using jQuery -

I am digging deep into the DOM of a page to manipulate a certain image feature. I have a web page that has iFrame. I have a image in itframe. The image does not have any id feature, so I'm going to find it using SRC. The source contains the unique keyword 'planet'. How can I find out the picture using jQuery? Extra: I can not reference anything in IFrame's domes. Is there any special way to reference the element inside the IFrame? Example: Warning ($ (myIframe). Find ('html'). Length) 0, expectation 1. I do not think iframe can manipulate content, if iframe's domain is not one, then you There is no control over. Edit: Since you said that it is now from the same domain, $ ('# id'). material (). ('A') should be searched .

windows - using both basic and Integrated authentication -

We want to use an integrated Windows authentication, if a user accesses our SharePoint site from within our organization, And the basic authentication (using SSL)) When someone tries to authenticate outside our organization, it seems that IE will try Windows ath no matter what and ignore basic Auth from outside our organization . This is undesirable because the user is required to enter DOMAIN in the login box (the user is notorious for calling our helpdesk). Basic Ath allows us to specify the default domain. Windows Athlete does not do this. So the desire to use Basic Ath for the outside, Windows ath for the inside. The solution to enable Windows Ath inside the network and what is Basic Aast outside our network? Do I need to set up two separate sites inside the IIS (one for Windows, second for the original)? Will it require 2 different host names? Is there any solution that I am not thinking about here? Thanks all. assumption: you want to authenticate all users, both in...

Render ASP.NET MVC view from a string -

This may be a bad idea for any reason, but I still want to complete it. Is to any way to present some HTML and code blocks in a string? My initial idea is that I will implement IView and have to put the HTML string in the constructor. Next, with the model, pass it in the view method, such as: Public Functionality MyAction () {var str = @ "& lt; html> Lt; body & gt; & lt;% = model. Some properties are%> gt; & lt; / body & gt; & lt; / html & gt; "; Var myView = new MyIView (str); See Return (myView, Model); } At this point I am having some difficulty because I do not know how to implement the view engine to parse the string and do all this work. Or, at this time, do I have to parse and present myself? Unfortunately, it's not easy to do for ASPX pages. In it, it is very easy. If you really want to do this, register a custom Virtual PacePower which resolves a particular path, call your strings, then BuildManager. Ca...

winforms - C#: Prevent ListViewItem Image to be rendered selected -

I was wondering whether the listview would be possible, in which the item can be chosen normally with a difference when A ListViewItem is selected, I would like to see a selection in the text label, though I like the image to be the same. The reason for this is that, currently the blue selection on top of the image looks terrible (the effect is also bad on transparent images!). I was hoping that the use of the drawing handler should not be used, but I think the expectations are slim. Thank you very much, Best Frank EDIT: I thought I'd better add a screenshot showing the problem. I am using the LargeIcon mode in the ListView ** Where I am not allowed to add images yet, so here is the link. Sorry for the inconvenience. *** As you can see, the selected element is 'rate versus species'. However, I love to blue on the icon to disappear. Thanks again For a winforms listView, the easiest way I To know about the succession will be the list view, and overr...

php - Parse error: syntax error, unexpected ',', expecting '}' in here on line 3 -

फ़ंक्शन वैध टेक्स्ट ($ इनपुट, $ min = शून्य, $ max = null) {if (! (Empty ($ मिनट) और amp; खाली ($ अधिकतम)) {$ text = "^ [a-zA-z \ s0- 9] {$ min, $ max} + $"; } और {$ text = "/ ^ [a-zA-Z \ s0- 9] + $ /"; } यदि (preg_match ($ पाठ, $ इनपुट)) {वापस सत्य; } अन्य {वापसी झूठी; }} समस्या क्या है? क्षमा करें नौसिखिया समस्या समस्या पंक्ति में है: $ पाठ = "^ [a-zA-Z \ s0- 9] {$ min, $ max} + $"; समस्या यह है कि {$ var} PHP में एक विशेष सिंटैक्स है $ var, $ var वैध वैरिएंबल नाम नहीं है, इसलिए {$ var, $ var} अमान्य है ... इसे आज़माएं: $ text = "^ [a-zA-z \ s0- 9] {{$ min}, {$ max}} + $";

class - What's wrong here? - ISO C++ forbids declaration of 'Circle' with no type -

Maybe you can help me get this right. I have a class that is used to draw a circle, but the compiler sends me this message: in the file included ./Includes.h:19, ./Circle .h: 8 sec, from ./Circle.cpp :: ./GameApp.h:24: Error: ISO C ++ has not announced the declining 'Circle' with any type ./GameApp.h:24 : Error: Expected ';' Before '*' token here is GameApp.h: #include "Includes.h" category GameApp {public: GameApp (); ~ GameApp (); Zero submission (); Protected: zero InitGU (); Boole control (); Zero * Delist; // display list, sceGUStart is used by zero * fbp0; // frame buffer circle * circle; }; Include.h looks like this: // ****************** * **************************************************************************************************** ** // include H. *** *********************************************************************************************** *************************************************************************...

sql - Modeling products with vastly different sets of needed-to-know information and linking them to lineitems? -

I am currently working on a site that sells different types of products that are custom-made. I've got your normal, standard cart schema: There are many line items in the order, line items have a product, but I've run into a sticking point: We say that from our products One is a ball, and one of our products is a box of crayons when people are making their order, we end up making things that can be presented by some Piedocode: Ball: Attrib Ute: Diameter: Decimal Color: Foreign_Fronto colors.id Contents: CrayonBox to Foreign_ref Materials.id: Features: Width: Decimal Height: Decimal front_text: String crayons: crayon with many_to_many ... Now, these orders are created and stored in our DB before creation. I can make it very easily so that when an item is added to a car, we get the name and value of the product by linking it to Ball or CrayonBox in our controller It's creating LineItem , but if we could provide a complete set of information for every line ite...

c# - Can LINQ To SQL detect where a table association breaks? -

I have two tables that I am using to fill the gridview. There is a common field in the tables, which is the RangeActivide ID. My problem is that the database is too old and some of the older entries do not match the ID between tables, so I am unable to add a union between them in the database. I do not care about old data which does not match, so in my .dbml file, I manually created a union to select good data from both tables . This is my LINQ query: var Connection to Group = P. By ordering the range method, select p.RangeActivityIDNew {TestName = p.TestName, DateTime = p.ActivityDateTime, Notes = p. Notes, // RoundsSecilonNumber = P. Rundfeir.roadsexual number, // roundout = p. Roundfire round type, // lotstock number = p. Roundfire.lotnumber}; I can set my grid datasource to 'collective' and everything works, but if I repeat the three commented lines, then no results from the query Because the table shows the data that the Association criteria is, is the LINQ qu...

ajax - Character encoding issue when loading a div using jQuery.load() -

I have a page encoded with UTF-8 which will encode another page encoded with UPF-8 Also logs in. In the second one to load a page in a page, I use them in the jQuery (Load) method of 1.4.2. Everything works fine in Chrome, but all non-American characters in Firefox are shown as a strange symbol. If I use FireBug to inspect the loaded device, then I can see the internal page (loaded with a thor), encoding charset = ISO-885 9-1. What am I missing? TIA Check the HTTP charset of the internal page: its web server It should serve content-type: text / html; Charset = utf-8 Or you may have to set it on a script that is requesting through Ajax.

python - How do I delay a task using Celery? -

delay is not talking about the method. I want to be able. Now I have to cancel it, and have to schedule again, to get an assignment, it has been given the task_development and if it flies, To change Trouble involves a lot of things in the scheduled process. You must exclude some 'pause' value celery / work queue I call it mailer with a cellar I can stop parts of the system by setting the value in memcache or mysql. The task then ensures to ask outside resources before executing the work. If it is paused, then it sets that it does one function. Root () which it passes through the time of retry delay and thus

Java - Get reference to a static class using reflection -

जावा में, प्रतिस्थापन का उपयोग करते हुए एक स्थैतिक वर्ग (नेस्टेड) ​​का उदाहरण प्राप्त करना संभव है? मेरा मान है कि मेरे पास पैकेज में परिभाषित निम्न 2 वर्ग हैं Package1.SubPackage.SubSubPackage: सार्वजनिक वर्ग MyMainClass {सार्वजनिक स्थिर वर्ग SalesObjectGrouper1 {सार्वजनिक स्थिर अंतिम GrouperContext CONTEXT = नया ग्रूपर कॉन्टैक्ट ("माइदेट"); } निजी स्टेटिक क्लास SalesObjectGrouper2 {सार्वजनिक स्थिर अंतिम GrouperContext CONTEXT = नया GrouperContext ("MyDate"); I ; } पकड़ (क्लासनोटफौन्डएक्सेशन पूर्व) {// हमेशा त्रुटि मारा} यह इंगित करने में त्रुटि होगी कि क्लास नहीं मिला। क्या यह किया जा सकता है? क्या आपने नेस्टेड क्लास के संदर्भ में MyMainClass $ SalesObjectGrouper1 नेस्टेड क्लासेस को आंतरिक रूप से नाम दिया जाता है ContainingClassName $ NestedClassName

jquery - How to build a javascript preloader for images -

itemprop = "text"> I have a page of thumbnails that changes my ambiguity with the hover with an image swap script created in JPYER . However, when I run it on a live website it is slow and you have to wait to load the second image, so the hover swap can not be done Now how can I see all the images of thumb as a page load Can I load? The site is live here is html & lt; Div class = "span-16 last" id = "thumbs" & gt; & Lt; Div class = "span-4" & gt; & Lt; A href = "waterfront.php" & gt; & Lt; Img src = "picture / thumb / thumb1.gif" id = "thumb1" & gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;! - End of thumb - & gt; Here is jquery $ ("# thumb1"). Attar ("ARTR" ("source", "images / thumbs / thumb 1.gif");}););};);};}, function () {} $ ("# Thumb1"). Attr ("src", ...

jQuery : how to add a delay to an ajax request? -

I have a function that provides a certain amount of data that triggers AJAX while typing. But, as soon as I type "long" string like "hello my name", every time I make a request (once in 10 times and takes it in 5 seconds) 1 request response). How to avoid that? (I do not want to use .onblur) $ (document) .ready (function () {$ ('search input [type = "submit"]'). Hide () ($ ('# Search_keywords' 'ART' ('Action'), {query: this.value + '*'}, function () ($ ('#' ($ #) '$' ('# employment'). Loader '). Hide ();}}}}}})}} thanks;) I set a timer on that funnel event, such as: $ ('# search_keywords') keyboard (function () {Clear timeout ($. Data (this, 'timer')); $ (this). Data ('timer', set timeout ($ proxy ( Oz, it), 500));}); function search () (if (this.value.length & gt; = 2 || this.value == '') {$ ('# loader'). ); ARRR ('Act...

Cookie httponly accessible when I make ajax php queries? -

I have been asked before, but I need some explanation and confirmation. I have been told that to prevent XS, use only http to create cookies. So my explanation is whether I use alone, will my PHP scripts be accessed via AJAX request, still my active php session default: phpssessid) and my $ _SESSION variable Retrieve? The thing is that I have not designed with the httponly option only and I am concerned that this option will affect the design of the script anyhow. / P> Thanks! I'm not sure that I'm getting the question, but here's a knife: In the same way you will need to set up the session as you did on your main page. For example, I have only one file in which I am included in "My main page" and anything else from that page Calling using AJAX. Then, above my index.php The only thing on top of my ajax_helper.php file Mysql startup commands in db.php file, session_start and anything else that would be normal for all pages on the site...

asp.net mvc - MVC client validation causing false errors -

I'm hoping someone has run something like that. A text input text is triggered client side [required] error message I have the following included in the master:. & lt; Script src = "/ script / jquery-1.4.1.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / jquery-1.4.1-vsdoc.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / MicrosoftAjax.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / microsoft mvcackex.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / MicrosoftMvcAjax.debug.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "/ script / MicrosoftMvcValidation.js" type = "text / javascript" ...