Posts

Showing posts from May, 2011

parse a path in c# -

मुझे यह पथ है "वेब संदर्भ \ myWebService \ myWebService.wsdl" कैसे मैं "वेब संदर्भ \ myWebService \" के लिए पथ प्राप्त कर सकता हूँ का प्रयोग करें पथ.गेट डायरेक्टरीनाम

html - When is it necessary to initialize or reset all tags using a wildcard * at the beginning of external CSS style? -

To reset or start all tags at the beginning of the CSS document * When is it necessary to use the wildcard? "post-text" itemprop = "text"> It is never required , some people just like to start with a known baseline, different browser defaults. Slapping it in wildcard is not really recommended, although it may have undesirable effects on some elements (such as form controls). The result may be a bit more complex reset, such as or

c++ - Weird behavior of right shift operator (1 >> 32) -

I recently encountered a strange behavior using correct-shift operators. The following program: #include & lt; Cstdio & gt; # Include & lt; Cstdlib & gt; # Include & lt; Iostream & gt; # Include & lt; Stdint.h & gt; Int foo (int a, int b) {back to a & gt; & Gt; B; } Int bar (uint64_t a, int b) {single & gt; & Gt; B; } Int main (Int arc, four ** argv) {std :: cout & lt; & Lt; "Foo (1, 32):" & lt; & Lt; Fu (1, 32) & lt; & Lt; Std :: endl; Std :: cout & lt; & Lt; "Bar (1, 32):" & lt; & Lt; Bar (1, 32) & lt; & Lt; Std :: endl; Std :: cout & lt; & Lt; "1>> 32:" & lt; & Lt; (1> 32) & lt; & Lt; Std :: endl; // alert here std :: cout & lt; & Lt; "(Int) 1>> (Int) 32:" & lt; & Lt; ((Int) 1> (int) 32) & Lt; Std :: endl; // warnings return here EXIT_SUCCESS; } should be output: foo (1, 32...

java - Getting Error running javac.exe compiler message, while using Ant in Eclipse -

When I run my ant build in Eclipse, I am getting the following error message and the ant build fails. Error message: Error running javac.exe compiler The line where the build stops: & lt; Javac destdir = "$ {classes.home}" debug = "on" fork = "true" memoryinitializeize = "512M" memorymaximize = "1g" & gt; & Lt; Classpath refined = "classpath" /> & Lt; Src path = "$ {source.home}" /> & Lt; / Javac & gt; Has anyone had to face a similar problem? Or does anyone know what's wrong here? System Info: Eclipse Helio, JDK 1.5 I had a single problem and There was a problem, in the eclipse Java.home was referring to JRE rather than JDK. I changed it and the build was successful. You can do the following to convert it to JDK: Preferences> Java> Install JRE's> Add ... Choose 'standard VM' for 'JRE type'> Next directory: Choose your JDK di...

Export function in c++ static library -

My app is linked to a third-party static library which is without source code and I think that one executed in this library The function is exported by using my exe dumpbin.exe, just like in an export function, in a DLL I have tried to modify the header file provided by the library, to relieve all the __declipsepack stuff Thats, and to add my app again, but the function has still been exported. Is there a way to know it? No you will have to compile the library again, changing the header will not affect the library binary code. What is the problem with the function you exported?

How to set value in a hidden field and hide a div using Javascript? -

I'm a newbie for javascript and I want to know how to set values ​​in hidden fields using javascript How to set a value in a hidden field using Java script P> Set the value for hidden fields: var el = document.getElementById ('hidden area id'); El.value = 'some value'; How to hide a single device by using javascript Hide a div: var el2 = document.getElementById ('div id'); El2.style.display = 'none'; If you click some element, then you want to make any of those tasks generational, you can: var btn = Document.getElementById ('button id'); Btn.onclick = function () {var el = document.getElementById ('hidden area id'); El.value = 'some value'; } Where the ID can be set to an element: Take a look at this:

How to see Qt Source code while coding by Qt Creator? -

How to view QT source code while coding by QT creator? When I debug my program and press the brake point, and when I press F11 on the Q function, the debugger steps in the source code of that function, it is very interesting stuff: now D, I have QT function in QT You will see the source code of the manufacturer on debug time: D You need a QT debug build , And you have a building QT to make it yourself Not: see part of the documentation. Adding Debug Edition to Qt Creator The following instructions are for Qt Creator 2.0.0. If you are using a different version, then customize it as needed. First of all, you need to add your debug build to the list of available Qt editions. Select Tools > Options menu; Click the + button Click the Browse button and enter your custom-built QT Bin select the QMake binary inside the directory; Click Reconstruction to create debugging helpers. this is important! Click OK . During the compilation, configure the projec...

c# - How can I avoid using a string member name to get a member of an anonymous type? -

