Posts

Showing posts from January, 2015

documentation - IEEE floating point pitfalls introductory manual -

क्या फ्लोटिंग पॉइंट से संबंधित व्यावहारिक नुकसान पर एक अच्छा परिचयात्मक स्तर प्रलेख है? मुझे इस विषय पर कुछ पठन सामग्री देने की आवश्यकता है जो कि काफी चमकदार सीएस छात्र है। मुझे याद है कि कुछ साल पहले एक अच्छी व्यापक पुस्तिका देख रही थी, लेकिन अब, जब मुझे इसकी ज़रूरत है, तो मुझे कोई नहीं मिल सकता है। मैं उसके बाद पढ़ने से शुरू करने की सलाह देता हूं। शायद मैन्युअल आप सोच रहे हैं।

ruby on rails - How do I store an instance variable across multiple actions in a controller? -

Say I want to store some variables in my controller. I want to start it in an action, want to increase it in another, and read it in another just do not work this variable with @foo because @foo was created after the creation. I do not want to store this variable in a model Is there any way to preserve this variable besides accumulating this session? It seems that I have run this problem many times, and I want to know the best way to go about solving it. Not really a controller action to call each statement is after the controller's action is finished Is also not available. A new controller example is created for each request, and then discarded at the end of the request. If you do not want to store it in a session, or database model, you have many options if you want that variable specific to a specific session. If it is global in all sessions, then you can put it in a @@ class_variable @instance_variable , but once you have multiple rail processes You can ...

windows - Check status of one port on remote host -

I need a command line that can check the status of the port on the remote host. I tried ping xxx.xxx.xxx.xxx:161 but it does not recognize the "host" I thought it was a "good" answer until I got the same command against the host I used to know that the harbor is open. This is a batch file on Windows that will check the status of the remote port, then run the command that uses that remote port for information, then the remote port check command again, use that command for that information Ports on the next server, and so on. I have seen everywhere and thought that Ping can do this, but different versions of Ping should be, I think the server I am doing on this does not show that option. Just for Chuskale, I tried a web based remote port checker from a website - and the results were correct for both "server" and server server, though, with 500+ server IPS in it Can not use it in a batch run Is there something that is that simple? My Pearl skills ar...

How to generate different links on web page if JavaScript is enabled? -

I'm trying to follow incredible javascript / beautiful degradation tecnhique. When JavaScript is turned on, and when Javascript is off I want to serve the page with various links. For example, when javascript is closed, and when Javascript is on (or something like that). Both versions of the link (with JavaScript and without javascript) lead to server side scripts, but with different standards. The version that Javascript is switched on, it says the version that performs more on the server, so it would be unproductive to detect JavaScript (such as the non-JavaScript script from the server script to the other version in the window. Location ). Note: I would prefer the solution without using javascript libraries / framework like jQuery. Good, the answer is to present the page in normal form with non-JavaScript links. Then get javascript to change the link with js = 1 versions. var links = document.getElementsByTagName ('a'); (Var i = 0; i ...

c# - string conversion, first character upper of each word -

मैं कन्वर्ट करना चाहता हूं: एचईएचटीटी, विलियम हेच, विलियम में सी #। ऐसा करने के किसी भी शानदार तरीके? स्ट्रिंग नाम = "एचईएचटीटी, विलियम"; स्ट्रिंग s = CultureInfo.CurrentCulture.TextInfo.ToTitleCase (नाम। ToLower ()); (ध्यान दें यह केवल कम-से-ऊपरी कार्य करता है, इसलिए कम-केस प्रारंभ करना)

c# - stringbuilder append override my record if (!IsPostback) -

