Posts

Showing posts from March, 2013

NAT traversal with Java -

I want to connect to the computer, every one of them is behind the NAT router I have read that STUN is only a computer Works behind a NAT router with what is it true? If so, how can I solve that double-net problem? Thank you, Thomas and

c# - Script does not stop while close the browser or click Abort -

I wrote a webcam that when a loop is 3 seconds while doing a web page There are 7000 sites that call ... I parse the data and save it in my DB. Sometimes because the script is loading for a long time, I have finished an expiring time in the browser, but in the background I am continuing to see my database. Can I stop it? It is now possible that I stop the webserver. Thank you and best regards. Your web page is shutting down the server-side process, ending your browser or turning it off Do not stop. It seems to me that there is a wrong approach like a web page to control it, and you should see applications connected to a WinForms / WPF app. It will have ways to work with ASP.Net, but they will not be easy. I think you have just chosen the wrong technique.

objective c - GetBodyCount() always returning 0 in Box2d? -

I am using the cocos2d-iphone + Box2d engine, to make my body Box2d is a simple call: B2 Body * Credabody = World-> CreateBody (and Credboedy Def); Then I am printing new incremental body count variables: CCLOG (@ "There are% 0.0f bodies in the world.", The world - & gt; GetBodyCount ()); However, GetBodyCount () always 0 returns? I know that the body count count has increased, when I debug and am moving into CreateBody (..) m_BodyCount , and my inspector returns 1 I can not understand how world-> GetBodyCount () is just a return m_BodyCount is going to be unsuccessful and can return 0 ? Hope someone can help! Cheers. "Text"> what GetBodyCount () is returning an int? If so, then you should use% d in the format string.

winforms - how to import .xml file to database -

Hello I want to import my .xml file into a SQL Server database for windows application in asp.net 3.5 c # . this can help you this code snippet can be helpful Dataset Report Data = New Dataset (); ReportData.ReadXml (Server.MapPath ("report.xml")); SqlConnection connection = new SqlConnection ("Connection STRING"); SqlBulkCopy SBC = new SqlBulkCopy (connection); Sbc.DestinationTableName = "report_table"; // If your DB name does not match the name of your XML element 100% // then destination DB calls related to Source XML Elements (the first Ultimate) with sbc.ColumnMappings.Add ("Campaign", "Campaign_ID") ; Sbc.ColumnMappings.Add ("cost", "cost_USD"); Connection.Open (); View

c# - Size of structure -

