Posts

Showing posts from April, 2011

cross browser - Jquery click registers in FIrefox, not in IE -

What could be the reason for a simple click to register in Firefox and not in IE? EDIT: I should get points to find out the problem with such a bad question. Note that "click" events does not have bubbles in IE if you have a button inside the anchor tag , The button will not be broadcast on the click anchor. I have worked with something like this:

c++ - Why can't I index a std::vector in the immediate window? -

तो, मेरे पास एक वेक्टर है std :: vector & lt; std :: string & gt; लाइनों। मैं इस सदिश को भरता हूँ, और इसे std :: string temp = lines [0]; हालांकि, तत्काल विंडो में, दोनों लाइन [0] - त्रुटि: ओवरलोड किए गए ऑपरेटर नहीं मिला > और lines.at (0) - त्रुटि: प्रतीक अस्पष्ट है बिल्कुल भी काम नहीं करें। सी + + के साथ तत्काल खिड़की का उपयोग करने के लिए कोई चाल है मैं ज्यादातर सी # पृष्ठभूमि से आ रहा हूं, जहां सबकुछ अच्छी तरह से काम करता है (और मुझे तत्काल खिड़की में अंतर है)। मैं सी + + महान होने की उम्मीद नहीं कर रहा था, लेकिन मुझे लगा कि यह इनट के अतिरिक्त चीज़ों के लिए काम करेगा। क्या कोई मुझे बता सकता है कि मैं क्या गलत कर रहा हूं? धन्यवाद। संपादित करें: मुझे स्पष्ट होना चाहिए, तत्काल विंडो में कुछ भी वास्तव में काम नहीं करता है, यह सिर्फ एक सरल उदाहरण है संपादित करें: मैं डिबग मोड में हूं तत्काल और घड़ी खिड़कियां ओवरलोडेड ऑपरेटरों का समर्थन नहीं करते हैं एक संदिग्ध फैशन में संपूर्ण रूप से मानक कंटेनरों को प्रिंट करने के लिए कुछ सहायता मिलती है (द...

Can MatLab understand Java int datatype? -

I have a java.util.HashMap object that I usually want to convert to a MatLab datatype, maybe new Containers Map type Ideally I could: it = javaHashMapObj.keySet.iterator; While this is HICEN JEKY = it.next; SomeMatlabObj (jkey) = javaHashMapObj.get (jkey); Lastly Other potential problems (please tell, if they jump on you then solve!), Then this issue is that if Java hashmic is placed with integer, then This next will still return double objects to MatLab, which will no longer function as a key in the Hashmap with javaHashMapObj.get . Can anyone recommend a way to solve it? Increase the Java object to give me the key to MatLab int32? MATLAB is a regularly entered number (which is double) for a Java primitive int , But if you want an integer object, you must explicitly put it in the box: javaHashMapobj.get (java.lang.Integer (key)); How to change data types in MATLAB from Java, see this table

.net - How to get just the URL of an Action in an ASP.NET MVC View? -

Let me use the same syntax as the same line URL as Html.ActionLink But do not know about doing so from your point of view. Is there an HMLHlper extension that works like ActionLink , but gives only the URL? For example, I want to write: & lt; Img src = "& lt;% = Html.ActionUrl (" image ", new {id = 42})%> & gt; Check out: Url.Action () alias: & lt; img src = "& lt;% = Url.Action (" image ", new {id = 42})%> "/ & Gt;

Detect ASP.NET version from output HTML? -

OK, maybe this is a trivial thing to know - so common knowledge tags! - But does anyone know the difference in the final output that the runtime was used, will the version go away? In other words, if you go to a website and you know that it is generated by ASP.NET, there are some things about markup that are running against site 2.0 or 3.5 Or is not it? no The HTTP headers are configurable by the administrator, so they are unreliable, for example stackoverflow.com says: server: Microsoft-IIS / 7.5 MSN.com says: by X-Powered-: ASP.NET X-español-version: 2.0.50727 and 37signals.com Says: by X-Power: PHP / 5.3.0 and any php site powered by any FTP Network 3.5 Can make an answer or actually have an ASP site when one Perl script that claims At the end of the day, HTTP is the only text and all headers are capable of configuring someone, and their belief is nothing from the perspective of a belief.

html - Hold website position when navigating -

Is there any way to do this so that the page does not shoot at the top of the site while clicking on different links Navigation Bar ? E. So say that I am browsing my site and I'm scrolling a bit, then I click on a link that goes to a different page on my site. It automatically scrolls to the top. There is no way to do this. Instead of adding one page, you can & Lt; A href = "pagename.html # anchor" & gt; Link text & lt; / A & gt; Link to an anchor on that page using. If the anchor is placed correctly on the target page, then every time you link to another page, you will not experience the jump back. Hope this helps

qt - How does QWidget size when used as a window? -

Many examples on trolltech use QWindget as main window instead of QMainWindow for simple Qt applications. Now I need a simple window with a single content widget (QGlWidget) that covers the entire customer area. However, when I show a QWidget window with a single content window, it automatically resizes itself from small if I QWidget without child The parent window makes it a good big default size. I do not want to resort to using layouts for a single child window: I understand that you use QWidget to display your QGIWidget. Try calling your QGIWidget's show method directly (if your QGIWidget class refers to QWidget), QT will create window decorations for you. Otherwise if you really need to fit your widget inside each other, and its size, you have to use a layout.

asp.net - Display list of values in MVC Detail View -

I am new to web app, mvc, and linkto sql. I am using a Nviddinner tutorial as a guide using an MVC The web app is created. Now I am adding many relationships to him and just moving in the walls at every step Edit and I have a multilevel list in Create View. I want to list the selected values ​​for the extension and list views. I have 3 tables: company, subcontract, and a link table company.ToSatabacktract I have a code that is found in the company of the companies I have selected from the Associate Tablet, which used somewhere else in my code goes. I do not know how to display it Should I write another function to get company name from company table? Do I pass a list of names of subcontract delivious views and then loop anyway through them? Along with viewing the sub-contract index, question. The index view table is in the form, I have to make a "company" column, which has a comma-separated list of companies for each subcontract line. [Authorized] Public Transaction ...

GWT + DynamicJasper -

Has anyone tried before dynamic dynamic + life? I am planning to use it, but now I have to face the problem I will take the above steps I am following * Isolated, I do not use Maven at all * My GVT is 1.7.0 and Java is the latest version I did but you need specificity that what is your problem about GWT and DynamicJasper. Just a tip: In order for DynamicJasper to work, you have to write a different template to write on the output stream. / P>

Codeigniter model loading -

I have 4 models in 4 codinators I want to load these models in my controller's manufacturer because they are used several times Has it been effective or will the site slow down? Of course, the loading code makes the site slow as much as the PHP engine has to do, the more it is Will take for you. All you need to ask yourself is that the model is loading and how often it is being used. If your model will be used on every page, keep it in auto-loader. If your model is used in every mode of controller (or if it is a small model, in more than one method), then put it in the constructor. If your model is only being used in one method, put it in that method. The main thing to remember is that a model is loading, it will slow down the site, if it is a ghazal line line line. If this is the average size (4kb less) then it is actually nothing more than that. Take a look to make your model code even more efficient.

bash - Run cronjob as user to change desktop background in Ubuntu -