ओवरराइडिंग से कैसे बचें? सार्वजनिक आंशिक कक्षा परीक्षण: सिस्टम। वेब। यूआई पृष्ठ {स्ट्रिंगबिल्डर एस.बी. = नया स्ट्रिंगबिल्डर (); संरक्षित शून्य Page_Load (ऑब्जेक्ट प्रेषक, EventArgs ई) {if (! IsPostBack) {sb.Append ("एक"); Lbl.Text = sb.ToString (); }} सुरक्षित शून्य cmdSb_Click (ऑब्जेक्ट प्रेषक, EventArgs ई) {sb.Append ("दो"); Lbl.Text = sb.ToString (); }} याद रखें, हर बार जब आप कोई भी पोस्टबैक करते हैं , भले ही यह किसी ईवेंट को संभालना है, भले ही पूर्ण पृष्ठ जीवन चक्र चलने वाला हो इसे समझने में मदद करने के लिए, आप अपने कोड को सोच सकते हैं जैसे कि ये एक बड़े फ़ंक्शन में हैं, और इस तरह से: सार्वजनिक आंशिक कक्षा परीक्षण: System.Web.UI.Page {// Page_Load सब कुछ संरक्षित शून्य पेज_लोड (ऑब्जेक्ट प्रेषक, इवेंटएरग्स ई) के लिए चलाता है {// - कन्स्ट्रक्टर एरिया स्ट्रिंगबिल्डर एसबी = नया स्ट्रिंगबिल्डर (); // - पेज इनिट एरिया // - व्यूस्टेट लोड किया जाता है // - पेज लोड एरिया यदि (! आईपॉस्टबैक) {sb.Append ("एक"); Lbl.Text = sb.ToString (); } // -...

database - MS Access - OLE Server Error....HELP! -

So I have developed this access database application (just back end) on top of one lap, and now I have to go ahead Have tried it on a network drive. The purpose of this is to track the data for the matrix, so there are so many data (700 fields in the 15 fields for the main table), and it triggers these top N queries which makes this chart ... So today I put it on the Network Shared Drive and tried to run a chart. The query seems stuck in the middle (just below the small progress bar at the bottom left Given), and 5 minutes After waiting, if I break the control then I get a message that says OLE server error ..... Please tell me that it will work on a laptop and not shared on the network ? Anyone know about it? Check your questions and your connection method to ensure that you have large data on the network Versions are not being processed / filtered at the front end.

c++ - How to Convert a gdi+ Bitmap-like struct into an HDC? -

How to change a bitmap-abstract structure in an HDC? Now I have the image processing program in C ++, GDI. If I have got HDC, I can attract whatever I want on HDC in GDI with the following code. // HDC is easy. HDC DC; Dc.DrawXXX // I can draw using the GDI method. Graphics GR (DC); // Now I can use the GDI method on DD My application is based on free image. I make fipImage. (Use Data Structures like Bitmap) However, if I want to draw on the flywheel, now I have to copy the FifiIn Imagato bitmap, then click on the bitmap and finally the bitmap is reimagined convert fipImage to bitmap -> draw on bitmap -> convert bitmap to fipWinImage fipWinImage imagefip; Bitmap * tempImg = new bitmap (imagefip-> GetWidth (), imagefip.GetHeigt (), pixel format 24bpprgb); // Memory Coming is Image's Large Graphics * PGR = Graphics :: Image (TempMG); HDC DC = PGR- & gt; GetHDC (); RECT RE; Rec.left = 0; Rec.top = 0; Rec.right = imagefip.GetWidth (); Rec.bottom = imag...

visual studio - Problem in saving aspx file with encoding -

I am developing a web application in Arabic for this, I change the existing pages from English to Arabic and encoding the file I save from But when I restarted the Visual Studio, all the Arabic characters '?' Change in What could be thanks Any help would be appreciated. > This can be the issue of character encoding. You can try adding it to your header: & lt; Meta http-equiv = "content-type" content = "text / html; charset = windows-1256" & gt; Or set your document encoding to 8859-6

c++ - Having a problem with placement-new! -

I'm having trouble by giving an example of my reference-count indicator and class Using Debugger in my Array class, it seems that the constructor is never called (which disturbs the reference-count and causes the default from below the line)! My Push_back function is: Repeat zero push_back (constant tee element) {if (length> = maximum) (max> gt; 0 ? Max * 2: 1); New (more data [length]) t (element); ++ Length; } The reference-count is similar to what is said after the new one. I'm pretty sure this is a problem, but I do not understand why the creator will not be asked. In addition, the Pointer :: Pointer (...) compile it to an indicator & lt; T & gt; & amp; Or a constant pointer & lt; T & gt; & amp; (Huh?), And despite the problem! Maybe there are some details about the appointment I am not taking into meditation. If anyone has some ideas, then he will be very much appreciated! Edit: [As requested, a relevant part from the po...

c - On Solaris Sparc 64bit, Can a 64bit process load a 32 bit shared library -

An Apache server built in 64 bit mode can load 32 bit plug-ins on the 64-bit Solaris Spark system? no , it's not possible. When a 64 bit process attempts to load 32-bit shared objects, the runtime linker returns the following error: ld.so.1: app: fatal: ./lib32.so: Incorrect ELF class: ELFCLASS32

regex - Non greedy LookAhead -

मेरे पास ऐसे तार हैं जैसे: val: key मैं / ^ \ w * / के साथ 'val' पर कब्जा कर सकता हूं। अब मैं कैसे 'कुंजी' प्राप्त कर सकता हूं बिना द ' : 'साइन इन करें? धन्यवाद इस बारे में कैसे? / ^ (\ w +): (\ w +) $ / या यदि आप बृहदान्त्र के बाद सब कुछ लेना चाहते हैं: /: (। +) / मैच से पहले एक बृहदान्त्र बनने को सुनिश्चित करने के लिए, यह देखने के लिए एक नजरअंदाज करने का एक स्पष्ट उदाहरण है - पूरे मैच में उस बृहदान्त्र को शामिल नहीं किया जाएगा। / (? & Lt; =:)। * /

.NET, Call C++ functions from C# -

I have a solution, in which there is a C ++ project and C # project I C ++ project defines a class , Which I want to instantiate in C # and it is called member function. So far, what I have been able to do is to modify the class: CFoo Bar = new CFoo (); But when I try to call the function on it, the compiler says, it is not available. Also, when I inspect the object in the debugger, not Need to declare a ref class in C ++ / CLI. (Note that we are talking about C ++ / CLI, not C ++. I think that you have to convert CLR to your C ++ project or new CFoo will not be able to work.) Edit: You can not copy riff to all your old sections There is no need to convert to classes. Assume that you have some older C ++: class FooUnmanaged {int x; FooUnmanaged (): x (5) {}}; Then you try to wrap it in CLR class: Roofe class FooManaged {FooUnmanaged m; }; As you have seen, you get an error saying that this permission is not allowed. But try this: Ruff Cla...

mvvm - WPF DataGrid: Get column binding property for filtering -

मैं WPF DataGrid (WPF Toolkit से) के लिए एक फ़िल्टरिंग कार्यक्षमता विकसित करने का प्रयास कर रहा हूं। मैं एक उपयोगकर्ता को किसी भी सेल को राइट-क्लिक करने और उसके CcontextMenu से फ़िल्टर का चयन करने के लिए चाहता हूं, और फिर ग्रिड सेल के मान से फ़िल्टर्ड होना चाहिए। मैं एमवी-वीएम पैटर्न की कोशिश कर रहा हूं मेरी खिड़कियों की डेटाकॉन्टेक्स्ट है मुख्य विंडूवमॉडल जिसमें एक संपत्ति है लेनदेन । यह प्रॉपर्टी रिटर्न अवलोकनकेलक्शन & lt; TransactionViewModel & gt; , और डेटा ग्रिड इस संग्रह को इसके आइटम स्रोत के रूप में उपयोग करता है। तो मूल रूप से प्रत्येक पंक्ति TransactionViewModel से जुड़ी हुई है (जैसा कि आप अनुमान लगा सकते हैं, यह ग्रिड लेनदेन को सूचीबद्ध करता है)। मुख्य विंडो दृश्यमॉडल में आयलॉल्लकिव्यू है जिसका उपयोग वर्तमान चयनित पंक्ति को फ़िल्टर करने और ट्रैक करने के लिए किया जाता है myCollectionView.CurrentItem मुझे वर्तमान में चयनित TransactionViewModel देता है DataGrid में इसकी संपत्ति IsSynchronizedWithCurrentItem को "true" पर सेट है, इसल...

data binding - Bind WPF ComboBox SelectedValue-property to multiple objects -

Assume that I have a list of customers (list) and each customer has a state property. Is it possible to pair the electoral value of the combo box so that it can be shown (is an election) such as "WA" if all the customers are WAs in their state? If the customers do not have separate state-value then nothing is shown but if I choose either, then all customers should set their state to this value. I have completed this through a Welcome converter, where I use the convert method to return the value of the state property if they are all the same, and if not the value in this method, - Parameter is a list ... But I do not have access to the list object in the Convertback method, but the parameter can set the object while setting the list object in XAML Is there any other way to do this Is? Well - with my solution this Forgot to update search On my ValueConverter I have a private list parameter, where I add all the selected customers if they have the same sta...

jquery - blur on an image -

कृपया इस कोड को देखें: jQuery (document) .ready (function () ("& Lt; इनपुट वर्ग = 'inputSetting' type = 'text' मान = "+ टेक्स्ट +" & gt; & lt; img class = \ "स्वीकार करें \" src = 'images / accept.png' & gt; "); console.log (text);}); jQuery (" img.accept ")। ('क्लिक', फ़ंक्शन () {console.log ("blur");});}); जब मैं टीडी पर दबाता हूं इनपुट बॉक्स दिखाई देता है। लेकिन जब मैं स्वीकार करता हूँ कि आईएमजी कुछ भी नहीं होता है तो क्लसीकेक होता है मेरे सांत्वना "ब्लर" पर ऐमेज होना चाहिए, लेकिन कुछ भी नहीं होता है मैंने भी कोशिश की: jQuery ("img.accept")। क्लिक करें (फ़ंक्शन () {console.log ("blur");}); लेकिन यह भी काम नहीं करता है। उपयोग करने का प्रयास करें छवि के लिए बाइंडिंग के बजाय।

jquery - How do i identify which events have bound via JavaScript? -