I am using the following code to retrieve names of members in an unknown way. Can I change the follwing code to use the Lukada expression, or to allow at least the calling code to use Lambda, even if I have to use the 'deep down' string? Private Tee GetAnonymousTypeMember & lt; T & gt; (Object anonymous type, type member member name) where T: class {var anonTypesType = anonymousType.GetType (); Var propInfo = anonTypesType.GetProperty (memberName); Return ProofFo.Gate Value (anonymous type, empty) as T; } Added: How does anonymous type come in GetAnonymousTypeMember method is private for that class Only public law has been declared: Public Zero Publishing Notice (Notification Trigger Trigger, Object Template Parameter) I call this method: Publish Notation (Notification.represented, New {NewJobCard = Model}); That new {NewJobCard = model} is made as GetAnonymousTypeMember as anonymousType . & gt; selector ) {Type type = typef (t); Var...

web parts - How to get Webpart list in asp.net form -

मेरा इरादा asp.net पेज में संलग्न वेबपटल सूची प्राप्त करना है शेयरपॉइंट वेब पेज में, हम ऐसा कर सकते हैं: SPWeb वेब = SPContext.Current.Web; SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager (पेज। Request.Path, PersonalizationScope.Shared); के लिए (इंट I = 0; i & lt; webPartManager.WebParts.Count; i ++) {// हम यहां जांच कर सकते हैं या जो भी हम चाहते हैं ......} लेकिन कैसे Asp.net पृष्ठ में ऐसा करने के लिए? धन्यवाद। अपने कोड को Microsoft.SharePoint.dll जोड़कर प्रारंभ करें एएसपी.नेट वेब प्रोजेक्ट उसके बाद, आप एसपीएसite और एसपीवेब को निम्नलिखित विधि का उपयोग कर सकते हैं: SPSite mySiteCollection = नया एसपीएसite (* & lt; आपकी साइट url & gt; *); SPWeb साइट = mySiteCollection.AllWebs [* & lt; आपकी साइट का नाम & gt; *]; आपका बाकी कोड आपके काम के अनुसार काम करेगा: SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager (Page.Request.Path, PersonalizationScope.Shared ); के लिए (int i = 0; i & lt; webPartManager.We...

Connecting from .net windows form(stand alone application) to oracle database -

I am trying to connect to the .Net Windows application from the Okackell database. Do we have to install Oracle Client in every system where the application is connecting to the remote Oracle database. Thank you in advance You have to go and grab it which will enable you to query the Oracle database using standard edioNet access pattern.

c# - UTC - Working one day behind -

I have an application that records statistics when a user presents their statistics, the information is stored and the date / Time is entered as UTC eg In the UK, if I enter data on 03/08/2010 10:30 my entry will be the date / time 03/08/2010 09:30 As we presently Looking at DST. If I was saying that Australia, and I recorded my data locally, my record date / time will be 02/08/2010 23:30 as I think That they are about 10 hours ahead. My application needs to prepare a statistical report at 7:00 p.m. (local time) when it runs: something like this happens: var CurrentUtc = DateTime.UtcNow.AddDays (-1); UTC date / time up to 24 hours from the current date This date (time is not taken into account) then the data is used to draw from the database. Now it's working fine for the UK, it's other international countries that are getting me problems more specifically in Australia. I have this issue 10 hours ahead, so my application is starting around 03/08/2010 22:0...

javascript - Why does this reg exp always succeed for the numerics? -

I have a regular expression that searches for special characters. When I search numbers, like 3, I always get 0, when I was expecting to get -1. '3' Search (/ [! \ "£ \ $% ^ ^ & amp; \ * \ (\) -_ \ + = \ [\] \ {\} :: @ \" # \\ | Any idea why this is happening? \) -_ to all the character class between ) and _ Causes the inclusion of characters, i.e. ) * +, - / .123456789:; & lt; = & gt;? @ ABCDGGHJJLMNOPQRTUVXX [\] ^ _ . 3 Is one of them. - should be placed at the beginning or at the end, so that it is special In addition, \ , [ , ] and / , do not count as a category. There is no need to avoid anything in it. / [-! "£ $% ^ & amp; * () _ + = \ [\] {}:: @ '# \\ | & Lt ;, & gt; (Technically [ does not need to be avoided, but I like to save it continuously.) Also , You can match a - in the meter if you avoid it from \ - .)

c++ - Why am I not getting events for a checkbox click in a treeview control? -

In my MFC dialogue, clicking on the checkbox is a tree view control with my check box, not from NMPLL nor TVNCEELEENGE events I have not expected, which I expected it to do. How can I properly set when a check box is checked / unchecked in a checkbox? Click the mouse normally and identify the current item in the handler, and then use the Tree View_GetCheckState Checked status

C# WPF: Display child nodes of selected parent node as a grid -

मेरे पास एक XML है: & lt; root & gt; & Lt; परियोजना का नाम = "पी 1" & gt; & Lt; पंक्ति फ़ील्ड 1 = "31" फ़ील्ड 2 = "3" नाम = "जो" /> & Lt; पंक्ति फ़ील्ड 1 = "39" फ़ील्ड 2 = "3" नाम = "जोय" / & gt; & Lt; पंक्ति फ़ील्ड 1 = "37" फ़ील्ड 2 = "3" नाम = "जोई" / & gt; & Lt; / परियोजना & gt; & Lt; परियोजना का नाम = "पी 2" & gt; & Lt; पंक्ति फ़ील्ड 1 = "31" फ़ील्ड 2 = "3" नाम = "जो" /> & Lt; पंक्ति फ़ील्ड 1 = "39" फ़ील्ड 2 = "3" नाम = "जोय" / & gt; & Lt; / परियोजना & gt; & Lt; / जड़ & gt; अब सूची बॉक्स परियोजनाओं को प्रदर्शित करता है जब सूचीबद्घ में कोई प्रोजेक्ट चुना जाता है, तो ग्रिड को पंक्तियों को प्रदर्शित करना होता है क्या यह Xaml में करना संभव है? या क्या मुझे कोड में सूचीबॉब्स के चयन के भाग के रूप में बदल दिया गया है? हाँ ...

cocoa - NSMenuDelegate questions -

I have an NSMenu that has a static and dynamically created NSMenuItem (fixed meaning NSMenuItem interface built in builder, dynamic meaning is built on NSMenuItem run- Time). Although I'm developing at 10.6, my application also provides 10.5 support. There are many dynamic NSMenuItem in my menu that contain submenus Edit: Here is a rigorous effort to create, currently, I have NSMenuItem The parentItem: method is unique to (10.6) when a submenu item is clicked. A manual parent item: method, but it is not particularly comfortable, is definitely a better way? - (NSMenuItem *) findParentByChild: (NSMenuItem *) For Children {int (x; x; x & lt; [statusBarMenu numberOfItems]; x ++) {// Avoid any Fixed item menu items if ([[statusBarMenu itemAtIndex: x] tag] = 100) {NSMenu * submenu = [[statusBarMenu itemAtIndex: x] Submenu]; If (submenu! = Zero) {for (int y = 0; y & lt; [submenu numberOfItems]; y ++) {// it looks like our parent if ([submenu items atindexx: y] == ch...

iphone - UISearchDisplay - application crash -

I have a big problem I have copied some code from Apple Research pages table search sample from here The case is:. #pragma mark - #pragma mark content filter - (zero) filterContentForSearchText: (NSString *) searchText scope: (NSString *) scope {[self.chatMessagesArrayCopyForSearching removeAllObjects]; // Clear the first filtered array if ([searchText length] == 0) {} else {(friend in FriendMessage * chatMessagesArray) {For NSComparisonResult results = [compare friend.message: searchText option: (NSCaseInsensitiveSearch | NSDiacriticInsensitiveSearch) range: NSMakeRange (0, [searchText length])]; If (Results == NSOrderedSame) {{self.chatMessagesArrayCopyFor addObject for Search: Friends]; NSLog (@ "% @", friend. Message); }}}} When the application crash I'll type a letter for example, and then the second letter is probably because there some console with friend.message : - [AccessibilityObjectWrapper message]: Non-accredited selector example sent to 0x5d8...

iphone - How to disable select functionality in UITextView? -

Text after " I want to create a text display area (either UILabel or UITextView) (1) scrolls and permissions of my iPhone app (2) Selection is not allowed I have tried the following techniques failed: Basic UILabel:. UILabel scrolls up to the bottom of the screen, and does not allow cut text A UIScrollView inside the Giant UILabel: UILabel text (vertical) placed in the center of the huge UILabel, then it is often outside of my UIScrollView Was UITextView:. So far this approach is best done, because it does not clip the scroll and text, I can also enable the UITextView subclass, and also. But, when the user captures the text, the text selection interface appears. I am not interested in this interface and it is actually distracting user experience. It is not before tap event , but apparently this function is called : withSender: I try canPerformAction subclass Is of > Anyone know how to disable the text selection interface in UITextView, even without disabling s...

Can't use relative paths with areas in ASP.NET MVC 2 -

In my application, I have a field mobile. In this area, I have a folder call assets where we have all our CSS, Javascript And insert images. The use of ideas works just fine. The problem is that when I use my CSS, Javascript and images. I can not do anything in my view like this. & lt; Img Src = "Property / CSS / Stylus CSS" /> The reason is that the real URL is: Is there any way to map to static files? Thanks, Randall This is the method I applied for the BeginRequest event. Zero BeginRequest (Object Sender, EventArgs e) {var reference = HttpContext.Current; Var path = context.Request.Path; // Add field to the mobile path, so we do not need to manually specify it. // This is mainly for handling static resources which you keep in areas. If (! Path contains ("mobile /"); If (path.EndsWith (".png") || path.EndsWith (".gif") || Path (edit ".css") || Path (editing ".js") || Path (edit. With "....

java - Illegal access (Quartz with JBoss) -

I am running a scheduled job in a web application which can sometimes (not be able to report) results in the following exception Is: [WebappClassLoader] Invalid access: This web application example has already been stopped. Org.quartz could not be loaded. Eventually the following stack trace is due to an error thrown for debugging purposes, as well as attempts to end the thread, which has illegal access, and has no functional effect org.apache.catalina.loader.WebappClassLoader .loadClass (WebappClassLoader.java:1204) java.lang.IllegalStateException on org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1244) on java.lang.ClassLoader. On loadClassInternal (ClassLoader.java:319) java.lang.Class.forName (Class.java:169) on org.quartz.JobDetail.class $ on java.lang.Class.forName0 (Native Method) (JobDetail.java: 279) org.quartz.JobDetail.isStateful (JobDetail.java:425) org.quartz.simpl.RAMJobStore.triggerFired (RAMJobStore.java:1313) on org.quartz.core.Qua...

Create dynamic link in drupal -

Can anyone tell me how to create a dynamic link in Drupal? I want to make a link in a group membership list. I have made a sequence with logic how do I create a menu item of the scene? It will be different on the basis of the group. Thanks In short, you can not do the Drupal's menu system the entire menu Cache: The menu items can not appear different for different users (though you can set access permissions for them). If you want to show menu items, you must either register them in the hook_manu () (which is called menu again), or you have to manually register them in the administration Must have to add. Provides more information about this booklet. However, you can create a fake menu in your view by using a block display and HTML list line style. This is useful if you want to block the category entry outside the main menu structure.

.net - Change Default "Default.aspx" to "Index.aspx" on Visual Studio 2010 -

Whenever I create a new web form on Visual Studio 2010, the default name is always "Default.aspx" . This is a bit pain because I have to change it every time "Index.aspx" How can I change it so that "Index.aspx" is the default name? Thank you. You can modify the related .vstemplate element. For example, you can find a webform template to modify in a directory similar to the following: C: \ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ItemTemplates \ CSharp \ Web \ 1033 Each template file contains a zip file Within is managed like WebForm.zip. Unzip the content, modify the .vsteppleplateNameName element and re-apply the changes to the same template folder. Your update should be visible in Visual Studio (You may have to restart VS.) Alternatively, instead of modifying the default template, based on your own template (original closing ) Should be considered.

ruby - How to judge whether a Constant has been defined within a module namespace, not a global one? -

I have two const with the same name. One is a global constellation, and the other is defined under the namespace admin. But I need to distinguish them; The global one has already defined, and Scod needs to define itself, if it has not yet been defined: A = 'A global cost 'Module admin A =' a containin within the admin namespace 'if const_defined? 'A' # Always true and admin :: A can never be defined! Finally A # = & gt; The 'A Global Cost' administrator puts: A # = & gt; Name: Error: Unused continuous administrator :: A # Administrator :: A will never be defined But if global A is defined, "const_defind?" The part will always be right! I have also tried: ... if defined? A ... if self.const_defined? 'A' ... if Object.const_get ('Admin'). Const_defined? 'A' Always the truth! I need to separate them because I have to use A and Admin :: A form; Status Post Controller for Public Use, and Administ...

haskell - Have J style adverbs, forks etc been emulated via libraries in mainstream functional languages? -

The J-style of Super Condensance Taxit Programming has been simulated through Word, Adwords, Fork, etc., Has been attempted through the mainstream functional languages? If so, how successful have the results? If not, is it a technical problem that makes it impossible or is it not okay? / P> I particularly like particles which do not appear directly for basic concepts in functional programming. Camcann's discussion is very good but note that this style is now the result of two traversal. You can write a combination library that merged into the traversal. See here: The following example has been given to write this post: meanF :: fractional a => Add a meaning F = (/) sum (integral after the length) with both: = odd a => [A] - & gt; In addition, the follow-up positions of the Connell Elite have made it more clear: They have opened the code in a library which is available on the hack: / P>

Extract frame from multi page tiff - c# -

There is a multi page quarrel and I want to remove page [n] / frame [n] from this tiff file and I want to save. If there are 3 frames in my multi page shock, then after removing a page / frame - I only 1 page with 2 page / frame containing 1 image / Frame There is some code to save the last frame to a single-page tiff file a multi-frame quarrel. (To use this code, you must add the presentation to the context of DLL). Stream image stream source = new file stream (image file name, filemod. Open, file accessed. Read, fileshare.read); MemoryStream memstream = new MemoryStream (); Memstream.SetLength (imageStreamSource.Length); ImageStreamSource.Read (memstream.GetBuffer (), 0, (int) imageStreamSource.Length); ImageStreamSource.Close (); Bitmapcoder decoder = tiffbitmapdicoder.creative (mystream, bitmapreut option; prerender pixel format, bitmap option. Default); Int32 framecount = decoder.frame.count; Bitmapframe imageframe = decoder Frame [0]; Memorystream output = new mem...

jQuery: How do I wrap() a dynamically loaded element? -

I'm skinning the third-party app in which HTML is not originally all from the on-load event and AJAX Returns from a group of calls. I added jQuery to the page. I need to wrap a dynamically loaded element (if necessary) I can include a plugin. How can I do this? Thank you. Update: This works, but is there a better way? $ (document) .ready (function () {(function () {var length = $ (". ApplicationShell") length; var h = setInterval (function () {if ($ ("ApplicationShell") Length & gt; Length) {length = $ ("Application Shell"). Length; Clear Interval; $ (".App Shell") AddClass ("Test")}, 100) ;}) ();}); OK, it seems I can not find a better solution :( here The one that I have used. $ (document) .ready (function () {(function () {var length = $ (". ApplicationShell"). Length; var h = SetInterval (function () (if ($ (". Application.Shell"). Length & gt; Length) {length = $ (".App she...

Extending the Arrays-class in Java -

I'm trying to add functionality to the array-class. In my project, I use static methods, and in some other ways, I handle array conversion, sorting, etc. ... I am trying to add them to an object That's what MyArrays spreads Arrays so I can go MyArrays.toList (foo); but MyArrays.myOwnFunction (bar); But I am not able to expand it because the use of the aerase-constructor is personal use. I know that it is not really necessary, but now I know that I am unable to do this I really want to. Is there any alternative solution for this? Thanks, You can not do this and why does it matter that Do you have utility work in one or two sections? For the record - Commons-Lang's Areuits , which has additional utility methods. Technically, you should only array all the methods in your appropriate class, but that is unnecessary.

ruby on rails - Encrypt/Decrypt String -

There is a simple problem for me that I want to hear your thoughts: I have this rail In the URL I am getting 'somehost' part through the parachraphs ['id']. I am calling URI.NX on 'nothing', but it does not 'encode'. Character Id parts will not be identified with numbers in tracks, so I tried to change the number with '% 2E' - this works, but Firefox (and I think other browsers also) % 2E '. It makes a copy and pastes the impossible and will cause many problems. I want to encrypt and decrypt the 'fewhost' part in a URL-safe manner - any suggestions? Due to the built-in architecture, I can not call with a numerical primary key. I see is by name. Thank you very much! You can use base64 encoding, but it would be better to fix the actual problem. This issue has been described. For your Roots file with a regex you have to set the : Needs key.

mysql - SQL Sort Order by The Order Specified In the Query -

Say I have a question "Select from clause * where id (0,2,5,1,3) ) "And I really want the rows to be returned in the same order, where they are specified where the order of the segment ID will change from query to query and there will be no pattern for the order. I know that it is possible to make changes in it. But I believe that such solutions will not work in my situation. I am also unable to change the order of the result object in my application code. I know that different database engines sort differently, bat blah blah in some circumstances there is no guarantee. I just do not want it, is it possible? I am using mysql or sql server if it helps :) On MySQL, you can use it: ORDER BY FIND_IN_SET (ID, '0, 2,5,1,3') To use the most portable medium CASE expression must be used: Case ID by order when 0 then 1 pm 2 then 2 when 5 then 3 when 1 was 4 when 3 to 5 END

jQuery version of Linq's Where() -

I want to use jQuery to get a radio button set out of the check radio button. Here the form object is not a jQuery object but the "normal" JavaScript object is not. I want the following: // "where" the jQuery array should be var myVal = $ (form.RadioSet). Where (': check') fliter. Val (); I know that I can get my results with: pre = var myVal = $ (form) .find ('input [name = RadioSet]: checked ') .val (); But this is a little more typing with "input" and "name" syntax. Any thoughts? Thank you, I think the filterer is what you find As ... As: var myVal = $ (form.RadioSet) .filter (': check'). Val ();

xslt - Nothing returned for element name (XSL/XPath) -

I have a code that expects me to return the element name, but nothing is returned. The following code is from an XSL doctor which creates another XSL doctor. Where $ expression is a variable that has created an XPath expression dynamically. & lt; Xsl: template match = "/" & gt; ... & lt; Xslt: template match = "{$ expression}" & gt; & Lt; Elem key = "{name ()}" & gt; & Lt; Xslt: copy-of select = "@ *" / & gt; & Lt; Xslt: each selection = "@ *" & gt; & Lt; Xslt: sort select = "name ()" /> & Lt; Specialty & gt; | & Lt; Xslt: Select the value = "name ()" /> | & Lt; / Attribute & gt; & Lt; / Xslt: for-each & gt; & Lt; / ELEM & gt; & Lt; / Xslt: Templates & gt; ... & lt; / Xsl: Templates & gt; The second XSL doctor is generated with this code after that code. Note how @key is empty. & lt; Xsl: template ...

Trigger close event for Rebol Console? -

How to trigger a close event for the Rabol console to execute some custom handlers before coming out of the console? Well, I do not understand why you need it. If you are running a script from the console, then surely your script "knows" when it is about to quit. Maybe you're after system shutdown or similar? In that case you need to see the system port. See For an example of trapping the shutdown incident for various OSs.

2D-iPhone-Game with side-scrolling & platforms like Super Mario with Cocos2D? -

I want to create a game where the player can walk and jump on the platform I think that cocoa 2DD would be great, but I have not found any tutorials for Cocos 2D and Side scrolling. Where do I start? You should learn how to use Cocos 2D, its basics, how to work, etc. . Then you can use one of the two physics systems in one of the two: Chipmunk or Box 2D (or roll your own solution). Setting up a simple scene with a chipmunk should give you a good start. There will be some problems that you will find on slopes, on one side, platforms etc. You can check out the Chipmunk forum, there are some questions about it: Also, consider buying it from Cocos 2D Developer: There are several problems that you can get.

delphi - What can cause SysFreeString to hit an Int 3 breakpoint? -

I have some code that works fine under Delphi 2007, but breaks down under D2010, passing it in the string It includes, converting it to PWEdcher (in particular, not a widestring pointer, UnicodeString Pointer), doing some processing, and then calling SysFreeString. Unless the empty string is passed, it works fine, then SysFreeString breaks down. This is called a set of things that enhances a int 3 breakpoints inside the NITLL.LL. In the continuation of this point the results resulted in the error of message violation of access to '0x7747206e: Exclamation class $ C0000005 with the reading of message 0x539b8dba'. Which, if you look closely, is not a standard access violation message. Above the stack trace, when it hits int3 , it looks like this: : 774e475d; Ntdll.dll: 774afad0; Ntdll.dll: 774e5 de 9; Ntdll.dll: 774 A6 DFF; Ntdll.dll: 76fc1075; C: \ Windows \ system32 \ ole32.dll: 770e443a; C: \ Windows \ system32 \ oleaut32.dll: 770e3ea3 oleaut32.SysFreeString + ...

c# - How to find the amount of pixels by which an image has moved? -

How do I test an absolute image stable camera here, every time the same place But to put the object on, there is a continuation of our setup. In the question, a stamp is placed at the center of the object, which has a simple shape on it (see below). The camera only has a view of some square millimeters (~ 25). There may be other artifacts in such an image which will need to be cleaned, but whatever I can show at present is just a simple drawing. What am I trying to calculate offset where lines are detected compared to the previous one in each row, in the picture given below, red lines show that Line 2 is dispersed in the image, i.e. how far they have gone. My question is, using an image recognition C # library, preferably EmguCV, how can I calculate the dimensions of the green rectangle (offset)? I have followed some emu tutorials, and only two rows can be traced to software through misleading conversions, but I do not know that in the form of more than 500 mini lines ...

sql - MySQL unknown column -

Why am I getting this error: 1054 - Unknown column 'in the field' t.type 'List' There is a Type column in my table and I have a nickname. Using the table 'tester' has been found. SELECT y *, (SELECT COUNT (*) FROM (SELECT *, case t.type WHEN 'Advanced' THEN T. type ELSE 'non-advanced' group_type from tester as the end) x where x.group_type = y.group_type AND ( X.grade1 + x.grade2)> = (y.grade1 + y.grade2)) from the rank FROM (SELECT t.name, t.gr1, t.gr2, t.type, case t.type WHEN 'Advanced 'Then TSTEEES' Non-advanced 'as the ADS group_type) y Om Genoni, any thoughts? Thank you. - Lakmidi / I repeat my forehead - my mistake, sorry do. Use this: SELECT y. *, (SELECT COUNT (*) FROM (SELECT *, CASE type WHEN 'Advanced' THEN type ELSE 'Non-Advanced' and type of tester by group type) x where x.group_type = y.group_type and ( X.grade1 + x.grade2) & gt; = (y.grade1 + y.grade2)) from rank A...

iphone - Three20 and Apple app store submission -

I started using the three 20 projects for the iPhone / iPad application. Does anyone have any issue during this due to the submission process? Also, how challenging is it to make the application compatible with iPad - I'm using three 20 navigation styles, style labels and photo controllers. Thanks in advance for help! The current app store status for three 20 is displayed That's currently the app store is safe.

iphone - How do I set the background (window) for a tableview to an image? -

I have set the background color of my UITableView to clean so that I can see UIWindow. But depending on my selection I want to change the image presented (from the background page). An example would be: if (selection = 'blue') then image = blueski.pda (selection = 'green') then image = 'greengrass page' thx, wes self.tableView.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed: @ "greengrass.png"]];

c# - How to create columnspan in gridview? -

Image
I have a grid like below. Here I can call me " hours past 52 weeks " There is a problem with this here I need to use this text on the grid top like the screen below. How can I use it? The highlighted text in "Yellow" is the actual text. Please help me on this. thank you in advanced. I do not think that this is a declarative way of doing it, but you rodeetbound in which you RowIndex Check for 0 for and if so, update the cell of the line tablespace has a column space property , And you have to remove those cells that you are absorbing.

c# - Events vs. Yield -

I have a multi-threaded application that produces threads for many hardware devices. Each thread basically has an infinite loop (For the lifetime of the application) which selects the hardware for new data, and each time when something new collects, then activates an event (which passes through data) is a single audience category that all these Consolidates the devices, makes some calculations And removes a new event with this calculation. However, I am thinking that, because there is a listener, it will be a IEnumerable & lt; & Gt; Better to expose the method, and use yield returns to return data instead of firing event. I would like to see if any one of these two methods is aware of the difference or not. In particular, I am looking for the best ability to best reliability, prevention / cancellation ability, purpose of threading, general safety, etc. Also, with the second method it is still possible to run IEnumerable loop on a separate thread? Many of these d...

timeout - Suggestion for this kind of execution in asp.net -

I have a web application that sends an SMS to many numbers via GSM. Every user has this local system. I can send messages one by one. So far I have only 10 numbers, so there is no problem. I have a file with 10000 mobile numbers, What will happen to my execution time? What is your suggestion for this scenario? Note: I am not using an SMS gateway because it is a simple application that only hosts in my user system's IIS I have a mobile phone connected to my system and I am sending it SMS .. Your execution time will increase: (linearly). Why do not you use the windows queue and then write each SMS in the queue and then there is a window to serve which to send the SMS 1- The problem for you is your code There will be no limit, but how many sms can you send with your GSM together.

ruby on rails - A copy of [middleware] has been removed from the module tree but is still active! - error -

हम रेल संस्करण का 2.3.5 इस त्रुटि की सूचना दी है SO में मैंने निम्नलिखित की कोशिश की: config.cache_class = true जोड़ना - इस समस्या के साथ, सर्वर को होना था किसी भी नियंत्रक को कोई परिवर्तन किया गया हर बार पुनरारंभ किया config.middleware.use [middleware] जोड़ना / Strong> विकास के लिए। आरबी - कोई फायदा नहीं क्या विकास के समान विकास करने के अलावा इस पर काबू पाने का एक तरीका है? संपादित करें यहां तक ​​कि config.middleware.use [middleware] को पर्यावरण। अच्छी तरह से यह पूरी तरह से अलग व्यवहार किया। मेरी त्रुटि गायब हो गई, लेकिन मेरा मिडलवेयर टूट गया। सभी की वस्तुओं शून्य थे!! हो सकता है कि आपको एक प्लग-इन पुनः लोड करने की आवश्यकता हो? रिफः एट अल

ruby on rails - ActiveRecord Callback - How to create a new record based on record just saved? -

I should have an ActiveRecord callback What do I need help? What I am trying to achieve, each time a special record is saved, ActiveCrak actually saves 2 records in the same table. Why do I want it to be away from it, it should be good to know that every transaction has been saved in 2 separate but similar records in the same table. Example: 0) I have a table called "Link" that will store people connected with other people. It looks like: + ---- + ----------- + --------------- + - - ----------- + | ID | Person_id Original_word Rcvd_person | + ---- + ----------- + --------------- + ------------- + 1) The web app user will enter the initial person and recipient (who is generating or receiving the link). "Person_id" is empty at this point: + ---- + ----------- + ------------ - - + ------------- + | ID | Person_id Original_word Rcvd_person | + ---- + ----------- + --------------- + ------------- + | 1 | | 5 | 10 | + ---- + ----------- + ------------...