मार्शल। आकार ओफ़ (टाइपफ (माइक्रस्ट्रक्ट) का उपयोग कर संरचना का आकार प्राप्त करना संभव है )); क्या संरचना के एक हिस्से का आकार प्राप्त करना संभव है (उदाहरण के लिए मैं एक संरचना का अंतिम क्षेत्र कार्य करने के लिए पास करता हूं और यह पिछले क्षेत्रों के आकारों की राशि देता है)? जैसा कि मैंने समझ लिया है कि प्रतिबिंब का उपयोग करना संभव है? [स्ट्रक्चर लेआउट (लेआउटकिंड। एक्स्प्लिक्ट)] सार्वजनिक स्ट्रिंग कुछ स्ट्रीट {[फील्ड ऑफसेट (0)] सार्वजनिक बाइट बी 1; [फील्ड ऑफसेट (3)] सार्वजनिक बाइट बी 2; [फील्ड ऑफसेट (7)] सार्वजनिक आईआईटी I1; [फील्ड ऑफसेट (12)] सार्वजनिक आईटी i2; } क्लास प्रोग्राम {स्टैटिक फील्डऑफसेट ऍट्रिब्यूट GetFieldOffset (स्ट्रिंग फ़ील्डनाम) {रिटर्न (फ़ील्ड ऑफ़सेट एट्रिब्यूट) टाइपफ (कुछ स्ट्रीट) .GetField (fieldName) .GetCustomAttributes (typeof (FieldOffsetAttribute), गलत) [0]; } स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {var someStruct = नया SomeStruct {b1 = 1, b2 = 2, i1 = 3, i2 = 4}; कंसोल.प्रकाश रेखा ("फ़ील्ड बी 1 ऑफसेट: {0}", GetFieldOffset ("b1"

regex - Find string by regular expression -

I need a regular expression to remove some stars. The search might be like the string: ANY_STRING (string1) This string is searching for ANY_STRING (string2) string 2 (string1) This string is searching for string 1 (string 2), string 2 Anyone looking for ideas? Thank you. Replace all new lines with space, then split the string with separator ANY_STRING .

.net - Mixing VB.net code with c# code -

I have a vb.net solution and I would like to add a new DLL files written in C # and use functionality Do Dll, in the code written in vb.net. I used many of it and it's working fine, but it's a clever thing to mess with vb.net code like I want and What are the dangers of what I am doing? Thank you very much for the help. Your DLL is not a C # DLL, it's a .NET DLL. Once compiled, you have IL - it does not matter which language it came from, there should not be any problem, unless you get into a strange edge case where the DLL interface contains something like this Which is not supported by Visual Basic. But this would be a great case. General Language Specification, or CLS, defines a subset of .NET attributes that should be supported by a .NET language, and if your DLL is compatible with CLS, then you have no problem with it If you are confused about the difference between CLS, CTS, CLR etc, then I found it very useful, although this is primarily a C # book.

c# - Aggregate roots. How far does the rabbit hole go -

I am trying to use the repository pattern for my current project and I currently try to model the process Find the domain and total roots in I have read the 'Cascading Delay' rule, which states that if a member is to be removed, when the root is removed, then it should not be part of the root. The police incident will be used as an example: - Event (Gross Route) - It may include investigating officers, notes made by each officer, including the suspects along with those dates. Who had been met Was the CCTV footage received for the incident? CCTV can be seen every time and who? It appears that copies made with CCTV can be very large at this event, because it appears that everything is hanging on that incident. My question is two times, how much is the management of the gross root and roots in the roots should be a good idea? This may not be a good example because you probably can not remove anything like a police incident, but I hope it will better describe my que

jsp - JQuery Integration with JavaEE -

I am able to use Jquery with asp.net because I know where to leave the JQuery library but I I am trying to integrate JQuery with Java Web applications using JSP, Servlets, etc. This seems like a trivial question, but for some reason I am unable to find out where to leave the jQuery Javascript file. Place it under your web structure (i.e.) webroot / Static / scripts / jquery / jquery.js then you can get: The web structure is arbitrary ( WEB-INF is expected for the directory) I hope this will help you.

java - Getting hold of FastInfoset readers and writers -

JDK 1.6 includes the ability to use FastInfoSet Web Services through the JADAS API. Their implementation is deeply hidden within com.sun.xml.internal , in any sensible Java developer name designed to keep the fear of God (like com.sun. Xml.internal .fastinfoset.stax.StAXDocumentParser (which implements XMLStreamReader ) and com.sun.xml.internal.fastinfoset.stax.StAXDocumentSerializer (which implements XMLStreamWriter ). I understand that the use of these Fast Infosat implementations is part of the internal JX-WS content negotiation logic, and So the public did not reach the API. However, I want to make it Does anyone know that this facility is available, possibly through the standard, the obvious use of Fast Infosat implementation, their public STAX interface By using, and through a public factory class, STAX factories? and appears. > P> I eclipse it Drb "is found using the" use Jwadok does not include "section.

electronics - Programming smart grid -

I'm curious about programming against smart grid / electrical sensors etc., where I want to monitor the use of my electricity I am Can you give some starting points about the interface with electrical sensors, whether programming language is required, library etc.? Thanks

testing - Do I have to run make/make install to test each change to a Perl distribution file? -

Do I have to set create and every time Is there a .pm change file? I'm testing a ton and it's getting cumbersome. This module depends on setup, but I use it under standard makemaker, "test" a "if any file has been modified, when you are developing interval module" test "There is only one command, until you complete it.

Error Messages in R after a for loop -

It's a bit of a shot in the dark, but I have a script that I expect to do right However, at the very end of the script I get an error like this: error [& lt; - data.frame (`* * tmp *`, "label", value = c (1l, 0l)): there are 2 rows in the replacement, 0 in the data one answer In terms of, I am looking for general tips on how to track such errors R, best practice to use Loops and double checking that he "made it" Also ideas, suggestions, or previous experiences that could delete or notify an error message like this? I have already added my comments about debugging practices but you have shown specific About the message: This means that you want to write 2 rows in some datasets which have 0 rows. Something like this: x

android - Loading an Alert Box from a Thread when the activity has gone away -

I have a comment activity that loads a thread and sends some data to a server; After pressing the deposit button, the activity ends immediately. Then the user makes other items free of charge in my application. When someone replies to a alert card, then the answer to the server is the answer. The problem is that since the initial reference has been deleted, my app crashes. I tried getApplicationContext () but still get exception. Put your network stuff in one, then show instead of a dialog.

asp.net authorization -

In my asp.net application, I have an asmx web service which it has in its directory for this ws I Under 6.0 the basic authentication is set and the separate web for that folder. Added config, with the following nodes: & lt; System.web & gt; & Lt; Authority & gt; & Lt; Allow users = "domain \ username" / & gt; & Lt; Deny users = "*" /> & Lt; / Authorization & gt; & Lt; /system.web> Error messages with this type of settings 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials and authentication methods on the web server given to you. Contact the web server administrator for additional help. When webmath is implemented with SOAPUI or browser, if I deny the node, then any valid user in the domain can get a web service response. Any suggestions on how to make it work for a single domain user? Perhaps I should men

messaging - Apache Camel producers and consumers -

Image
I have difficulties wrapping my head around the concept. I hear that I am trying to implement the endpoint on a TCP port for incoming messages in a proprietary format, which will then change the message and carry the camel on forwarding and routing. . Did I have correctly understood that the creator is responsible for sending the message, endpoint and consumer get them from that endpoint? While studying the interface, I could not understand the message flow between those items, especially the consumer part consumer defines only start () And stop () methods ... implementation while setting a test on a skeleton, apply camel to the productive object createProducer ( ) Endpoint and process () at Can someone tell me in the right direction? It is important to remember that endpoint , element either a camel's end root created by / code> (i.e. Endpoint Factory). If you enter component at the beginning of a root, then there should be an implementa

cakephp - How can I line up radio buttons horizontally rather than vertically? -

I'm trying to find a way to line horizontally instead of vertically for buttons . I 'div' = & gt; Seeing. 'Class_name' $ option also between $ option ['' '] , $ options [' separator '] and $ options [']] But what are the "cake" ways of doing so? & lt ;? = $ Form-> Input ('product type', array ('type' = & gt; 'radio', 'id' = & gt; $ tire ['product type'] ['id'], 'name' = & gt; $ tire ['Product type'] ['id'], 'option' => array (2 => tire maker ', 7 =>' rim manufacturers'),)) ;? & Gt; of equivalent & lt; Label & gt; Product type & lt; / Label & gt; & Lt; Div style = "padding-top: 5px;" & Gt; & Lt; Input type = "radio" name = "data [creator] [product_type_id]" value = "& lt;? = $ Tire ['productive type'] ['id'

c# - What is returned when Distinct is called with a custom comparer? -

यदि इस तरह से विजेट का एक वर्ग है: सार्वजनिक वर्ग विजेट {सार्वजनिक डबल मूल्य { प्राप्त; सेट; } सार्वजनिक स्ट्रिंग प्रकार {get; सेट; } सार्वजनिक int आईडी {प्राप्त करें; सेट; } सार्वजनिक स्ट्रिंग नाम {get; सेट; }} और उनमें से एक सूची बनाएं: सूची & lt; विजेट & gt; विजेट = नई सूची & amp; विजेट & gt; नया विजेट {आईडी = 1, नाम = "वन", मूल्य = 3.00, प्रकार = "गोया"}, नया विजेट {आईडी = 2, नाम = "दो", मूल्य = 5.00, प्रकार = "खस्ता"}, नया विजेट {आईडी = 2, नाम = "तीन", मूल्य = 3.00, प्रकार = "हार्ड"}, नया विजेट {आईडी = 2, नाम = "चार", मूल्य = 3.00, प्रकार = "चॉइ"}, नया विजेट { आईडी = 2, नाम = "पांच", मूल्य = 2.50, प्रकार = "गोया"}}; और फिर मैं IEnumerable को बुलाता हूं। एक कस्टम तुलनार के साथ ऐसा मानें: IEqualityComparer & lt; विजेट & gt; WidgetComparer = नई लेम्डा कॉम्पैरर & lt; विजेट & gt; ((मद 1, आइटम 2) = & gt; आइटम 1। मूल्य == आइटम 2। मूल्य

grails - What makes nimble better than shiro? -

What makes a better choice than Shiro? I am trying to make decisions between nimble and shirk. I am still curious to a new village project which makes better choices. I am currently working with nimble and this is that I have found so far: < / P> Unless you are planning to use a lot of SSO / Social Connectors (Facebook etc.), just use your own head to make your roll easier. Of course, if you are not worried about serious problems allowing serious levels, huge powers May include say go for it. One thing I want that someone told me: Nimble uses the "most approvable" scheme if a user is a member of a group in which access to a resource (i.e. the controller / action combo) You can not remove that permission from the user only. If you want tight control over your app, then there may be some issues with it. Another annoying thing about nimble is that the documentation is somewhat more distant. Good luck!

subdomain - CSS Images and Cookies -

I have set up a sub-domain on my server that works on CSS and images (to avoid cookies) . The page loads for the first time, everything is fine. For the second time however, I see that CSS and images have cookies in it Edit: The solution found, the following text clarifies this issue. The cookie requests were blocked on my static subdomain after banning Google Analytics on my main domain. Image, CSS, etc.) It is difficult to know which HTTP server you are using, etc. The best way is to store session IDs in PHP (by default) cookie IDPPSESSID, for example, to know how to create cookies. If you are requesting a new HTTP (without sending PHPSESSID in your initial request) and it is returning a PHPSESSID, this would mean that PHP is actually a criminal, since I suspect that you have images and images through PHP script Retrieving CSS files, starting a new session, will show that the PHP session is automatically configured to start the session. Auto_start PHP Configuration Varia

c# - Regular Expression Named Groups: Good or Bad? -

How can I group together names in C # using regular expressions and is this a good practice? Thanks in advance. Give the group a tag name: (? & Lt ; TagName & gt;. *) I fully feel that this is a good practice to note what happens when you change the regular expression, if you want to drag the data If you use indexed, then the order of these groups can be changed. By giving them names, you are actually specifying the data that you think is in the group, so it is also a form of self-documentation.

logging - How can I access the Rails logger from an initializer? -

After the advice of , I set my background process to the scheduler. Was placed in the initiator named RB. However, I have had a hard time getting the newly-processed procedures to log in to log in to the rail. Is there an easy way to access the same logs primarily to access the train's default logger methods (logger.info, etc.)? RAILS_DEFAULT_LOGGER.info "abc"

cocoa - NSTimer within NSThread Memory grows? -

I am using a timer within a thread, I am currently integrating the timer, however, when I see tool I see that the storage grows fast, I have no leak. I'm sure NSThread is causing the development? . I'm stopping the existing timer before running a new one and I'm releasing everything in my stop timer, but it's not sure why the memory still increases? - (zero) start timer {[view addSubview: timerBackground]; Timerthread = [[nastat alicock] initWithTarget: timer selector: @selector (startTimerThread) object: zero]; // Create a new thread [Start TimerStread]; // Start Thread / // Thread starts by sending this message - (Zero) Startup TieBrade {NSAITOriyPipal * Timer NSP = = [[NSAUTOriPipul Alok] IIT]; NSRunLoop * runLoop = [NSRunLoop currentRunLoop]; IsTimerRunning = Yes; NsTimer = [NSTimer scheduled timer with timer: 1.0 target: auto selector: @sillector (starttime :) user ink: zero repeats: yes]; [Run loop run]; [Timer Anspul release]; } - (zero) start time: (NSTim

ispell in Emacs LaTeX mode -

जब मैं एएमएक्स बफर पर लाएक्सएक्स मोड में एमएक्स कमांड ispell-buffer चलाता हूँ, आईपेल गणित अभिव्यक्तियों के अंदर वर्तनी की जांच भी करता है। मुझे यह बहुत अक्षम करना चाहिए क्या ऐसा करने का एक आसान तरीका है? मैंने detex के बारे में पढ़ा है, लेकिन detex को इमाक्स में एकीकृत नहीं लगता है। यदि आप लेटेक्सिसम (जैसे। \ [... \], समीकरण परिवेश, & amp; c) का प्रयोग कर रहे हैं, तो इसे ऐसा नहीं करना चाहिए, गणित मोड को प्रारंभ करने के लिए। ispell-tex-skip-alists की सामग्री की जांच करें; सीएफ किस प्रकार की वस्तु होनी चाहिए। आप $ $ $ $ $ $ .. $ $ का इस्तेमाल कर सकते हैं, जो कि आईएसपीएल-टेक-स्किप-अलिस्टिस्ट्स का प्रयोग करते हुए गणित को चिह्नित करने के लिए इस्तेमाल किया जा सकता है, लेकिन उन्हें चेतावनी देने से सावधान रहें ... पोस्टस्क्रिप्ट ispell-parser चर का मान भी जांचें: यह Tex , अन्यथा आइसपेल $ ... $ और $$ ... $$ क्षेत्रों के लिए नहीं दिखेगा।

What are C++ manipulators? -

What are C ++ manipulators? C ++ defines many types of manipulators, but what are they? What do they do As a result of the first "c ++ manipulator" search for Google returns, it is actually a The function that passes the stream, then the behavior of the stream changes.

c++ - error LNK2019: unresolved external symbol -

OK, so I'm having trouble understanding the problem in my code. I have a lot of code, I am going to post relevant parts which I am messing up while compiling. I have the following function inside a class and it will compile and, as long as I do not call the function "CalculateProbabilityResults", it will run fine and runs the 7th line of code inside it. I have "de-commented" this line of code in my program so that you can find it easier, I am pretty sure that I need the right instructions, because the function is compiled properly without being called, So that the problem can not be? I know that some naming notation needs some help, so please stand by me. Thanks in advance for the help guys. int SQLServer :: CalculabilityProbabilityResults (int profile, int frame, int time-period, int-time window shape) {ofstream ResultFile; StringStream SearchFilename; Stringstream outputName; Of vector & lt; Vector & lt; Integer & gt; & Gt; TimeFrameItem

asp.net mvc - Where have the Mvc Code behind files gone? -

I do not see a codehhind file in my MVC 2 (RC), have they been deliberately removed? If you had MVC 1 installed appropriately then the codebehind files will already run. They are sometimes considered harmful because they are likely to violate the MVC pattern. CodeBehind is still possible, you still have to add them to the hand.

deployment - FAIL - Application at context path /Hello could not be started -

I am trying to install a new web application in Tomcat 6.0, but whenever I click on the Start button, I repeatedly failed - application / greetings can not be started on the reference path . When the other deployed application is running fine, whenever I click on the start button. But why not this app? Web-XML: & lt; Web-App xmlns = "http: //java.sun Com / xml / ns / j2ee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schema location = "http: //java.sun.com/xml/ns/j2ee http: //java.sun.com/xml/ns/j2ee/web-app_2_4.xsd "version =" 2.4 "& gt; & Lt; Servlet & gt; & Lt; Servlet-name & gt; J_security_check & lt; / Servlet-name & gt; & Lt; Servlet category & gt; EmailHander & lt; / Servlet category & gt; & Lt; / Servlet & gt; & Lt; Login to- config & gt; & Lt; Auth-Method & gt; Form & lt; / Auth-method & gt; & Lt; Form login-config & gt; &

.net - How to run the same testmethods while only changing the dependencies? -

I have 5 testmethods that test the functionality of PasswordManager object. I use a test engine built on Visual Studio 2008. The manager can use two dependencies: an XMLStorageManager or a DbStorageManager. Dependency is set in the manufacturer of PasswordManager What type of storage manager can I use? (I know, I know these units are not tested ...) I'm not an MSTist user, but you probably have some options. Normally I use a normal or parametric stability with NUnit, but I'm not sure whether MSTE has the same capabilities. In light of this, here's how I will do it with NUINT, through which any unit should be reproducible using the test framework. Step: Define Create an estostate method that includes the CrystAst Manager () which gives an isorriage manager (or which Two dependencies apply) The subclass provides twice the implementation of CreateStorageManager () and gives the concrete type that you want to use to run the test. Here is the code for the s

c# - Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154 -

I am using DirectShowLib and SampleGrabber to capture the video frame of an AVI file. I'm completing this using Graph Builder and two filters. Everything was working fine, I was able to start the graph and filter. I have some video information like dimensions, frame rate e.t.c. Added code to get. For this, I used for IMDATit but when I try to start it: type t = Type.GetTypeFromCLSID (New Guid ("65BD0710-24D2-4ff7- 9324-ED2E5D3ABAFA" )); IMD Adidit MediaDet = (IMD Adidate) Activator BuildInternet (T); Activator.CreateInstance (t) Throw an Exception: Recovering a COM class factory for component with CLSID {65BD0710 -24D2-4FF7- 9324-ED2E5D3ABAFA} Failed due to the following error: 80040154. I think problem filters and graph builders with its build are starting fine. Any person has any ideas, or is there any other API, which I can use to collect info like AVI file like Dimensions, Frame Rate, Video Length? I think that you have guessed the guizipid. It i

Creating an object based on the state of another object in Java -

Let's say that you have a name that is called a blast where it can be an example of it without any other information There is no point in class example constructor is not made public. Is it better to do this: // Both classes are in the same package explosion; Collision c = New collision () // Do some stuff with collision e = c.createExplosion () Or it is better to blast for a static method for example and As a logic in a collision object near you: Explosion and collision c = new collision () // Some stuff with collision e = explosion. Secure Explosion (c) When you are the author of both classes. Why is the consignor not public? It seems to me wiser because there is a manufacturer for the explosion, which takes a collision context as a parameter. In this way you may have: Explode e; Collision c = new collision (); // Some things with collision E = new explosions (C);

mod rewrite - mod_rewrite precedence -

Assume that I want to support twitter like URL where: twitter.com/username Code> twitter.com/user_name.php?user=username I have the following revised rule ^ (. *) $ User_name.php? User = $ 1 And it works fine but the problem is that everything including twitter.com/index.php , that means user_name. Php will be redirected to the exception or predecessor so that the "real file" is not rewritten? I tried to add a clear rule for index.php before and after that, but it does not seem to be effective. You must add RewriteCond for it < Code> RewriteCond% {REQUEST_URI}! -f [or] RewriteCond% {REQUEST_URI} for # existing files! -d # RewriteRule for existing directory ^ (. *) $ User_name.php? User = $ 1

css - Remove header & footer from published Google Docs Spreadsheet -

I got a Javascript solution to delete the gridlines on Google Docs spreadsheets (using "Download as HTML" and more Then javascript in the web address bar): Great works! Jquery: javascript: var v = "none", e = "defaultView", o = "border", m = "color", w = function (a, b) {if (document [ E]] {if (document [e] .getcomputedStyle (a, null) [o + b + m] == "rgb (204, 204, 204)") a.style [o + b] = v} and if (A.currentStyle [o + b + m] == "# ccc") a.style [o + b] = "none"}, q = function (a) {a = window.document w (c, "left" "); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c, "right"); W (c; c, "below"); W (c, "top")}}; Q ("td"); Q ("table"); Is it possible to make a comparative JavaScript to remove the header and footer of the "

ruby on rails - Couldn't create database, undefined method `quote_ident'? -

rake db: create मुझे निम्न त्रुटि मिलती है: def PGconn.quote_ident (name)%> ("# {Name}") config / initializers / new_rails_defaults.rb को समस्या हल करना चाहिए, लेकिन मुझे अभी भी त्रुटि मिल रही है! कोई सुझाव? धन्यवाद यहां त्रुटि देखें: समाधान जोड़ने के लिए है: def PGconn.quote_ident (name)% ("# {name}") सक्रिय_रेकॉर्ड / connection_adapters / postgresql_adapter.rb

Command line progress bar in PHP -

I am currently trying to add a progress bar in a command line script and I have tried various solutions ( Including Zend and Console_ProgressBar). The problem that is similar to both of them is that the progress bar does not stick under the window, because during the script, new lines and other information are output. Is there any way to keep progress under the bar terminal, but still the script is running, while being able to produce other information? [edit] I thought it: Instead of the output of STDOUT, I'm actually holding the output in one variable, Erase with echo chr (27). '[2J'] and then add the output to the variable STDOUT and my progress bar after that. Hope this makes sense :) < & lt ;? Php / * Copyright C) 2010, dealnews.com, Inc. All rights reserved and binary forms are redistributed and used with modification, with or without modification, that the following conditions have been fulfilled: redistribution of source code above to mai

c - g_strduping a char array member element -

टाइपिंगफ़ाइल संरचना {char name [10]; } ए; एक * inst = get_instance_of_A (); Char * str = g_strdup (inst- & gt; नाम); अंतिम पंक्ति संकलन नहीं करती है मैंने भी भाग्य के साथ & amp; (inst-> नाम) की कोशिश की थी मुझे जो त्रुटि मिलती है वह है: त्रुटि: चार संरचना प्रकार नहीं हैं। मैं समझता हूँ कि चार [] और चार * अलग-अलग प्रकार भिन्न हैं लेकिन g_strdup को सी स्ट्रिंग की प्रारंभिक स्थिति नहीं लेनी चाहिए और इसे धोखा देना चाहिए? यदि मैं निम्नलिखित करता हूं तो यह काम करता है: चार अस्थायी [10]; strncpy (अस्थायी, inst- & gt; नाम, 9); Char * str = g_strdup (temp); मैं एक स्थानीय चार सरणी प्रतिलिपि बनाने के बिना क्या करने की कोशिश कर रहा हूं? मुझे लगता है कि मैं मुट्ठी परिदृश्य में सही ढंग से नहीं गुजर रहा हूं क्योंकि दोनों मामलों में जी_स्ट्रूडअप को चार सरणी पारित किया जा रहा है। मुझे नहीं लगता कि आपकी समस्या झूठ है जहां आपको लगता है कि यह ऐसा करता है। gchar और char सभी उद्देश्यों और प्रयोजनों के लिए हैं उदाहरण के लिए, यह कोड मेरे लिए ठीक काम करता है: #incl

Jquery, how: click anywhere outside of the div, the div fades out -

How do I create it in Jquery if I have a div, inside it in different elements, a selection, a search input , Etc., when I click outside the div, on the page, div fade, but I can click on selection and type in the search input and it can not be faded? Any help is appreciated. The code duck response is incomplete because you should not If you click on DIV itself (only outside), then fade out then say that your DIV which should be faded, has an ID of "menu". jQuery ("# ​​menu"). Click (function () {return false;}); JQuery (document) .one ("click", function () {jQuery ("# ​​menu"). FadeOut ();}); The use of one is more concise than tied / unbound. Apart from this, names of events are not really necessary here if you use a , because there is no need to explicitly attach a particular click handler to the document is not. return false is simply saying "stop the document from bubbling this incident."

java - red5 v0.9: convert from org.red5.io.utils.ObjectMap to a class -

मैं red5 v0.9 नवीनतम svn संस्करण का उपयोग कर रहा हूँ। फ़ंक्शन appConnect ( Iconnection conn, Object [] params) ऑब्जेक्टमैप प्रकार की एक सरणी प्रदान करता है। मैं Paramams [0] को कनेक्ट पारेमस वर्ग में परिवर्तित करना चाहूंगा जो मैंने बनाया है: सार्वजनिक वर्ग कनेक्टपरम ऑब्जेक्ट का विस्तार (सार्वजनिक डबल टूलकिटवर्सन; सार्वजनिक स्ट्रिंग खेलनाम; सार्वजनिक पूर्णांक उपयोगकर्ता आईडी; सार्वजनिक पूर्णांक चुनौती; } जब मैं निम्न कमांड का उपयोग करके कनवर्ट करने का प्रयास करता हूं: ConnectParams param = (ConnectParams) पैरामीटर [0]; मुझे निम्न त्रुटि मिलती है: java.lang.ClassCastException: org.red5.io.utils.ObjectMap को com.xpogames.ConnectParams में डाला नहीं जा सकता। फ्लैश पक्ष पर मेरे पास एक ही परिभाषा है उसी श्रेणी के और मैं इसे पैरामीटर के रूप में भेज रहा हूं। लाल 5 जावा पर, अगर मैं पैरामीटर प्रिंट करता हूँ [0] .toString () मैं कनेक्टपारम्स क्लास से सभी चीजों और मानों को देखता हूं जो मैंने भेजा है, जिसका अर्थ है कि केवल एक चीज जो मुझे याद आ रही है वह इस ऑब्जेक्टमैप को

sql - What sort of database design would I need to use in case I wanted users to save tags, and be able to call already used tags? -

I am trying to implement a feature similar to the tag feature of StackOverflow. This user can create a new tag or type by dragging a list of similar tags already created. This is a great feature on this site and I am sad that most sites have nothing like this. It's both strong, and yet very flexible and best: driven by the community. Then I have these two applause: Company ID Email Name Company Size Country Opener Industry Industry Industry ID Description Every time When a user writes a new tag, I want to create one with a unique ID, and I'm also able to find existing tags. Does this database design allow easy and efficient implementation of this feature? If not, please give some guidance. Although Although there is no great information to go, what you have listed should be ok . ('Description' field 'tag' in industry table, etc.). As you can imagine, all the real work is done outside of SQL, where you will need .. (potential) new tags

memcached - Problems compiling memcached_functions_mysql -

I am trying to compile the package memcached_functions_mysql-1.1.tag.gz when I run on / usr / lib / Libmemcached is downloaded and installed ./configure --with-mysql = / home / y / bin / mysql_config --libdir = / home / y / lib / mysql / - cum-libmemcached = / usr / lib / memcached.so. 2.0.0 I get an error in the memcached_functions_mysql directory: Check for message for libmemcached> = 0.17 ... Configure: Error: libmemcached not found I have both - Libmemcached and also tried to use by But still I am not able to compile. I had a single problem and ultimately put it I went. libmemcached is installed here: / usr / local Config parameter must be: - with- libmemcached = / Usr / local / / pre>

python - How to organize an app-engine application -

I want to create a directory structure like the following: How do I manage accounts that \ accounts \ and \ game \ Respectfully I have seen that all the app engine examples have all the arguments on the main use that handle all the URLs. app \ account \ \ account.py \ game \ \ game.py \ static \ css \ js \ images \ app.yaml \ main.py < P> I tried app.yaml in the following but it did not work Application: Mefirst version: 1 runtime: python API_version: 1 handler: - url: / static_dir: static-url: / Account Script: account.py - url:. See a framework for * Script: main.py

content management system - Choosing a Portal / CMS software for developing multi brand websites? -

We overhaul a multi-brand website built using a custom-built Java MVC framework to enable Web 2.0 features In the initial stage of doing so We are looking at the built-in features: i18n, sso, content search and indexing, personalization, mashup support, ajax support, rich media content storage and management support, search engine optimization, bookmarkable urls, support for social networking sites, templates Support for page composition and decoration using. A combination of these features is supported by many portals and CMS software Any insights into using any Portal / CMS combination to meet this requirement will be very useful! We are developing the same type, we are using Umbreco, Open Source

how to enable 2 module in joomla php -

I have created 2 modules for joomla when I fix my work with Joomla in one left and right But when I am enabled both websites are not working ... it does not display any website content. Please help me how I can enable 2 more modules. Thank you, Manoj Singhal Yes, you have two modules Can give different positions. Whatever module you are going to enable and then the content of the site is not showing it means that the module is not compatible with Joomla verion. Tell me your module name so that I can help you.

wpf - System.Windows.Application.OnLoadCompleted never reached -

Hello I am trying to handle the incident but it has never been triggered. Instead I see the main window. I tried to attach the event either by xaml or by directly overriding the OnLoadCompleted method of the AdWords class. Is there a frame in your main window? If you read the text (but not the ... method), then it says occurs when the content load navigated by a navigator in the app Has been done I tested with a frame on a form and it is okay to ignite the event.

php - implode warning -

I am going to another server and now I am getting an implode warning "passed invalid argument", working on script Was doing the old server, did anyone know what I'm doing wrong ??? My code is: $ query = "Search keywords, keyword 1, keyword 2, table from keyword 3"; $ Result = mysql_query ($ query); ($ Line = mysql_fetch_array ($ result)) $ $ [[array keyword] [] = $ line ['keyword']. "$ Line ['keyword1']." ". $ Line ['keyword2']." $ Line ['keywords3'];} $ Arraykeywords = implode ("", $ arraykeywords); $ Arraykeywords = explosion ("/", $ arraykeywords); type ($ arraykeywords); $ Arraykeywords = array_unique ($ arraykeywords); Foreign currency ($ keywordsarr as $ aacarrworld) {} ​​ thanks in advance I see that $ arraykeywords works on variables that have a population of DB. Most likely, now your DB query results in different results or there are no results at all. Var_dump

django - Is Pinax able to be deployed on gae? -

Is there a chance that Google App Engine can be installed? Know, Pinax is based on the DJENGO, and integrates many applications, it is also suitable for creating a social networking site. It's very useful but I wonder if I can put it on the Google app engine. Thank you, The main issue here is that Django ORM GAE's datastore Not compatible with, but to port using the pinacax. .

delphi - How to use GetSetProp and SetSetProp from TypInfo unit -

I have a set of calculation values ​​that I have to convert to text and then back to a set. I believe that GetSetProp and SetSetProp will be allowed to do this from TypInfo unit, but I do not know how to do this work. How can I use GetSetProp and SetSetProp to accomplish this? type TSomething = (sOne, sTwo, sthree, sFour, s five); TSomethings = Set of TSomething; Var Some: TSomethings; S: string; ... something: = [S, one, three]; S: = GetSetProp (????); Some: = []; // Then use SetSetProp to set some [sOne, sthree] Something: = ???? This resolves your problem.

database - How to retrieve the last autoincremented ID from a SQLite table? -

I have a table message with column ID (primary key, autocorrect) and content (text). I have a table with user name (primary key, text) and hash. A message can be many messages by a recipient (user) and many recipients (user) and recipient (user). I have created a message message with two columns: Message ID (Referring to the message table and the recipient's ID column (pointing to the username column in the user table) This table contains several recipients and messages So, I have this question, it will be created after a new message ID is stored in the database, but I will get this new MessageID How can I just retain a reference to the added message for retrieving? I can always search the database for the last line added, but possibly return a different line in the multithreaded environment ? Edit: As I understand it for SQLite, you can use SELECT last_insert_rowid (), but how do I tell this statement to ADO.NET? My persistence code (message and message DirectX Databas

flex - AdvancedDataGrid problem with programmatically adding a column -

Code> var cols: Array = thisDataGrid.columns; Cols.push (DGC); This Data Grid Column = column; Creates a column, adds it to the columns array, the bot, the previous code line has no effect. This data will be found in this datagrid crawl property ... What could be the problem? I am working with a trial license, and a watermark appears on the Advanced Data Grid. Can this be the problem? Thanks for the help! Marcus I had the same problem and resolved it by ensuring that I add my ADG object to the Active Visual Component. In my case, I had called on this. After updating the AdG.column property (ADD) or Adelament (ADG) It seems that ADG properties will only be updated when "attached" to the ADG active visual component. I have not taken the time to actually see because of this behavior.

python - Google App Engine: Add task to queue from a task -

I need to track data from another website. Because it has spread to 60+ pages, I want to use daily cron jobs to add jobs. This task should then take care of one page and on the basis of some checks, the next page will have to put another example of itself on the queue. Add p>. The request handler class for this job is a way to do this work, "POST / path / to_self http / 1.1" 405 - Or is it not possible to add work to the queue from what work? It is possible to add tasks to the job, I am doing it in my application. It is very useful when you want to move large institutions: one task is a small part of the institutions, then adds it to the queue for the rest of the process until the migration is over. I'm not sure what the problem is in your code. Have you applied the post (self) method to your request handler class? The job posting method is called default.

wysiwyg - Tool / plugin for laying out web page with minimal efforts applied on raw CSS -

The first thing I was struggling while working with raw CSS was to create complex page layouts first. It becomes more complicated with the browser vendors looking in different directions, it can not be changed now. After a lot of efforts I started searching for it: A WYSIWYG editor which will take content and allow me to define the desired layout and generate magical CSS Most of the newest browsers will respect, while keeping in mind also the liquid & amp; The fluid properties of the layout The jQuery plugin, which will take care of the complexity of the content arrangement while taking input for the desired layout. I can not find anything for the first search. I want to know that there is no such WYSIWYG editor there . There are many CSS editors but they do not summarize the raw CSS. Someone should know CSS well and IMHO beats the needs of such editors. Notepad or a regular IDE is quite good For the second point, I came to stackoverflow Now this put me in the pr

c++ - Segmentation fault -

This is probably a silly question, but I can not see what I'm doing wrong here. I have a class: #include & lt; Sys / time.h & gt; # Include & lt; Gsl / gsl_cdf.h & gt; # Include & lt; Gsl / gsl_randist.h & gt; # Include & lt; Semith & gt; #include "randomnumbergenerator.h" class RandomNumberGenerator {gsl_rng * rn; Public: RandomNumberGenerator (); ~ RandomNumberGenerator (); Double uneducated (); Zero Fleet Gossi (Double Road, Double and X, Double and Y); }; Longer current microscosk () {now Straval timeless; Gettimeofday (and now, NULL); Come back now tv_usec; } RandomNumberGenerator :: RandomNumberGenerator () {const gsl_rng_type * T; Gsl_rng_env_setup (); // T = gsl_rng_default; T = GSL_RNG_MT193937; Rn = gsl_rng_alok (t); Gsl_rng_set (rn, currentMicroseconds ()); } Double Random Number Generator :: Benevrett () {GSLRNINIP (RN) back; } Zero RandomNumberGenerator :: bivariateGaussian (Double Road, Double & X, Double & Y) {

configuration - Where does CodeGear Delphi 2009 store settings -

I am running Windows 7 Ultimate (32 bit) and there is a very troubled problem with my Delphi installation. The problem is with "code insights" and with "code template closing", when every time I write something and it wants to complete some code for me (for example I hate it When he completes the condition). The problem is that I can not stop it because I believe that when installed on Windows 7, this is a bug when I close those features, it works once and then it is turned on again , As if this setting can not be written in the file. Does anyone know how the Codegear Delphi 2009 settings / configuration file keeps? Or how can I stop I tried to run it as an administrator in compatibility mode (Vista and XP), but did not try to search for the file, but no luck. In the registry below: HKEY_CURRENT_USER \ Software \ CodeGear \ BDS \ 6.0 also appears in HKEY_LOCAL_MACHINE \ SOFTWARE \ CodeGear \ BDS \ 6.0 but there is no data of interest in it; "post-text&

multithreading - C# Stopping TCP File Transfer -

I'm using TcpListener and TcpClient on the sender side on the Simple TCP File Transfer receiver side. I have 2 options - synchronous or asynchronous If I use synchronization, then I have to put methods of sending / receiving methods in the background, in order to prevent stopping the bacterial thread. Asynchronnous version is without problems ... My question is, how to stop moving file transfer? In the synchronous version I tried to use the BackgroundWorker.CancelAsync () method, and check the Background Walker in each loop illustration. Cancellation family property, but it does not look like this (cancellation is probably not setting the cancellation setting): ( In the asynchronnous version I tried to use the volatile variable indicator and its value in each callback The problem is, when I change it to the Stop () method, and in the callback it also changes with callback, its previous value reads: ( < Div class = "post-text" itemprop = "text">

java - Testing, Mocking framework support for recording annotations (preferrable easymock solution) -

We have developed some code that analyzes annotated methods and adds some runtime behavior I want to test this. I am Currently, I have a hand-coding stab with some comments to establish my test-case. Usually I'm using the joke (currently easymoke) to avoid hand-coding test-doubles (stub or mac). . But I have not got any way to use the joke to explain my test-couple. It's cumbersome because it has a very stupid-dummy source code, which bothers to maintain (reading, writing, and reconstruction tests). Something like this: My Annotation Annual.com = Mock (Mentotation.Class); Record (annoMock.getSupported ()) andReturn (correct). .... annotated (method) .with (annoMock); Does anyone know whether there is a record facility for annotation (for all types of targets, methods, classes, regions, etc.) especially for easy records? If not available for easy cash, then is there an alternative mock-library? I do not have a quick information and the easiest way to do what you

jquery - Add Classes to first level list tags -

Is there a way to add squares to only one level on the li tag? At this time M case looks like this: & lt; Ul & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; / Ul & gt; And this is what gives me & lt; Ul & gt; & Lt; Li class = "levy-a" & gt; & Lt; / Li & gt; & Lt; Li class = "levy-a" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; Li class = "levy-a" & gt; & Lt; / Li & gt; & Lt; / Ul & gt; Thank you for your help in advance. Dom try this: $ ("*: No (li)" gt; ul & gt; li). Add

c++ - view the default functions generated by a compiler? -

Is there a way to see the default functions generated by a compiler (for example, the default copy constructor, default assignment operator) VC ++ 2008 for the class which does not define them? With the compiler, you can see them by passing -st-dump [js @ HOST2 cpp] $ cat main1.cpp struct A { }; [Js @ HOST2 cpp] $ clag ++ - cc 1 -st-dump man 1 cpp typingfaces four * __ baltin__w_list; Structure A {Public: Structure A; Inline A (); Inline A (structure is a const & amp;;); Inline structure A and operator = (structure a const & amp;;); Inline Zero ~ A (); }; [Js @ HOST2 CPP] $ I hope that whatever you have asked. Let's change the code and look again. [js @ HOST2 cpp] $ cat main1.cpp structure M {M (M & M); }; Structure A {Mm; }; [Js @ HOST2 cpp] $ clag ++ - cc 1 -st-dump man 1 cpp typingfaces four * __ baltin_value_list; Structure M {Public: Straight M; M (Structure M & amp;); Inline structure M and operator = (Structure M const & amp;;); Inline

java - min-conflicts Algorithm to Solve N-Queen Proplem -

nQueens समस्या का उपयोग इस एल्गोरिथम को जावा कोड में अनुवाद कैसे करें < कोड> फ़ंक्शन MIN-CONFLICTS (csp, max_steps) एक समाधान या असफलता इनपुट देता है: सीएसपी, एक बाधा संतोष समस्या max_steps, मौजूदा को देने से पहले अनुमति दी गई चरणों की संख्या & lt; - सीपीएस के लिए एक प्रारंभिक असाइनमेंट i = 1 max_steps करना यदि वर्तमान सीएसपी का हल है तो वर्तमान वरीयता प्राप्त करें - - एक बेतरतीब ढंग से चुने गए, विरोधाभासी चर वैरिएबल्स [सीएसपी] वैल्यू & लेफ्टिनेंट; - वी के लिए मान v जो कॉन्फ्लिक्स (कम, वी, वर्तमान, सीएसपी) को कम करता है var = मान वर्तमान वापसी की विफलता में अपने टीए के कार्यालय के घंटे तक जाकर या मदद के लिए अपने प्रोफेसर से पूछकर ।

ruby on rails - What languages do twitter and facebook use? -

I've been using php for the last 6 months and I can do anything with it. But big websites such as Facebook and Twitter can not be used. I want to know what language they use and why they chose that language on PHP Is there a good language to build strong and big websites on Ruby? ? I have seen the video of ROR on the uroutube in the framework of other frameworks and languages, is it really terrible ? Ruby is built on the rail Facebook primarily uses PHP , But it also depends on "C ++, Java, Python and ERRGE" -

where to add the c sharp code in this example to make changes in sharepoint programmatically? -

According to the link given below the program, I am trying to make some changes to SharePoint according to the link below < / P> A second cod snippet in the link below is a quick code. Where do I put this code? Or I do not mention how this code can be used in SharePoint. Can anyone tell me? "post-text" itemprop = "text"> I did not remove any code from the posts you linked, but it seems that the C # code Only one assembly should be compiled and deployed on the SharePoint server. & lt; CustomAction & gt; The element in the Feature XML below the C # code refers to this assembly via the ControlAssembly attribute and the compiled class is ControlClass attribute. If you are optimizing the code in the post and preparing your own project, make sure your assembly and class name are properly referenced in the feature xml file ( controlAssembly < / Code> and ControlClass features). Alternatively, you can download the author, which i

PostgreSQL 8.3 data types: xml vs varchar -

There is XML data type in postgres, I have never used it before, so I want to hear feedback. Dosacides and upsides using regular varchar (or text) columns to store XML The text I will write is XML, well-formed, there is no need to search by UTF-8 (search by XML is slow). This XML is actually ready for PDF PDFs with Apache FOP XML can be dynamically generated from the data found elsewhere (other postgres tables) , It is stored only so that I do not need to generate it twice . Kind Backup # 2 for pre-generated PDF documents. To learn something else? Good practice, performance, maintenance, etc? XML is different from TEXT only logical Firstly, the validity of the input is checked, second, XML is a type of compression operator, so you can call it UNION or DISTINCT < / Code> etc. If you are not searching against it using indexes and want to create additional checks for validity, then use XML securely.

Dynamic GWT Menu -

How do I modify a GWT menu - Some entries are grayed out, according to the status of my application, Can I put a checkmark near? My app has a menu bar at the top - file, edit, view, insert, format, etc. I have several paragraphs, each of which may have a different format when the user clicks on the format, then I want to show a checkmark near the menu menu in the Format menu that matches the format of the currently selected paragraph . Some formats are currently inappropriate for the selected paragraph, so I want to gray them up. The main issue is to update when: (A) when the Format menu button is clicked, or (b) every time my user chooses a new paragraph? I find the option (A) more attractive. But how can I find out this? There is no facility to add event listeners to a menu event. It can be a mouse click that I want, but it can be a mouseover: If the user clicks on the Insert menu, the Insert menu will appear, but If the mouse is moved to the format then the Format menu wil

php - Display posts from x cat and y tag -

What is Mailing Carriage X "and" Tag Y? It is possible to read fairs, it seems that you can do this: query_posts ('tag = bread, baking'); or query_posts ('cat = 2,6,17,38'); ... Is it possible to use both cat and tag together? I am not a wordpress expert, but what I see from seeing that function is that You should be able to use this notation to query against both at the same time. query_posts ('tag = bread, baking & amp; cat = 2,6,17,38');

licensing - Adding License Agreement in RPM package -

Is it possible to add license agreement to this RPM package? When a user installs RPM, the user must be prompted to accept the license agreement. This is a bad idea for both technical and user-interface reasons. Not only because there can be no display during installation, but also because any user can not be run during the installation or for the first time, or the RPM file The removal mechanism can not support any method to display the text or accept the input. Essentially, if you have to do this, then at least the worst way to do is, Ignacio has suggested, which is the sun, and no such restriction If you create an RPM file, then put it into a self-extracting binary, which displays the license, prompts the user and then opens the RPM in the spirit of wasting the user's experience, Will be set Like this is made by the sun .. The correct way to do this course is to include the license field and a file as % doc in which your licensing terms are included, Click-

php - why and where we have to write header cache control? -

What is the meaning of writing these lines of code header ("cache-control : No-cache, sure-modify "); Header ("End: May, 17 May 1983 05:00:00 GMT \ n"); Header ("Last-Modified:" .GMDAT ("D, Dm YH: I: S"). "GMT"); And do we have to write these lines of code? On the page where we deal with dabs or just do a php page? Where do we write these lines of code? On the page on which we dubicate the database or just do any php page? will display the data on any page that you do not want to cache because its content is changing quickly and continuously. If a page is not changing often, then you do not have to disable caching. Because this reduces the performance of your pages and increases the burden on your server. Caching is a good thing if it is necessary only disable it.

Why would number columns' scale and/or precision differ in JDBC from Oracle 10 to 11? -

For our database development we have a complete schema DDL script in one hand, to install scratch, But sequential "delta" scripts are upgraded (each script is recorded as executed or not in the special database table). To test it, we have an ant target which installs an older version, upgrades it and compares it to a newly created schema, to compare the schema to JDBC Metadata And it works very well with Oracle 10. Now we have upgraded to Oracle 11 and have moved from ojdbc14.jar to ojdbc6.jar. The test still runs green on Oracle 10, but we get (two specific examples) on Oracle 11: table & lt; Table X & gt; Column & lt; Column A & gt; & Lt; New schema & gt; In the form of no NUMBER (1,0), but as (& 0) advanced schema & gt; Does not have NUMBER (0,0) Table & lt; Table Y & gt; Column & lt; Column B & gt; As (0, -127) as NUMBER & lt; New schema & gt;, but not NUMBER (0,0) as & lt; Upgraded Schema & gt;

.net - ArgumentException in BindingManagerBase during EndCurrentEdit -

I have a form on which many debitbands have been debited with many properties of objects and the child object. When we call end-mount, it throws the following exception: Logic expression occurred: type 'object' System.DBNull 'to' System.String 'Can not be typed. Now I'm assuming that there are some property dubbs in the object, but browsing through it I can not find it. It can also happen in one of the many child objects. Is there an easy way to determine DBublublim, so can I fix the basic problem? Or could it be due to some other reasons? Find out how to find objects due to this problem. In the call stack, right-click and select View external code. Select the highest item in the call stack, and see the local window. It is databasing from there. You can see what is the value of zero in your control. My case was a combo box that should be an empty string, not selected -1.

C++ Design pattern for Search and Replace -

I have a large paragraph with some special characters% 1,% 2,% 3 What should be a design pattern for changing people who have a fair value and making the last paragraph to know. For example: The following is my fixed paragraph. <1 p> % 1 is a beautiful country, the capital of% 2%,% 1 is the national language% 3. I get value by some source% 1,% 2,% 3 You can set a semi- In order to find string pointers for patterns (both are part of the C Study Library), you must expand the memory block to adjust the replacement (if they are large), then grep ( Look for Unix), or look for some string search like Elgo. You can also see

c++ - The C `clock()` function just returns a zero -

itemprop = "text"> C clock () function just gives me a zero. I tried to use different types, with no improvement ... it is to measure the time with a good way good precision # & lt ;? Time.h & gt; # Include & lt; Stdio.h & gt; Int main () {clock_t start, end; Double cpu_time_used; Four [32]; Start = clock (); Printf ("\ nSleeping 3 seconds ... \ n \ n"); Sleep (3); End = clock (); Cpu_time_used = ((double) (end-of-end)) / ((double) CLOCKS_PER_SEC); Printf ("start =% .20f \ nend =% .20f \ n", start, end); Printf ("delta =% .20f \ n", ((double) (end-start)); Printf ( "Cpu_taim_used =% Kl5f \ n", Cpu_taim_used); Printf ("CLOCKS_PER_SEC =% I \ n \ n", CLOCKS_PER_SEC); Return 0; } 3 seconds Sleeping ... start = 0k00000000000000000000 end = .00000000000000000000 delta = 0.00000000000000000000 cpu_time_used = 0.000000000000000 CLOCKS_PER_SEC = 1000000 platform: Intel 32-bit, RedHat Linux, gcc 3.4.

Relative paths in Ant Property are not working -

I am trying to store a relative path in my AT build file like this: < Previous> & lt; Asset name = "foo" location = "somedir / myfile" relative = "true" /> According to the ant, this is the correct syntax, but when it is running, the ant says: / P> property does not support "relative" attribute I am using Apache ant version 1.7.1 compiled on August 13, 2009 The manual that came with distribution of 1.7.1, relative does not mention property . If you look up, then this is called 1.8.0 RC1. I think these are 1.8.0 new properties of the properties function. Probably marked as relative and basedir as attributes <1.8.0 To report a bug to the ant team, on the other hand if you need a relative path on basedir , then property value Use the code> attribute. I've submitted a bug to - UPDATE I

.net - App unable to connect to share after a period of time -

I have found a .NET app to monitor network shares and periodically loses the connection. The app itself does not send any login information, it runs under current (windows) user. If this happens I can not connect to the network share in Explorer, I have to reboot the machine. In any way, can I get around this very disturbing issue (creative customer) in programmatically .net? Thank you! Chris

Templates .dwt in Dreamweaver -

I have edited my site with front page, where I created some template pages. Each language is / en / master.dwt /fr/master.dwt and therefore a now, when the site is passed under Adobe Dreamweaver It seems that they do not "recognize" I understand that Dreamweaver puts all the templates in a folder Templates , but ... I do not want this to break all my relative paths! Does it show that Dreamweaver uses my template there? If the .dwt file has been moved from the template folder, or if the template folder If the transfer has been moved or its name has been changed, the link will be broken. It is very important to keep the .dwt file in the template folder, where Dreamweaver makes it. I suggest that you make each language as an independent folder in your template folder then < Code> /fr/master.dwt becomes Templates / fr / master.dwt Finally, it makes sense to organize your templates by language To be present inside a template folder.