संभावित डुप्लिकेट: मैं कैसे पता लगा सकता है कि जावास्क्रिप्ट के माध्यम से किस घटना को एक DOM तत्व से बाध्य किया गया है? नीचे दिए गए उदाहरण में मुझे यह देखने में सक्षम होना चाहूंगा कि क्लिक ईवेंट मेरे 'क्लिक करने योग्य' अवधि पर बाध्य है, और यदि संभव हो तो चेतावनी -लाइन से डिबग करने में सक्षम हो। क्या मैं इसे फ़ायरबग जैसी एक वेब डेवलपर उपयोगिता के साथ कर सकता हूं? & lt; html & gt; & Lt; शीर्ष & gt; & Lt; शीर्षक & gt; जावास्क्रिप्ट से जुड़ी घटनाएं & lt; / title & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ (दस्तावेज़) .ready (फ़ंक्शन () {$ ("# क्लिक करने योग्य")। क्लिक करें (फ़ंक्शन () {चेतावनी ("क्लिक किया हुआ"।);});}); & Lt; / स्क्रिप्ट & gt; & Lt; / head & gt; & LT; बॉ...

c# - How do I get the sum of the Counts of nested Lists in a Dictionary without using foreach? -

I want to get the following number of the following objects in the list s : dictionary & lt; Int, list & lt; String & gt; & Gt; DD = new dictionary & lt; Int, list & lt; String & gt; & Gt; () {{1, new list & lt; String & gt; {"Cem"}}, {2, new list & lt; String & gt; {"Cem", "canan"}}, {3, new list & lt; String & gt; {"Canan", "cenk", "cem"}}}; // It only gives an enumerated array Var i = (Select from dd c.Value.Count). Choose (P => P); I believe this will give you the calculation you want It is efficiently and clearly to walk through the lists under the hood, but to count the total, there is no way to avoid this. var i = dd.values.Sum (x => x .ount);

Rendering HTML Content within Silverlight application -

In one of our applications it is necessary to display a bullet list in a Silverlight 2.0 container. We use the HTML markup text Have done it. However, there are many options like Overlaying like HTML Divider Container etc., I would like to know what is the most practical way to do this. I think the easiest would be to use some 3rd-party party solutions. For example, Telekick has a HtmlPlaceholder that allows you to display the HTML page inside the Silverlight app. You can see a demo here: How you can use it: & lt; Grid & gt; & Lt; Tele-rik: Radha HTML Placeholder SourceUrl = "http://google.com" /> & Lt; / Grid & gt;

python - Django-admin : How to display link to object info page instead of edit form , in records change list? -

I am optimizing Django-admin for an application. So far the customization file is working, added some ideas. But I'm wondering how to change the record_list display to display an information page instead of replacing the links ?! In this blog post: extending-the-django-admin-interface / Tom said: "you define a function my_func.allow_tags = true" adding images or links to the listing view I could not fully understand! Ok now I have a profile function, which is required when I click on a member in the record list, I can display it (or another button - by adding profile -), each member How to add links to (edit: redirect me to edit the form for this member). How can I get it ?! Regards Hamza If I think your question is right, You want to add the links to the list view, and you want the link to be the information that you created. To do this, create a function to return the link HTML in your admin object. Then use that list in your list like this: ...

javascript - How to guess browser compatibility based upon DOM Level? -

What is a simple rule - to find out which browser version and upwards to a given DOM level Will happen? You can use the feature detection: DOM-Events Level 2 DOM-Core Level 2: document.implementation.hasFeature ("Core", "2.0")) Tom-Expat Level 3: Document.LimalingFotcher ( "XPath", "3.0") Camp 1: Geoko (Firefox, Mozilla), WebKit (Safari, Chrome), Presto- (Opera) browsers support DOM Core / Event / XPath Level 2 supports some of them level level 3.0 Camp 2: Trident-based (Internet One Splorr) supports DOM Level 0 (which is not standard) Hope this helps. Ajax is a GUI framework that enables DOM level 2/3 in Internet Explorer as well as re-implementing it in other browsers.

How to handle SharePoint deployment of wsp? Take site offline? -

What is the recommended approach to handling a SharePoint deployment through a WSP? Web site returns an HTTP 503 service unavailable response during the WSP deployment. I am deploying WSP with a series of stsadm.exe commands from a bit file. I know that I may skip an app_offline.htm file in the Virtual Directory folder and a custom HTTP 503 error code is on the page, but whether during a deployment it would be better to take a SharePoint application offline The way? Do I need an app_offline.htm file or just a custom HTTP 503 error code page? Deployed WSP causes IISReset depending on your hardware, usually it's a minute or two It does not last long, so I'm not sure it will be more of a problem. If you are in a mission, important production environments however, I recommend installing wsp from the middle admin; To prevent service interruptions, determine the deployment of the deck for late hours.

C++ and Qt - Problem with 2D graphics -

Image
Mission: Automatically clipping on one clip, add two lines slightly different colors on one bit and two. So, what I'm doing is create inherited classes from the QGraphicsView GraphWidget Create QGraphicsScene members 2 Create QPainterPath example, and add them to GraphicsCissen. Then, I finally call graphWidget.Redraw (), where for both instances call QPainterPath.lineTo (). And I hope that the presence of that line of graphics, but it's not. I'm tired of reading Qt's doctor and forum what am I doing? We have to know more, will not we? Does the window appear at all? What lines are not ready? If you want, try this sample code :) Edit: updated to update #include ... class QupdatingPathItem: public QGraphicsPathItem {zero advance (int step) {if (step == 0) return; Int x = abs (rand ())% 100; Int y = abs (rand ())% 100; QPainterPath p = path (); P.lineTo (x, y); SetPath (P); }}; Int main (int argc, char * argv []) {Q Application A (argc, argv); QGraphicsSce...

How can I check out a particular version of one file in Git? -

How can I see a specific version of a file git? I found, who said: $ git checkout head ~ 43 Macfile $ git reset makefile but I do not know How to find 'head ~ 43', if I do a GIT log file , let me know how to use 'HEAD ~ 43'? And why do I need to run git reset for that file? What does it do? Do you know what file is related (i.e .:: specific modification)? Redo: git checkout & lt; Commit & gt; & Lt; File & gt; Other commands: git checkout head ~ N & lt; File & gt; When you want to get a version of the file back (which I do for old memories).

What is a basic example of single inheritance using the super() keyword in Python? -

मान लें कि मेरे पास निम्नलिखित क्लास सेट हैं: class Foo: def __init __ ( स्व, फ्रॉब, फ्रात्ज़): स्वयं। फ्रैब्नैक्ट = फ्रॉब self.frotz = frotz वर्ग बार: def __init __ (स्वयं, फ्रॉब, फ्रिजल): स्वयं। फ्रैबननेटिक = फ्रॉब स्व.फ्रोटज़ = 34 आत्म। फ्रैज़ले = फ्रिजल डुप्लिकेट कोड को खत्म करने के लिए मैं इस संदर्भ में सुपर () का उपयोग कैसे कर सकता / सकती हूं? पायथन> = 3.0 में, इस तरह: वर्ग फू (): def __init __ (स्वयं, फ्रोब, फ्रोटज़) self.frobnicate = frob self.frotz = Frotz वर्ग बार (फू): def __init __ (आत्म, frob, frizzle) सुपर () .__ init __ (frob, 34) self.frazzle = frizzle यहां और पढ़ें: संपादित करें: जैसा कि एक और उत्तर में कहा गया है, कभी-कभी केवल Foo .__ init __ (आत्म, फ्रोब, 34) का उपयोग करना बेहतर समाधान हो सकता है (उदाहरण के लिए, जब एकाधिक विरासत के कुछ रूपों के साथ काम करना।)