php - YAML adapter for Zend_Translate? -

Does anyone know the high-quality adapter for a Zend Framework? It seems that the project itself is in the Zend, but it has been inactive for years. There is no information about the adapter. However there is another that there is also that you can convert those translation files into an array and then change that array into an array adapter, but again, using one of the source formats can be more viable. .

javascript - jQuery best Practice: hide / doSomething / show sequence -

What is the best practice to complete the following workflow: $ (" # MyDiv "). Hide (); $ .getJSON ("url", function (data) {... snorrr ... hours later ...}); . $ ("# MyDiv") slideDown (); The above sequence has spent hours in Divine Beaver: - ( Thanks er Just place a call in the callback. $ (" # myDiv "). Hide (); $ .getJSON (" url ", function ( Data ... {... snorrr ... hours later ... $ ("# myDiv"). SlideDown ();}); In addition to show some indicators you want , So that the user knows that something is going on.

Any good example on Implementation of spring.net + NHibernate + Repository pattern -

Is there a good example on the implementation of Spring.net with NHibernate and repository patterns? 'The URL is going through.' It uses Castle Windsor instead of spring, but NHibernate (behind an MVC app) Along with it is a good example of using the repository-pattern.

getCookie using javascript -

संभव डुप्लिकेट: जब मैं जावास्क्रिप्ट का उपयोग कर getcookie, जो वर्तमान यूआरएल के लिए मिलेगा मैं डोमेन नाम पास करके कुकी प्राप्त करना चाहता हूं, इसे कैसे प्राप्त करना है? आपका मतलब है, आप किसी भिन्न डोमेन के लिए सेट किए गए कुकीज़ को क्वेरी करना चाहते हैं? सुरक्षा कारणों से ऐसा नहीं किया जा सकता है। प्रभावों की कल्पना करें: कोई भी साइट उपयोगकर्ता की सत्र कुकीज को ऑनलाइन बैंकिंग साइट या लगभग किसी भी अन्य साइट पर लॉग इन कर सकती है।

wpf - What are routed events and how it's different from normal events -

I appreciate if some body can explain with a simple example. Imagine a window that has a dense hierarchy of hair control. Now we say that you want to do something, there is a right click anywhere in your window. With normal events, you have to handle one click event for all the controls, because you are not sure where the user can click on WPF Together, events are either "bubble" or "tunnel" (i.e. u.iii travels towards the tree or bottom) if they do not find an event handler, which it "handles" at the current level. You can write a handler for the event of the window i.e. TopLevel (Add event to WPF, Preview preview of XXX and XXX - Preview shows the XXX event first and controls the tunnel below the root, which receives excitement and is equivalent to XXX events, then returning from hair control Bubbles up to root) . So if you click on the right button, the WPF visits the UI hierarchy, in which all the handlers are invented, which finds it (u...

c# - Custom membership provider and current endpoint -

I am writing a custom subscription provider for my WCF application and send me the ValidateUser () Method How can I get this information about the current channel used? I have examined the Operation Constantx, Web Operation Contains and the HTTP Context. They are all empty. TIA Mjako

c# 4.0 - Find object matches from arrays -

मान लें कि मेरे पास 4 एरे हैं: [1,3,54,4] [54,2,3,9] [3, 2 9, 544] [54,8,4,3] मुझे ऑब्जेक्ट्स प्राप्त करने की आवश्यकता है (इस मामले में पूर्णांक लेकिन वे कस्टम ऑब्जेक्ट होंगे) जो कि सभी सरणी में मौजूद हैं (सामान्य) उपरोक्त मामले में मुझे नतीजे की आवश्यकता होगी: [54,3] क्योंकि ये केवल चार आइटम हैं जो सभी चार एरे में हैं I ऑर्डर की कोई बात नहीं है, गति मामलों बहुत, सरणी आकार और एरे की संख्या काफी भिन्न होगी मैं सी # 4 और एएसपी.नेट का उपयोग कर रहा हूँ Arrays सूची होगा हालांकि वे सिर्फ परिवर्तित किया जा सकता है। धन्यवाद:) कैसे के बारे में: ISet & lt; int & gt; प्रतिच्छेदन = नया हैशसेट & lt; int & gt; (प्रथमअरे); intersection.IntersectWith (secondArray); intersection.IntersectWith (thirdArray); intersection.IntersectWith (fourthArray); ध्यान दें कि यह और अधिक स्पष्ट रूप से अधिक कुशल होना चाहिए: var x = firstArray.Intersect (दूसरेअरे)। काटना (तीसरा एरे)। fourthArray); बाद के रूप में प्रत्येक विधि कॉल के लिए एक नया हैश सेट बनाएगा। जाहिर है कई सरण...

Iteration order of sets in Python -

If I have two equal sets, which means a == b me True , will they have a single order of travel? I tried to do this, and it works: gt; & Gt; Foo = Sets ("ABC") & gt; & Gt; & Gt; Bar = set ("ABC")> & Gt; & Gt; My question (zip) (zip, foo, bar) [('a', 'a'), ('c', 'c'), ('b', 'b')] Is I lucky, or is this the guarantee of this behavior? This bus is a coincidence that they exit only one: Implementation It has to be deterministic, so the creation of a single set produces the same sequence twice. n = set ("abc") print nm = set ("kabc") If you create a single set in two different ways: ") M. Rev. (" K ") Print M ... You can get different orders: set ( ['A', 'C', 'b']) set (['a', 'b', 'c'])

python - "AttributeError: 'module' object has no attribute '__getstate__' " shows up when I use easy_install -

For any reason, every time I try to install a new module using easy_install, I get an error: attributeError: There is no attribute in the 'module' object '__getstate__' I am using setuptools-0.6c11-py2.6 Try: gist is "reinstall setuptools".

php - two values for one name in input -

I have an input (type radio) that I want to include in it 2 values, something like this: & lt; Input type = "radio" name = "name" value1 = "value1" value2 = "value2" /> And after attracting each value separated with PHP, Is there a way to do this? (And no .. I do not want to insert input with type = "hidden") Thanks. OK, I can not do this, but you use the delimiter for your value (s) Can & lt; Input type = "radio" value = "value1 | value2" name = "two_value" /> Then, in PHP, just type the list ($ value1, $ value2) = explosion ('|', $ _POST ['two_values']); Edit As the user has said 387302, you will not be limited to having any assumptions with your delimiter, for example value = "One | PipedVariable | and Another" "One | Piped Value" and "And Other" will not work to remove

iphone - Remove the old button when double tap -

UIButton * btn1 = [UIButton बटन के साथप्रकार: UIButtonTypeCustom]; [बीटीएन 1 सेट इमेज: [UIImage imageNamed: @ "restaurant.png"] forState: UIControlStateNormal]; UIButton * btn2 = [UIButton बटन के साथप्रकार: UIButtonTypeCustom]; [बीटीएन 2 सेट इमेज: [UIImage imageNamed: @ "restaurant1.png"] forState: UIControlStateNormal]; यदि ([scaleStr isqualToString: @ "0.139738"]) {btn1.frame = CGRectMake (330,145,5,5); [ImageScrollView addSubview: बीटीएन 1]; } और यदि ([scaleStr isqualToString: @ "0.20 9 607"]) {[btn1 removeFromSuperView]; बीटीएन 2.फ्रेम = सीजीआरएक्टमेक (495,217.5,10,10); [ImageScrollView जोड़ें SUBview: btn2]; } मैंने UIScrollview में पृष्ठभूमि छवि को दो बार टैप करने पर बटन सेट किया है। अगर मैं दूसरी बार दूसरी बार दोहराता हूं, पहला बटन भी दिखाता है। मुझे पहले जो बटन बनाया गया था, उसे हटाने की आवश्यकता है। इसके अलावा मैं बीटीएन 1 को अगले स्थिति में हटा देता हूं। कृपया इस पर मेरी सहायता करें। थोड़ा सा संदर्भ यहाँ पर मदद कर सकता ...

mysql limit - a general question -

Below the query from the SELECT * table where one = '1' and b = '2' and 'C' 3 'and' '4' 'and E! = '5' and F = 6 ' return 10000 results. My question is that we say that I limit the search of the first 10 results in this way: SELECT * from table WHERE a = '1' and B = '2' and c & gt; '3' and 'D' '4' and E! = '5' and F = '6' LIMIT 10 Will all SQL search be done through 10000 results or will it stop at the result of 10th? /p> LIMIT will display the specified rows only based on their status within the resultset . Without ORDER BY, you are relying on the order contained in the records. You might be interested in reading about it ...

sql - Single Bridge Table or is there a better way? -

I am trying to find an answer for this and I do not know the best way to describe it. Actually, I have 3 source tables with unique identifier keys. We call these tables Skill 1, Duty 2, Custom 3. They are connected to each other separately from this fact (not easily) that they are the qualities of a particular job. I want to tie resources with these skills (eg: a book, a URL, a course ID), now 8 different tables, which I will call resource 1 - resource 8. This is to allow the addition of any combination of these types of resources for any of the features included in 3 "skill tables". I came up with many weird designs, but I did the following: Table - Column -> FK Skill 1 - Skilldiscimal ID - & gt; BridgeTable AttitudeUniquid Duty 2 - DutyUNIID - & gt; BridgeTable SpecialtyAnyID Custom 3 - Customized - & gt; Bridgetable. Unbreakable Univined BridgeTable - Attribute UNIID, ResourceAnIIID, Attribute Type, ResourceTip Resource 1 - ResourceAnyID - ...

jquery - Customize fullcalendar title in basicWeek -

Does anyone know how can I optimize the title in the basic and basic Brain Scene? This time the block starts with time and then the title. From time to time, I want to show in the title of every event, such as in the Agenda view. Is it possible to format the content of the title with tags and content? Greetings Alexander Then something like this: / P> $ ('# calendar'). Full calendar ({basic: 'H: mm {- H: mm}'});

java me - BlackBerry J2ME vs HTML Javascript framework like PhoneGap -

A customer wants a Blackberry app to listen to live radio for their radio station We focused on iPhone development. I know that Java language has done many projects, but have not tried J2ME yet, do you recommend J2ME or HTML Javascript framework, such as phonegap or any other cross platform framework? What are their advantages and disadvantages? Thank you. If you are comfortable with Java Swing or other Java UI programming, probably by going originally Have a good idea. If you are more comfortable with HTML, Javascript and CSS, then use PhoneGap. If you are planning to employ your application on multiple platforms, then definitely use Phonegap. PhoneGapp also lets you write native BlackBerry Java code and integrate with HTML / JS code, when your The specific APIs needed do not appear. With the imminent release of Blackberry OS 6 things, there is much more for PhoneGrap for both Better on that platform (Browser is now WebKit based) and for basic Java programming. There ar...

ruby on rails - raise ActiveRecord::RecordNotFound (or any 404 status) for invalid date -

In my controller controller, I have a date object to use date.new Use is in my ActiveRecord end_range = Date.new (params [: year] .to_i, consultation [[month] .to_i, consultation [[day] .to_i) .end_of_day.to_formatted_s (: db) 40 for the day at most date. New failed (as expected). However, I should not get 500 errors, if a user types something like this, but instead 404 error (because you will not actually be able to record from one day of 40 ). I if is extended to ActiveRecord :: RecordNotFound if and if you fail, 500 error before running conditional (and again 404 is not returning). Does anyone know the better way to fix this, or can there be a more lawful statement of condition to fail to defeat date.new ? In this case you can save an exception and increase each other Wants to re-map those types which are not in type types: Start def show end_range = date.new (...) Rescue argument Argument # Invalid date raise ActiveRecord: : RecordNotFound End Rescue ...

c# - ResourceManager override GetResourceFileName -

I want to override a method in the system Resources. Resource Manager class in Mscorlib v4. I want to override the method like GetResourceFileName; Protected override string GetResourceFileName (CultureInfo Culture) {string resourceFileName = base.GetResourceFileName (culture); Return resource filename Change (".resource", ".resx"); } The problem is, to instanciate a resource manager class, I must use the CreateFileBasedResourceManager static method, which gives a new example of ResourceManager. (Because I need a file based resource manager) How can I override this method? I also tried to call the personal creator CreateFileBasedResourceManager call to create an object, but I get this exception (can not use a personal constructor with reflection?); [SecurityException: Request failed] System.RuntimeMethodHandle.PerformSecurityCheck (object obj, RuntimeMethodHandleInternal method, RuntimeType parent, UInt32 invocationFlags) +0 system. Reflection.RuntimeM...

.net - Setting WCF DataContract namespace using ContractNamespace attribute -

In designing my service, I decided that I want to customize those namespaces that resulted in WSDL as a result. For data contracts, I came to the attribute, which was a good shortcut option for setting explicitly the same namespace for each data contract. My initial effort looks like this: [Assembly: Agreement Name ("http://types.mycompany.com/2010/08/03")] Namespace My Companion.MyContractes {[DataContract ] / / ... lots of datacrunch classes} To my surprise, it was not working after a lot of tinkering, I was successful only when I finally ClrNamespace property is set to be equal to my CLR namespace (example MyCompany.MyContracts). Such a thing [assembly: contract name ("http://types.mycompany.com/2010/08/03", ClrNamespace = "MyCompany.MyContracts")] My question is: why did not it go first? I was hoping that by specifying not the CLR namespace, this feature would affect all assembly-wide datacontractions. If I am not mistaken, if ...

git - Merging without changing the working directory -

मेरे पास निम्न परिदृश्य है: * ab82147 (हेड, विषय) परिवर्तन * 89 9 3636 परिवर्तन * 82f4426 परिवर्तन * 18बी 5 ए 3 (मास्टर) पहले मैं मर्ज करना चाहते हैं (गैर फास्ट फॉरवर्ड) topic में master । यह मेरे लिए निम्न है: git चेकआउट मास्टर git मर्ज --no-ff विषय लेकिन मास्टर की जाँच कर रहा है, और उसके बाद विषय में विलय करने के कारण git को मेरी कार्यशील निर्देशिका बदलना पड़ता है (हालांकि अंतिम परिणाम मास्टर की जांच करने से पहले एक जैसा है), और मेरे पास समस्या है हमारे प्रोजेक्ट के आकार के कारण, इसे बनाने के लिए लगभग 30 मिनट लगते हैं (IncrediBuild के साथ) हालांकि कुछ भी वास्तव में बदल नहीं है और यह बस असहनीय है। तो मुझे क्या करना है, निम्न है: * 9075cf4 (हेड, मास्टर) मर्ज शाखा 'विषय' | \ | * Ab82147 (विषय) में परिवर्तन। | * 8993636 परिवर्तन | * 82f4426 परिवर्तन / / 18be5a3 पहले वास्तव में काम कर रहे निर्देशिका को छूने के बिना (या कम से कम किसी भी तरह git धोखाधड़ी)। दिलचस्प है! मुझे नहीं लगता कि ऐसा करने के लिए एक अंतर्निहित तरीका है, लेकिन आप इसे पाइपला...

authentication - IIS module and WCF -

I have written an IIS module (base IHttpModule) which does some custom (openAuth) authentication before my WCF REST service. I have expanded the generic principal to track my user with an identity, and set the reference field to my new principal. application.context.user = principal However, when I get the reference in WCF (the next step below the pipeline), the user appears as "default" as the uncertified WindowsPrincipal (Genetic Principal that I do not set) I see about making many things on the net This work (aspNetCompatibilityEnabled = "true" for "service", with environment, with OperationConnecte Playing etc.) ... but I have not tried anything. Is there a way to do this work (or am I barking the wrong tree here). What would be the legal way to do this, or "WCF" more custom certification to handle it? thanks You must set your principal in WCF Identification during the authorization phase requires a custom authority poli...

scalability - dynamically increasing java heap space -

I have written a Java program that tests the speed of multi-threading algorithms with different processors of different machines. On some machines, merge sort * fails because it requires a large size pile to work on large arrays. Before running the program, I can easily switch the Java heap space, but I think it would be a more robust and easier way to do this work from within the program. Is there any way during a Java program Note: I understand that I have a program with a program Scripts like "Java-XMX-1G program" can execute; My curiosity on this subject is in an academic section. * My implementation does not merge in-line, it requires O (N) additional memory. Java was not designed to be able to dynamically manage memory, this case In "Java Hip Space", on the other hand, it was designed to protect the programmer from worrying about it. In short, I am afraid to say that there is nothing like " " malloc () " or " setHeapSize...

.net 4.0 - Is it possible to turn on HTML encoding by default in ASP.NET 4? -

एएसपी.नेट 4 में, हम नये और lt;%: ...% & gt; ऑपरेटर को एचटीएमएल एन्कोडेड स्ट्रिंग्स आउटपुट। क्या ASP.NET 4 (web.config में) को कॉन्फ़िगर करना संभव है ताकि और ऑपरेटर HTML स्ट्रिंग्स को भी एन्कोड करेगा? नहीं, सौभाग्य से। यदि आप इसे इस तरह से कॉन्फ़िगर करते हैं, तो आपके डेवलपर्स & lt;% = ...% & gt; का प्रयोग करने की आदत में और एन्कोडिंग नहीं। यदि वे बाद में एक अलग (सामान्य) प्रोजेक्ट पर काम करते हैं, तो वे भूल जाते हैं अपने आउटपुट को एन्कोड करने के लिए। डिफ़ॉल्ट रूप से HTML एन्कोडिंग करता है, क्योंकि इसमें कोई समस्या नहीं है। (इसमें कोई भी रेज़र कोड नहीं है जिसे आप डिफ़ॉल्ट रूप से एन्कोड नहीं करेंगे)

php - Is regex a good way to test a url -

I am trying to test the validity of the url entered with php5 Thought, but assuming that it works correctly all the time, it only considers the problem of URL as syntactically valid. It does not tell me anything about URL correcting or working If possible, I am trying to find another solution to do either, or to find 2 different solutions for this What's better for you? If there is a way to go to Rizbox, what tests have been done for the URL? Instead of breaking my head on a rijks (url very is complex), I use the bus, and then use the URL, if (filter_var ($ url, FILTER_VALIDATE_URL)! == incorrect) {$ ch = curl_init ($ url) Curl_setopt ($ CH, CURLOPT_HEADER, true); Curl_setopt Curl_getinfo ($ CH, CURLINFO_HTTP_CODE); curl_close ($ ch); if ($ status> = 200 & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp;

c++ - Inclusion problem -

मेरे पास इसमें एक समावेश पैटर्न है: / * * Class1.h * / #ifndef CLASS1_H_ #define CLASS1_H_ #include "Class2.h" नामस्थान कक्षा 1_नामस्थान {वर्ग वर्ग 1 {क्लास 2 * क्लास 2 एपीटर; शून्य वर्ग 1_मम्बर () {(* क्लास 2_पीट्रर)। क्लॉस 2_मैथ (); }}; } #endif / * CLASS1_H_ * / / * * Class2.h * / #ifndef CLASS2_H_ #define CLASS2_H_ # शामिल "कक्षा 1 एच" कक्षा कक्षा 2 {क्लास 1_नामस्थान :: क्लास 1 कक्षा 2_डेटा; सार्वजनिक: शून्य वर्ग 2_म्यथा () {}; }; #endif / * CLASS2_H_ * / / * * main.cpp * / #Include "Class1.h" एंट मुख्य () {वापसी 0; } हालांकि, यह त्रुटि की ओर जाता है "'वर्ग 1_नामस्थान' एक प्रकार का नाम नहीं है।" क्या यह त्रुटि मेरे इनवर्न्स के आदेश के कारण होती है? कुछ संभावित समाधान क्या हैं? मैं अपनी समस्या को सुलझाने के बारे में आगे की घोषणाओं के बारे में संदिग्ध हूं। कक्षा 1 को कक्षा 2 को शामिल करने की आवश्यकता नहीं है। / P> जब आपके पास परस्पर निर्भरता है (जो आप नहीं करते - आप सिर्फ 2 में 1 शामिल नहीं कर सकते हैं), तो आप आम ...

excel 2007 vba Application.Dialogs(xlDialogPrint).Show crashes if user chooses print preview -

In Excel 2007, there is a button that triggers a macro, which selects several sheets and the application Sends to Dialogues (xlDialogPrint) .how. Some other rows, as a part of choosing some sheets, are password protected macros and look like insecure ING etc. It is ok to print and cancel, except when users click on the 'print preview' button. The printer dialog box shows this printer dialog fine, but no matter if they press the print or It crashes. It seems that the whole macro has to run a second time and it crashes because the expected value and settings are not as normal when it runs through the first time. Any way to use the print preview dialog content or to print, when the print preview application is launched through the printer dialog. Dialog (xlDialogPrint). By the way? I have tried to change the changing parameters from application.Dialogs (xlDialogPrint). Show ,,,, wrong application Dialog (xlDialogPrint). Arg6: = False but they are not working; I h...

case sensitive - mysql search for 'No.' not 'no.' or 'no'; -

Is there any way to use mysql like '% number%', the reason being case sensitive I can make; Try this: SELECT * FROM

c++ - system call to copy files -

How can I create a system call on C ++ which copies one file to another file? You can use the function #include & lt ; Cstdlib & gt; ... std :: system ("cp to.txt to.txt");

silverlight - Get the Windows Phone 7 Application Title from Code -

I want to use the title value stored in my WMAppManifest.xml file with my ViewModel code. This is the same application title, which is set up through project properties. Is there a way to use it with code using something like app.corrent? See WP7DataCollector.GetAppAttribute () GetAppAttribute ("title") will do this. /// & lt; Summary & gt; /// Windows Phone App Manifest App attaches a feature from the aliases /// & lt; / Summary & gt; /// & lt; Param name = "attributeName" & gt; Attribute name & lt; / Param & gt; /// & lt; Returns & gt; Attribute Value & lt; / Returns & gt; Private Static String GetAppAttribute (string attribute name) {string appManifestName = "WMAppManifest.xml"; String appNodeName = "app"; Var Settings = New XmlReaderSettings (); Settings.XmlResolver = New XmlXapResolver (); (Using XmlReader rdr = XmlReader.Create (appMinifestName, settings)) {rdr.ReadTesDescendant ...

c# - Scope of Collections used in LINQ Predicates -

I really like it allows me to make all kinds of queries very dynamically. Vector variables can be passed around different objects and they can combine it with those values, which they know about, etc. Since then when I need to use one A hashed collection Bzzt! Crash and burn For example (example / pseudo-code, this may or may not be compiled / run): Safe expression & lt; Funk & lt; MyClass, bool & gt; & Gt; GetWherePredicate () {string [] selectedValues ​​= Request.Form.GetValues ​​("Checkbox 1") ?? New string [0]; HashSet & LT; Integer & gt; SelectIDs = New Hashet & lt; Int & gt; (Selected values.Cast & lt; int & gt; ()); Expression & lt; Func & lt; MyClass, bool & gt; & Gt; Predicate = PredicateBuilder.True & lt; MyClass & gt; (); Predicate = predicate.And (s = & gt; Selected ID. Insertion (s.ID)); Prediction of return; } Recover secure void () {expression & lt; Funk & lt; MyClass, bool ...