I'm trying to run a random photo in a desktop that changes my desktop background. It works from the command line, and the cronjob goes up (the added output and it spit into the log file), but I can not change my background. Here's my current line (set to run for every minute of the trial). 01 * * * * Username / Homes / Username / Papers / flip.sh Any ideas? bug: My version: Background from files in the directory Randomly set script in #Direct / DIR = / Home / Lucas / Studio / Art / Image / Tapti LOG = / Home / Lucas / Tapeeta for images included in the # directory #! To select a random file from / bin / bash # log # directory # log in [pg] [pg] [pp] [nn] [gg] [ss] [vv] [gg]; DS LS $ dir /*.$p done | Shuf -n1) "Order to set # background image if [-J" $ DBUS_SESSION_BUS_ADDRESS "]; then # this cron tmp = ~ /.dbus / session-bus export $ (grep -h DBUS_SESSION_BUS_ADDRESS = $ TMP / $ ( Lc-1T $ TMP | Top-N1) is caused by gconftool bugs $ dBUS_SESSIO...

Java convert float to integer -

I want to do an operation like this: if the given float number is 1.0, 2.0, 3.0, then I save I want them to be an integer (1,2,3) for the database, if they are like 1.1, 2.1, 3.44, then I save them as float. What is the best solution to this problem with the help of java? The type of varchar related field in the database is. just try int i = (int) f; . EDIT: I am looking at the point in question. This code can work: int i = (int) f; String valToStore = (i == f)? String.valueOf (i): String.valueOf (f);

flex - How we get global x,y position,when we are clicking in a datagrid cell -

We get global x, y position, when we are clicking on a datagrid cell. If you have MouseEvent // meaning, if you are inside clickhandler (e: mouse events): zero trace (e.stageX + "," + e.stageY) otherwise: var Obj: DisplayObject = theDesiredObject; Var GlobalPoint: Point = Obj. Local Global (new point (obj.mouseX, obj.mouseY)); Trace (GlobalPoint.X + "," + GlobalPoint.y);

php - copy mysql blob field from one database to the other -

I have a database with images stored in the Blob field. Can not help it, it was the last developer's choice. Now I need the data in a new site and the provider will not let me copy the data in an easy way (the file has grown 11 MB - he will not upload and I do not have shell access) . So I thought I would write a script which opens a connection in DB1, selects all the records, and then makes a copy in the table in DB2. If I want to copy them too, then it will not be included. Did anyone have something similar before? 11MB is not a big file, I'm surprised that your host has such low The maximum size is size. Have you thought about exporting as SQL, file in two (notepad ++) or something else) then upload it into smaller sections? Will not take long.

How to draw picture in the text area of HTML? -

I see the & lt; Textarea & gt; I want to create a geometric picture in , but I have to face difficulty in how to do this? Can anyone tell me? "post-text" itemprop = "text"> You can use HTML5 & lt; Canvas & gt; element and its javascript API can be used. There are many examples and tutorials for using this to draw geometric figures in an HTML document, but here's the one I got this morning:

SOAP , getting progress of the uploaded Request while its uploading c# -

I am trying to upload a file via SOAP request, and it is working perfectly, but I have not been able to make progress for the amount uploaded. "post-text" Itemprop = "text"> You can try to send the file to "Select" Is it like sending 1 MB instead of all this at once? Thus when each part is completed, you will be able to update the progress.

osx - On MAC O.S., how to get the name of files that has been dropped onto apple script to boot JAR with the name of file as a argument to JAR -

In the script editor, I have written a command to boot the jar. The shell script "CD / Desktop / Runner / Java Work Runmezer Shabar" and saved as a script file in the form of an application. Run when I click on the script file jar. My Requirement I have to get the name of the file which has been deleted in the script file and its name must be given that my jar To leave the file as an argument for. I have implemented it in Windows but can not do the same thing on Mac OS On Windows I have placed the boot file in the boot file with the full filename, which is left on the bat file on windows. @ Echo% * will give me a list of the files that have been deleted in the batch file. @Echo% * @Java JavaRaj RunMajor Shrink% * This Like I would like to implement in Mac OS Thank you. To add to Paul's answer objects we have the current item, repeat object - is fine with currFile in finder, but it is a "nickname" Mac OS path - Crosf...

c - Why can't I access this struct through its pointer? -

#include & lt; stdio.h & gt; # शामिल करें & lt; stdlib.h & gt; Typedef int तत्व; संरचना कोशिका {तत्व ई; स्ट्रैट सेल * पी; }; टाइपडफ स्ट्रक्चर सेल * सेल; Int main () {CELL * p; पी = (सेल *) मॉलोक (आकारफ (संरचना सेल)); P- & gt; ई = 8; / * यह काम नहीं कर रहा है * / * p.e = 8; / * यह कुछ भी * / वापसी 0 में मदद नहीं करता है; } मैं बस malloc के साथ आरंभ कर रहा हूं और मैंने हाल ही में एक नया बनाए गए CELL पर एक संकेतक बनाया है, जो कि struct । अब मैं इसे कुछ मूल्यों के साथ भरने की कोशिश कर रहा हूं, लेकिन मुझे एक सदस्य या संस्था के लिए एक "मित्र ई के लिए अनुरोध" से स्वागत नहीं किया गया है। मैंने एक struct इसमें ई नामक एक सदस्य है, या कम से कम यह है कि मुझे क्या लगता है। यह क्यों असफल है? बदलें cel * p; p = (cell *) malloc (sizeof (struct cell)); * पे = 8; से struct सेल * p; // या cell p; p = (cELL) malloc (sizeof (struct सेल)); (* p) .e = 8; //। * की तुलना में उच्च प्राथमिकता है

iphone - MPMoviePlayerController - unable to play movies in my app on < 3GS (3GS is fine) -

In my app, I have some movies going on. I have checked the information for movies and they can see it They should be able to handle MPMoviePlayerController (Bitrate, etc.) They are streaming from a URL, and it plays only on 3GS , nothing less I have tried to collect the error of notification in MPMoviePlayerController MPMoviePlayerContentPreloadDidFini ShNotification and MPMoviePlayerPlaybackDidFinishNotification but I'm getting a useless error string for User Info in the key notification, which does not tell me anything but it is true that The movie could not be played. The URL I am testing with: MPMoviePlayerController appears on a 3G or 2G iPhone and it tries to load the movie for some time but Then back to where the footage came from the controller fades Does anyone have a clue to play the reason that I am unable to stream and the above mentioned URL is only on a 3GS? I'm sure this is a memory issue, but I have worked with 50 MB of free memory on a 2G...

Passing arrays through fortran dll from vb.net app turning to single element arrays. Should i pass only the first element? -

I have a VB.net console app and I'm opening the function in a DLL written in the Fortran. I am passing 3 arrays through the reference by reference. When they come out from other people, they all look for arrays of only one element. And that element is 0. I have read somewhere on the internet that while talking like this, it is a good idea to pass the first element of the array in this function. I tried to change my function announcement to accept single elements instead of single-dimensional arrays, and now the array is the same length before and after the call, but they do not change at all, so I'm not sure that this work Has been doing. Anyone have any such problem or know what to try? Any help will be very much appreciated. Fortran functions only get pointers, regardless of any array or single value. I do not know how you can do this in VB.net, but try to find a way to send the first object to the pointer. In C, this should be: double * a = ...; Fortran_f...