java - mvn tomcat:run doesn't start Tomcat -

I am trying to install and run my webpage using Maven and its Tomcat plugin. I have set up this project in pom.xml, but when I call it from the command line: mvn tomcat: run Whatever I get is: [root @ ovz6022 trunk] #mvn-a tomcat: run + error stackets are on [INFO] Scanning for projects. .. [INFO] -------------------------------------------------- --------------------------- [INFO] Building - com.gotbrains.breeze: Wind: Jar: 1.0 [INFO] Work-Segment: [Tomcat: run] [INFO] ------------------------------------------ ------------------------------ [INFO] Preparation of biscuits: [ INFO] [run resources]: Resources {execution: default-processing}] [Warning] Use platform encoding (actually UTF-8) to copy the filtered resources, i.e. Build-Based Platform! [INFO] Directory / Root / Trunk / src / main / resource [INFO] [compiler: compile: execution: default-compilation]] [INFO] Nothing to compile - all classes except date [INFO] ] [Tomcat: run {execution: default-cli}] [INFO] Skip ...

What is the best data structure (container) for fast element insertion/deletion by index? -

What is the best data structure for fast element entry / deletion by an index? You receive o (log n) performance using a binary tree with a node structure like this Can: Structure node & lieutenant; T & gt; The T Value Node will have the number of nodes in the left right right_count end of the left_count node in the right int_count end left_count value in the left And likewise, for the right side, the lookup will be performed by starting from the top of the tree and comparing it with the left and right calculations of the desired index value below. Insertion and deletion will be done using the normal binary tree algorithm, with appropriate adjustments for counting values. This type of tree probably has a name; Appreciate more information!

c# - Iterating through a bunch of pages, webbrowser control -

I have a list of URLs that I need to parse and dump with data. Pages need Ajax And I need DOM (and not html) to parse correctly. So I'm using a web browser control. How do I make an iterator through a list and parse each page? I am writing for (int i = 0; i The way you designed it is not working well is. You should know about the occurrence of a web browser when the document is completely full. But, making a call on navigating in quick succession will not work. You will have to navigate to your page list for the first time and then it will have to parse it with a call in the document and then go to the next page.

camelcasing - Elegant Python function to convert CamelCase to snake_case? -

उदाहरण: & gt; & gt; & gt; कन्वर्ट ('कैमल सीज़') 'ऊमकैकेज' यह बहुत पूर्ण है: def (नाम): s1 = re.sub ('(।) ([AZ] [az] +)', r '\ 1_ \ 2', नाम) रिटर्न re.sub (' ([A-z0- 9]) ([AZ]) ', r' \ 1_ \ 2 ', s1)। कमांड () इन सभी के साथ काम करता है (और नहीं हानि पहले से ही- un-cameled संस्करण): & gt; & gt; & gt; कन्वर्ट ('कैमल कैस') 'ऊमल कैकेस' & gt; & gt; & gt; कन्वर्ट ('कैमल कैमेल कैस') 'यूएमएल_camel_case' & gt; & gt; & gt; कन्वर्ट ('Camel2Camel2Case') 'camel2_camel2_case' & gt; & gt; & gt; कन्वर्ट ('getHTTPResponseCode') 'get_http_response_code' & gt; & gt; & gt; कन्वर्ट ('get2HTTPResponseCode') 'get2_http_response_code' & gt; & gt; & gt; कन्वर्ट ('HTTPResponseCode') 'http_response_code' & gt; & gt; & gt; ('HTTPResponseCodeXYZ') ...

sql - DML generated at front-end vs. Insert - Update - Delete performed by stored procedures -

To think about the real benefit of the DML command (inclusion, updating, deletion) in the database through stored procedures for simple CRUD, I Applications. What if the use of some generic procedures in the front-end producing DML command, what is the benefit of that application? According to the performance, you are not likely to see any benefit. I think this is more about the security of the database. The advantage of procedures stored in any situation has different potential for controlling the security of data for DBA, this is often the priority call by DBA. Entering the CRUD on the server in the server means that it controls 100% access to the server. Your code must match your stored proc "API". If you include logic in Visual FoxPro code through Remote View, Cursor Adapter, or SQL Pastthrough SQLXAC (), it means that you have 100% code control and DBA will give you the database The components have to be accessed, or through the application roles you use for c...

Comparing dissimilar types in python -

पहले कोड: वर्ग myClass (वस्तु): def __cmp __ (स्वयं, अन्य ): वापसी सीएमपी (प्रकार (स्वयं), प्रकार (अन्य)) या सीपीपी (आत्म .__ कुछ, अन्य .__ कुछ) क्या यह अजथन में अन्य प्रकारों के लिए समान आदेश का उत्पादन करता है? क्या इसके लिए एक सही मुहावर है? गूगल पर चारों ओर देखकर मुझे कुछ प्रासंगिक जानकारी मिली उद्धरण: कार्यान्वयन नोट: संख्याओं को छोड़कर विभिन्न प्रकार के ऑब्जेक्ट उनके प्रकार के नामों द्वारा क्रमबद्ध होते हैं; समान प्रकार के ऑब्जेक्ट्स जो उचित तुलना का समर्थन नहीं करते हैं उनके पते द्वारा आदेश दिए जाते हैं। यह सुझाव देता है कि अगर मैं उस व्यवहार का पालन करना चाहता हूं, तो मुझे वर्ग myClass (ऑब्जेक्ट): def __cmp __ (स्वयं, अन्य): वापसी (सीपीपी (स्व .__ वर्ग __.__ नाम__, अन्य .__ वर्ग __.__ नाम) या सीएमपी (स्वयं .__ कुछ, अन्य .__ कुछ)) विशेष रूप से दुर्भाग्यपूर्ण है कि मुझे dict s के साथ ट्रांज़िटिविटी के लिए एक असाधारण मुश्किल समय हो सकता है, जो कि मैं विशेष रूप से लागू करना चाहता था क्या मुझे अपने तर्कों के प्रकारों की जांच करने की ज़रूरत है? क्या अज...

Periodic Task in Grails -

I want to run a periodic task within a Grails application. Can someone recommend the best practice to do this? I would recommend, here is a summary of the site: Quartz Plugin allows your Grails application to schedule tasks using a specified interval or cron expression. Built-in system uses quartz enterprise job scheduler through spring, but it is simplified by coding by conference paradigm.

vim - How to ignore struct declarations and consider only definitions in cscope? -

