Posts

Showing posts from April, 2015

C++ Compilation Problems with Microsoft Visual Studios 2010 Beta 1 -

Well, I just got the new MSVS 2010 beta 1, and like with the 2008 Express, I just do not know Is how to compile anything, even a simple Hello World program. Anyone have any sign? I usually get a blanket fail message just no real information Edit: Sorry about that #include & lt; Iostream & gt; using namespace std; Main () {cout & lt; & Lt; "Hello world"; Return 0; } I create and get me: 1> ------ build start: project: forkicks, configuration: debug win32 ----- 1> Manifold embedding ... 1>. Debug \ forkicks.exe.intermediate.manifest: common error c1010070: failed to load and parsed. The system can not specify the file. 1> "Log in" file was saved on: // c: \ Users \ Randy \ Documents \ Visual Studio 2008 \ Projects \ forkicks \ forkicks \ Debug \ BuildLog. Htm " 1> forkicks - 1 error, 0 warning (=) ========= Build: 0 succeeded, 1 failed, 0 up-to-date, 0 left = ========= It is 2008 1> ------ Start build...

c# - MethodInvoker vs Action for Control.BeginInvoke -

Which is more correct and why? control. Binwink (new action (dosoming), zero); Private Zero DoSomething () {MessageBox.Show ("What a Great Post"); } or control.businessinvoker representative {MessageBox.Show ("what a great post");}); I feel slightly like I am doing the same thing, so when MethodInvoker vs verb {/ code>, or even The right time to use is writing lambda expression? Edit: I know that there is not really much difference in writing Lambda versus action , but lawful one Being done for a specific purpose. Is it doing anything different? Both are equally true, but it has been said that the document: Representative can be an example of EventHandler, in that case the sender parameter will be included in this control, and the event parameter will include EventArgs. Empty representative can be an example of MethodInvoker, or any other representative who takes a zero parameter list. An event handler or a method option represen...

python - Recommended ways to split some functionality into functions, modules and packages? -

One point comes, in a relatively large size project, one should think about dividing the functionality into different tasks , And then various modules, and then various packages. Sometimes in different source distributions (such as: removing a common utility, such as opters, in a separate project) Question - How does the parts decide to put in the same module, and put the parts in a separate module? The same question for packages see sketch your overall category definitions Divide the definitions of these classes into "Module". Implement and test the module separately from each other. To knit the module together to create your final application Note It is almost impossible to decompose a functional application developed in an organizational form. So do not do it Break your design quickly and often Create different modules Integrate to create an app

Why is the fields pragma incompatible with multiple inheritance in Perl? -

Multiple inheritance is great, and as long as your legacy is a clear understanding of inheritance and some potential disadvantages (as described in them) again It does not even discuss the prohibition of using Prague with many heritage; Actually, I can not find any document about it ... Here's an example: Package Parents; Use the field 'Field 1'; Package Parent2; Use field 'field2'; Package child; Use base qw (parent 1 parent 2); It fails with error: "Heirs can not grow in the area ..." This does not work even when both parents There are areas similar to that. Even when they are definitely the same, because they come from a common grandparent: package grandfather; Use the field QW (Field 1); Package parent 1; Use base 'grandfather'; Package Parent2; Use base 'grandfather'; Package child; Use base qw (parent 1 parent 2); It is a disturbance to implement it correctly that the index of the field of an object is always the...

iphone - in app purchase, changing app id of existing application -

There is an app in my app store that uses App ID without enabling "in app purchase" option. I want to add this feature to more versions. What options do I have? Do I need to create a new App ID with the option "In App Shopping"? (Is this allowed for existing applications?) If your current app id contains a wildcard character , Such as "Com.myapp. *", Or "BDQ78GF. *", In order to be able to use it in app purchases, you will need to create a new one. If it does not, you should be able to enable them from within the iPhone Developer Portal.

How can I add a key/value pair to a JavaScript object? -

यहाँ मेरा ऑब्जेक्ट शाब्दिक है: var obj = {key1: value1, key2: मान 2}; मैं वस्तु को {key3: value3} कैसे जोड़ सकता हूं? एक वस्तु में नया गुण जोड़ने के दो तरीके हैं: var obj = {key1: value1, key2: value2 }; डॉट संकेतन का उपयोग: obj.key3 = "value3"; स्क्वायर ब्रैकेट नोटेशन का उपयोग करना: obj ["key3"] = "value3"; जब आप संपत्ति का नाम जानते हैं तो पहले प्रपत्र का उपयोग किया जाता है दूसरे फॉर्म का उपयोग तब किया जाता है जब संपत्ति का नाम गतिशील रूप से निर्धारित होता है इस उदाहरण की तरह: var getProperty = function (propertyName) {वापस obj [propertyName]; }; getProperty ( "कुंजी 1"); getProperty ( "कुंजी 2"); getProperty ( "key3"); ए वास्तविक जावास्क्रिप्ट अार्या का उपयोग करके या तो बनाया जा सकता है: अर्रे आभासी संकेतन: var arr = []; अर्रे निर्माता का संकेतन: var arr = नया सरणी ();

Code completion not working in Delphi 2009 -

I am upgrading Delphi 7 to Delphi 2009. In an existing app, nothing completes the code. If I start a new project, then it works fine. Any ideas what's going on? "WinTypes = Windows; WinProcs = Windows; DbiTypes = BDE; DbiProcs = BDE; DbiErrs = "From: BDE": has been added; Project Options -> Delphi Compiler -> Unit Aliens There is a big reason, but it is tired to explain it.

c# - How to Create Great Looking Buttons in .Net? -

I work on C # window 05 and I have some great things like Vista's theme button, animated buttons, or some kind of I want to create visible buttons. Custom of VS05 Button .... How do I create custom buttons like this on the window platform? Buttons are just controls that answer mouse clicks One way to create your user control in VS05 And will be prepared as bitmap files to load your frame in the program launch. Then subscribe to the mouseover and mouseclick events of your control at the time, which is then featured the image on your control.

Is it worth to install the Compact Framework on storage card? -

Since our application grows, we need more space on our Windows CE devices. We have SD-cards It's slow to run our apps with SD card and there are some major problems with demand-paging if you run apps continuously. We see that the only option is to install compact framework on the SD card to free some memory Is it worth installing? Will we get performance problems? It really depends on you which value you are using for "price" Installing CF on a storage card will save you about 4 MB of storage space on the device. If you are less on storage space then it can be useful. This is not going to improve the performance of an application, however. In fact, it may be slow, apps do not run directly with the storage card, they have to be pagged in the RAM to run. By putting CF on a storage card, that requirement will not be changed. Instead, the CF code will also have to be consumed by the storage card. The effect of this paging vs. performance will vary based on ...

jquery - Changing Slider handle image -

I want to customize the jQueryUI slider but I can not find any way to change the slider handle images. JQuery Themeroller also does not allow the change of the images to handle the images. Does anyone know how to do this? to: jQuery UI Slider plugin uses the jQuery UI CSS framework, which includes colors and background structures. We recommend using Theme Roller Tool to create and create a custom theme, which is easy to manufacture and maintain. If a deeper level of adaptation is required, then widget-specific classes referenced in ui.slider.css are the stylesheets that can be modified, these sections are bolded below. In this special case, you can use the classname ui-slider-handle . The following slider names apply to the default slider handle element: ui-slider-handle UI-State-Default ui-corner-all Take a look at CSS with these class names and edit the most likely you need. Besides, I recommend that you install. This Firefox plugin will make ta...

Unable to find the Python PIL library.Google App Engine -

Google App Engine SDK has been installed. Python 2.6 perfect. Wanted to go into images and test locally. Installed PIL Installed Python, then PIL was installed, worked at this time. Things looked good, but the local host was trying to manipulate the image: System: winxp We may need more information, So here are some questions and things to try. How are you trying to use demographics? Are you trying to use the google.appengine.api.images module, or PIL directly? Post code, if you can. Perhaps the most important thing to try is: If you can use PIL from a non-app engine script, see. Just type a quick python script that accesses it and see how it goes. Something like this: import image im = Image.open ('filename.png') im.show () If that does not work, It's not surprising that Google App Engine will not work with PIL.

javascript - text input keyup event with time interval -

मेरे पास टेक्स्टबॉक्स है jQuery का उपयोग करना, लेकिन पसंद के अपने स्वयं के जेएस लाइब्रेरी को स्थानांतरित करने के लिए स्वतंत्र महसूस करें: var currentTimer = null; Input.bind ('keyup', function () {if (! CurrentTimer) {currentTimer = true; setTimeout (फ़ंक्शन () {if (currentTimer) {currentTimer = null; // do ajax call here}}, 2000);} });

include - Does GCC protect programmer from multiple including of C's library headers? -

Is there a guarantee that every library header looks like this? #ifndef STDIO_H #define STDIO_H / * content here ... * / #endif Can you refer me to a source? Thank you! No, the GCC does not protect you from the library, in which the guards included are not included - you described it - It is up to the library in question. (And not part of GCC.) All major C standard libraries (GLBK, NULLBB, ULBACK) have to be incorporated correctly (as they are widely used, in this way A major problem will be discovered soon.) Edit: After your second comment, your question is now more understandable. ISO / IEC 9899: 1999 (C 99), Criteria for Chapter 7.1.2, Four Paragraphs, First Sentence: Standard Headers can be included in any order; Each can be included more than once in the given area, except by having only one time effect, except that & lt; Assert.h & gt; Depends on the definition of NDEBUG (see 7.2). This means, if you have a standard C library, you have trouble, it ...

html - Jquery: Adding a class to even an odd List-Elements -

मेरे पास निम्न jquery-code है: & lt; script type = "text / जावास्क्रिप्ट "& gt; $ (दस्तावेज़) .ready (function () {$ ('ul.image-list li: even')। AddClass ('even'); $ ('ul.image-list li: अजीब')। AddClass ('अजीब ');}); & Lt; / स्क्रिप्ट & gt; और निम्न HTML: & lt; ul class = "image-list" & gt; & Lt; li & gt; पहला तत्व & lt; / li & gt; & Lt; li & gt; दूसरा तत्व & lt; / li & gt; ... & lt; li & gt; अंतिम तत्व & lt; / li & gt; & Lt; / ul & gt; हालांकि, jquery लागू नहीं है, क्योंकि ली-टैग उचित कक्षाएं प्राप्त नहीं करता (यहां तक ​​कि अजीब)। मैं क्या गलत कर रहा हूं? धन्यवाद यह सिर्फ मेरे लिए ठीक काम करता है आपको ऐसा क्यों लगता है कि यह आपके कोड में काम नहीं कर रहा है? & lt;! DOCTYPE HTML PUBLIC "- // W3C // DTD एचटीएमएल 4.01 // एन" http: //www.w3 org / TR / HTML4 / strict.dtd "& gt; & LT; html & gt; & Lt; शी...

wpf - Customize the shape of a scatterview -

I am currently using surface SDK 1.0 in Blend and VS 2008, and I had to face a problem: I use a scatterview on the whole screen I also have a grid in the center of the screen, the middle panel is quite upset because my scattervivit is easily lost behind the grid, and because the grid is locked in position, To get There's no way. It will be the desire to add "walls" around this grid, so that my scattervivitum bounces it, as it happens on the edges of ScatterView. How can I solve this problem? Hook to simply "complete the scattermployment" and check whether the item is under the grid. If yes the storyboard starts, which takes the center of your scatter vivitum back from the grid background. In addition, there are a lot of posts about scattervuittum and collision detection.

How could it be that classloader address changes in Websphere 6.1 (IBM JVM) -

I have been changing constantly Postal Inspection indifference classloaders in javacore Websphere 6.1 (IBM JVM 1.5.0). There is unchanged address in the square below the classloader. So this is not the same classloader at a new address? e.g. First in javacore 2CLTEXTCLoadloader com / ibm / ws / classloader / compoundClassLoader (0x00002AAABF5BB7F0) 3CLTEXTCLASS org / eclipse / emf / ecore / eObject (0x00002AAB24684B30) and then in a javacore 2CLTEXTCLLOAD loader com / IBM / ws / classloader / CompoundClassLoader (0x00002AAABF5AB6E0) 3CLTEXTCLASS org / Eclipse / eMF / Ecore / EObject (0x00002AAB24684B30) before the same class under Classloader, and now the classloader 0x00002AAABF5AB6E0 I'm trying to locate a class unloading problem, and It does not appear when the heap dump In digging to make life easier. "itemprop =" text "> Maybe the GC stack is getting compressed. -Xnocompactgc or -Xnocompactexplicitgc Consider it as a normal JVM argu...

wpf - What is the best C# collection with two keys and an object? -

I get a menu manager class in which each module can add a key and element the main content Can be loaded in: Private dictionary & lt; String, Object & gt; _mainContentItems = New Dictionary & lt; String, Object & gt; (); Public dictionary & lt; String, Object & gt; {Get {return_mancontent items; main content item; } Set {_mainContentItems = value; }} Then the customer module registers its ideas: Layout Manager. Main content Add ("Customer Support", this.container.Resolve & lt; HelpView & gt; ()); Layout Manager Main content Add ("customer-main", this content. Resolve ()); Then again I say to bring a specific view of the front: layoutManager.ShowMainContentView ("customer support"); To get the default view (first view registered), I say: layoutManager.ShowDefaultView ("customer"); And it works fine. However, I want to eliminate the "code smell" from the hyphen, which separates...

iphone - Multiple Modal-view Transitions Crash App -

I show confirmation page after would render many modal view sequence (select an image from eg. The image picker) my problem It is that the animation has always crashed with an EXC_BAD_ACCESS for the dismissal and to be presented in steps after no delay. I think the problem is that the CoreAnimation does not differentiate between the two variations and may not know exactly what has already been finished or not. My work around now is to delay the work in section 1 which resolves the problem. However, I think this code makes a bit weaker. Is there any other solution? Is this a bug in UIKit and should I submit a bug report? Sample code Here is a simple case that regenerates the accident: Create a new View-based project with the class as the implementation of the main controller the expected behavior: The poster view is rejected and presented again due to a subsequent call in viewDidAppear. Actual Behavior:. Accidents with stack trace presented below: Co...

c# - Query returns results 5 times -

I have a strange problem: The result of my query in C # / ASP.NET returns is 5 times. I tried BreakPoint-ing but I could not find the error. I have 2 related tables, one table is loaded on PAGE_LOAD and when the user clicks on a cell, it shows the content from another table related to that cell. It is very easy. // page load safety Pej_lod (object sender, Event agents e) {if (! IsPostBack) {OleDbConnection myConnection = New OleDbConnection ( "Provider = Microsoft.Jet.OLEDB 4.0; Data Source = "+ DBPit +" /secure_user/data/data.mdb "); OleDbDataAdapter adapter = new OleDbDataAdapter ( "Select project manager, client, project deadlines where username = '" + Anam + "' My connection); Detatayl table = new Detatale (); adapter.Fill (table) ; adapter.Dispose (); GridView1.DataSource = table; does GridView1.DataBind ();}} now when I click on a particular project, it loads Gridwu projects table I'll show more information about the projec...

xsl fo - XSL:FO, Floats in F.O.P -

Some time back I came to know that FOP does not allow you to use floats, and some other features include the XSL-FO 1.0. I have tried to emulate them in different ways, but I have not got success. If anyone has had success in it, or is an idea I would like to know that the features of ASPL-FO are in Apache FOP and which are not I. Floats have not been implemented, however.

osx - shell script to link specific files up one level -

I have found a folder that has a lot of folders, each containing a movie file. Now I want to be able to see all of these movies once (but I have to preserve the folder structure) so I want to symlink them all in the top level folder (flat view in the directory operator, but I 'I am on Mac) here is my attempt in file * / * / *. Mov; Doname = 'echo $ file | | Sed "s | [^ /] * / [^ /] * / || g ''; If the ln -s $ file is resonating $ newname; then on line 3, then fu / bar / Spud.mov is to be converted to spud.mov and then ln -s foo / bar on line 4 /spud.mov spud.mov but it is not working, I get it all! / P> ln: "s | [^ /] / [^ /] / || G: There is no such file or directory. I have tried many connections and exits, but there is no luck CAD expression works, but I have clearly defined my variable Thanks what all the resonance is with $ file ? | Sed or awk stuff, anyway? Created base for this purpose. in the file * / * / * .mov; to newnam...

sql server - db string length errors and NHibernate -

In a SQL Server db I have the name column in the department table, tap nvchar (25), is not unique. I check what happens if I try to name a name with a department and then save it to get "NHibernate.Exceptions.GenericADOException", which makes it clear that "string or Binary data will be deducted ". that's good. In another table, I have a description column in the Projects table, in which nvchar (50) is not zero, but there is no unique obstacle in it. To ensure that the statement is larger than 50), but no exception has been thrown ... I like the very clear exception, but I understand what the rules are. Apart from this, the exceptions are all different DBs. What am I missing? Cheers, Beryllless Answer My mistake! I was using a test that used SqlLite instead of SqlServer. This is one of the reasons that I have stopped using SqlLite in the first place (one reason should be that so many smart people love it, but it is useless for the verification of t...

optimization - In C, which is faster: if with returns, or else if with returns? -

Is it better if / else if, if if statement gives each block or is it better is the chain of ICs? To be specific, which is the fastest: A: if (condition1) {code1; Return; } If (condition2) {code2; Return b; } // etc ... b: if (condition1) {code1; Return; } And if (condition2) {code2; Return b; } // etc ... It does not matter, and this is an unnecessary Attempt on micro-optimization.

Appropriate way to add "media" files to c/c++ project in netbeans IDE -

I have a C / C ++ project in netbeans 6.7. The Dll file must be located in the same directory in the .exe file, and it requires a "media" directory (which consists of a set of png files) in the same directory. I want to set it so that NetBeans will do this for me automatically. How can I go about doing this? You can edit Makefile, especially .build

vb.net - Transactionscope not working on SQLite in Subsonic -

I have a problem using the transaction on SQLite, I am using the following code. Changes are still committed to the database, while I do not call the ts.Complete () function. Using TS as a new system. Behavior New SubSonic.SharedDbConnectionScope () uses the SharedConnectionScope () 'saves your personalized here' if all is finished using the ts.Complete () end If I miss it correctly, then tell you SQLite that you are entering and later to leave a transaction block Need to call more initiated transactions and endransensings - if I miss it correctly, then the transaction Using IDB Command any required around transaction-based code (though I did not net ADO in a while.).

sql server 2005 - Stored procedure inside a insert statement -

I am trying to generate random data for my SQL server database. Ive created a stored procedure, which takes the length of the string that is generated, but the problem is that it does not allow me to call within the included statement. Enter the table 1 (varchar_data, int_data) value ((sp_GenerateRandomString4), CAST (rand (* 10 ANNT)% 6 + 1 Also do not work Enter in Table 1 (select varchar_data, int_data) ((sp_GenerateRandomString4), CAST (RAND (* 10 AS INT)% 6 + 1) You use user-defined functions instead of a stored procedure A stored procedure can not be used in the expression, but can not be used. Es. can be found at a good start here:

language agnostic - Guidelines for better unit tests -

Jimmy Bogard, an article is written, where it gives four rules: Test names from the user's perspective Tests are codes too, give them some love don One setup , execute and verify in your opinion are these guidelines fulfilled? What are your guidelines for unit tests? Please avoid specific language idioms, try to keep the answer-language agnostic. A complete, 850 page book is called this deal with this topic, so there is nothing like this Which can be easily boiled for some strict rules (although the rules of your mentions are good). Another digestible book that covers this topic If I can add rules I Most are important, then they will be: Use test-induced development This is the most effective road towards good unit tests. It is most difficult to try to withdraw unit tests in the existing code. Keep it simple: Ideally, a unit test should be less than 10 lines of code. If it grows for more than 20 lines, then you should seriously consider the t...

optimization - Refactoring animations in jQuery login script -

I am using jQuery to create simple animations for login forms in my CMS. JQuery Toggles the visibility of two forms, a login form and reset password form. The script works perfectly well, but I have to figure out how to minimize it, because most code is redundant. Note: The .click function is said twice in each case so that the animation can be implemented concurrently. $ (function () {var recover_text = "password recovery $ (" # forgot "). $ (" Input ") $ $ (" Label (class: "label", labeled "inside"}); $ ("# forgot"). ("#cms_login") .Fedote ("fast" (Function () {$ ("#dialog h2") .FadeOut (function) ($ ("# pw_recover"). FadeIn ();});}); $ ("# forgot"). "Fast", function () {$ (this) .html ("+ + retrieve_text +" "). FadeIn ();}); document.title = '' + recover_text + (" # "); $ (" # Login ") (function () {$ (...

php - Count line breaks in a field and order by -

मेरे पास टेबल में एक फ़ील्ड है व्यंजनों जो mysql_real_escape_string , मुझे उस फ़ील्ड में लाइन ब्रेक की संख्या की गणना करना और इस नंबर का उपयोग कर रिकॉर्ड को क्रमबद्ध करना है। ps फ़ील्ड को सामग्री कहा जाता है। धन्यवाद सब यह ऐसा करेगा: SELECT *, LENGTH (सामग्री) - LENGTH (REPLACE (सामग्री, '\ n', '')) व्यंजनों से गणना के रूप में गणना डीईएससी द्वारा आदेश डीईएससी जिस तरह से मुझे लाइन ब्रेक की मात्रा मिल रही है, वह हैक का एक सा है, और मुझे नहीं लगता कि यह एक बेहतर तरीका है। मैं उस कॉलम को रखने की सलाह देता हूं जो कि लाइनब्रेक की मात्रा होती है अगर प्रदर्शन बहुत बड़ा मुद्दा होता है मध्यम आकार के डेटा सेटों के लिए, मुझे लगता है कि उपरोक्त ठीक होना चाहिए। यदि आप ऊपर वर्णित कैश कॉलम चाहते हैं, तो आप ऐसा करेंगे: व्यंजनों को अद्यतन करें SET IngredientAmount = LENGTH (सामग्री) - LENGTH (REPLACE (सामग्री, '\ n', '')) उसके बाद, जब भी आप एक नई पंक्ति को अपडेट / डालने के लिए, आप मात्रा की गणना कर सकता है (शायद PHP के साथ) और इससे पहले इस कॉ...

c++ - Drawing on the Desktop Background (WIN32) -

Is there a way to drag the desktop background into WWAN 32 and when the desktop background is republished then the notification gets is? I tried to do this: desk = GetDesktopWindow (); DC = GETDESSY (desk); MoveToEx (DC, 0,0, zero); LineTo (DC, 16801050); ReleaseDC (Desk, DC); But it also pulls the entire screen over the window on the screen. You can use Spy + + to find desktop + windows. On my system I see the following hierarchy: Window 000100098 "Program Manager" programmer Window 0001009E "" SHELLDLL_DefView Window 00100A0 "Folder View" SysListView32 I think you are discussing SysListView32 - Window with all the icons You can use it to find this window. Edit You should use Combination of FindWindowEx and EnumerateChildWindows The following code can be compiled in a command line box like this: cl / EHsc finddesktop.cpp / dunicode / link user32.lib #include & lt; Windows h & gt; # Include & lt; Iostrea...

Help finding SNMP ODI's for Windows -

I'm installing some monitoring on some Windows infrastructure and I'm having trouble finding the ODI that I After me 3)% of CPU usage (either used or free). 3)% of free memory (or bytes) I'm doing my test on XP, but will be deployed in 2003/2008. I suspect that your SNMP agent will implement, and it has related disk / cpu information, a lot of data It is structured in complex fashion, and the easiest way to find what you want is to simply browse through a MIB browser.

How to disable Moving/ReOrdering of ListView Header in WPF? -

WPF ListView allows the reorder of columns by drag and drop controls. Is there any way to disable it? I hope some WPF gurus can help me :) & lt; list View. View & gt; & Lt; GridViewColumnReorder = "False" & gt; ...... here headers ........ & lt; / GridView & gt; & Lt; /ListView.View> Try it

c# - Problems with the following regular expression in RegularExpressionValidator control -

I have written the following regular expression that should only match the file name or folder name that does not end in .aspx. Validation Expiration = ". * * [^ (Aspx)] $" But if this does not work, King of Regx land, please help I do Espacks, please. Extensions like ASPX etc. would also like to be invalid. (I have learned quickly how there is some difference between regular expressions of Nets and Jascript). Can anyone help? [^ abc] means "a, b, or c" You do not want to have a negative character set, you should look negative: validation expression = ". * * (? & Lt;! \ Aspx) $" RegexOptions.IgnoreCase as an option in Regex.IsMatch to make it case insensitive. In Javascript, where there is no negative eye, you can use a less efficient version with negative lookhead: validation expression = "^ ( ?: (?! \ APX $).) * $ "

php - Simple Color Variation -

I am creating a UI in which the user has the ability to change the color values ​​of their pages. What do I want to take the value assigned to their background color and make it lighten a certain amount? I am trying to get only a highlights line without creating new images at all times. Example: Users Sets the background color to #ECECEC Now I have to create a certain element limit # F4F4F4 (one color to white). Please tell me whether this is a good way to do this with JavaScript, PHP, or even jQuery. Code> Limit: 1 px solid RGBA (255,255,255,0.7) This will have a white border of 70% opacity Unfortunately, it is supported in Firefox 2, Opera 9 or any version of IE is not. It will not be difficult to make alternative versions for these browsers. Example of jQuery: $ ('body'). Append ('& lt; div id = "rgbatest" style = "color: rgba (0,0,0,0,0); condition: absolute (' $ '(' # rgbatest ') .css (' color ') Matc...

performance - Profiling Native C++ WinCE App Built with Visual Studio 2008 -

I have a native C ++ application that requires profiles to diagnose performance problems. I am only a profiler who is a remote call profiler, which requires that the application be created with the platform builder so that the instrumentation hook can be compiled. My application is made with VS 2008. Any suggestions? I appreciate the answer I have done some of the two suggestions, though, I have found out that I was wrong. Applications with VS2008 can be built for use with remote call profiler. Add / callcap to the compiled step. Link to cecap.lib (from platform builder)

radio button - Rails form_for radio_button "Can't be blank" -

मेरे पास निम्न कोड है: & lt;% form_for (@libation) करें | च | & Gt%; & Lt;% = f.radio_button: कार्बोनेटेड, सही% & gt; & Lt;% = f.label: कार्बोनेटेड, "हां"% & gt; & Lt;% = f.radio_button: कार्बोनेटेड, झूठी% & gt; & Lt;% = f.label: कार्बोनेटेड, "नहीं"% & gt; & Lt;% end% & gt; डेटाबेस में कार्बोनेटेड कॉलम प्रकार है टिनिंट । और जब ऊपर चल रहा है और मैं नहीं मुझे एक बड़ी लाल बक्से मिल रही है: 1 त्रुटि इस लिबंदी को सहेजने से प्रतिबंधित कर दी गई है निम्नलिखित फ़ील्ड के साथ समस्याएं थीं: * कार्बनयुक्त रिक्त नहीं हो सकता कोई भी विचार? -थांक्स मुझे समस्याएं हैं एक बूलियन मान की मान्यता, इसलिए मैंने उनकी मौजूदगी को सत्यापित करने के लिए आपको सीखा है: validates_inclusion_of: कार्बोनेटेड,: में = & gt; [सच, झूठे]

join - SQl Query :Joining 4 Tables :One to Many -

मेरे पास मेरे एसक्यूएल सर्वर डीबी में 4 टेबल हैं: ऑर्डरमास्टर (ऑर्डर ईद [प्राथमिककी] , ORDERDATE, TotalAmount, SupplierName) ORDERDETAILS (OrderDetailId [PrimaryKey], OrderID, ITEM_ID, मात्रा, ManufacturerId) ItemMaster (ITEM_ID [PrimaryKey], आइटम का नाम, ITemCost) ManufacturerMaster (ManuId [PrimaryKey], ManufacturerName, HandlingFees) संबंध हैं: ORDERDETAILS तालिका आदेश आईडी OrderMAster तालिका के प्राथमिक कुंजी (कई लोगों के लिए एक) जिक्र ORDERDETAILS तालिका ITEM_ID जिक्र ItemMaster की प्राथमिक कुंजी ManufacturerIdtable आदेश आईडी ManufacturerMaster की प्राथमिक कुंजी जिक्र ORDERDETAILS तालिका ORderMaster तालिका में एक रिकार्ड के लिए कई रिकॉर्ड हो सकता है। आदेश संख्या Li> आइटम की कुल संख्या (चिल की संख्या ऑर्डर की सभी वस्तुओं के लिए कुल (योग) ITemcost। ऑर्डर कैसे करें? OD.Id का चयन करें, गिनती (IM.Item_Id), योग (IM.ItemCost * आयुध डिपो। ItemQuantity) OrderMaster ओम से OD.OrderId = OD.OrderId पर OrderDetail आयुध डिपो में शामिल होने IM.Item_I...

Asp.net MVC Firefox shows hyperlink location in parentheses, why? -

Looking at that image the menu bar on my webpage is still simple, but Firefox Why will links in parentheses be shown, while not IE? I disabled all my addons and still does it I saw the source in the firebug and it is actually in HTML: Anyone have any ideas? Thank you. I was missing the media attribute in my link for CSS Elements. media = "screen, launch" media = "print" is mandatory and I have to copy some kind For those features missed,

In python when passing arguments what does ** before an argument do? -

संभव डुप्लिकेट: इस उदाहरण को पढ़ना और पायथन के अपने पतले ज्ञान से, यह किसी सरणी को किसी शब्दकोश में परिवर्तित करने के लिए एक शॉर्टकट होना चाहिए? वर्ग हैलो: डीईएफ़ जाओ (स्वयं, नाम): रिटर्न प्रस्तुत करना .hllo (name = name) # अन्य तरीका: #return render.hello (** स्थानीय ()) अजगर f (** d) में f फ़ंक्शन के कीवर्ड पैरामीटर के रूप में शब्दकोश d में मानों को पास करता है। इसी तरह f (* a) सरणी से a मानदंड के रूप में मानता है। एक उदाहरण के रूप में: ** d या के साथ इस फ़ंक्शन को कॉल कर रहा है: एक : & gt; & gt; & gt; D = {'count': 2, 'msg': "abc"}> gt; & gt; & gt; एफ (** डी) एबीसी एबीसी & gt; & gt; & gt; A = [1, "xyz"]> gt; & gt; & gt; F (* a) xyz

php - Why does my preg_replace() on multi-line file contents on Windows fail? -

I have a text file, Qfile.txt and the content is like this, and want to create another file with the same information Qfile1.txt, Qfile2.txt Qfile.txt questions are "yours" What is age?" Answer "Question" What are you doing? "Answer" question "What is your name?" Answer "" Qfile1.txt Question "What is your age?" Answer "25" question "What are you doing?" Answer "chat" question "What is your name?" Answer "Meehun" I want to read the questions from Qfile.txt and store the information in PHP with Qfile1.txt. I wrote some code but pattern matching is not working: $ contents = file_get_contents ("Qfile.txt"); Forex Currency (/ * bla bla * /) {$ pattern = "/ Question" "." Preg_quote ($ id, '/') "\" Ancer \ "\" / "; $ String = str_replace ('' ',' \" ', $ string); $...

statistics - how owa works step by step -

raster 1 {{0}, {1,1}} raster 2 {{1,1}, {0 , 0}} Hello Can you please tell me how the two weighted worksheets work out step-by-step given the guided weighted average method? The difficult part about the OWA concept is the order of the input vector before the operation. Thanks v = (1, 3, 2, 7) = = (0.5, 0.3, 0.1, 0.1) Note that, in the form of vectors of all weights, the sum of components must be 1 remaining. Now, v: Components of v1 respectively: v1 = (7, 3, 2, 1) OK now, To see the principle: OWA = sum v1_i * weights_i Then in our example, we will get something like this: OWA = 7 * 0.5 + 3 * 0.3 + 2 * 0.1 + 1 * 0.1

Access 2003: Datasheet and Listbox have different results when using same query -

I am writing an Access 2003 form to get the list of all the people in a facility. I have a saved query that I hope for the results, when I look at the datasheet view (list of all names with related account number). If I use the same list as my ListBox.RowSource, I get a list of names, but only 10% is listed as the account number. TblOne.ACCOUNT is not guaranteed to be meaningless, so I'm not sure how these empty results will come. SELECT tblOne.NAME, tblOne.ACCOUNT to join tblOne INNER tblTwo ON tblOne.ID = TblTwo.ID WHERE tblOne.ENTER_DT & gt; = (Date () - 7) AND tblTwo.EXIT_DT is tblOne.NAME by NULL order There are two columns of listboxes that are linked to both table tables. I can tell that the saved query is giving me different results if I see it using the Datasheet view or use it as a list of listboxes. Errors started when I added Inner Join but it still works correctly in the Datasheet view with the Joint Statement. This is mysterious but there are ...

iphone - A/Synchronous NSURLConnection: get response without download data? -

Help is highly appreciated I'm stuck here: Loading URLs in my UIWebView I need to check a response before starting. However, a synchronous NSRR connection will first download the data and then I should use the feedback, which is bad. An asynchronous NSURLConnection will allow me to examine the reaction before receiving any data, but I can only examine the response in the delegate method connection: did the reception. But then I will have to wait for my webview's delicate method (webview: needstartLoadWithRequest: Navigation Type :) until the response is no. Because both the representatives are in the main thread (should they be? I feel like this) I can not use the NScandition only to stop the webview representative (means to stop the main thread). Anyone have an idea how to solve this problem? Thanks in advance. If you just need headers, then you should first request a head (rather than a GET ) It will only return the headers without any body. It can also be f...

wpf - How Do I Create a System.Windows.Media.ImageSource From a Byte Array? -

How can I create a system with a byte array? Windows.Media.ImageSource? I have a byte array that contains the exact and complete file content of a TIFF image file. I need to display it on the screen, and I do not know that even to start, can be considered, it can be done (according to my master, our Dev team has done this in the past, but no one remembers). Has anyone done something like that here? bitmap image bi = new bitmap image (); Bi.BeginInit (); Bi.StreamSource = new memorystream (byte); Bi.EndInit (); Also see and

c# - Where is the default namespace name kept in ASP.NET MVC? -

I created a new ASP.NET MVC application with the name of "HelloWorld", and did a few basic tests. I then changed a global name of "HelloWald" to "application name", but when I create a new controller, it still puts it in the "HelloWald" namespace. How can I fix this? This project is in property, such as in another C # project

flash - How do I tell mxmlc to treat warnings as errors? -

I am using the mxmlc command line tool to compile a pure AS3 project. Is there a command line option for mxmlc treatment alerts as errors? I have read through all the compiler flags and Flex-config.xml but was not able to find this option. You can not 'default' the default mxmlc value for true. It does not have any effect on setting it to right.

.net - C# searching through lists -

In the following code I am using 3 foreach statement. I'm just trying to populate a list when a list of items matches another, but those who do not match should also be added. So I was thinking that there is an easy way to do the following. list & lt; T & gt; DS = new list & lt; T & gt; (); // virtual foreach (var b in template.bs) {list & lt; BD & gt; TempList = new list & lt; BD & gt; (); Foreign (BD BD in BD BD) {Boolean found = false; Forresh (DV DV In Items) (if (BDC C == DVC C) {found = true; TempList.Add (new BD () (// populating});}} If (! Found) tempList.Add BD ()) {// populating});}} ds The relationship between and is not clear, but it seems that your inner end is actually a left external participant: list & lt; T & D; ds = new list & foreach in temp. (); // templates in var b) {var newBDs = BD items in BD in BD I d D. is included in D. D is equal to DVC, in J.DefaultFacti () Select DV == Faucet? Not match (BD...

delphi - How do you turn on the microphone? -

To turn on the microphone and open any type of live stream to hear what's happening on my PC How about the second place to go? This is going to be a baby monitor project. Any ideas about how I should do this? After the code to work I really am. I can relax, I'm learning Delphi, so I should be fine. I have to stop Mike too. At this stage I do not want to talk back, just listen in real time or near as I can get. Wow, everyone stays on recommending an external package for it, it's built in Windows - Wave In-Open / Wide Inappropriate Header / Wavebuffer Read API should work on all versions of Windows. If you need better control then you can still use DirectSoundCapture.

objective c - What increases an object's retain count? -

यहाँ कोड है जिसका मैं उल्लेख कर रहा हूं। // Person.h। @ इंटरफेस व्यक्ति : NSObject {NSString * firstName; NSString * lastName; } @ एंड // व्यक्ति .im @implementation person - (id) init {if (! [Init in!]) वापस नील; FirstName = @ "जॉन"; LastName = @ "डो"; } @ एंड // MyClass.m @implementation MyClass ..... - (NSArray *) getPeople {NSMutableArray * array = [[NSMutableArray alloc] init]; Int i; के लिए (i = 0; i & lt; 10; i ++) {व्यक्ति * p = [[व्यक्ति आलोक] init]; [सरणी addObject: p]; } वापसी सरणी; } ..... @ अब, मुझे पता है कि इस नमूना कोड में कोई स्मृति प्रबंधन नहीं है। क्या आवश्यक होगा? GetPeople लूप में, मैं एक व्यक्ति (कुल संख्या 1) को आवंटित कर रहा हूं, फिर इसे सरणी में जोड़ रहा हूं। बनाए रखने की गिनती अब 2 है, है ना? अगर यह दो है, तो क्या मुझे इसे सरणी में जोड़ने के बाद, मुझे वापस रखने के लिए 1 को वापस लेना चाहिए? क्या मैं सही में कॉलर की ज़िम्मेदारी है विधि द्वारा लौटे? (जो व्यक्ति की स्मृति को भी मुक्त करेगा, और उनके उदाहरण चर, मान लेंगे कि उनकी...

Graphic Adapter problem in Assembly with vista -

When I want to live in the assembly with the visitor, I get a serious error and it only says "I do not 16 bit GA support "What should I do? Some asglers produce 16-bit instructions by default I. For example: If the bits instructions in the above example will be removed, then the output "axar ax, ax" (machine code) will be removed from the bits 32 xor eax, eax In)

algorithm - List circular group membership from active directory -

We have 40K + groups in our Active Directory and we are facing the problem of circular nested groups which Are causing problems for. Do anyone know how a circular group membership exists through full circuits? G1 -> G2 - & gt; G3 - & gt; G4 - & gt; G1 How do I list it below. Here you go, a modified version of this code should do the trick as well as the book Check out, I often refer to its excellent desk resource. 'This VBScript code prints the nested membership of a group. '------------------------------------------------- -------------- 'Robbie Allen' ISBN: 0-596-00466-4 '------------- "Book of Active Directory Cookbook" From ------------------------------------------------- - '------ SCRIPT configuration ------ StroggerDN = "& lt; GroupDN & gt;" 'Eg cn = SalesGroup, ou = group, dc = rallencorp, dc = com' ------ end configuration --------- strSpaces = "set" dicSeenGroupMember = ...

c# - How to return a paged list from a property of a Domain Object using NHibernate and a Repository Pattern -

The "repository" pattern text is mediated between domains and data mapper layers. cold. So for example, maybe a repository interface and base domain objects such as public interface stores & lt; DomainT & gt; Where DomainT: DomainObject {Get DomainT (object ID); } Then there will be a concrete implementation public class ThreadRepository: the store's & lt; Thread & gt; {Received public order (object id) {_session.Find return (typeof (thread), ID); }} Now my question is, there can be several posts in the thread, like stack overflow, using 300 posts of this thread, using the above statement, I get the thread object, and I only I want to display lists of 20 items, so I will use the Post Collection Property of Thread Object, which will be all 300 due to sluggish loading, is ready for me GetThreadPosts (object Threaded, int page Size, int index); Is it more efficient? GetThreadPostCount (object thread ID); Or it makes relatively cheap ca...

Is SQL Server 2005 Express good enough for development -

In a developed company, developers typically run databases on their laptops. We have an example of running virtual machines in the form of an SSL Server 2005 and SQL Server 2000 server instance machines. I am not an MSDN teacher and in fact in-in-MSDN, my question is as follows. Will every developer be able to install an MSDN version of SQL Server on his laptop for his development purposes, if we have enough membership? In the midst of uncertainty, we will be able to use SQL Server Express for our development purposes, after our Migrating Database 'Database Development' database servers have made all the changes necessary to the database. What is a big difference between the SQL Server Express vs SQL Server Enterprise in terms of functioning. If your MSDN membership permits, I recommend that your devs install the developer version of SQL 2005 or SQL 2008. Because that version contains SQL Profiler which makes it easy to point to the Gods SQL barriers.

c# - WPF: Passing objects between UI Thread and Background thread -

After InitializeComponents in my window creator, I can create an object and bind it to a datagrid needed. Since the creation of the object is taking a lot of time, it takes some time to show the window. So I decided to move the creation of the object into a background thread and gave the UI thread "back rep" by binding a dispatcher to bind. But it fails The strange thing is that if I try to set the visibility of a rectangle within the DispatcherWhok, which works but the datagrid does not! any idea? I've tried the same thing with background workers and ThreadStart, but I'm getting the same error. I'm not able to access the Data Grid Object, it is still going inside the Dispatcher, inviting the delegate. There is a lot of gratitude for any suggestion that I am missing something in my understanding of how it works. Thanks! startupdevelopets = new startupdelegate (create modal); S.BeginInvoke (Representative (IAsyncResult aysncResult) {s.EndInvoke (aysncResul...

compiler construction - How I can add a keyword to gcc? -

My goal is to analyze and learn in the description of compiler development techniques. Here I want to add a keyword to GCC and see how it works. You have to add an entry in c_common_reswords , in that you have a New RID_ stability will need to be allocated, and it should give you the words you want to give it to.

User's text in my database as a separate table or within other data -

यह सवाल मेरी योजना पर आधारित है। मेरे पास निम्न तालिका है जहां kysymys अंग्रेजी में एक सवाल है। मुझे पता होना चाहिए कि मुझे उपयोगकर्ता के प्रश्न के डेटा को कैसे संगृहीत करना चाहिए: एक अलग तालिका में जहां मेरे पास पैरामीटर प्रश्न-आईडी और प्रश्न-निकाय OR मौजूदा तालिका में मेरे पास अन्य मापदंड हैं मुझे भविष्य में प्रश्न-निकाय को बेअसर करना होगा जैसे कि उपयोगकर्ता कोड नहीं देता जो मेरे सिस्टम को तोड़ता है। आप उपयोगकर्ता के टेक्स्ट के डेटा को कैसे संग्रहीत करेंगे? क्या आप एक प्रश्न के संशोधन को स्टोर करने की योजना बना रहे हैं? जैसे स्टैक ओवरफ्लो आपको प्रश्न पाठ को संशोधित करने देता है और यह इतिहास को संग्रहीत करता है। यदि यह मामला है तो मैं पाठ को अलग-अलग स्टोर कर दूँगा। आप प्रश्न-आईडी से संदर्भित उत्तर / टिप्पणियां संग्रहीत करेंगे, लेकिन प्रश्न पाठ एक अलग तालिका में आयोजित किया जाएगा। आपका डेटा निष्कासन समस्या (ऊपर) इस पर ओर्थोगोनल है (डेटा सिनिटेशन / सफाई का एक अलग अंक)।

php - A better logging design or some SQL magic? -

I am deep in revising some old logging codes which I did not write and wondered about what you did about it Think. This is an event logger that is written in PHP with MySQL, which logs to that message: Sara added a user, slick101 mike removed a user, slick101bob One service, payment is broken in this way: Sarah [user_id] has created a user [message], slick101 [reference_id, reference_table_name] A pair of such table in: log --- id user_id context_id context_table_name message please Note that u In the aforementioned example messages "Bob" and "payment" are the IDs for the other tables, it is necessary to include one to get the real name no name. It seems that the "reference _ table_names" is to find the proper name in the correct table, because only the reference _ id is stored. This would probably be good if a table name is included in the reference_table_name that is stored in such a way: select * Log in from log {{reference_ta...

c# - What is the Efficiency and Performance of LINQ and Lambda Expression in .Net? -

I've used Net 3.5 and VS 2008 for more than a month. majority of. Like net developers, I have evolved from years of experience. Net 1.0 & amp; 2.0 and VS 2005. Recently, I discovered the simplicity and power of my recent questions like, and, e.g., LINQ and long expression. I believe that lambda Read LINQ is very simple and easy and they seem very powerful behind the scenes, .net compiler should generate a lot of code to achieve those tasks. So I hesitate to switch to a bit syntax because I already know the "old" way of getting the same result. My question is about the Lambda and LINQ efficiency and performance may Lambda expressions are mostly in-line functions, should be fine I think lambda is in that position. How about LINQ? We limit the discussion on LINQ-to-Objects LINQ-to-SQL (LINQ-to-SQL). Any comments, comparisons and experiences? There will be no single answer that will be sufficient. LINQ has many uses, and many implementations, and thus the...

ajax - Parse page for checkboxes via javascript -

I have a bunch of checkboxes that are dynamically created on page loads and written as: & lt; Input type = 'checkbox' name = 'quicklinkscb' id = 'quicklinkscb_XX' / & gt; Where XX represents the item ID from the database. I want to be able to parse the page for all the checkboxes via javascript and: Find your ID and paste 'quicklinksscb_' from it and: if (checkbox is checked) {add to add list} and {add to delete list} I check this through the checkbox list And I want to do all this client side. Does anyone shed light for (var i = 0; i & lt; document.forms.length; i ++) {for (var j = 0; J & lt; document.forms [i] .elements.length; j ++) {var elem = document.forms [i] .elements [j]; If (elem.type == 'checkbox') var tag = elem.getAttribute ('id'); Tag.replace (/ ^ quicklinkscb_ /, ''); If (elem.checked) add_to_add_list (tag); And add_to_remove_list (tag); }} Very easy in jQuery: $ (...

(Ruby) Getting Net::SMTP working with Gmail...? -

Does anyone have any quality about sending mail through Gmail using Ruby's Net :: SMTP ( And up-to-date) information? I have seen many examples - mostly dating between 2007 and 2008, and none of them works for me. I need more recent examples using the recent 1.8.7 release. I also appreciate that only simple examples were not given in the documentation that never really used anyone. I am currently receiving an error: SSL_connect returned = 1 errno = 0 state = SSLv2 / v3 reader hello A: Unknown protocol I am not very familiar with SSL in relation to the SMTP protocol, so it has lost all on me. Unfortunately Net :: SMTP documentation provides the only basis and one of the various potential OpenSSL :: SSL contexts I do not provide the complete list or I can not try different people. Anyway, if there is anyone to work with Gmail, any quality information will be most appreciated. Best. I really got this job. A quick script was written to test it. I had received a d...

gettext - Is there way to create empty .mo file template? -

Is there a way to create an empty .mo file? Normally when I'm starting a new project, I get stuck with it, unless there is no need to translate. I tried to do it with luck: msgfmt / dev / null --output-file foo.mo Understand. Xgettext -force-po -f / dev / null -o foo.po msgfmt foo.po --output-file foo.mo

Visual Studio C++ 2008 linking question -

P> We have a third party library: . Do we have 2 editions or one version (/ MT / MTD) for each configuration (compiled with the release version / MT and debug version / compiled with MTD)? Thanks Dima One exception is where you can only participate with a release version: If the external library is a DLL, and if you do not pass CRT objects from one CRT to another, the restriction does not apply is. CRT object file points, Molk block (only allocates a library, and other releases), the perception of the current locale's perception and timezone.

wpf - How to make Style.Triggers trigger a different named style to be applied -

चलिए कहते हैं कि मेरे पास निम्न हैं: & gt; शैली लक्ष्य प्रकार = "{x: प्रकार पाठ बॉक्स} "& gt; & Lt; सेटर संपदा = "सीमाछेद" मूल्य = "1" / & gt; & Lt; सेटर संपदा = "बॉर्डरब्रश" मान = "ग्रे" / & gt; & LT; Style.Triggers & gt; & Lt; ट्रिगर प्रॉपर्टी = "आइफोकॉक्स्ड" मान = "सच" & gt; & Lt; सेटर संपदा = "बॉर्डरब्रश" मान = "ग्रीन" / & gt; & Lt; सेटर संपदा = "सीमावर्तीता" मान = "2" / & gt; & Lt; / उत्प्रेरक & gt; & LT; /Style.Triggers> & Lt; / शैली & gt; यह ठीक काम करता है और यहां बहुत ज्यादा गलत नहीं है, लेकिन यह एक बहुत सरल मामला है। क्या होगा यदि मैं एक विशिष्ट शैली के रूप में सूचीबद्ध IsFocused शैली राज्य करना चाहता हूं, तो उस शैली को किस प्रकार की शैली के रूप में संदर्भित करता है, यानी & lt; style x: key = "ActiveStyle" TargetType = "{X: प्रकार पाठ बॉक्स}" & gt; ...

analytics - Is there a way to check if a browser has the Alexa toolbar installed? -

Is there a way to see if Alexa Toolbar is installed in the visitor's browser? Maybe it can be done via javascript. By doing this, we will likely get a little bit of compensation for the favorability of Alexa ratings of the site. See example. The Alexa Toolbar is not very common outside of the United States in particular - but anyway, it is used, so by measuring the proportion of Toobar / No-Toolbar visits on known websites, Any correction factor can determine. I am a web developer / designer who I manage which is under the control of some customer websites. They come in different categories, as I can make statistics, using browsers and platforms. Correlate, and possibly also correlate with the use of Alexa Toolbar. Those categories include 'General Public Website', 'Educational Website', 'Technical Website', 'Web Developer and SEO Website' etc. I'm not sure that Alexa tries to compensate for this bias itself, and, if, how it is done, ...

How can I safely encode a string in Java to use as a filename? -

I am getting a string from the external process I want to use that string to make a filename, and Then typing that file is my code snippet to do this: string s = ... // comes from external source file current file = new file (System.getProperty ("user. Home "), s); PrintWriter currentWriter = new print publisher (current file); If there is an invalid character in it, like '/' in Unix-based OS, then a java.io.phileNotFoundException (right) has been thrown. How can I safely convert the string to a symbol, so that it can be used as a filename? Edit: What I'm hoping is an API call that does this for me. I can do this: string s = ... // External source file comes from file = new file (System.getProperty ("user.home" ), URLNcoder.X code (S, "UTF-8")); PrintWriter currentWriter = new print publisher (current file); But I'm not sure that the URLNcoder is trusted for this purpose. If you want to keep the result as the ori...

configuration - How to verify the MaxSimultaneousWorkflows setting in WF -

WF में एक कॉन्फ़िगरेशन प्रॉपर्टी है: MaxSimultaneousWorkflows- एक कस्टम परीक्षण ऐप या वर्कफ़्लो बनाने के अलावा, आप यह कैसे सत्यापित कर सकते हैं कि संपत्ति है काम कर रहा है? कस्टम परीक्षण ऐप या वर्कफ़्लो का निर्माण नहीं करने का कारण यह है कि यह आपको कार्यप्रवाह के बारे में नहीं बताता है जो मैं वास्तव में सत्यापित करने का प्रयास कर रहा हूं। अद्यतन इसे सत्यापित करने का कारण यह सुनिश्चित करना है कि यह माइक्रोसॉफ्ट के दस्तावेज के रूप में काम कर रहा है जब प्रोडक्शन में चलाए जाने वाले वर्कफ़्लो के साथ चलाया जाता है, यह सत्यापित करने का तरीका है कि WF सेटिंग में कोई बग नहीं है। हो सकता है कि आप MaxSimultaneousWorkflows को चेक करने की आवश्यकता क्यों कर सकते हैं? MaxSimultaneousWorkflows सेटिंग का उद्देश्य यह है कि डिफ़ॉल्ट कार्यप्रवाह अनुसूचक एक साथ वर्कफ़्लो गतिविधि निष्पादन के लिए निर्धारित संख्याओं की संख्या से अधिक का उपयोग करता है। तो आप जितनी चाहें उतने वर्कफ़्लो शुरू कर सकते हैं, लेकिन केवल एक ही समय में निर्दिष्ट संख्या ही कार्यान्वित हो जाएगी। वर्कफ़्लो रनटाइम, या अधिक...

c# - Asp.net gridview, get boundfield value in code behind when in edit mode -

I am using gridview and editing mode in asp.net (c #) so that the user can change the value. But I need to check the value that users enter into the envoving, when using this code, I always get the old value that I did not enter. How do I get a new value? & lt; ASP: GridVid ID = "Mygrid View" onruvdating = "MyZidWoodUpdate" DataName = "ID, Value" & gt; & Lt; Columns & gt; & Lt; ASP: Boundfield Readonly = "Foal" Datafield = "Value" Dataform String = "{0: 0 ##}" /> & Lt; Asp: CommandField ShowEditButton = "true" EditImageUrl = "~ / images / iconedit.png" button type = "image" Cancel ImageUrl = "~ / images / iconclose.png" updated IMAGE URL = "~ / images / icon edit page" / & Gt; & Lt; / Column & gt; & Lt; / ASP: GridView & gt; In Code Behind: Protected Zero MyGridViewUpdate (Object Sender, GridViewUpdateEventArgs E) {str...

asp.net mvc - Nested "Layouts" in Spark? -

I am in the process of changing the views from ASP.NET MVC tags in order to use Spark. However, I do not know whether ASP.Net is an analog of Nested Masters in Spark Layouts. If it is not there, will it be the best way to use partial? Spark can have nested master pages. Just place your master and sub-master pages in the 'Layouts' folder and then call them Master = "EFU" /> > Using & lt; Refer to by including. Example (application.spark) & lt; P & gt; Hello world - Master & lt; / P & gt; & Lt; Using: View / & gt; (Submasters. Spark) & lt; Content: View & gt; & Lt; P & gt; Hello world - Submasters & lt; / P & gt; & Lt; / Content & gt; & Lt; Using: View / & gt; (Foo.spark) & lt; Master = "submaster" /> & Lt; Content: View & gt; & Lt; P & gt; Hello World - Foo & lt; / P & gt; & Lt; / Content & gt; See for more informa...

c# - What are the cases that cause WCF proxy to be faulted? -

I should know in which case the WCF proxy (generated by vs2008 or svcutil) becomes defective state is? So I can recreate the new example and can not use the defective use. Currently I'm dealing with the timeout exception, FaultException, CommunicationObjectAbortedException try {client.Method1 (args); } Hold (timeout Exception) {client.Abort (); Re: (); } FaultException {client.Abort (); Re: (); } Hold (communication object quote) {client.Abort (); Re: (); } I think I can escape from all these types and can only handle parental communication exceptions, is it enough? I need commenting Any exception exception on the server side that is FaultException Or FaultException & lt; T & gt; will blame your channel In a per-call scenario or one-way scenario, you often do not care about the fault of the channel, but in a session-based scenario, you definitely! Your best bet is to actually try and hold all the exceptions on the server side and either press them (lo...