Posts

Showing posts from September, 2015

mysql - Can mysql_pconnect be called multiple times in one php page? -

I was wondering if it is valid for calling mysql_pconnect several times in a php page? Also, if possible, should I either close my last ISSL handle or something? Actually the following code is okay? Or is there a lack of some other steps? mysql_pconnect ("ip: 3306", "user", "pass") or die (mysql_error ()); Mysql_select_db ("test") or die (mysql_error ()); // Some SQL queries mysql_pconnect ("ip2: 3306", "user", "pass") or die (mysql_error ()); Mysql_select_db ("test") or die (mysql_error ()); // Another SQL query Yes but this is probably a better practice, both the headset To store both in the database and make the correct DB explicit use. dbServer1 = mysql_pconnect ("ip: 3306", "user", "pass") or die (mysql_error ()); Mysql_select_db ("test", dbServer1) or die (mysql_error ()); DbServer2 = mysql_pconnect ("ip: 3306", "user", "

msdn - where are the official directx forums? -

I am checking around MSDN and Microsoft dot com but I can only find archived platforms. Are there any Microsoft DirectX forums for DirectX? Here it is: You can use XNA, D3, D3 10, D311 etc. Everything will be related.

MVP, design question -

I am working on an MVP designated application and there are some design questions: I presenter how to communicate while writing code in the layer Should go between different presenters / ideas? Let's say I have a window window with a window viewer and I want to set the window title on the window from the second window. I have a title-setter on the window view, which wraps the actual Gui title. Should I call the title-setter directly on the scene (window viewer.tit = "title") or should I wrap the view title as the presentation title setter (window-creator.tit = "title")? Ask yourself how you will test it? If you do a window presentation. View. Tight = "Title", how can you test that the presenter is setting the title?

excel - Populate list via a bi-Condition -