I always use vim + cscope to check the symbol definition, and I always like the cscope declaration : structure sk_buff; As a definition, which always shows a long list file to choose Vim Actually, I want only definition: skt_buff {...}; It seems that CTAF can solve this problem, but can it stop? Or am I wrong? I have checked the source cscope, and I think it is difficult to modify the Lexus and Yake source from the beginning. You are right, you can not do this just with cscope. I use both coscope + ctags on both small and big projects every day. I have found the most useful way of using these tools to use them both inside and with the cscope_maps.vim plugin. It can not help you, but before she helps me, check information about using them together. I warn you that if you use the cscope_maps.vim plugin you might want to edit it and comment on the "cscopetag set" option.

.net - Npgsql reader type cast error (was: mono does not serialize complex types well) -

Am I right that the serializing complex type is not implemented in Mono 2.4.2 yet, or have I made a mistake? When I call my remote function, I get an error message: Can not insert destination type from source type System.Runtime.Remoting Proxies.RealProxy.PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy RP, iMessage Message, System.Exception & exc, System.Object [] & amp; out_args) [0x00000] This is a remote function, instead when I use the string [] , I got the same result. String makes your way nicely. Public listing & lt; String & gt; GetHist () {NpgsqlConnection conn = New NpgsqlConnection (ConnectStr); Conn.Open (); String cmd = "select from history"; Npgsql command command = new NPGSQL COMMAND (CMD, CON); & Lt; String & gt; S = new list & lt; String & gt; (); {NpgsqlDataReader dr = command.ExecuteReader () Try it; If (Dr. Reid ()) {for (int i = 0; i & lt; dr.fieldCount; i ++) s.Add (dr.getString (i)); } And s....

objective c - How to pass username and password to a web service from within an iPhone app? -

इस कोड स्निपेट को देखें: - सामान्य सेवा सेवा objcommonService; नेटवर्क क्रेडेंशियल MyCredentials = नया नेटवर्क क्रेडेंशियल ("144552", "F @ mous123456"); objcommonService.Credentials = myCredentials; यह एक सी # .net कोड है इस स्निपेट में " objcommonService " webservice का एक ऑब्जेक्ट है " सामान्य सेवा "। यह webservice पूर्व उपयोगकर्ता को इसकी पुष्टि की गई क्रेडेंशियल्स के खिलाफ प्रमाणित करता है। सी # .नेट नेटवर्क क्रेडेंशियल .net का एक मानक वर्ग है। अगर मैं एक webservice जो मेरे आईफोन एप में इन क्रेडेंशियल्स की आवश्यकता है, मुझे कैसे पारित करना चाहिए? क्या ऐसा करने का कोई तरीका है कि मेरे ऐप के उपयोगकर्ता को "ऑथेंटिकेशन असफल" जैसी कोई भी परेशानी नहीं होगी। " जब वह मेरे ऐप का उपयोग करता है वेब सेवा पूर्व उपयोगकर्ता को प्रमाणित करता है। और मुझे अपने क्रेडेंशियल्स को सेवा के लिए कॉल करने की आवश्यकता है। मैं यूआरएल कनेक्शन में निम्नलिखित प्रतिनिधि विधि का उपयोग करके auth सामान को लागू करता है - (शून्य) कनेक...

Design by Contract in C++? -

Is there any library that helps in designing the design by contract theory in the C ++ application Edit: / P> is looking at something better than ASSERT I follow the teachings of the following articles: (Miro Sámac, C / C ++ User Journal, 2003) for contract design Simple help in C ++ (Pedro Gue Rareo, Tools, 2001) What I ultimately applied was that Samek's approach was very necessary, fixed, checked and inverters (existing assert macro Making macros was very useful for the basis). Of course this is not as good as the support of native language, but anyway, it allows you to get more practical value from the technology. For libraries, I do not think it pays to use one, because an important importance of the implantation system is its simplicity. For the difference between debug and production code, see.

php - facebook quiz development -

I want to apply a quiz on facebook using php (it is a thought that after each question we will go to the next button Here's a useful Facebook app tutorial

Python file read problem -

file_read = open ("/ var / www / rajaneesh / file / _config.php", "r") सामग्री = file_read.read () प्रिंट सामग्री file_read.close () आउटपुट खाली है, लेकिन उस फाइल में सभी सामग्री हैं कृपया मुझे मदद करें कि __ conifg.php में एक स्ट्रिंग को कैसे पढ़ा और बदलें। आमतौर पर, जब ऐसी समस्याएं होती हैं, तो इंटरैक्टिव शेल को शुरू करने और सभी कमांडों का विश्लेषण करने के लिए बहुत उपयोगी होता है। उदाहरण के लिए, यह हो सकता है कि फ़ाइल मौजूद नहीं है (freiksenet से टिप्पणी देखें) या आपके पास इसे करने के लिए विशेषाधिकार नहीं हैं, या इसे किसी अन्य प्रक्रिया द्वारा लॉक किया गया है। अगर आप कुछ सिस्टम में स्क्रिप्ट निष्पादित करते हैं (जैसे वेब सर्वर, जैसा कि पथ सुझा सकता है), अपवाद एक लॉग में जा सकता है - या सिस्टम में अन्य घटकों द्वारा निगल लिया जा सकता है। इसके विपरीत, यदि आप इसे इंटरैक्टिव शेल में निष्पादित करते हैं, तो आप तुरंत देख सकते हैं कि समस्या क्या थी, और अंततः ऑब्जेक्ट का निरीक्षण किया (द्वारा का उपयोग, या मॉड्यूल निरीक्षण )। वैसे, यह एक स्क्रिप्ट विकसित कर...

oop - How to break up a large class -

I have a large size class, many of which may be able to do things I have many "domain" shapes There are classes that are received from this class, but do not provide any other functionality other than portraying themselves. I have tried to sub-class the shape class, but then all the "domain" objects will still get this subclass. How do I break the square? (This is 300 text lines, C #) Some ideas (like more hieroglyphs): 1) Check the areas of the class. If a group is used in a few areas, then it can be an indication that the group of fields and methods that use it may be in the second category. 2) Comparing the name of a well named class, the name of the class actually does what the class does. If you find the ways in which you expect the things above and beyond that which is called the class If it is expected, it can be an indication that these methods are in a different class. For example, if your class represents a customer, but opens the log file...

Workflow with id "xxxxx" not found in state persistence store -

"itemprop =" text "> I have tried to apply an event using a workflow application which throws error when I use ExternalDataExchangeService. Workflow ID "866568ab-ca1b-4404-a2f1-2c8704539ef4" with state firmness not found in store. "866568ab-ca1b-4404-a2f1-2c8704539ef4" can not be distributed for the instance ID on the event "QAEngOrTLReject" interface type "RecipeChangeService.IRecipeChangeService". Here is my implementation code for this - please help I am stuck: ( below is interface and data exchange event args - public class RecipeChangeService: IRecipeChangeService {#region IRecipeChangeService member public function eventhandler QAEngOrTLApprove; public event Iventhaandlr QAEngOrTLReject; public bool QAEngOrTLApproved (Guid instanceId, ResponseDataObject rdo) {if (QAEngOrTLApprove! = Null) {QAEngOrTLApprove (this, new XMESWFRecipeResponseDataEventArgs (rdo, instanceId )); True return;} return false;} public h...

c# - Minimization of f(x,y) where x and y are integers -

I was wondering if anyone has any suggestions for reducing the function, F (X, Y), where x And y are integers. I've discovered very little amounts and optimization techniques, like outside BFGs and other GSLs, and things beyond numerical recipes. So far, I have tried to implement several different schemes. First task by selecting the direction of the largest number F (X + 1, Y), F (X-1, Y), F (X, Y + 1), F (X, Y-1) and following that direction With line reduction, I have also tried to use a downhill simple (nyled-mead) method, both ways stay far away from a minimum, they work on both simple tasks, such as finding at least paraboloid, but I It seems that both, and especially Pu W, are designed for those tasks where x and y real value (doubles). Another problem is that I have to call F (X, Y) as a while. It talks to external hardware, and takes a few seconds for each call. Any ideas for this will be highly appreciated. Here is an example of the error function. Sorry, I did not ...

c++ - In ONC RPC, is it valid to call svc_run() from two threads, registered with different program no? -

In our project, which supports multipolate (Linux, Solaris, and Windows) and is coded in C and C ++ , We created a multilayer application that created a ONC RPC for IPC A recently built an application to work on two different programs There is a need for the server. I have tried the following to test. In the first thread, I am in the first thread) Creating a TCP transport. B) Registering the transport c) Calling svc_run 'i' in another thread, make a second TCP transport. ) Transport registration with a separate program C) Calling svc_run * I have tried this on 4, and this is working fine for me. But is it valid for registering two programs and valid for calling svc_run in two different threads? I tried to search the internet, but I did not get any clear information on this. It seems logical that this is possible, although I have never tried it myself Please switch left of -M com rpcgen IDL compiler (this is the page on its man Solarus): - Mu...