JQuery Validation Plugin: Ensure Form Field is not a specific Value -

I am using jquery validation plugin, from which sourced. This is a good job for required fields, email etc. However, I would like to set some specific verification rules for certain areas. For example, I have a select form field that includes the following options ... & lt; Select the name = "Hello" id = "salutation" class = "conditional" & gt; & Lt; Option value = "0" & ​​gt; --- Please select --- & lt; / Options & gt; & Lt; Option value = "1" & gt; --- MR --- & lt; / Options & gt; & Lt; Option value = "2" & gt; --- MRS --- & lt; / Options & gt; & Lt; / Select & gt; Then I would like to use the verification plugin to display a message if no salute is selected .. $ ("# userForm "). Validitude (Blur on Focus on valid field: function: Element) {this.element (element);}, // set specific rules for validation rules: {Hello: {NEQ: 0}}, Message: ...

java - Trouble creating unique table of Strings when persisting List<String> -

मान लीजिए मेरे पास एक इकाई है: @ एंटीटी सार्वजनिक वर्ग एनईएनटीटीआई सीरियलज़ेबल लागू करता है {@ElementCollection निजी सूची & lt; स्ट्रिंग & gt; तार = नया वेक्टर & lt; स्ट्रिंग & gt; (); // अन्य सामान} मैं EclipseLink (JPA 2.0) का उपयोग कर रहा हूँ। इस सूची में दिए गए स्ट्रिंग्स में कई एएनएनटीटी ऑब्जेक्ट्स में समान मान हो सकते हैं। इसका अर्थ यह है कि कई एंटेन्टिटी ऑब्जेक्ट समान स्ट्रिंग्स का संदर्भ दे सकते हैं। समस्या यह है कि @ElementCollection से डिफ़ॉल्ट मैपिंग स्ट्रिंग तालिका (ANENTITY_STRINGS) में कई डुप्लिकेट प्रदान करता है। मैं इसे कैसे मैप कर सकता हूं ताकि जब मैं तारों की सूची को सहेजूं, तो मूल्यों को विशिष्ट रूप से बचाया जाएगा ताकि मेरे पास डुप्लिकेट स्ट्रिंग्स की एक विशाल तालिका न हो? मुझे जोड़ना चाहिए कि मेरे पास है "प्लेसहोल्डर" क्लासेस का उपयोग करने की कोशिश की, जिसका एक एकल सदस्य स्ट्रिंग है। दुर्भाग्य से, ऐसा करने से संबंधित तालिका में डेटा पूरी तरह से अपठनीय छोड़ देता है, मुझे यकीन है कि यह एक ब्लॉब या लॉब के रूप में सहेज रहा है। ...

php - Source Code Control Systems in Web Development -

We are just starting the process of looking for a source code control system. I know that we are behind, but never better than late any member of our team has no experience with any system in their past, so I was hoping that I could find some basic things because we Let's start investigating various devices. There is a small background in our team: Our group consists of developers and designers We mainly work with one or two Macs on PC Most of our development is for the web We develop in ASP.Net, ColdFusion, and PHP Some of us plan to look into it: Any experience with Inam A. There would also be useful to hear from you. Do not use source safe! This is not bad for source control only, it's just bad for the world. I like subversion with armor, I like it. It's easy to get up and running. Branches / mergeings are still a nightmare. Visual SVN is also very good.

python - wxPython GUI: migrating gnuplot to matplotlib -

I currently have a GUI built in wxPython with several sections, one of which is one of the plot. PGG image displays: self.plot = wx.bitmapButton (self.pane_system, -1, wx.bitmap ("/ home / myname / projects / newton / plot / src / graph .png ", wx.BITMAP_TYPE_ANY)) In the second part of the GUI, there is a place where I can edit the parameters. The current setup is that when I change the parameters and press Enter, the code asks to plot Gnuplot again and save the new plot in the graph.png file, then update the GUI to show the updated image. I have many common questions: I want to migrate gnuplot to maplatlab for the following reasons: If I use Gnuplot, then machine Those running executable should have gnuplot installed machine. On the other hand, matplotlib is a dragon module, so I do not have to worry about installing graphical packages on other machines. Is this belief correct? How can I modify my wxPython GUI window to show a matplot plot? I had told th...

Python: Print only the message on warnings -

I am issuing many warnings in a verifier, and I want to suppress everything in stdout except the message Warnings. Warn () . , now I'm looking at it: ./ file.py:123: user warning: my I would like to see: Edit 2: Overriding warnings.showwarning () went to work: def _warning (message, category = user Warning, file name = '', linin = -1): print (messages) ... warnings.shovaling = _warning warnings.warn ('foo') Monkey patches with their own custom function

opencv image update in gtk for video streaming linux with C programming -

I am using opencv 1.0.0 and gtk2.0. I want to capture the images continuously from the video stream so far I have been successful in capturing the image. This is non-standard IP cameras no VGA / USB / V4L need to know one or clear method to refresh constantly updated images for video streaming GtkWidget * image; ... ... IplImage * bayerImage = NULL; IplImage * rgbImage = NULL; ... ... ... cvCvtColor (Bayer image, RGBImage, CV_bearbg2 RGB); // usually opencv image BGR, so we RGB pics = gdk_pixbuf_new_from_data need to replace it ((guchar *) rgbImage- & gt; imageData, GDK_COLORSPACE_RGB, unreal, rgbImage- & gt; depth, rgbImage- & gt ; Width, rgbImage-> height, (RGBIMM-> width phase), null, faucet); Image = gtk_image_new_from_pixbuf (pix); Feel free to use Virgoptrex 2010 / * (c) 2010 Retain credit * / #include gtk / gtk.h gint t = 0; gboolean expose_event_callback (GtkWidget * widget, GdkEventExpose * event, gpointer data) {// g_object_ref_sink (widget ...

PHP Validation - passing http POST values forwards to a 3rd party checkout -

I do not know if this is possible, I can not find any other help guide, so this is not possible possible. .. I have a checkout page that posts loads of forward variables to the third party payment processor (WorldPay). I want to know whether it is possible for a valid PHP script to be used between two pages for verification purposes. EG If an item has been sold in the basket, then they were filling out the form, it could catch the customer before taking the money. Or useful if they tamper with form data. If I do this on my site, then I can use the session to forward the post data, but as it is an external website, I do not know that any hidden form Data without creating another HTML page with; Refresh for example. Is it possible to 'invisibly' - is not actually showing the HTML page? Yes, by hooking you into the onsubmit hook of the form and by using (like using jQuery) You can send an Ajax call: $ ('# myform') [0] .submit = function () {if (form_c...

.net - Telerik Rad Textboxes and javascript issue -

I'm just trying to fill the red text box with javascript server data. The data is kept inside the text box, but it is not visible until I click on the red text box. Function Pickemplate (name, spouse, plu, namebox, sbbox, pbox) {sBox.value = Sku; PBox.value = plu; NameBox.value = Name; $ ('MdlPopup') looks hidden () .; } I am sending parameters for a button click inside a gridview such as: button. a quality. Add ("OnClick", string.Format ("pickItem ('{0}', {1}, {2}, {3}, {4}, {5});", E. RO Seals [0] Text trim (), E.RO Seals [1], text. Rim (), E.O. seals [2] text, rim (), form veveccincent.fintcontrol ("prodbox") .callind id, form vivax Filt Control ("SBox"). ClientID, FormViewAccident.FindControl ("Pbox"). ClientID)); Again, except for the fact that it does work, I have to click inside the text box. This works perfect if I use a regular ASP.NET text box which is incompatible with this project A...

testing - Encouraging management to scrap manual tests and do things the proper way -

I am working in a project that is quite complex in terms of size (this is to become a web app). The first problem is that no one is interested in products that can solve the problems surrounding the project (lack of time, no adjustments in the timetable in response to the ever changing needs). Keep in mind that these products are not expensive (millions of dollars to build a company) and not such products, which require a lot of configuration (although this project is needed, such as building automation tools, such as Time to evacuate) Anyway, this means that the test is done manually because the documentation is a deliverable - it means that the actual technical design, execution and site testing are full (whether we developer or document What are the questions we are trying to do here are those who come to mind) This site is very large and complex (not on Facebook or some things like that), but Man Mutual despite the test instructions to the instructions (my warnings) it says tha...

ajax - Is it possible to get a browser window to update while it is in a Javascript loop? -

I have an Ajax call which is currently synchronous though, as long as this Ajax call is being executed, the browser The interface is freezing until the call is returned. In the case of timeouts, it can freeze the browser for anyone. Is there a way to refresh the browser (a browser) user interface, but no javascript is executed? Ideally this will be some command like window.update () , which will refresh the user interface thread. If this is possible, then I can replace synchronous AJAX calls with something like: obj = do_async_ajax_call (); While (! Obj.hasReturned ()) {window.update (); } // synchronous call can start again setTimeout , or resume the function in the callback, this That the performance flow can not be interrupted: (There are many state variables that all depend on each other, and long_function () is to start the flow again in any way): function Long_function () {// Many codes, variables' a ',' b ', ... writes, if (sync_call_is_true...

toggle - JQuery - SlideToggle Multiple DIVs at the same time? -

I'm new to JQuery and I have a little bit of an OCD issue. I use the slider to use the click functions / bins to show a box, though the division inside it does not slide with it, it just looks. Is there a way that I can slide together in both divs? JQUERY: & lt; Script type = "text / javascript" & gt; $ (Document). $ ("# Store_container") {$ ("# store_container") $ ('# Toggle'). Click $ ('(' # Store_container ')) (function () {$ (' # store_container ') SlideToggle ("slow"); Description is false;}); }); & Lt; / Script & gt; HTML: & lt; Div id = "store_container" style = "display: none;" & Gt; & Lt; Div id = "store_data" & gt; & Lt; P & gt; This is an exam & lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt; Try it out: & lt; Script type = "text / javascript" & gt; $ (Function () ...

.net - IL Opcode Modification -

भाषा: VB.NET 3.5 आईएल ओपोडोड: 718 ldarg.0 719 कॉलविर्ट सिस्टम.विंडो.फॉर्म.बटन आरक्लिएन्ट .आर क्लाइंट :: मिलग्रेड (724) ldarg.0 725 ldfld System.String [] RClient.RClient :: बटनट्रेस्टिंग 730 ldc.i4.5 731 ldelem.ref 732 callvirt System.Void System.Windows.Forms.ButtonBase :: set_Text (System.String) 737 ldarg.0 के अनुरूप: Me.cmd1 टेक्स्ट = मी.बटन एसटिंग्स (5) कम से कम मेरा मानना ​​है कि ऐसा होता है। आईएल में क्या बदलाव होगा, इसके बजाय इसे प्रतिबिंबित करना होगा: Me.cmd1.Text = "कुछ स्ट्रिंग" ldarg.0 कॉलविर्ट सिस्टम। विन्डोज.फॉर्म। बटन आर क्लाइंट .आर क्लाइंट :: मिलीग्राम () ldstr "कुछ स्ट्रिंग" कॉलविर्ट सिस्टम। वीड सिस्टम । खिड़कियों.फॉर्म। बटनटन :: सेटहोस्ट (सिस्टम.स्ट्रिंग) रेखा 1 धक्का पर मेरे धक्का देता है। रेखा 2 विधि get_cmd1 को कार्यान्वित करता है जो ढेर के शीर्ष पर ऑब्जेक्ट के लिए संपत्ति के लिए प्राप्तकर्ता से संबंधित है cmd1 इसलिए, इस लाइन को स्टैक के ऊपर ऑब्जेक्ट से प्राप्तकर्ता cmd1 के परिणाम को धक्का जाता है, इस प्रक्...

Tables don't show when re-adding them to entity-model (edmx) -

I have db with 5 tables. In the beginning, I've added those tables, but then some relationships have been compiled Decided to remove the reason. Now, when I want to add them back, I'm opening the edmx file -> Update Model from the database ... I do not see those tables under the App tab, but only "Refresh "Under tab. How can I add them back? To re-add a table to your model, first you need to delete the table from your model (A list of tables is visible in the [model.Store] tree (see the ' Model Browser ' panel - you can open it from the right-mouse click menu). Update models run ... 'The table will appear in the' Add 'tab in the first step of' Update Wizard '. Steps to Complete: Close your model Visual Studio. Open your .edmx file in a text editor. Find and delete the elements of the XML unit (see the notes below). Open your model in Visual Studio. Click the update model from the database. To remove all refe...

c# - Combobox selection control not coming out -

I'm working with winforms comboboxes. When I select any item in the combo box, I have picked up an event. But control can not come out Every time I scroll the mouse selected event. How to stop it? Mouse scrolling actually replaces item selection in Cambodia and therefore your event is removed, You do not want your event handling code on mouse scroll?

dns - Creating subdomains on the fly -

When someone signs up for a blogger or WordPress, then anyone gets their own subdomain Works How do I get that I have my own VPS / VDS / dedicated server? In short: Create a wildcard domain in DNS (I.e., whichever is it. You reserve your IP.), Create a default virtual host in your web server and check the URL in your application. How to do it depends on the technology you use. I give you some examples: How to set up wildcard domains and. To create a default virtual host, you need to create a web server without the need to create a host entry in Apache in the Apache, the first virtual host listed in the configuration file becomes the default host. Here, you can either rewrite the URL on the basis of (a) domain (i.e., the URL to convert the subdomain into parameters, examples for apache mod_rewrite :,), or ( B) Take a look at the host part of the URL (like Request.Url in ASP.NET). Additionally (sorry to overwrite your edit, a conflict was edited): Syntax of ...

javascript - "The stylesheet was not loaded because its MIME type, "text/html" is not "text/css" -

I have a JavaScript application and when I run it on Firefox, I get the following error on the console: "The stylesheet was not loaded because its mime type is not" text / html "" text / css ". dumbstick !! Edit: Note that it says that "stylesheet ABCD ..." but ABCD is actually an HTML file. Edit ( Tighter ): Actually I had put the wrong code> Href = "" , and therefore the HTML file itself was changing to CSS. This was the same bug in Mozilla, and from there I was The answer has been received, but I got help from everyone's reply. Thanks. Your HTML document In the main part of: rel = "stylesheet" type = "text / css" href = "/ path / to / ABCD.css"> Your CSS file should be css only New and there should not be any markup. / P>

c# - ASP.NET PAGE TRACE Results -

Hi, I am testing a .NET website with trace enabled and except for a thing, everything for me is normal Is: Message from last message aspx.page end load from 4,69 992678581181 4,69 9 362 This is an exceptionally large Sounds like 'End load' I know how to use the trace result properly, then my best (educated) guess is, the large number in 'end load' is probably the result of poor memory management? And, if so, what are some basic guidelines for doing something else to avoid things? Thank you- Theo These numbers do nothing with memory management From a few points you get the number of seconds, ie: Already : The time spent in seconds since the first trace message was processed. Last from : The time has passed in seconds between the current trace message and processing of the previous trace message. See for details.

How do I create the text like this website? (css/javascript) -

If you look at the bottom / right side then "API, Privacy, Terms" Shaded "text and they have a problem in it Is it an easy open source to do this? This is CSS3: Text-Shadow: 0 px 1 Px1px rgb (0, 0, 0);

visual studio - Designer.cs is deleted on adding object in DBML -

In my original DBML file, there were objects in which the other server / DB had a data connection, because I changed my DB into a different server And when I remove the spproc and I'm removed from a new dbml.designer.cs, then want to drag and update my spproc I am using VS 2008 SP1, I can not reproduce all my DBLL because they have many tables, SPS etc. Using Debil Namespace does not solve my problem. I just ran into this same problem oddly, using the solution to name any statements The place is to move to the brackets. For example, I had this (like you would normally see with the above-used statement): Using the system. Configuration; Namesplace BuildDashboard.Data {Partial Class Dashboard DBDTintex {...}} And I had to change it (with the statement using the namespace inside): namespace using BuildDashboard.Data {system.configuration; Partial Class Dashboard DBDTintext {...}} Once I made this change, my designer file was no longer deleted.

How do we set the position of an Excel chart from C#? -

I am trying to generate an Excel chart from C #. The chart is generated, but it appears in the center of the screen. Thank you. My code looks like this: Microsoft.Office.Interop.Excel _Workbook ebook = (Microsoft.Office.Interop.Excel._Workbook) etablo.Workbooks.Add (truth); Microsoft.Office.Interop.Excel._Worksheet esheet = (Microsoft.Office.Interop.Excel._Worksheet) ebook.ActiveSheet; _Chart grafik1 = (chart) ebook.Charts.Add (Type Messing, Type Missing, Type Missing, Type Missing); / * Add data from cell to here * / / * then * / grafik1.Location (XL Chattel space. XlLocationAsObject, esheet.Name); After you generate a chart, you control the chart as a shape object You can: For example: esheet.shapes.Item ("Chart 1"). Top = 100; Esheet.Shapes.Item ("Chart 1"). Left = 250; // Or you can handle size by index - Let's start with index 1 esheet.Shapes.Item (1). I think, you want to determine the position of the right cells, for example: eshe...

excel - Why doesn't Perl's Spreadsheet::ParseExcel never return from $parser->parse('test.xls')? -

स्प्रेडशीट Excel 97-2003 संगत और अनुमतियां 777 सख्त का उपयोग करें; स्प्रेडशीट :: ParseExcel का उपयोग करें; प्रिंट "सामग्री-प्रकार: टेक्स्ट / html \ n \ n"; मेरा $ पार्सर = स्प्रेडशीट :: पार्सएक्ससेल- & gt; नया (); प्रिंट "& lt; br & gt; यहां मिलता है:" .__ LINE__; मेरी $ कार्यपुस्तिका = $ पार्स- & gt; पार्स ('test.xls'); प्रिंट "& lt; br & gt; कभी यहाँ नहीं होता है:" .__ LINE__; क्या आप नवीनतम उपयोग करते हैं? वर्तमान संस्करण 0.57 है। मुझे लगता है कि आप इसे सीजीआई के रूप में चलाते हैं क्या आप उसे कमांड लाइन से चला सकते हैं (स्थानीय रूप से, एक ही परीक्षा फाइल के साथ) और जांचें कि क्या कोई त्रुटि संदेश है? भी eval का उपयोग करने की कोशिश करें (कमांड लाइन से चल रहा है अभी भी बेहतर है) और जांच करें कि $ पार्सर क्या है परिभाषित: प्रिंट '$ पार्सर undef है & lt; br & gt;' जब तक परिभाषित $ पार्सर नहीं; Eval {my $ workbook = $ parser- & gt; पर्स ('test.xls'); }; प्रिंट "एवल से त्रुटि...

timer - Time tracking for Redmine? -

We have just deployed redeeme, but there is a problem, an easy way to track the time spent for project / bug is not. is a RedMine client app, but it is not working with the latest readmine if a developer is not included in a single project, the app crashes with the 403 error and the time is not edited properly Can be done ( http: // server / projects / 12 / timelog / edit ), inserting the problem with the problem number, the wrong time format might be ... Any ideas ? Do you have But the kite is not free to use. I have not found anything that is looking for you (i.e.: toggle or slimmeter).

c# - how to modify data in a DetailsView Databound event -

I am using a description view with a sqldatasource in aspx page; I do some pre and post processing on some fields I'm trying to - basically to change an html list from a new line to a different list and restore it to the html to store it in the database. Processing of itemUpdating is quite easy but the pre-processing in DatBond is messy ... Protected Zero Details View1_DataBound (Object Sender, EventArgs e) {if (DetailsView1.Rows .Count & gt; 2) {String s = ((DataRowView DetailsView1.DataItem) .row.ItemArray [2] .ToString (); Text Box Box 1 = (Text Box) Details View 1 Fund Control ("Textbox 1"); If (box 1! = Null) {box1.Text = preprocessor (s); }}} its weakness string s = ((DataRowView DetailsView1.DataItem) .row.ItemArray [2] .ToString (); It bothers me, I'm sure I'm missing something (more than one thing)! I think I was hoping to update some more things ... e New Value ["Threline"] = Postprocess (E. NewValues ["Threline...

winforms - Why does a form displayed by PowerShell sometimes not show up? -

When I create a form (window) in PowerShell, then I usually display the form using .howdialog () I can: $ form = new-object system.Windows.Forms.Form $ form.ShowDialog () There is a false set before and after the visible. Show Dialog () But when I do. Nothing appears on the screen: $ form.Show () and .Vijay is now true (probably because of the set). () Form was officially seen.) When I try now. Show Dialog () Again, I get the following error message: "The form that is already visible can not be displayed as a modal dialog box. Set the visible property of the form before doing so. " But when I follow the instructions () Again $ form.Visible = 0 $ form.ShowDialog () The result is that nothing is displayed on the screen And PowerShell is hangy and can not be cured (ctrl-c doesn work) I believe this form is being displayed in a mapic form somewhere where I can not see it (or tab). but why? The coordinates of this form have not changed. So how does i...

Merge contents of 2 Excel cells keeping character format intact (using VBA) -

As the title says, I try to merge the contents of 2 out of 3 cells in Excel. There was a similar question, but those solutions do not have to retain the character. For example, some parts of source cell contents are bold and red formatted, the other parts are normal. When I call them range ("A3") = range ("A1") and & amp; Range ("A2") Then any formatting of A1 and A2 is lost. The format that I need is retaining a pattern. This is going to be part of a larger VBA program, so I do not want a VBA solution, no formula, please. Excel version 2002 (XP). Doctor, this is an interesting question that I was stumped myself, but saw the value, so some After the search, what I have found here is that. From the basic understanding of the formatting I have in the cell, which I've got modified for my use below. Merge_Cells () Dynamic IOn integer dim RngFrom1 as range Range dim RngFrom2 Range dim RngTo as Range dim as lenFrom1 Integer set as intege...

c# - Why is code in a try block separate from the rest of a method? -

मेरी समस्या कुछ इस तरह से हो जाती है: HttpWebRequest अनुरोध; {अनुरोध = {HttpWebRequest} WebRequest.Create (url) का प्रयास करें; } पकड़ (UriFormatException) {statusLabel.Text = "आपके द्वारा दर्ज पता गलत था, कृपया इसे ठीक करें।"; StatusLabel.ForeColor = Color.Red; } HttpWebResponse प्रतिक्रिया = (HttpWebResponse) request.GetResponse (); इस त्रुटि से मुझे यह मिलेगा कि अनुरोध को एक मूल्य नहीं दिया गया है। जाहिर है यह इसलिए है क्योंकि अनुरोध के मान को कोशिश ब्लॉक में दिया गया है। इसका कारण मुझे भ्रमित करता है क्योंकि अन्य भाषाओं में मैंने इसका उपयोग किया है, try / code> ब्लॉक में कोड क्या मैं इस गलत तरीके से जा रहा हूं? क्या मैं अलग तरीके से अलग (मैं इसके लिए शब्द भूल सकता हूँ, संभवत: इनकैप्सली?) बाकी के कोड से। WebRequest किसी एक को फेंकने के बाद अपवाद मानने के बाद क्या मुझे कोशिश ब्लॉक में कोड डुप्लिकेट करना चाहिए? आप त्रुटि का गलतफहमी कर रहे हैं। अनुरोध चर सभी कोड के दायरे में है। हालांकि, बाहर की कोशिश करें ब्लॉक के बाहर, यह मान की गारंटी नहीं है,...

css - How do I limit the minimum and maximum width of an element? -

I have a line of text that I want to attract to the surrounding boundaries. At the moment, the markup looks like this: & lt; Div id = "titlebox" & gt; & Lt; Span id = "titleName" class = "truncate" & gt; In fact the long title title is actually & lt; / Span & gt; & Lt; / Div & gt; The style looks like this: # title box {margin head: 10px; } Name of the title {margin: 5px; Height: 1.6 m; Width: Auto; Max-width: 15.385 PM; Padding: 0.3 9 00; Margin: 0.3 9 00; Line-height: 1.7; Color: RGBA (0,0,0,0.4.4); Background color: RGBA (204,204,204,0.4); Border: 3 px solid RGBA (255, 255, 255,0.14); Font-size: 153.9%; -max-boundary-radius: 5px; -WebKit-boundary-radius: 5px; }. Truncate {white-space: nowrap; Hidden flurry; Text-overflow: oval; -MMS-Text-overflow: oval; -o-text-overflow: oval; -Mo-binding: URL ('../templates/Elipesis.xml # Alpicis'); } The effect I want is that I should put the style box in the wid...

c# - ScriptManager.RegisterStartupScript not available -

Not sure why the RegisterStartupScript method is not available on my ScriptManager. I'm using System.Web.UI. I'm not sure, but maybe you should install the system. Web. Extension

iphone - Use mapkit to calculate driving distance between two addresses? -

Is it possible to use MapKit in the iPad SDK to calculate driving distance between two addresses? How to do (CLLocationDistance) getDistanceFrom: (Const CLLocation *): How about using the core space structure: You will need latitude / graph for both addresses. EDIT: Deprecated in iOS 3.2. Instead use the distanceformation: method.

md5 - Are there algorithms for putting a digest into the file being digested? -

Are there algorithms for putting digest files in digest? In other words, it is possible to have algorithms or libraries, or to have a hash / digest of files contained in the file. It will be easy for obvious reasons, such as made in ISO's Digest. I've tried Googleing like "MD5 injection" and "Digest in file file". No luck (probably for good reason.) Not sure whether it is mathematically possible. It seems that you will be able to roll through the file, but then you have to root the last bit (assuming the digest was the last thing in the file or object.) Thanks, Chenz However , with a hash inside a file (such as made in the ISO), defeats the entire security benefit of the hash. You need to get a hash from a different channel and compare it to your file.

parsing - Will rewriting a multipurpose log file parser to use formal grammars improve maintainability? -

TLR: If I have created a multipurpose parser with different codes for each format, then is it long Will it work better in using up to time a part of the parser code and an ANLR, pushing or specifying the same grammar? Context: I have many benchmark log files from ~ 50 different benchmarks in my job. There are some HTML, some HTML, some CSV and much more proprietary things in XML, without any documentation imaginable. To save me and my colleagues from entering this data by hand, I wrote a parsing tool that we used to deal with all types of formats regularly with the same interface May include. Design, however, is not so clear I have written this in Python and made a parser class. Each file format is handled as an implementation which provides its code for the reading () method of the parser. I liked the idea of ​​only one definition of parser which uses grammar to understand each format, but I have never done it before Is it worth my time, and whether in future Will it be easy...

subsonic3 - Oracle, Subsonic 3 and TableSpaceName -

When I go to run a t4 template, the result comes out "conversion compilation: name 'TableSpaceName "Does not exist in the present context" - Any thoughts on this? I thought this might be a namespace / reference problem, but it is not part of the ODP. This is one of them "it should be stupid" ... why? I have found Subsonic 2 to work with Oracle on the same box, using the same server, using the same connection string, so I should have something I'm not watching or expecting. I have downloaded and I have killed Github for the latest and greatest, with the result being tried various combinations of both. In your T4 template, check whether you imported an assembly that includes the name 'tablepacename' Is: & lt; # @ Assembly name = "[ABSOLUTE-PATH-TO-ASSEMBLY] \ [ASSEMLBYNAME]]" # & Gt;

regex - .htaccess regular expression need to make trailing forward slash optional -

I need to include an alternate follow-up forwards in my RewriteRule, that is a /, I What is so far RewriteRule ^ ([one-zA-Z0-9] +) $ u.php $ 1 |? $ 2 Which works fine, for example, to redirect and handle any query string parameters that might exist. I (with the follower forwardslash) is taking and So, if you have to redirect to your current, I would like to remove the last forward slash from $ 1 in my revised Raoul I need to do this? I'm new to Apache and have tried several different regex rules, but it can not get right. just put / $ in your pattern First of all: RewriteRule ^ ([one-zA-Z0-9] +) /? $ U.php? $ 1 But I suggest you allow only one spelling (with or without slash) and redirect to another: Slash RewriteCond% {REQUEST_FILENAME} after removing # -d RewriteRule (. *) / $ / $ 1 [L, R = 301] # Adding trailing slash RewriteCond% {REQUEST_FILENAME}! -f RewriteRule * [^ /] $ / $ 0 / [L, R = 301]

vb.net - Tips for debugging likely Crystal Reports hang in ASP.NET -

Trying to keep this small: Our shipping personnel sent on using a windows mobile-enabled barcode scanner Order the customer to scan the serial number of the item. This data is presented through the asmx web service and a report is automatically showing customer information to a client printer and shows details of the item to be sent. It all happens in an intranet environment. Recently, I was using the Microsoft Report Engine which was created in the Viewer Studio (.rlcc file) and code generated to generate the report and printed without user intervention. Recently, I took part in some reports in MS reports against formatting limitations and instead applied reports in Crystal Reports (10.5.3700). This code works fine, but after running for a day or more for a few hours, the ASP.NET Worker process is hanging (not sure that it is a proper term). Without throwing an exception, the generating / printing process always keeps running. Recycling the apple, for a while, everything works...

vb.net - Show Selected Item in Listbox (System.Web.UI.WebControls) -

I am working with a listbox, say, 20 items list box size, allow user to see first 5 items gives. However, there is a pre-selected item in the listbox that is sometimes not visible because it is not one of the first 5 items. How can I ensure that the lisbox is scrolled appropriately after listing the selected items for list so that the selected items appear to the user? Thank you for your help! Have you tried setting up TopIndex property? listBox.TopIndex = itemindex; Sorry, my first understanding of your question was completely wrong. I think you can do it using Javascript. I tested the sample on Windows 7 and IE8 and it worked. & lt;% @ Page language = "C #" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inherits = "_Default"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xm...

iphone - Get correct bounds for navigationItem.titleView layoutSubviews -

मेरे पास UIView का उप-वर्ग है जिसे मैंने titleView कोड का निम्न पंक्ति का उपयोग करके नेविगेशन आईटम का self.navigationItem.titleView = tempview; आसान पर्याप्त यह ठीक काम करता है मेरी समस्या यह है कि यह नेविगेशन आईटम में कभी-कभी rightBarButton अपडेट किया गया है (कभी कभी कोई बटन नहीं होता है, कभी-कभी एक मानक आकार बटन होता है, कभी-कभी एक बड़ा बटन होता है)। मुझे लगता है कि मैं titleView के रूप में जोड़ दिया है कि tempview वर्ग की layoutSubviews विधि का उपयोग कर सकते हैं इसलिए मैं इसे इस में डाल दिया: - (शून्य) लेआउटस्विअ्यूज़ {[सुपर लेआउटस्विअ्यूज़]; Self.mylabel.frame = self.bounds; } यह काम करने के लिए प्रतीत नहीं होता है, क्योंकि यह शीर्षक दृश्य का सही आकार नहीं है जब rightBarButton आइटम अपडेट हो जाता है मैंने यह भी गौर किया है कि एक बार जब वे छोटे हो गए हैं, तो वे आसानी से स्थिति बदलते हैं। मैंने कोशिश की है setNeedsLayout और लेआउटअनुक्रमित लेकिन वे बस गलत सीमाओं के साथ दृश्य को "आकार बदलते हैं"। मैंने यह भी सुनिश्चित किया है कि r...

javascript - Smartclient GWT making a ListGridRecord field editable using a custom DataSource -

We are using the library (see Smartclit GWT). I have a ListGrid UI that when you click on a record field, The difference is that I am using my own custom GWT RPC services and manually adding the List Grid record to my datasource and I see my records but the fields are not editable when clicked. I have a custom datasource Execute fetch method using've override correctly. Is there some special processing, which is using the example XML DataSource which creates listgrid spaces to set it to make it properly editable? For example, I'm just using CountryXMLDS.java, except for an example I'm adding a custom record (and I've removed all the fields but the population fields that I want to make editable ). I see that my record is visible, but when the record is clicked, the field is not editable. ListGridField PopulationField = New ListGridField ("Population", "Population"); PopulationField.setType (ListGridFieldType.INTEGER); PopulationFie...

python - how do I know if a remote user is connected in django? -

How do I know if a remote user is connected to the DNS, such as Gmail chat, or Facebook chat ... I need to Sorry for my english in template system Comet probably look at what you want, or

WordPress Child Theme -

I use the following code in my single.php file, depending on the user is viewing a different single template I use to show the file. . & lt ;? Php if (in_category ('Portfolio')) {Include (tempaypit. '/single-work.php'); } Otherwise (in_category ('blog')) {included (tempaypit. '/single-blog.php'); }? & Gt; The problem is that I am using child theme and therefore it will try to include files with the parent theme instead of the child theme. How do I get it to include it with a child theme instead? Confusingly stylepace instead of TEMPLATEPATH .

How to create a Flex Display component in Flash? -

I've used Flash to make skins, which I import and apply to Flex components. But how can I create a component in Flash, with properties and methods. And it can be added to the display list in the Flex app? I have installed the Flex component kit for Flash, created my component in Flash (this movie clip extends) Command-> Flex components change , file- > Published , which gave me .swc, left the .sec file in my Flex project. Now when I am creating a new class, the class "Flash Flex Companent Test" pops up in the new class gesture box, so Flex sees it but later I get an error: The type was not found or was not compiled at a compile-time: FlashFlexComponentTest I think the steps should be missing me? Thank you! UPDATE I through the project construction path Add SWC -> Add SWC I'm no longer a compile-time error, but I am getting a runtime error: Type statement failed: Flash Flax Clustast @ 9 089 9 MX Core.IUIIMApent Base class for all...

Asserting sum of values in Django-admin -

I have a dynamic model for a sweater and want to enter the structure of the material used in the admin panel (Say: "100% wool" or "50% wool, 50% cotton" or "50% wool, 45% cotton, 5% acrylic"). I have this model: square sweater (models.Model): wool = model.tectorfield (max_length = 3, default = 100, verbose_name = "wool ( %) ") Cotton = Model.EaterField (max_long = 3, default = 0, verbose_name =" cotton (%) ") acryl = models.IntegerField (max_length = 3, default = 0, verbose_name =" acryl (%) ") How can I say that the sum of wool, cotton and acrylic values ​​should be 100 so that a user can not enter "100% wool, 100% cotton, 100% acetyl" ? You should do this at least in two places. To ensure that you do not get incorrect data in the model and let a user know that this amount does not add up to 100%. The form below is used to check the yoga during cleaning: class sweaterform: "" "Form...

sql - MySQL Find the total amount of posts per user -

I have a database with the following two tables, USERS, POSTS I search one way To get count of how many posts the user is doing User Post + ---- + ------ + + ---- + ------ --- + --------- - + | ID | Name | | ID | User_id | Name | + ---- + ------ + + ---- + --------- + ----------- + | 1 | Bob | | 1 | 1 | Blogs ... | + ---- + ------ + + ---- + --------- + ----------- + | 2 | Gym | | 2 | 1 | Blogs ... | + ---- + ------ + + ---- + --------- + ----------- + | 3 | Joe | 3 | 2 | Blogs ... | + ---- + ------ + + ---- + --------- + ----------- + I have tried to exclude many of the following SQL command from any success. Rather than showing the counting of posts for a single user, it shows a line with all the positions in the form of the count, click Users . Posts. Leave user at userser.id I select user. *, COUNT (posts.user_id) Something like this + ---- + ------ + | ID | Calculation + ---- + ------ + | 1 | 2 | + ---- + ------ + | 2 | 1 | + ---- + ------ + Understand...

Portable Java Web Start Cache Location -

I am trying to make a Java Web Start application portable. It stores some stuff in the user's home directory, and there is a bunch of stuff in the cache. I am using portableapps.com's portable Java, and I have found that -J-Deusser. To store the home folder stu using home = "data", but how do I change the web cache, Take a look at "cache" "in the same directory. If you're on Windows, Go to the Java Control Panel and change the cache directory in that way.

routing - Customizing the url-from-parameters lookup in asp.net mvc -

मेरे पास कोड द्वारा जोड़ा गया मार्ग है routes.MapRoute ("MyRoute", "TheUrl", नया {नियंत्रक = "मायकंट्रोलर", एक्शन = "मायएक्शन"}); मैं तब UrlHelper.Action ("MyAction", "MyController") जैसे तर्कों के साथ एक रिवर्स लुकअप कर सकता हूँ, और यह एक अच्छा यूआरएल जैसे वापस आएगा ~ / TheUrl हालांकि, इस मार्ग के लिए मैं उत्पन्न URL को ~ / TheUrl? P = 2354 होना चाहता हूं, पैरामीटर के साथ कुछ संस्करण पैरामीटर। क्या इस मार्ग को कुछ अनुकूलित रूट हैंडलर या कुछ और के साथ मानचित्रण करने का कोई तरीका है? संस्करण पैरामीटर गैर-मानक होगा और यूआरएल को देखा जाने पर हर बार निष्पादित करने के लिए कुछ कस्टम कोड की आवश्यकता होगी। मुझे लगता है कि यूआरएलएचल्पर विस्तार पद्धति यहाँ सबसे आदर्श और सरल होगी। सार्वजनिक स्ट्रिंग मायरोउट (यह यूआरएलएल्पर यूआरएल) {string versionNumber = GetVersionNumber (); // या वाई / ई इसे यूआरएल वापस लाने के लिए आवश्यक है। एक्शन ("माइएक्शन", "मैक कंट्रोलर") + "? पी =" + वर्जननम्...

php - Which version of CodeIgniter am I currently using? -

त्वरित प्रश्न। क्या phpinfo () - यह CodeIgniter के लिए संस्करण प्रदर्शित करेगा? धन्यवाद। हां, CI_VERSION आपको वर्तमान कोडइग्निटर संस्करण संख्या दें इसमें परिभाषित किया गया है: /system/codeigniter/CodeIgniter.php CodeIgniter 2 के रूप में, इसे /system/core/CodeIgniter.php में परिभाषित किया गया है उदाहरण के लिए, प्रतिलिपि CI_VERSION; // कुछ की तरह गूंज 1.7.1

css selectors - Select first list in table - CSS first-child? -

Maybe I am barking the wrong tree. I have a table with 6 columns, each with an order list. I want them all to have a limit besides the first list. Originally though html & lt; TR & gt; & Lt; TD & gt; & Lt; Ol & gt; & Lt; Li & gt; Hello & lt; / Li & gt; & Lt; / Ol & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Ol & gt; & Lt; Li & gt; Hello & lt; / Li & gt; & Lt; / Ol & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Ol & gt; & Lt; Li & gt; Hello & lt; / Li & gt; & Lt; / Ol & gt; & Lt; / TD & gt; & Lt; / TR & gt; I thought tr's first child works like tr: first-child ol {style} The selector is CSS 2 and is not supported on IE6. If i6 is important then you first need to give a class to the child that you can choose instead but the correct syntax is: tr td: first-child ol {...} When you do: tr: first-hair ... ...

asp.net - Does this Web App Server-Data Server configuration make sense on a cloud server? -

I plan to make my web application on a server example, my SQL (Express) second instance and a separate domain controller On some other was making The purpose of allowing ASP.NET application to access SQL Server under Windows Security. Is hosted on a cloud server Do I have any security benefits on the cloud server? For example, each 'machine' will have a remote desktop activated. If it is better than placing it on a server frequency, what can I do to maximize security? OK, isolating the server such that if someone makes a compromise then it will be all of your data It does not compromise, it's a good thing, of course. This is the main benefit you are receiving. You need to make sure that with separate layout, that does not give your SQL Box Connection (SQL Server) to any older IPs; Only web server (and of course, your external firewall will block that port in any way). What else can you do? Probably ask on the networking forum. Many, many things come to mind ...

jQuery best way to block any other processes while waiting for Ajax completion -

This is I have a registration form in the I domain text box field, people call the registrar API across domains in the domain for recognition on availability of domains. Verification can take up to 15 seconds depending on the speed of the network. In this waiting period, how to block if users click on submit button? My idea is simple: before ending any Ajax call, I do not want to allow people to submit. I can think in a way, but I'm not sure this is a good way. I need advice. Before : function () {$ ("# btn submit"). Attr ("disabled", "disabled"); }, Complete: function () {$ ("# btn submit"). Attri ("disabled", ""); } & Lt; Input type = "button" name = "submit btn" id = "submit btn" value = "my button" /> Settings async to false It can work but it can hang the browser completely for 15 seconds. Your best bet is to disable the deposit element and stop ...

python - How to automate updating a trac wiki page? -

I have a Trek wiki page that I want to update with data regularly on a regular basis (say, Once an hour) received by a script. I can get the script to generate Wiki markup. How do you upload after that? I want to change the entire body of the page. I like a solution in Python because the remaining stacks (tracks, framing scripts) also use it. Just one indicator should be enough in the right direction;) You can install Trac XMLRPC plugin: And then use the xmlrpc client library from the standard library. After this you will be able to manipulate most aspects of the track (tickets, wiki pages, etc.) from a Python script.

c++ - Printf and scanf work without stdio.h, why? -

संभव डुप्लिकेट: दोनों printf और scanf को stdio.h में घोषित किया गया है। लेकिन वे इसके बिना भी काम करते हैं, सिर्फ एक चेतावनी संदेश छोड़ते हैं? इसके पीछे सिद्धांत क्या है? बिना घोषणा किए एक फ़ंक्शन कॉल करने से पैरामीटर के आधार पर एक निहित घोषणा उत्पन्न होगी आप दे और एक धारणा वापसी प्रकार int यह संकलन अवस्था के पीछे जाने की सुविधा देता है, क्योंकि फ़ंक्शन कहीं और मौजूद हो सकता है जो कि लिंक समय तक ज्ञात नहीं है - सी में हमेशा फ़ंक्शन प्रोटोटाइप नहीं होता, इसलिए यह पिछली संगतता के लिए है। (सी ++ में, यह एक त्रुटि है, और सी 99 जीसीसी में एक चेतावनी दी गई है।) यदि आप printf , Scanf , डालता है , आदि, यह कहते हैं कि यह "मानक सी लाइब्रेरी (libc, -lc)" से आता है। जीसीसी मानक सी लाइब्रेरी से निहित रूप से लिंक करता है यदि आप -nostdlib फ्लैग से लिंक करते हैं, तो आपको "अपरिभाषित प्रतीकों" त्रुटि मिलती है जो आप की उम्मीद कर रहे हैं। (वास्तव में, जब मैं Libc , मेरे जीएनयू / लिनक्स सिस्टम में _start की अनुपस्थिति के बारे में भी शिकायत है, और मेरे ओ...