I'm interested in implementing something but I'm not sure it would be possible and would like to take it on. This is my scenario: I will have two verification cells, which will be shown as a list, from which I will select. This is my condition that I want to remember and remember my list from a database. I have a list of agents, which has been thrown at B13: B23 and the next two, I have columns of data that assume that my data base looks like this bcdx | Y Z Agent 1 1 | 1 | 0 Agent 2 0 | 1 | 0 Agent 3 0 | 1 | 1 agent 4 1 | 0 | 0 ... I want to populate a list named agent from column B, when I verify cell 1: x and verification cell 2: 1 I choose from. It should only show an agent in column X with column: agent1 agent4 or 0 ... I read somewhere Array formula but I do not know if this is convenient and I have unfortunately not any background in the macro :( But I know C ++ is quite easy with some conditional statement like this. Advance Thanks, This

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

There is an object like "set" in Java that can contain only unique string values, but it also includes a count Is the number of string value in number? This idea is simple. A data set, ALA ... ABBCCC I will set the text of each line set- I want to add to the object every time a non-unique text is added to the set, I also want to show a numeric value associated with the set to show how often it was added. So if I run it on the above data then set output will be something like this: A: 1B: 2C: 3 Any ideas? Maps & lt; String, integer & gt; add public null (strings) {if (map.containsKey (s)) {map.put (s, map.get (s) + 1); } And {map.put (S, 1); }}

iphone - How do I make a UIPickerView in a UIActionSheet -

Just want to know how I will create UIPickerView in a UIActionSheet with a simple array. Well, I really know how to put it in an action sheet but I like my way because it is more for my app, thanks, but I I also want to know how to put options in UIPKviewView, I just have an array with colors already on top of that part: red, green, blue, yellow, black, etc. in this, but I want to know how it In the preview d L'be if I am using the already Instifrem:? Please help anyone. I know that this is a stupid question, but I'm cheating my head on my $$$$$$ MacBook. Instead you want to do this, create your UIPickerView interface builder and have it in your view controller Connect to the outlet. Add it as a subview of your main view and set its frame coordinates so that it is offset right below the edge, x = 0, y = 480 Then, when you want to display a picker, animate it like something with the screen: [UIView startup permissions: zero reference: zero]; [Color picture setfr

Is there an open source WebSockets (JavaScript) XMPP library? -

Has anyone written the open source XMPP library that uses the websacet and is being run by a browser? We do not yet have a standard XMPP that can enforce the server, Must be adequately faced before it may be necessary The first step is to eliminate WebSAT standardization. It seems that it can be in an IETF Haib working group, which has not been approved by the IESG so far in the writing time (see) a few weeks ago (Hiroshima), a hybrid bird-of-a-feather in IETF ( BOF), which went very well. WebSketches have a constant reference, and it seems to be systematically organized, one will make XMPP binding for webmasters, possibly with a bar for every webset frame. Edit: Jack Moffitt has written an IETF can be used with the first pass on a protocol. Warning . It is still likely to change fast enough, only apply it if you are ready to wrap it completely later. Warning

asp.net - Automated creation of IIS 6.0 websites -

We have a web application portal that hosts many applications with each of their IIS websites, so every time we do our own To adopt a code, developer workstation, or another machine to run the server, we will have to prepare all the websites for each of our applications, (and of course this list keeps on growing). Is there an API call to create an IIS website, so that I can store all the necessary information in a database table and then write a Winform program that will check the table and automatically create an IIS website for each record? If you want to do it in the WinForms / Console application, I recommend the Directory Services Namespace. Here are some good documents: For example, directories for creating sites and virtual: System.DirectoryServices Namespace is a managed wrapper around ADSI API that uses various IIS administrative scripts. For more information about different metabase properties, you would recommend this reference: If or when y

concurrency - Memory effects of synchronization in Java -

Says: But there is more to synchronization than mutual exclusion. Synchronization ensures that a thread writes memory before or during a synchronized block, in an approximate way, appears to other threads that synchronizes on the same monitor. After we exit a synchronized block, we release the monitor, in which the cache is flushing in the main memory, so that the instruments written by this thread appear for another thread. Before entering a synchronized block, we receive the monitors, in which the effect of making the local processor cache invalid, so that the variable can be reloaded from the main memory. Then we will be able to see all the writing that is visible by the previous release. I also have to remember that unusual synchronization on modern Sun VM is cheap. I am a little confused with this claim, like the code: square fu {int x = 1; Int y = 1; .. synchronize (aLock) {x = x + 1; }} Update of X requires synchronization, but does the acquisition of lock also c

css - Center float boxes horizontally -

I want to display some floating boxes (thumbnails containing divs) and the number of thumbnails depends on the current page width. For example: & lt; Div class = "container" & gt; & Lt; Div square = "box 1" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; & Lt; Div square = "box 2" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; & Lt; Div class = "box3" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; & Lt; Div square = "box 4" style = "float: left; width: 120px; height: 120px; margin-right: 10px;" & Gt; Thumbnail image here & lt; / Div & gt; .......... ETC & lt; / Div & gt; The problem is that 4 boxes are shown

ssms - "collapse all' or "toggle outline" in SQL Server Management Studio 2008 -

There is a new feature 'Outlineing' (the ability to collapse areas) in SQL Server Management Studio 2008. This is amazing. However, by default all areas are expanded. I can not seem to find a way to 'all fall' (also called 'toggle framework' in the visual studio) Does anyone know the way to do this? I have been entrusted with the task of reviewing the 3,000 line stored procedures, and the breakdown of each other is cumbersome. It seems that this feature does not exist. It has been recommended for Microsoft to vote I suggest; As part of the work, I am using Notepad ++ to edit locally. The identity of its area is not as good, but it is nothing better.

php - Is it possible to override the Subversion HTML pages? -

I have a subversion server, which provides subversion access via Apache2 and mod_dav_svn The system works fine and the client can use the repository with SON clients such as Tortoise SN.N etc. Users can also use HTML Reader of the same URL. Can these readers be more prone to, or be replaced? If so, how would I go about it? You can specify a SVNIndexXSLT < httpd.conf : and / location: / repository & gt; In your repository, & lt; Location & gt; Code in> . DAV SVN SVN Path / var / repository SVNINDXXLT "/svnstyle.xsl" [...] & lt; / Location & gt; With this command, subversion will list an XML directory instead of one HTML directory, and you can list this XML in any way listed XSLT file. The way you specify in the SVNIndexXSLT directive, it is a URL of your webserver, it must be used to properly present the browser to pages.

php - Good tutorials for Joomla? -

Can someone really recommend a good tutorial for learning Joomla, most of which allow me to click spam ads Meet for many ads without learning anything I am using Joomla for the first time and I am confused with certain words because they are all the same. For example, section and category are almost identical, and so on. Maybe Joomla is not the right choice for me, what I really want is some kind of CMS: Free to use Easy to administer (add / customizable CSS or existing templates hack / exploitation / will not get injections so easily / Local> The best tutorial you can get from installing Joomla on your localhost And with it you have to play around it! Besides Joomla you can also look at other CMS but I can say that Joomla fits best according to your criteria. Wordpress basically There was a blogging engine and this is what is still the most. Drupal is another great free PHP CMS, but if you want to use it easily, then Jumla wins on Drupal. LA wins. Volume terms

c# - USB How do you create a bootable custom USB application? -

Many LCD TVs nowadays have USB ports so that you can plug in your camera and it will be a camera gallery on TV. I want to write a gallery program that, when plugged into a TV, will start playing through images on a USB device. How would I do this? Is it possible to write some types of OS / applications that can run on a single USB device? will depend entirely on the firmware of that television, even if it is supported. If this happens, then it will need to see the details of how to do this.

vb.net - VisualBasic 2010 Syntax Refresher -

With the similarities and installing WinX, I thought I would return VisualStudio to my computer and Tinker for a while I'll give it, but it's a while and I'm a little messy with it. Can someone send me in the quick and easy guide for VBasic syntax? Keep an eye on these and < / P>

iPhone statistics access to client -

I have created an iPhone application and successfully approved by Apple. The application has been uploaded to the developer account of my company. Now my client wants to use to see sales reports. I can not give it to my company's developer account login details because there are many applications other than my clients in the account. Do I have permission to access my client to view financial reports of only my applications? / P> What options are available. Update: My customer is specific that he wants to log in and see. According to My knowledge is the only way that he can see the details of the report whether I uploaded the application using my developer account. One of the developers said, "We will submit an iphone app from the app store to our iTunes App Store, so you will naturally be able to access all the available data. Please let us know that you need to purchase a paid account to submit an application to the app store. " Does the above men

iphone - Display keyboard without animation -

has been found in UIKeyboardAnimationDurationUserInfoKey but I can not find it anywhere that how to define a custom value Have to set up. UIKeyboardAnimationDurationUserInfoKey is a dictionary string identifier that holds the dictionary key Animation duration, so there is no way to change it easily. To view keyboard notifications and disable animation when they are visible and then they are re-enabled, there is a way to reveal the keyboard without animation. This, of course, disables any other animation as well. [[NSNotificationCenter defaultCenter] addObserver: auto selector: @selector (WillShowKeyboard :) Name: UIKeyboardWillShowNotification object: zero]; [[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (Shawkeyboard :) Name: UIKeyboardDidShowNotification Object: Zero]; - (empty) will be World Box: (nsnification *) Notification {[UIVV SetAnnaments enabled: No]; } - (zero) show showboard: (NSNetification *) Notification {[UIView set animat

sql server 2005 - how to do attachments for each sql record in c# -

I am developing a desktop application c # & amp; SQL 2005. With the candidate data entry form I want to provide the option of attaching the necessary documents (in pdf format) Delayed data Please tell me the best method. Already, thank you very much. Ok, so unfortunately you have to manage the file storage using either the server file system, Or you see the SBL Server 2005 file archive OK, then for file management P> See this example < P>

iphone - Open GL ES - Z order when rendering 2D sprites -

I was thinking that OpenGL EES was a way of presenting and rendering a batch of quads (provided with changes in texture page). Them in z order (or reverse) Note that I do not want a zubfire, I just want the quad provided in the order of zDepth. Now I know that people will just say they are in order, well I group them by texture pages. However you can imagine that there are some cases where sprites need to appear in front of another from a textual page. So I was wondering whether I would be assigning quads az to OpenGL ES to honor this? Any help received greatness. RIP Rich Get whatever you want without jj buffer / depth buffer Can not .. What are you asking for the depth buffer's work without having it enabled! When the Z buffer is enabled, then every OpenGL draws on a pixel. It looks at the current z value of pixels and then decides whether to attract it or not. When the depth buffer is not enabled, it only overwrites the current z of the existing pixel.

Why use a framework with PHP? -

I'm curious, what are the advantages (and disadvantages) on using the framework with PHP? I am using PHP on and off since the 3rd edition. I have never used any framework for PHP, so what am I missing? The framework links you to a low level of detail, makes you more productive, and the lower level (Such as blocking SQL injection attacks). A good PHP framework lets you separate your concern and implement a proven architecture, which eventually improves your design, and makes it easier for you to read and maintain your code and test the unit. is. The use of the framework in this context is

sharepoint - Create webpart saving its data on leaving article page -

I have a custom article page layout that has many lookup fields sent to the tagged list. In this layout, I place a webpoint that tags tags for me tags. When I create a page from the layout and edit it, the webpage let me easily add / remove tags. To save the page when the user clicks the link to call the out-of-box function to the user, how can I save data in a webpage? Any help would be appreciated.

seo - Is 301 the correct redirect code for "fake" subdomains? -

My site specifies a duplicate subdomain for each user with lines http: / / Username.mysite.com/ Which http://mysite.com/shop/username The second link is used internally, the link is specified as rel = "canonical", and what I want to show in the browser as the correct URL, subdomain is basically just one for my users The feature is. The question is, is that 301 fair in this scenario? A 301 redirect is used for that link which now indicates elsewhere, which means that the old link has been deprecated. My concern is that I can still attract bad SEO juju by using 301 redirect during advocacy / promotion of old links. Yes, 301 is the right choice because the search engine will give the indicator to the last URL instead of the subdomain. I have never heard of any penalties for having too much 301 redirects. Other redirection types have been correctly described what you are looking for (temporarily transferred, etc.).

python - Why is pdb displaying "*** Blank or comment" when I try to set a Break? -

I am working with my Django app. For some reason an element of a list is being assigned incorrectly. I am trying to set a break where I think the error is happening. (Line 20) I am implementing PDB with this line of code: import pdb; Pdb.set_trace () However, inside the code, I can not set the break (PDB) B20 *** blank or comment ( PDB) Break 20 *** blank or comment ` What am I doing wrong? PDB is telling you that the file you are in is not a code; It is either empty or just contains a comment. Such a line will not actually be executed, so a breakpoint can not be set on it. Use the 'list' command to view the file's code which you currently set to the 'support list' for this command description, and then set the breakpoint to lines that contain executable code Are there. You can also use the 'where' command to see the stack frame, because you are not in the correct file. You are not looking at the stack frame level, where you thin

How to dynamically draw buttons in .NET windows app? -

In the long run, I have created an application that has some buttons in the form. Now the customer wants to modify the existing application so that he can add a custom button. Now there are some existing buttons (eg button 1, button2, button3 ...) and one button "Add new ..." so that the user can add a new button under the current button . So far, I am creating user interfaces only by controlling the form in the Visual Studio so that I the existing application Windows Form Application (C #, .NET Framework v3.5 ) And the client is using Windows XP. It may be easy to create a WPF application, but I'm not sure that it is possible to run on Windows XP ... Thanks! If you can create a new dynamic button using C # button btn1 = new button (); This.Controls.Add (btn1); Can you add more properties to btn1 ?

linux kernel - inteldrmfb api? -

I have a kernel 2.6.31 that has reached the graphics mode using the Intel 915 based KMS from the USB stick. . It appears that setting itself in original resolution and its booting appears to be well in framebuffer console with a beautiful Tux logo! The question is, how can I use IntradRMFB? How do I get it into / dev? What udev would do for me? What is the API for programming the framebuffer directly? Thanks, FM Try the DirectFab Library? EDIT: The kernel API has been documented in Linux / documentation / FB, for starters, see Colonel GIT tree. It does not seem that has changed for a long time. Perhaps still the correct kernel & lt; -> User APIs are static. may be useful, but this is probably not useful as a kernel doc. Perhaps, as you say, library sources will be the best reference of how to do the work. If you are not seeing / dev / fb0, even if you have a module full, then maybe you have to configure udev for it? Or just yourself

Django vs PHP+framework -

I am in the process of choosing a web framework for an application that will include: The subsite, accessed by mobile terminals (such as cell phones, Windows Mobile, etc.), which will include Google Gears for offline assistance a reporting site Since I know the basic PHP and the Python as well, I'm tilted for the use of Python because Python is a better input It is However, AJAX (jquery, YUI, ...) is needed to be widely used and requires some type of reporting engine (such as Jasper's report for Java), I go away from the world because I'm on Google There are not many results ... just to think that there are so many documentation and addons in PHP that can help with my needs, as well as the structure of Symphony or Codeigner, some PHP language weaknesses I wrap them up. AJAX and reporting and Django? Actually, I want to be convinced that there is a way to go with the DJGengo, or warnings to stay away from it. Cheers

jquery - WCF JSON object -

[ऑपरेशन कॉन्ट्रैक्ट] [WebGet (RequestFormat = WebMessageFormat.Json)] सार्वजनिक MyEmployee DoWorksINGLE () {New MyEmployee "बुरा", "मुन्नर"); } [डेटा कॉन्ट्रैक्ट] पब्लिक क्लास माइममोर्ची {सार्वजनिक स्ट्रिंग फर्स्टनेम = ""; सार्वजनिक स्ट्रिंग LastName = ""; सार्वजनिक MyEmployee (स्ट्रिंग एफ, स्ट्रिंग एल) {FirstName = F; अंतिमनाम = एल; }} मैं बाहर डाल दिया है। {"d": {"__ प्रकार": "MyService.MyEmployee: #efleet"}} केवल ऑब्जेक्ट का नाम मान नहीं है क्या कोई मदद कर सकता है? मेरा मानना ​​है कि जेएसओएन सीरियलइजर केवल गुणों के खिलाफ काम करता है और फ़ील्ड नहीं है और उन्हें होना चाहिए DataMember विशेषता के साथ चिह्नित प्रॉपर्टी को FirstName और LastName फ़ील्ड को परिवर्तित करने का प्रयास करें और देखें कि क्या यह समस्या को हल करता है। [DataContract] सार्वजनिक वर्ग MyEmployee {[DataMember} सार्वजनिक स्ट्रिंग प्रथम नाम {get; set;} [DataMember] सार्वजनिक स्ट्रिंग लास्टलाइम {get; set;} ...}

Django: Access model through another model -

वर्ग परियोजना (models.Model): title = models.CharField () कक्षा नौकरी (models.Model): Name = models.CharField () user = models.ForeignKey (User) project = models.ForeignKey (project) मेरे पास प्रत्येक प्रोजेक्ट के लिए कई जॉब्स हैं प्रोजेक्ट की सभी नौकरियों के सभी उपयोगकर्ताओं की सूची मैं कैसे प्राप्त करूं? मैं इसके साथ आया: users = set () project.job_set.all () में नौकरी के लिए इसके बजाय अपने उपयोगकर्ता मॉडल से उपयोग करें और शुरू करें: users = User.objects.filter (job_set__project = project)। अलग ()

git - Codaset, Codebasehq, Unfuddle, Trac or Redmine? -

I have some small GIT repositories that I would like to host remotely. They are all private projects, most of them are in Java. Kodaset, Codebasecache, Unfoodle, Track, Redmini .. There seem to be an abundance of solutions. They are packed with all the features and useful functionality. Putting pricing and shiny layout aside, what is the best way to compare these options? Up-front disclosure: I'm one of the tracy gods. I think that you have to see what you are trying to achieve, which procedure will help you to meet those goals and how you get along with the available options, and the system Look at the flexibility to be provided. I think there is flexibility where the track really shines - there are so many plugins to add many functionality (something better than others), and it is not difficult to write them; And the workflow is very configurable, so what you want for your workflow, you can make it very easy (a ticket is either open, or closed), or as complex, wh

yacc - What does the default main() created by flex look like? -

I want to do the same to my flex / yacc program that already does, but I modified it a bit Want to do If I had put a main () in my .l file, and did it do something like I did not add a main (), then what does the code look like? You can generate code normally, then copy your "normal key". But expect input from standard parser stdin, you should call in main () , call / code> yyparse () main (AC, AV) {yyparse (); Return 0; } On page 96 there is a more complete example which sets input and output through this type of code: extern file * yyin , * Yyout; Yin = FOPN (Infil, "R"); If (yyin == NULL) / * handle error * / yyout = fopen (outfile, "w") / * handling area * error * / yyparse (); / * Post Processing * / Exit (0);

Java client and server problems -

I have edited this post based on the recommendation by a fellow user. My specific problems are: Currently when I run Server.java, it increases a map with a player on it, you can not move the player That is what I wanted, it creates a new "run game". This idea occurs when I run the client java, it enables the player to move around the map by creating a new craft object, because it is now, for some reason, that player Creates another map with (two are running) and none of which is the movement. I'm not sure how to explain this further, what would I want to know is that there is a server and client who builds the background, and connects the object that runs through the key, But when a client is connected to the server? I hope this is a better word than my last attempt. Thank you. Echnology is special without looking at t, i think that by stepping back and looking at the overall architecture it will be creative here . Which state should be shared? From

c# - Conditional shortcuts in LinqToSql query -

Here is a small LyncToSQL glow: // Provides the number of counties in the state Is, // or all the counties in the United States if the state is empty public stable intounts (state) {var q = from the seat in the county. GetTable (//) ITB to my method where (S == blank || S.Code == cy.StateCode) // Shortcut or operator, right ...? Select Cy; Return q.Count (); } What do you think - if you pass a null state by this method, then you get an empty reference exception! It seems that LinqToSql as a shortcut || does not use the shortcut operator! Answer goes to anyone who gives the best explanation & amp; Solution for this If this linq is sql, remember that linq is parsing your query in SQL . So to send both of you to the clause where the database is, so the exception I really do not know this amazing, though it is logically incorrect You only have to make an independent check. if (! String .isNullOrEmpty (state.statecode) q = q.where (s => code == state.state

cocoa - Getting and Setting values from Core Data elements in Objective-C? -

मुझे दो संस्थाओं के साथ एक साधारण अनुप्रयोग मिला है: व्यक्ति: विशेषताओं: नाम रिश्ते: मूल भाषा: (& lt; & lt; - & gt; भाषा। Natives) गैर-देशी भाषा: (& lt; & lt; - & gt; भाषा .non_natives) भाषा: गुण: नाम रिश्तेः मूल निवासी: (& lt; - & gt; व्यक्ति। मूल भाषा) गैर-निवासी: (& lt; - & gt; & gt; व्यक्ति .nonNativeLanguage) लोगों के लिए स्क्रीन संपादित करने पर, मुझे एक टेबल डिस्प्ले मिला है जो व्यक्ति के लिए सूचीबद्ध गैर-मूल भाषाओं की सूची के साथ एक नई भाषा को जोड़ने के लिए किसी अन्य भाषा और एक बटन का चयन करने के लिए एक ड्रॉप बॉक्स के साथ है सूची में। मेरा लक्ष्य निम्नानुसार एक फ़ंक्शन बनाना है: - (IBAction) addNonNative भाषा: (आईडी) प्रेषक {// अंत में भाषा कीलता कई-कई रिश्तों पर सूची में सेअनुक्रमित.नॉनलाइनलैनगुएजेज = पर्सनेंट्री.नोनभाषी + प्रेषक; } और बटन को कार्रवाई संलग्न करें। ट्रिक है, जबकि मुझे पता है कि कैसे नियमित चर को असाइन और संशोधित किया जाए, मुझे नहीं पता कि इंटर डेटा बिल्डर के बाहर कोर डेटा की सामग्री को कैसे सं

vb.net - msgbox when user hits enter in visual basic 2010 -

I just want to alert the user hit "enter" key. I present this event in a key, if e Cacode = keys Then terminate the MSBBX ("msg") if did not work, is it wrong? Enter key UI design has strictly defined use, it executes the "accept" action of a dialogue. . In the Designer, select the form and set AcceptButton to your button. No code necessary. Note that CancelButton has a similar use, it is hard-wired for the escape key.

Errno 5 caused througth web2py -

I / O error error 5 When "print" is used it is thrown. I do not know why ?? server: redHat with built-in = web server you "print" And the output goes to the console if you use GAE instead, then it redirects the stoutout to the socket, so you can print on your page and it will break your pages. If you use mod_wsgi stdout is off and you can not "print" at all. I do not know what the fault is 5, but one of these could be the result of these problems. I recommend not using print for debugging. Use logging instead If you post queries related to web2py on the web2py mailing list, then you are guaranteed a response and a fast response time.

basic question regarding objects in c# -

Hey guys, just start with C #. I had some doubts, really appreciate it if someone can help me question # 1 animal dog; Dogs = new animals (); What is the difference between the two lines mentioned above? Question # 2 Namespace proj1 {public class} form 1: form {man bob; Public Form 1 () {Incentive component (); Bob = new boy (); Bob Name = "bob"; }} When Form 1 class is instant, then constructor form 1 () is the first thing to run. But how is the data of the class in the member's announcement, which can be executed before Bob = new man () boy Bob ?? Question 1: Animals dog; Dogs = new animals (); In the first line of this example, you are declaring a variable type of animal . This means that the name of this variable and its type will be emitted to the stack by the C # compiler as part of IL in the assembly, whatever you are currently in. The second row is an interesting part in the second line, you are making a new example of ty

php - Make cURL behave like exactly like form -

I have a site that sends data to some remote site - Simple HTML form What I want to do is to use the data user To do statistical purposes is to enter the form. So instead of sending data to the remote page, I send it to my script for the first time which sends it to the remote site. I need to behave correctly that the display of remote sites and resources for the user in general. When I use this code it works a bit, but the way I want it, not in it: $ ch = curl_init () ; Curl_setopt ($ ch, CURLOPT_URL, $ verb); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, $ fields); Curl_setopt ($ CH, CURLOPT_FOLLOWLOCATION, 1); $ Result = curl_xac ($ CH); Curl_close ($ ch); The problem is that it displays a response in a single script, for example if $ action is for example: somesite.com/processform.php and my script name is mysqcript.php It will display the response to "somesite.com/processform.php" inside "mysqcript.php" so that all re

ide - Separate code and comments -

I'm getting comments on the code that starts to bother. I think once you have some level If you get expertise, the code is very self-documenting but the comment is still a requirement. What would I want to know is that this kind of comments from one such plugin or IDE code is with this idea. If there is no such thing, what do you think that will be a great work on plugin for an IDE like Adepple? Take this python code for example: Def do_something (self, var): # * 541 ... Then some XMLs like this: Thanks! Good comments combine information, such as why , repeating those codes I do not agree, so I do not agree on the basis of the question. However, to go with the idea of ​​a moment, I can imagine an IDE when you hides comments while editing, but archiving them separately is confusing There is a recipe.

wpf - How I should reference Custom Control in C# code behind file event trigger? -

Xaml पृष्ठ में मैं अपने कस्टम नियंत्रण को इस तरह संदर्भ देता हूं: & lt; MyNamespace: CustControl X: नाम = "कस्ट 1" / & gt; अब मैं MouseLeftButtonDown ईवेंट ट्रिगर में इस कस्टम नियंत्रण की संपत्ति को बदलना चाहता हूं: निजी शून्य Grid_MouseLeftButtonDown (ऑब्जेक्ट प्रेषक, MouseButtonEventArgs ई) {} लेकिन जब मैं कुछ लिखने की कोशिश करता हूं CustControl.Isselected = true; एक त्रुटि कहती है: एक ऑब्जेक्ट संदर्भ की आवश्यकता है .. मुझे लगता है कि यह "MyNamespace" नाम स्थान के बारे में है, लेकिन इसका पता नहीं कैसे किया जाए। आप को Cust1 को संदर्भित करना चाहिए, लेकिन कभी-कभी दृश्य स्टूडियो नियंत्रण के लिए फ़ील्ड सदस्य को तत्काल तैयार नहीं करता है। "post-text" itemprop = "text"> Cust1 टाइप करने का प्रयास करें। चयनित और यहां तक ​​कि अगर विजुअल स्टूडियो इसे पसंद नहीं करता है, तो यह देखने के लिए भवन बनाने का प्रयास करें कि यह सफल होता है।

digital certificate - Is it possible to sign a java applet for free? -

I have created a funny applet that allows you to paint with your voice. Obviously this requires access to the microphone, but access to Java Applet is not allowed unless they are signed. As far as I can tell its difficulty and it involves cryptography, and, although it is not clear, I think I am also expected to pay Verisign money. All this looks like a very bad innovation, which is pushing me ** and I think I am not the first person to think like that. Is it "there is only way to bypass" educational or testing purposes? "Or maybe stop the security in my browser or sign on the applet for free? I am on Ubuntu 9.04 with Firefox 3.0.15 and Java 1.6.0 You can go a step further and set up your own CA. The original certificate will allow you to create and generate any number of signatures or SSL certificates. Then you can add your root certificate to your friends You can distribute and install them in your browser. After that, the certificate series for your cer

post - Filter results with Jquery -

I have created a search form for a script in php. I basically have some checkboxes and submit buttons in this form. Each checkbox is a category, if I look at one or more checkboxes, the result is filtered by thoose categories. Here is the html code: I am trying to get results inline with AJAX, for most parts of my script, I use JQuery to make any person $ _POST data via AGx Passing in realtime, can help me find out without reloading the page? p.s I am sorry for my poor English, I hope I was quite clear: | The ID should be unique, the form only concerns about names. & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('# submitbutton') Click (function () {var catArray = new Array (); var j

c# - ImageConverter: Parameter is not valid for a byte array -

I am sending string formatted data from an iPhone client code to a web service. I am trying to encode it in binary 64 and then converting it into a byte array. I get the problem of parameter not valid at the following point in the code byte [] ImgInput = System.Text.Encoding.UTF8.GetBytes (ImgInputString); Convert string = imgString. ToBase64String (ImgInput); Byte [] imgBYtes = Convert.FromBase64String (imgString); System.IO.stream ms = (stream) new system. IOM Memorystream (imiginput); //ms.Write (imginput, 0, imiginput. Length); Image converter icc = new image controller (); Image image = (image) ic.ConvertFrom (imgBYtes); Error code imageConverter to open image files Code> class is not used Use the Image.FromStream method to open the data in the array: image image; (MemoryStream M = New Memory Stream (IMGBIEs)) {image = Image.FromStream (m); } Edit: However, your first problem is how you encode the data. You are getting a string, which you can use as the

c# - Get Substring - everything before certain char -

I am trying to figure out the best way to get everything before the character in the string. Some example strings are below string length before - varies and can be any length 223232-1.jpg 443-2.jpg 34443553-5.jpg I need a value that is just right before the start index of 0 - then substrings will be 223232, 443 and 34443553. class program {static or oid key (string [] ARGs) {console. Weblines ("223232-1.jpg" .GetUntilOrEmpty ()); Console.WriteLine ("443-2.jpg" .GetUntilOrEmpty ()); Console.WriteLine ("34443553-5.jpg" .GetUntilOrEmpty ()); Console.ReadKey (); }} Fixed class helper {public static string GetUntilOrEmpty (this string text, string stoppage = "-") {if String.IsNullOhhiteSpace (text) {int charLocation = text.IndexOf (stopAt, StringComparison.Ordinal); If (charLocation & gt; 0) {Return Text. Substrings (0, four places); }} Return string. Api; }}

ruby - Reddit clone in Rails with Rspec, resource_controller problem -

^ ^ My code goes there yet. Basically, I am using the resource_controller and I do not really understand the resource_controller when I used the scaffolding to make my post model, I used it in the field like : The integer had told the original # at which level the post is (this post ID is the guardian of this post): Integer user_id # I meant it to be something like user.Id Now, the forming form makes me put those values ​​into them . However, I want them to be automatically put in with the controller and not present anything to the user. As such, in backend logic, I have to set up @ post.user_id = @ user.id or something like that. However, since the resource_controllers make all the way, such as creating, indexing, new, editing, destroying, whatever, I do not know where I can edit the function. I am very new in TDD and Rental design. I have worked some original Rail / Ruby items in the past but have not touched it for some time till now. Appreciate some guidance! :)

c# - How to create own dotnet obfuscator -

I know that there is an assembly with dot net DLS and XE, so each body can extract the code from it. So please tell me how I can make my own net opsquacket and if there is any other way to save my application then please do not give me any payment obfuscator link. I would like code sample in C # or vb.net If you want to understand some technical details I recommend reading a series of blog posts by Paul Mason of the ambiguity series called "Protecting Your Precious Code" and you can find it. It has been linked to a project, it is open so that you can download the source and if you want, take a look at yourself. But I have to agree with others, this is not easy and therefore you are better off buying a commercial product. As Paul says in many of his articles that most of the techniques are, it is just a matter of how much time someone wants to spend doing it. But if you want to learn your own education, go-Ehad.

how to get post element in form in this case( in PHP ) -

In a form that is controlled by php language, how can we get an input element which is 1 Like in the array, item 2, item 3 ..... (if we only want the same items which are worth) Example: - & lt; Form method = "post" action = "& lt; php echo $ PHP_SELF ;? & gt;" & gt; Item 1 & lt; Input type = "text" name = "item 1" & gt; Item2 & lt; Input type = "text" name = "item2" & gt; Item 3 & lt; Input type = "article" name = "item 3" & gt; & Lt; Input type = "submit" value = "submit" name = "submit" & gt; & Lt; / Form & gt; & lt; Form method = "post" action = "& lt;? Php echo $ PHP_SELF ;? & gt;" & gt; Item 1 & lt; Input type = "text" name = "item []" & gt; Item 2 & lt; Input type = "text" name = "item []" & gt; Item 3 & lt;

Database versioning -

I have created some projects (CMS and EC systems), which must have some data version. Usually I come with that type of schema + -------------- + + + Fobar + --- --------- + + + foobar_id version + + -------------- + It did great work but I'm thinking if the best way to do this is to have the main problem with that solution, you'll always have to use the subquery to get the latest version. i.e.: SELECT * foobar WHERE foobar_id = 2 and version = (select MAX (version) Foobar f2 WHERE f2 = 2) This makes most of the questions more complicated and there are some performance deficiencies So if you create your existing version of the experience and share the pro and opposition of each method, So it would be nice Thank you I like to get historical data in other tables. I can make foobar_history or something similar and make FK in foobar_id. This will prevent you from using a subcube together. This is an added advantage of not polluting your primary data tabl

iphone - How to create image slideshow effect -

I'm trying to effect slide show effect in the iPhone like iTunes, in the middle an image and on the left side and others Arranged in the manner of floppy in the rack. But I am not the only one for this, can anyone help me? I am feeling that you are talking about "coverflow" from "slideshow" ... if this is correct, then there are some libraries to help you: Here is one I have been searching for "coverflow replacement": < / Html>

asp.net mvc - RouteLink as linkname -

Is the rendering link equally available in the form of a name? i.e & lt;% = HTML Route Link (...., "myRoute", new {id = 75})%> is provided as & lt; A href = "http: // foo / something / 75" & gt; Http: // foo / something / 75 & lt; / A & gt; Is there a clean move? / m You create an extension method to manage it for yourself Public String PrintRouteLink (This HtmlHelper Assistant, String Routine Name, Ent ID) {UrlHelper url = new UrlHelper (helper.ViewContext.RequestContext); Return Assistant. Route link (url.RouteUrl (path name, new {id = id}), street name, new {id = id}); } Then you can use it: & lt;% = Html.PrintRouteLink (route name, 75)%>

java - Is it possible to set up two FileHandlers in the same logging.properties file? -

Using logging classes in java.util.logging, whether to set up two separate filehands with different formatters Is possible to have different logging information in two different files? I currently have a logging. I am using a property file, and the handler line is not encouraging: handler = java.util. Logging. ConsoleHandler, java.outlogging.filehandler I do not know how I can differentiate between two java.util.logging.FileHandler in the file. Looking at the related questions, it seems that by switching to Log4J I would get the desired flexibility, but I would like to avoid reliance on other libraries if I can do some of the JSE logging libraries in some way What do you want A detailed read through a suggests a superb number. The election is in the process of moving the logger into the cod. E, as shown in the answer and leaving the bus and using Log4J, or any more sophisticated logging libraries

java - Why is exception.getCause() == exception? -

I made a mistake by thinking that the member variable's will cause to be getCause () in org.apache.catalina.connector.ClientAbortException will be returned as a result of the call. This is clearly not the case. The real reason is back. Looking at the Source of Throwable, I can see that it indicates cause = this that the reason has not been set yet. It was a bad question but I learned something from asking it. Below is the original question: Sometimes when you catch exceptions, getCause () will return the exception object itself, why not get this recursive (Reason) empty return? getCause () should never return to itself If it is not override - if you are looking at code for getCause () then it clearly gives null , if causes The variable is the same as the throwable you are calling it on. Which exceptions are you running again the same exception?

osx - how to plot an RDF graph for inspection? -

There is an RDF validator in W3 which gives the plot to the RDF graph. Do you know a common utility desktop side? forgot to say. I am on a mac For example, the rapper is a command line utility that can parse the various RDFs. For plotting with syntax and output DOT. (Disclosure: I am a commentator in Raptor's project.)

c# - Determine if internet connection is available -

I know that I am not the first to ask questions: How do I know if my application is online or not? I found this post: I want to do it with C # and .NET 3.5. The recommendation is to ping the resource on a regular basis. I am not very happy with that advice. Instead I find a network change and then ping my service to check whether it is online. .NET provides two events for this purpose: NetworkChange.Network Change the changeable network. Network address changed The first event looks good but it only gets removed When the last network card becomes offline online I have several virtual network cards installed by VMWare and they are always online but the second event works but the network cable and During touching the event, there are often 5 seconds waiting time. When I unplug the cable, the Windows Tray icon immediately gives more or less feedback, what is the best way to stay fast as a tray icon? My solution will be to select the network interface in every 500 mms and to th

java - JTextPane keypress emulation -

I have a JTextPane integration that should be done with the predefined steps on the keypress events. If I type manually then it works fine. But I have to emulate the incidents of keyperses on this integration for test purposes. The test environment is such that the given JTextPane has not been added to any other control. I tried to use Robot Class to correct JTextPane's visibility and editing capability and requested focus. The problem is that I do not have any major press event, and JTextPane's content is still empty Please give me some advice. Thanks, Peter The test environment is such that the given JTextPane Has not been added to any other control Then the component is not visible on the screen and can not accept the focus, so the robot will not work. I 'I'm not sure but you may be able to use it textPane.dispatchEvent (....) Or if that does not work, you can use it: textPane.getDocument (). InsertString (...);

mysql - How to bind SQL variables in Php? -

How to bind SQL variables in PHP? I just want to bind the variable instead of creating the SQL string. Anyway to do this in PHP? Either MySQL or PostgreSQL answers will help. Thanks There is an example. PWO and prepared statement (including bound parameter) is located on .

sql - What would be a reliable way to get fractional value from a number? -

I have many types decimal (8, 2) and sub-string to get a partial value. @val = 1580 set @ strv = artist (Valve in the form of @Varchar) @val, for example for example), @val decimal (8, 2), @stroveworvar (10) Select the substrings (@strew well, chandexx ('.', @troval), lane (@trate wall)) Is just a better way to get virtual value Change from .80 to @val without any character I'm thinking if there is an underlying UDF (user-defined function) Which is your Roll The version will parse place out. Use the modulus (%) operator you will find 0.80 Declare @val decimal (8, 2) set @val = 15.80 select @val, @ val% 1

java - Track process-ids of sub-/child-processes? -

I need to execute and revoke / cancel different shell scripts from inside Java (> = 1.5; ProcessBuilder) With Java mechanisms I am able to kill the main process used only for shell script execution. When this shell script starts other processes (for example ./foo.sh & ./bar.sh &) then the processes are still going on when I terminate / abort the main shell script process in Java I am How can I track all IDs from within Java with all the new sub / child processes? Is there any positive way to do this? Or is it possible to find all the processes produced by a known process (* in Nix- and Win-OS)? Thank you, Thomas If you have control over different scripts, Children can pass PID (Use $ to find PID of last run background process) Back to main Java program. Otherwise ,.

spring roo - Modifying show method of generated roo controler -

I am learning Roo and building a database with a student object that has associated score objects. I would like to display, when the show method is executed on the student controller. There is no code in the StudentController.java file, do I believe that I need to modify the associated .jpg file? If so, how do I tell to not overwrite any changes? Your code is managed by StudentController.java .j files, .java files up to you And will not be overwritten by Roo.

core location - Where to implement CLLocationManager -

I have a tab bar and 3 tab app, the user's current location is known to any of the three tabs must have. In this case will the app be the best place to implement CLLocationManager in the app? Is it OK (good practice?) CLLocationManager delegation methods to put in App rep M file? Where do you say that I am calling CLLocationManager as a place from any of the three tabs I am using -startUpdatingLocation ? Thank you App representative is an appropriate place to put it. Another option is to create a custom singleton factory class that contains a class method that returns to your location manager representative and applies the methods of the representative there. This will maintain your app representative class cleaner. Here is a skeleton singleton class implementation based on Peter Hussie. It can be overkill, but it's a beginning. Finally add your representative methods. Fixed MyCLLocationManagerDelegate * sharedInstance = Zero; + (Zero) start {if (Shared

How can the last command's wall time be put in the Bash prompt? -

Is there a way to embed the last command at the time of the wall in an indication? I'm expecting something that looks like this: [last: 0s] [/ my / dir] $ sleep 10 [last: from 10] [/ my / dir] $ Background I often run long data-crunching tasks and it is useful to know how long they took, so I I can estimate how much time it will take for future jobs for very routine tasks, I go ahead and this information is strictly appropriate logging technique I record using them. For less-formal tasks, I'll just complete the command with time it will automatically time good for each single interactive command And will be printing information of time in some letters rather than three lines. You can use this zsh borrowed hook to bash: This hook was done over time (Mac OS X):

iPhone Dev: technologies being used for 3d games? -

I have an idea for a 3D game for iPhone and I think it's mostly for use Want to feel iPhone 3D game programming? Are the 3D games being developed in Operaale or 3D models also being used? I'm just trying to get the idea of ​​some techniques used for iPhone 3D programming. For example, I think the following game will be really good and to know what is being used to make it. Also, are people using any 3D modeling tool such as Maya, 3D Max, or Blender with this 3D game engine? There is a good overview on this, but it can be in a while.

tsql - SQL Server 2000: How to exit a stored procedure? -

How do I get into a stored procedure? I have a stored procedure where I want to get out quickly (when trying to debug it) I call return and RAISERROR Has tried, and keeps the spam running: creation process dbo.Archive_Session @ session sheet unique identifier as print, after print '' after '' print '' print Before 'Returner 1' after the 'Return' print, because I got an error in front I do not see any of my print if I comment on the bulk of the stored procedure: Arvive Session @ Centrint Print as Unique Identifier 'before riot' raiserror ('This is a serious error', 18, 1) Print 'before return' returns -1 print 'return' / * [snip] * / Then I have not found my error, and I see the result: first raiserror server: message 50000, level 18, state 1, process Archive_Session, line 5 This is a return error So the question is: How do I bail SQL sir Out of a stored methodology in the frame? You

Looking for downloader web solution -

I'm looking for a web solution that will provide a web page / application which will allow the user to download our installer exe (all Essential files are included in the XI) as they can stop the download and start it at any time. This is a 1.4 GB file, and currently our only distribution model (we are on the 0 budget). Any advice? Our end users expect a very illiterate computer. Expected to go to a webpage and follow some steps. Do you also need a hosting solution? I do not know for that part, but you can check that it supports launching the download, and it is open source - GNU General Public License.

php - Recusive xgettext? -

I use a .po file with a single XML file using the same command How can I compile again? My PHP files are present in a hierarchy, and the direct xgettext command does not appear to reopen. understood: find -name "* .php" | Xargs xgettext I was trying to use the first -exec , but it will only run one file at a time, it triggers them on the bunch. Google!

iphone - PDF generation using data -

In my iPhone application, I have many data items. I want to generate a PDF file using these data items and Attaching PDF file to email. What do I know, I have to use Quartz 2D to attract PDF files. Is there a sample code or suggestion about PDF drawing? The following is what I have created a NSDT object in which PDF is presenting some quartz graphics: NSMutableData * pdfData = [[NSMUtableData Allok] Init]; CGDataConsumerRef Data Consumer = CGDContactorContentCFData ((CFMutableDataRef) pdfData); Constrict CGRact mediabox = CGRactMake (0.0f, 0.0f, self bounds .width, self.boundsskies.highth); CGContextRef pdfContext = CGPDFontactTat (Data Consumer, and Mediabox, Faucet); UIGraphicsPushContext (pdfContext); CGContextBeginPage (pdfContext, and Mediabox); // Your quartz drawing code goes here CGContextEndPage (pdfContext); CGPDFContextClose (pdfContext); UIGraphicsPopContext (); CGContextRelease (pdfContext); CGDataConsumerRelease (dataConsumer); Then you can save this PDF d

mysql - How to get duration in terms of minutes by subtracting a previous time stamp from the present time in PHP? -

How to obtain the duration of minutes by reducing the stamp from the current time in PHP 2009-12-05 10:35:28 I want to calculate how many minutes have passed. How to do this If you do not want to add a library, you can do it very easily: & lt ;? Php $ date1 = "2009-12-05 10:35:28"; $ Date2 = "2009-12-07 11:58:12"; $ Diff = strtotime ($ date2) - strtotime ($ date1); $ Mins_pass = $ $ diff / 60; Echoes the distance of $ minutes per minute "Minute" $ date1 "And". $ Date2; ? & Gt;

bounce - Email error 503, how to solve? -

I have a problem sending emails, I checked the email error logs, and I found it: RCPT for RCPT: 503 Authentication is required when trying to send this mail server to a non-local email address. And this: Please send unsolicited commercial or bulk email to Microsoft. Please check your mail client settings or your administrator to verify that the domain or address Defined to the server, please contact. Computer networks are prohibited on other restrictions, resulting in the use of devices located in California and other states as a result of violation. And what I mean by following the following: Data data of 354 + start + mail + input + and + with + RCPT RCPT to: 250 requested mail action is OK, completed and some other ... This SMTP server requires authentication, depending on your provider, You need to specify a username / password or, if your host uses POP-First-SMTP authentication, you must first check your email and that task will take you some time A

jquery - JavaScript: missing ) after argument list -

यह जावास्क्रिप्ट एक त्रुटि उत्पन्न करता है: अनुपस्थित) तर्क सूची के बाद < / ब्लॉकक्ॉट> कोड के साथ फायरबग में: & lt; script type = \ "text / javascript \" & gt; फ़ंक्शन जोड़ें (उत्तर) {$ .post ('../ page.php? सीएमडी = दृश्य & amp; आईडी = 3523', {user_id: 3523, अन्य_यूसर_आईडी: 2343}, फ़ंक्शन (डी) $ (उत्तर) .after (\ " & Lt; span & gt; हो गया! & Lt; / span & gt; \ ")। निकालें ();}); }} & Lt; / script & gt; मैं क्या कर रहा हूं? फ़ंक्शन डी एक उद्घाटन ब्रैकेट, { $ (उत्तर) को याद करता है। ( से बच नहीं जाना चाहिए \ " , बस एक नियमित बोली "

perl - Why a full stop, "." and not a plus symbol, "+", for string concatenation in PHP? -

Why did the PHP designer decide to use a full stop / duration? " As compared to the more common plus symbol "+" as the string concatenation operator? Is it any advantage, or for some reason? Or do they just like? : O) The most obvious reason is that PHP has many syntax Perl - and uses a dot ( . ) for parl string synthesis But, we can put a deep crater in it and understand why it was implemented in Perl - most of the + operator for mathematical equations Is used - it is used only for inclusion in those languages, in which the variable type can define the method in which the operator works (simple explanation, for example C #) < Code> var intAddition = 1 + 2; Console.WriteLine (intAddition); // print 3 var string concrete = "1" + "2"; Console.WriteLine (stringConcat); // print "12" ^ As you can see, the + operator is used for both concatenation and C. The argument goes to the low level and is caused by the Bool

Help me optimize the if else in JavaScript (jQuery) -

Is it possible to shorten this code in some way: var i = GetStringFromServer ('/ url'); If (i) {$ ('# div1'). Hide (); $ ('# DIV2') Show (). } And {$ ('# div1) .show (); $ ('# DIV2) .hide (); } In C # I will do just that: bool smth = GetBool (); _el1.Visible = empty; ! _el2.Visible = empty; Is it possible to erase logic in JavaScript? Update: Thanks for the good answer, I did toggle before asking myself, but what was confused was the method sign: toggle (fn1, fn2); I thought the function was expected to have some difficult callbacks, but apparently it was flexible enough to handle both plain boolean and callback. UPDATE2: Thanks to the comments of Robert and Fabian, the truth finally got the answer. Toggles will always make visible or invisible on the basis of the logic of the bill. If you toggle the boolean argument, this will apply to each matching element from the docs: < / P> Toggle the set of all the elements m

c# - Why does this LINQ-to-SQL query get a NotSupportedException? -

निम्न LINQ कथन: सार्वजनिक ओवरराइड सूची & lt; मद & gt; SearchListWithSearchPhrase (स्ट्रिंग खोजफ्रेश) {सूची & lt; स्ट्रिंग & gt; SearchTerms = स्ट्रिंगहल्परस.गेट सर्चटर्म (खोजफ्रेज); (Var db = डेटासार्ट.गेटकॉन्टेक्स्ट ()) {रिटर्न (डीबी में टी से। टास्क में जहां searchTerms.All (term = & gt; t.Tetle.ToUpper)। शामिल है (शब्द। ToUpper ()) & amp; amp; t । डीक्रिप्शन.ToUpper ()। इसमें शामिल है (शब्द। ToUpper ())) टी का चयन करें। कस्ट & लेफ्टिनेंट; आइटम & gt; ()। ToList (); }} मुझे यह त्रुटि देता है: System.NotSupportedException: स्थानीय अनुक्रम LINQ से SQL कार्यान्वयन में उपयोग नहीं किया जा सकता है कंटेनर () ऑपरेटर को छोड़कर क्वेरी ऑपरेटर। चारों ओर देखिए लगता है कि मेरा एकमात्र विकल्प सभी मेरे आइटम पहले सामान्य सूची, फिर उस पर एक LINQ क्वेरी करें। या क्या त्रुटि से बचने के लिए उपरोक्त LINQ-to-SQL कथन को दोबारा आरम्भ करने का एक चतुर तरीका है? उत्तर: धन्यवाद रेंडी, आपके विचार ने मुझे निम्नलिखित समाधान बनाने में मदद की यह सुरुचिपूर

Drag & Drop Javascript sortable with moving marker? -

I "drag and drop sortable" JavaScript libraries such as prototype sortable, gyctic sort, and several standalone I think I am not getting (but know that it is there), I can not think of a better word, sort "delay" so that when I The list moved around the item, it is not transferred immediately Will not, but will see a line or other type of marker that he'll end up where before if I dropped it now . This functionality can be found in Windows while moving objects around the start menu Can anyone tell me on the JavaScript solution that can do this? Prototype or standalone will be preferred for existing projects, but JQuery is also fine. Take a look at the simulation and properties named ghosting on Script.aculo.us .

Ruby - Socks4 proxy with WWW::Mechanize and NET::HTTP::GET -

I searched on Google and read it in the Ruby manual, but I could not find a way to WWW :: Mechanize and use Get Net :: HTTP :: on a Sox 4 proxy. I have read, that the WWW :: MacNeak user is a subclass of agent module, and therefore -> proxy () method will work. But the manual only talks about http, ftp and gopher proxy. Any idea how to support Sox 4? Here are the code snippets: def get_request (url_in) url = URI.parse (url_in) req = Net :: HTTP :: Get.new (url.path, {"user-agent" => $ UserAgent}) res = Net :: HTTP.start (url.host, url.port) {| Http | Http.request (req)} returns res.body end agent = WWW :: mechanize.new agent.user_agent_alias ('windows mozilla') page = agent.get (" Urlhere ") post_form = page.form ('post') You probably want look at . I do not think the HTTP client has any support for SOCKS proxies; There are only HTTP proxies for HTTP.

javascript - Problems with IE7 keeping two buttons in a same line -

I have problems with IE7. I'm trying to put 2 buttons in the same line .. but this is not working for IE 7 only in all other browsers, it works as it should be (IE 6 will not be checked, it will not check). This is a picture so that you can know what I mean You see that this black border is just something I keep, so I can see that How long my glass is long Which CSS style should you want to be in the same line of buttons thanks UPDATE-> Here's some HTML: & lt; Div style = "border: 1px solid; width: 300px; height: 30px; float: left; padding: 0; margin: 0; text-align: left;" & gt; & Lt; A class = "Button Good Button" & gt; & Lt; Div id = "first" square = "action_button" & gt; Edit category & lt; / Div & gt; & Lt; / A & gt; & Lt; A class = "Button Good Button" & gt; & Lt; Div id = "action_delete" class = "action_button1" & gt; DELETE REC

syntax - JQuery clearing an input text field -

I have a question about cleaning an input text field, when a different click-down click on the same page If done, then the input text field should be cleaned. Here is my jQuery Fiton warning message shown every time I select an option from the drop down but the field is not cleared. Any idea what the correct syntax should be: jQuery (document) .ready (function () {jQuery ("[id $ = 'serialNumForm: noSerialNumProductKey']"). ) {Warning ("jquery change ftn !!"); jQuery ("[id $ = 'serialNumForm: inputSN']"). Value = "";});}); I have a form ID, so I need to include the ID id in the Element ID name. The warning shows that the exact value does not change. You want to use: <> jQuery ("[id $ = 'SerialNumForm: inputSN'] ") pre-val (" ") ;.