database - Data migration with Hibernate -

I am working on a project for a company, where I want to transfer my previous data to a new system the wanted. Obviously, both the structures are completely different and I am using hibernate for database manipulation and are confused about what will be the best way to migrate data. Should I use Hibernate, should I write the stored procedure, or is there any other option? Any bright ideas are welcome. After trying both ways in the past, I can definitely say that this is such a scenario Not for which the ORM was designed, nor is it one where it grows. You prepare a set of two separate items and it is difficult to gain the necessary skills for large scale migration. The only reason I can think of using something like Hibernate, if you were building a system that was permanently going to integrate and sit between two systems, but it seems that It is relatively short-lived. I am extremely happy with the results of some dragon objects, a dragon script, a bunch of SQL and data to ...

Very slow connection to SQL Server 2005 only if using ADO.NET with SqlClient -

I have a new new server with Windows 2008 Server 64bit + SQL Server 2005 Standard Edition SP3. When I try to open a connection to this server from the client in the same domain (Windows XP, Net 3.5), it takes approximately 20 seconds to open the connection. After opening the connection, everything is as fast as ever. When using an MDAC 2.8 connection, or ADO.NET OleDb, there is no problem. How can I get the reason for a slow connection? The problem was the firewall running on the server. I added an exception to Port 1433 and the problem ended. Possible explanation: It may be that by using the OLDB, trying to name the pipes bypassing the connection to the firewall rules.

filter - NHibernate criteria on lazyload -

Can anyone tell me that it is possible to add benchmarks in the NHibernate lazy load collection. For example, suppose I have a department in which the employee is involved ... I get a department from ID and then I load lazy employees ... but can say that 1000 There are employees and I want only those employees who were hired in the last 30 days. GetDeptById (1) & nbsp; & Nbsp; & Nbsp; | & nbsp; & Nbsp; & Nbsp; - Lazy Load Employee (where HigherData = 7/1/2009) It seems that I can do this with the filter in the mapping file ... but will I do something for the lazy load in the code Can I add criteria? The best way to apply this would be with a filter filter in mapping (both unit and bag) Define and then select the date you want the filter with the parameter before selecting "department". session.EnableFilter ("HireDateFilter"). SetParameter ("dateParameter", date time.NEW ADADEZ (-30)); You can also leave the mapp...

security - How to implement a password recovery link in ASP.NET? -

I'm looking for some guidance in implementing a password recovery service in ASP.NET which sends the user to the email Is on a password reset page, because I do not want to email existing or reboot passwords in client. I have seen some suggestions for using member ID as a query string parameter, although I think it is probably open to abuse as a custom subscription. I'm working with intead uses. I am thinking that I need to create a custom table that has a unique ID with a specific ID (id), a password is requested for recovery, this ID then query string in the link of the query reset page Will be passed as part. When a user clicks on the link, the page will look at the ID in the custom table and the user ID will be allowed to change the password against that membership. Does this sound like a legitimate approach; is it over? Any other suggestions would be greatly appreciated. This will be how I handle it. But when you are done and implement any kind of flood control...

How does a C++ reference look, memory-wise? -

दिया गया: int i = 42; इंट जे = 43; इंट कश्मीर = 44; वेरिएबल्स पतों को देखते हुए, जो हम जानते हैं कि प्रत्येक में 4 बाइट्स (अधिकांश प्लेटफ़ॉर्म पर) लगते हैं। हालांकि, पर विचार: int i = 42; पूर्णांक में & amp; J = i; इंट कश्मीर = 44; हम देखेंगे कि वेरिएबल i वास्तव में 4 बाइट्स लेता है, लेकिन j को none और K फिर से ढेर पर 4 बाइट लेता है। यहाँ क्या हो रहा है? ऐसा लगता है कि j बस क्रमशः में मौजूद नहीं है। और एक संदर्भ के बारे में मुझे फंक्शन तर्क के रूप में क्या मिलता है? और जब भी हम उस पर हैं - मैं एक सरणी या संदर्भ को परिभाषित क्यों नहीं कर सकता int और amp; [] arr = नया इंटी एंड [SIZE]; // कंपाइलर त्रुटि! संदर्भों की सरणी अवैध है हर जगह संदर्भ j है का सामना करना पड़ता है, इसे मैं का पता से बदल दिया जाता है। तो मूल रूप से संदर्भ सामग्री का पता संकलन समय पर हल होता है, और इसे चलाने के समय में एक सूचक की तरह dereference की आवश्यकता नहीं है। बस स्पष्ट करने के लिए कि मैं के पते से क्या मतलब है : शून्य फ़ंक्शन (int & x) {x = 10; } ...

ruby on rails - TimeWithZone comparison woes -

& gt; & gt; टी = समय.जोन। अब; ए = खाता। बनाना (: last_result_at = & gt; टी); A.reload.last_result_at == t = & gt; झूठी & gt; & gt; टी = & gt; शुक्र, 24 जुलाई 2009 21:52:16 यूटीसी +00: 00 & gt; & gt; A.last_result_at = & gt; शुक्रवार, 24 जुलाई 2009 21:52:16 यूटीसी +00: 00 क्या देता है? डीबी में भंडारण करते समय usec घटक को हटा दिया गया था

objective c - Object sharing in my iPhone App -

I am currently developing my first iPhone application and I would like to know that the best way to share something What can be used in every controller. I was thinking of referencing the controller with the necessary data in other controllers and thanks for the use of this data, it is a good idea or a better way to do this Post-text "itemprop =" text "> The question is not clear from what kind of data you deal with, but one method I used in an iPhone application is a single object in which the app Likation State and State Management Function. There is a good discussion of the use of Singleton vs. App Delegants for this type of data and what I want to say to them here. For example, in this case a user account was tied to a web application, so when the application loads, the singleton object will be started and when the user signs it, Ject will be kept in singleton so that user information can be referred to API call. This approach has worked ve...

foreign keys - MySQL errorno 121 -

I am getting this error in making MySQL. I am doing: create tab 'blog' rally (`id`inte (24) no 'comment comment' primary key of this table, blog-id INT (24) No Comment Comment 'Blog Where this reply was posted, 'UserID' input (24) was commented 'User posted to the blog', 'name', VAARAR (100) new default 'unknown' comment 'User Name which was the answer' post. 'Email' VARCHAR (100) Null default 'Unknown' comment 'User' The reply to the email given by 'http` was filed by VARCHAR (300)' Unknown 'COMMENT was posted by' User's Web Address Answer ',' Message ', the text of the blog was not written' Text ' 'Vote' INT (10) DEFAULT 0 COMMENT 'Blog Ratings',' Rated 'Reader Comments' People who have already voted on this blog,' Datestr 'The Biggest Null Comment' Date Registered to User ', Primary Key (`id`), contract 'fk...

.net - Is there an easy way to access Outlook contacts outside of VSTO? -

At work, we use some custom columns in Outlook Contacts to serve as a "signage board" That's why we can see when developers are on another site, because we are spread in some places, as it is currently implemented, it is through a custom view of the contacts that is displayed as a spreadsheet It is done by people who have their status Person can update. I want to create a small device that can be used by your typical IM client, where I can simply choose a position from the drop down, by clicking on it. There is no need to draw some special contact lists in my favorites or similar way, it is also helpful because we update the condition of another developer who is sick. I see how I can do it in Outlook with VSTO as an add-in, but I want to make it a standalone app. Whatever documents I have seen So far the disturbances are related to concerns about COM accessories or security problems. Is there an easy way to access / update Outlook contacts outside VSTO, or am I ...

css - IE 6 bug centering div tag with absolute positioning -

& lt; div id = "बाहरी" शैली = "चौड़ाई: 100%; पाठ-पंक्ति: केंद्र" & gt ; & lt; div शैली = "स्थिति: निरपेक्ष; शीर्ष: 1 9 7 पीएक्स; पाठ-संरेखित करें: केंद्र; चौड़ाई: 858 पीएक्स; मार्जिन: स्वतः; बाएं: 0; सही: 0 "& Gt; मैं एक मेनू केंद्र के लिए इन दो और lt; div & gt; टैग का उपयोग कर रहा हूं यह आईई 6 को छोड़कर खूबसूरती से काम करता है। मैंने दूसरे प्रश्नों को देखा, कई चीजों की कोशिश की लेकिन कुछ भी काम नहीं किया। मैं किसी भी सुझाव की सराहना करता हूं। सबसे पहले ... सुनिश्चित करें कि आपके पृष्ठ में उचित DOCTYPE परिभाषा है अन्यथा आईई 6 क्वार्कक्स मोड में जाएंगे और अपने लेआउट को जिस तरीके से आप चाहते हैं, उसे प्राप्त करने के लिए असंभव बना देगा। सब से दूसरा ... क्यों सही स्थिति है? आप आसानी से इस तरह एक एकल div आसानी से कर सकते हैं: & lt; div शैली = "चौड़ाई: 858px; मार्जिन शीर्ष: 197px; मार्जिन-बायां: ऑटो; मार्जिन-सही: ऑटो; " / & Gt; किस प्रकार div को आप जिस तरह से करना चाहते हैं उसे केन्द्रित करना...

Why doesn't my regular expression work with Perl's Switch module? -

I wanted to use a switch statement. I ran into difficulties quickly It seems that I was inauspicious I decided to use the switch. I wonder why this does not work, what do you do? It seems that there is a problem with Regular Expression / GC flag. Switch Usage; While (status ($ file) & lt; length ($ file)} {switch ($ file) {case (/ \ g \ s * object \ s + (\ w +) \ s * \: \ s * (\ W +) / gc) {}} Last if ($ oldpos == pos ($ file)); $ Oldpos = pos ($ file); } It was suggested that something like the matter (m! \ G \ s object \ s + (\ w +) \ s : \ s * (\ W +)! GC will work it is not. Switch.pm is implemented with source filter, which can cause strange bugs to track down To make it very difficult I do not recommend using the switch in the output code due to its uncertainty. Switch.pm document that it may have trouble parsing the regex with the modifier. If you are using Perl 5.10, you can use the new built-in syntax instead. Use the 'switch' feature; Given ...

Extract leaf nodes of multi-dimensional array in PHP -

Suppose my PHP has an array that looks like this array (array 0) (array (0) (...) .... array (10) (..)) ... array (n) (array (0) ())) And I need elements of all the leaves of this movie-dimensional array in a linear array, how do I do this without such recycling? ($ Element as $ E) {if (is_array ($ e) {getChild ($ e);}}} Note: Top code snippet, extremely incomplete update: array example array ([0] => array ([0] = & gt; array ([0] => vendor object ([ C Redits: private] = & gt; 5000000 [Balance: Private] => 4998 9 70 [Queue: Private] => [[Seller: Private] => 2 [DateTime: Private] = & gt; ; 2009-07-25 17:53:10))) ... snipped. [2] => Array ([ 0] = & gt; Array ([0] = & gt; Vendor object ([credit: private] => 10000000 [Balance: Private] => 9997940 [Queue: Private] => 135 [Vic] Sata: private] = & gt; 234 [datetime: private] => 2009-07-14 23:36:00)) .... snapped ....) ) Actually, there is a function that does ...

ruby on rails - Setting up Paypal account in Substruct -

I am both new to PayPal and Pastor. I am trying to integrate PayPal with 'substract' The problem I am facing is that the payment status code is not being updated in the admin panel. All of them have been caught when PayPal Sandbox successfully confirmed orders. Someone from the web has suggested that 'notify_url' should be set as a confirmation order. PayPal deductibility is also said accordingly. Notify me that the webserver has been notified on my machine. BTW My webserver is behind a LAN. confirm the document @

Select partial data from a DB table using nhibernate -

I have a complex unit, very heavy I want to choose the name of this unit only with ID and DB for better performance. I am How can I do with Nibirnet (or fluent Nibernate)? You have 2 options: - While using ICriteria - Use (syntax may not be perfect but you get the picture) set projection (projection. projection list. add (projection. property ( "prop")). (projection. property ( "Prop 1"))) When using the hql c.Col1, c.col2, select from table c A list of both array lists and - or something like that - you have to cross it and create your own dictionary (or whatever you have).

database - Examples of good UI for selecting multiple records -

I am currently reviewing an area of ​​my Windows-based software and 1-> M to M -> M . As a result, I need to adjust the UI to select several related records. There are so many ways to handle it in a normal way, but generally it is very trickling, for instance, a two-table list of all items, a list of selected items, or a list of all records and Each one has a checkbox beside it to apply. In my case, there can be a terrible lot (in thousands of records) connected, so I would probably need to include some sort of search mechanism. I am not looking for a difficult and fast answer. I can implement something very easy which is functional, I want to see if anyone here Whether to come up with any great UI to talk about, whether it is Web-based, Windows, Mac, Unix Edit: Here's an example of what I'm thinking: Https://i801.photobucket.com/albums/yy300/withoutsoftware/SampleSearchUI.png" alt = "sample I like the tag related to Stacked Ovalflow with many t...

Mozilla canvas adding floating text -

In my canvas element, I want to add a dragable text to an image. The user should be able to move it to the canvas area. I can add text using some API functions, but there is no sense of running text. Do I need to use the DIV tag to control the text? But the problem is that in the end I need to save the canvas as an image file, so the ordinary DIV tag will not save on the canvas. I would like to hear your comments. You should use standard text drawing functions, but keep a record of the condition in the variable - then when the text (Which you can calculate using its size), you can drag it to a new position (calculate using mouse coordinates).

sql server - Is there a tool to migrate a SQL Express Database to SQL CE? -

Is there any available tools available to transfer SQL CE 3.5 tables and data from SQL Express 2005? I have a small app that uses SQL Express and since it is called Linq- To-SQL I have to change it to use SQL CE 3.5 so that users do not need to use to install DB engine. To simplify this and backup, they only copy the .sdf file. I need the same thing tomorrow Googling has got two options: Better Option: Good works for me is a complete test for 30 days An alternative which does not work for me: Johnny Kent Code Explorer is free (Google, do not post another link)

Running a Asp.net website with MS SQL server - When should i worry about scalability? -

I run a medium-sized website on an ASP.net platform and use MS SQL Server to store data I do My current site statistics are: ~ 6000 page one day ~ 10 tables provide approximately ~ 10 tables per page service per page with approximately 1000 rows • 1GB RAM in the hosting machine I expect to hit around near the end of 2009: ~ 20,000 page views ~ 10 tables and approximately 4000 lines per table ~ 5 questions per page My question is, can I still plan for scalability? The candidate will catch the machine by the end of the year with statistics. I know that my description is very high level and does not provide insight into the types of inquiries. But just want to know what your intuition says? You should always plan for scalability. Will the machine be caught by the end of the year The path is too small to answer the information if this is a page request through four questions per page. Due to large-scale contact with heritage enterprise applications, it takes 30 CP...

jQuery ajax problems -

I am writing some functionality using jQuery which is usually a page refresh / form submission Handle with Actually I am submitting a form using jQuery's AJAX. & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "js / jquery-1.3.2.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("# show-comment-form"). Click (function (event) {var ret = $ .post ("post.php", $ ("# comment- Form "", "", "", "html"); $ ("# the comment") .HTML ("& lt; strong>" + + "" "); }};});

c# - Why is .Equal False when i expect it to be true? -

The first line is true, the second is false HtmlOut and the S2 StringWriter object. bool b = s2.ToString () == htmlOut.ToString (); Rate = htmlOut.Equals (s2); I hope that which is b, but why is it wrong? The stringwriter does not override the object. Ecloss htmlOut.Equals (s2); equals: object.ReferenceEquals (htmlOut, s2);

php class method is preventing xml from working correctly -

I have a problem that I can not understand I can access my web site I am trying to work. I tried to resuscit XML from some function in a controller class, but it did not work, so I transferred the XML to where it worked. This means that I put it before the loader function was asked. Where it still works if I put the XML under the call on the loader function, then it is no longer working. This way the loader is preventing from working in any way. I have used this as an example how to do it. Sofar did all this work except for the XML implementation, this is where it starts Router = new router ($ registratie); / *** Set Hate Pad Van D Controller Map *** / $ registratie-> Router- & gt; Setpad ('controller'); / *** Lad day template *** / $ registratie-> Template = new template ($ registratie); $ Gebruikersnaam = "kabouter"; Header ('content-type: text / xml'); $ Position = 2; $ Output = "& lt ;? Xml version = \" 1.0 \ "e...

java - Make a recursive method pause in every recurse and continue with click -

I have changed the value of a variable in a recursive method which each Rikarson, then it shows the value of JPanel , And by then I would like to stop (my problem here is here) until I click (it pauses every new scarce). Then when I click on this method, the next iteration continues. The following code is just like my actual program and I have tried to implement it. I have tried using threads and executives in many ways, but I failed. I have collected two sections, PanelToBeClicked is a Jepianel which is made square and recursive method, and Panlmaus Listnr class click. The following code is completely naked with the thread and the executor. I am so grateful if someone can add some written lines here to display correctly, or tell me some clue how can I implement it. Here's the code: Import java.awt. *; Import javax.swing *; Public square panettabelekte JPanel {int counter; Public panelsbacked () {super (); Setpriffred size (new dimension (100,100)); AddMouseLis...

bash - How can I direct output from a program to the console and a log file at same time? -

How can I print output for the terminal and file at the same time? $ Pearl Foo.PL> Foout.txt does not allow me to see the live process. Is there any way that I can see the output process in real time and finally output the screen on a file? perl foo.pl | Foout.txt

math - Are integers in C assumed to be handled by a hardware spec or handled in software? -

Is the integer controlled by hardware spec or handled in software? By integer, I am referring to the primitive "int" The underlying idea is that if the integer hardware in C does not depend on it, then this GCC will be assigned to different integer operators This will violate the standard to implement, in this way you can create your traditional 32 bit int handler, and then you can also handle handlers for 256 bit integers or maybe the dynamic size. I know for a long and long time, but I'm not sure whether they are independent of that hardware, and I use only the size and type of "int" "I want to specify handler. I also understand the dangers of taxation (because the building will be screwed with 256 bit integers with the 32 bit integer compiler!), But for those bits code what GMP Library is required, It seems that this code will make reading much better. Compatibility will be the same but the dependency code will be on the compiler instead. C...

Accessing ASP control methods/properties/attributes in Javascript? -

Using Javascript in IE6 with ASPNET.2.0 I enable JavaScript in 'junk' Property must be changed. Can it be done - if so how? Tried the following but does not work document.getElementById ('& lt;% = tbDate.ClientID% & gt;'). Set Attribute ("View", "Wrong") Any help or link will be highly appreciated. As a little background, when you type code or behind ASP.NET in ASPX markup Visible attribute on server control (or HTML server control), that control is not provided in the HTML sent in the client and therefore can not be accessed because it is not present on the customer If you want hidden elements that you want to send to client-side code (such as postbacks A wish to use without), you can use any set style display or a CSS class. Display: None . It will still provide control in HTML, but the control will not be visible. You can then look visible and can be hidden by using it (respectively) // to create a visible document...

java - Shrinking an ArrayList to a new size -

Do I really need to apply it myself? Private Wide Sequence List (Arrayist & lt; result & gt; list, int nuances) {for -i) list.remove (i); } Create a range of elements that you want to delete and then return the call The list given list.subList (23, 45). Clear () This approach is described as a idiom in the document for both. Here is a complete test code example of the unit! // Limit your tens of thousands of items to int k = yourHappyList.size (); If (k & gt; 10) yourHappyList.subList (10, k) clear (); / / So, k-1