Posts

Showing posts from May, 2015

asp.net - How to include Session variable in NavigateUrl in hyperlink -

I'm sure I did it before, but can not remember the syntax. How do I include nagivateUrl session sessions in hyperlinks? I have tried to: & lt; Asp: hyperlink id = "lnkMyLink" runat = "server" text = "my link" navigate URL = '& lt;% #' 'http://absoluteURL.org?param= "+ session [" MyPamater Well "]. Toasting ()% & gt; ' & Gt; & lt; / asp: hyperlink & gt; and this: asp: hyperlink id = "lnkMyLink" runat = Navigate to "server" text = "my link" = url = '& lt;% # String.Format ("http://absoluteURL.org?param={0}", session ["myParameterValue"]. ToString ()) %> Gt; & gt; & lt; / asp: HyperLink & gt; Because you have used the data binding format ( & lt;% # ), you need to call the hyperlink .databind () method from your codebehind. / P> To see something like this in your page_load method Required: Protec...

php - Effects of using the wrong image headers for echo file_get_contents('someImageFile.ext') -

It seems that it does not matter which image header I use to exit via php script I have an image file with an unknown extension; .ext Is there any real effect? (Is PHP silently changing it or bypassing format?) What output do you have Expect to get output? The script may be causing an error or the function that you are using is not binary safe, I am guessing from your tags that you are using, but you What are they looking for? / html>

sql - mysql query, two select -

As soon as I apologize because I do not know or are not able to bother at all. How to get the value from the table user_address How to determine the user ID in the second "selection". Select ID, name, age, (choose address from user_address) where user_id =? User.ID ORDER As an addendum that already exists, you can probably To give some meaning meaning, the databases should not depend on the specific sequence of rows. If you have a better way to address after the address, then you can use joining, like: id, name, age , Address can be included in user_address at user.add = user_address.user_id, where address_type = 'home' (adjust the section to do whatever)

yii - Caching smarty view render -

I am working with the Yii framework and using clever visual render. To load a simple XML element I have to work with simple XML_load_file and it can not be cached using the memcache provided by Yii with data caching. So I think that the use of Smarthi's cache instead of caching data can be used here to give anyone any advice on caching finesse pages in the Yii framework, thank you very much! You can try to use. You can define sensible tags for your own.

c# - Finding controls in listboxitem by sender -

I currently have a list box with each item containing the control list (in C # WPF), one of those buttons and What is a progress bar now, what I want to do is: button mybutton = (button) sender; How do I retrieve that control in the same listboxitem as my sender button that I want to retrieve the progress bar? Do I use visualtreehelper? Thank you in advance, Mistake, did you manually listboxitem retemplate ? If so, then I believe that you are using the container (eg grid) to host buttons and progress bar. If so, then I think that till you can not find the progress bar, you can dive the container for the children and the sender in the loop. If it is static, you can also find it using the children's index.

Using div background image as link using jQuery -

I have placed the background image in the logo in a div I want to use it div as a link using jquery // jQuery code $ ( '# Logo') .bund ('click', function () {window.location = "index.php"}); Neither cursor: indicator shows and no link works, thanks gene Be sure to wrap your code in this way: $ (function () {$ ('# logo'). Bind ('click', function) {window.location = "index.php"})}};

Is it possible to check if IE blocked my download with jQuery/JavaScript? -

I'm having some problems with IE, which is showing me the yellow "download blocked" bar for a good reason: Submit the actual file that returns returns, so JavaScript is turned on. I want to show that the user has some additional information if this is the case. Is it possible to check that the browser is actually blocking my downloads? I'm afraid it's not possible :( He's with the browser, you can not control This programatically. I created an vbscript code to disable it from the registry in the old WIN98 days but I think it will no longer work: Sub DisableActiveXWarning () Dim SHL Dim sReg set SHL = CreateObject ("WScript.Shell") sReg = "HKCU Software \ Microsoft \ Windows CurrentVersion \ Internet Settings \ Zones \ 0 \ 1201" If SHL.RegRead (sReg) = 0 then MsgBox "ActiveX Alert is already disabled! ", VbExclam Ation Else SHL.RegWrite sReg, 0, "REG_DWORD" if SHL.RegRead (sReg) = 0 then MsgBox "Activ...

Index counter shared by multiple tables in mysql -

I have two tables, each have the primary ID column key. I have shared two tables for sharing a hosting key Want to For example, when two tables are empty, and counter = 1. When record A is going to be included in Table 1, then its ID will be increased to 1 and Counter 2. When Record B is to be entered in Table 2, its ID will be 2 and the counter will be increased to 3. When the record c is to be re-inserted in Table 1, then its ID3 and similar will be. I am using PHP as an external language. Now I have two options: Place the counter as a single-row single-column table in the database, but every time when I add things to A or B I have to update this counter table. I can keep the counter as a global variable in PHP. But then I need to start the counter with the maximum key of the two tables at the beginning of the apache, which I do not know how to do it. Any suggestions for this? The background is, I want to display a mix of records from both tables of ASC or DESC or...

android - Issue Invoking a context menu when an onClickListener is applied to an activity -

कृपया नीचे दिए गए कोड का नमूना ढूंढें: सार्वजनिक वर्ग एबीसी गतिविधि का उपयोग करता है OnClickListener {निजी सूची दृश्य प्रदर्शन सूची; @Create पर सार्वजनिक शून्य को ओवरराइड करें (बंडल सहेजे गए इन्स्टैंसस्टेट) {सुपर.नक्रेट (सहेजे गए इन्स्टेंसस्टेट); setContentView (R.layout.mainlayout); DisplayList = (ListView) findViewById (R.id.addressbooklistview); AddressbookAdapter = नए कस्टमलिस्टएडेटर (यह, एड्रेसबुकलिस्ट); displayList.setAdapter (addressbookAdapter); registerForContextMenu (displayList); } @ कोरेटेकॉन्टेक्स्ट मेन्यू (संदर्भ मेनू मेनू, दृश्य, संदर्भ मेन्यूइन्फो मेन्यूइन्फ़ो) पर सार्वजनिक शून्य को ओवरराइड करें {लॉग.ई ("", "संदर्भ सम्पर्क मेनू"); } सार्वजनिक शून्य पर क्लिक करें (देखें वी) {Log.e ("," "क्लिक करें का पता चला"); }} मैं लंबे प्रेस पर संदर्भ मेनू का उपयोग करने में सक्षम नहीं हूं। कृपया मुझे इसके लिए कोई समाधान बताएं। मुझे यह समस्या थी मूल रूप से "प्रसंग मेनू दिखाएं" कार्यशीलता काम कर रही थी, लेकिन जब मैंने साम...

flex - Draw a line on top of a column chart -

Apparently, it is not possible to have a chart with many independent horizontal axis What do I get Trying to: Display a chart, organized by any class A line overlay (actually a single horizontal line) above it (some Type threshold to display) I tried to do the following: [bindable] public var Olm Detapradata: ArrayCollection = new ArrayCollection ([{ "category": "Cat 1", "value": 10}, { "class": "Cat 2", "value": 20}]); [BinDable] Public Worse Lineet Detroit: Arreculation = New Arrayization ([["X": 0, "Y": 10}, {"X": 1, "Y": 10}]); ... & lt; Mx: column chart id = "columnChart" showDataTips = "true" columnWidthRatio = "0.5" paddingTop = "10" paddingLeft = "5" padding right = "5" width = "100%" height = "100%" & gt; & Lt; Mx: horizontal axis & gt; & Lt; Mx: category ax...

html - how to design a simple one page website -

I want to design a website that has 4-5 pages but I need a feature when the user The content of the link is changed without any other page load. How can I do this? Looks like my page but when the user clicks on the left or right side, the link without the page refresh Loads. how can I do this. jQuery UI tab?

Is it worthwhile to learn Objective-C 1.x before Objective-C 2.x? -

I have some differences like garbage collection and 64-bit support, but I have a book based on 1.x and I was wondering if I was wasting my time, and after reading again, rising to 2.1? 2.0 vs 1.0 is not a very useful distinction because the lines are much blurred. , But only when applied to syntax (and even some holes). Specifically, the syntax of language to consider and is ABI; There are also features to consider the actual binary format that only work in LLVM. Good news, though, and said in the form of a dream, is that you really do not really care about 2.0 versus 1.0, either syntax or ABI perspective from any one syntax From the point of view, you want to use the features and to be done with it from ABI perspective, 1.0 vs 2.0 is academically interesting but will be invisible to your code. Most of the details generally become an issue for the authors of frameworks and large applications. Mostly In any case and above my head: Garbage collection is available o...

BizTalk Halt and Clear all Rule Firings -

The following is a mandatory rule: If the node is not present then the next rule Continue with if the node is present, continue with the next rule. By defining the preference of the rules and then preventing and firing all rules - is done on initial scrutiny for existing nodes. I have tested in Rule Musician and the first rule has been removed. However, it can not stop the next rule from firing. It continues and fails because the node is clearly not found in XML. Is there any idea why this will continue, however, especially the action stop and remove all rules ? Is there any type of BIZTOC - Reset the host instance, restart the Visual Studio move? I have done it in another rule and it works fine ... It seems that the engine runs all the rules at once. I have been successful in getting the problem using specific XPath for the rules.

What's the point of using the "cols" attribute of the <textarea> tag in HTML? -

Valid HTML requires the "calls" attribute, but I do not see the benefit of using it. If the client does not support CSS, then it is still & lt; Textarea & gt; with the right width.

MSBuild transform not evaluating wildcards -

I'm having a problem with an MSBuild file that I'm trying to compile some custom libraries. & lt; Asset group & gt; & Lt; FullVersion & gt; 10.8.0.0 & lt; / FullVersion & gt; & Lt; / PropertyGroup & gt; & Lt; ItemGroup & gt; & Lt; Include LibsToBuild = ". \ Lib1" & gt; & Lt; Bin & gt; Bin \ * * & lt; / Bin & gt; & Lt; Project & gt; Library 1 & lt; / Project & gt; & Lt; Build & gt; ReleaseNoProtect & lt; / Build & gt; & Lt; Version & gt; CurrentVersion & lt; / Edition & gt; & Lt; / LibsToBuild & gt; & Lt; Include LibsToBuild = ".. Lib2" & gt; & Lt; Bin & gt; Bin \ * * & lt; / Bin & gt; & Lt; Project & gt; Library 2 & lt; / Project & gt; & Lt; Build & gt; ReleaseLibrary & lt; / Build & gt; & Lt; Version & gt; CurrentVersion & lt; / Edition & gt; & Lt; / LibsT...

video - How do I make a movie for upload to YouTube from a series of PNG images on the iPhone? -

How does a PNG uploading movie from a series of pictures (AV / MPG) make? Besides, I got one in that videostream. How do I add a CAF audio file? There are so many libraries in it X264 for you to talk about this type, but you probably have a Video encoding will need to be used in the library is not an easy task.

c++ - Missing mingwm10.dll -

I'm coding a C ++ project with QT creator, everything is working fine (debug, release) , But when i compile it Let's go straight to (run it on xi file and run it) that mingwm10.dll is missing. What can I do about this problem You can do this As chalup has said that you have a local / global PATH variable for yourself in the Mingav bin directory Give: My Computer | System Properties | Advenced | Environmental Variables | System Variables - Select the path string and press the Edit button. Create an app without Mingav, for example Simply enter the mingwm10.dll directory Enter

php - Whats wrong with this regular expression? -

I have the following regular expressions for finding words and exposing them in the text The word surface Using the test objective. / ((?? Lt; = [\ W]) surface? (?! [\ W])). (?????)? Surface? (? = [\ W])) / iu This corresponds to all events in the following text. Surface-to-20-70-0000 -04-02_Pre-Run_Tool_Verification_Programming_and_surface_Tare surface_revC.pdf But if I surface to keep the upper case letter I first change the event, so it only matches the first event. Surface-cum-20-70-0000-04-02_Pre-Run_Tool_Verification_Programming_and_surface_Tare surface_revC.pdf Or if I have an upper case letter in some other incidents , Then matches it surface-cum-20-70-0000-04-02_Pre-Run_Tool_Verification_Programming_and_Surface_Tare surface_revC.pdf I do not know what you are trying to achieve there, but your problem is probably that \ w will contain _ (and \ w )). Perhaps try this: / (? & Lt;! [Az]) surface (?! [Az]) / iu or this: / (? ...

security - get 2035 on connecting to the base queue -

I'm running a remote Java client to connect to the remote MQ queue. When I type Java code to write in the alias queue, it works fine. When I try run the code on the same line, but with a physical queue name (because I Invite queue sketch), I get a 2035 error when the code tries to establish the connection On the queue there are authorizations: browse + DSP + + Ink + Pin + Set + Settle The Java code is as follows Import com.ibm.mq. MQC; Import com.ibm.mq.MQEnvironment; Import com.ibm.mq.MQException; Import com.ibm.mq.MQGetMessageOptions; Import com.ibm.mq.MQMessage; Import com.ibm.mq.MQPutMessageOptions; Import com.ibm.mq.MQQueue; Import com.ibm.mq.MQQueueManager; Public class MQSniffer {} / ** * @ Ultimate Argus * / / ** * @ Ultimate Argus * / Public Static Zero Main (string [] Args) {string hostname = "XXXX"; String channel = "channel"; String qManager = "qmgr"; MQQueueManager qMgr; MQEnvironment.hostname = hostname; MQEnviron...

c# - How can I display the value of the register EAX as an object in the debugger? -

without performing again the method I would like to inspect the return value of the method I believe that using Dissaimblr my only option I have come to this conclusion after reading the answers to the Stackflow question. I believe that the EX can observe how I object indicated by EX in value register my return value debugger? Here is my forgotten return statement. 30: Return some string (); 000001bb mov ECX, DWORD ptr [EBP -3 CH] 000001be phone FFF7A320 000001c3 mov DWORD ptr [EBP -78 h], eax 000001c6 mov eax, DWORD ptr [EBP -78 h] 000001c9 mov DWORD ptr [EBP -4 CH], eax 000001cc nop 000001cd Jmp 000001D8 000001cf mov dword ptr [ebp-1Ch], 0 000001d6 jmp 000001BA 31:} 000001d8 mov eax, dword ptr [ebp-4Ch] 000001db lea esp, [ebp-0Ch] 000001de pop Ibeks 000001df pop esi 000001e0 pop edi 000001e1 pop EBP 000001e2 retired ISTR [EAX] Watch variable The window displays the EAX register

python - How to use multiple Sessions in a pylons app? -

I have read and I get a way to create many engines using technology, but now I seek advice on this Now, to handle the construction of the session for these engines, the session in my project is defined according to the Pilon Conference: myapp.model Imported as .meta.Session = scoped_session (Session Maker ()) and myapp .model.Session . It works fine if there is only one engine. What is a good, stable approach to defining this for many engines? The engine set can change on runtime, what its value is, so I will need the ability to fly to the new session s without hard coding on the model. If you want to select a database backend per request, then a good option meta.Session (Bind = Get_engine_for_this_request ()) as the first thing it will create a session with the specified parameter. If you understand your case then you can stick it in the basement controller. The best method for many backends for a request depends on your specific usage. If all the backends have...

Geoserver and WMS -

I need some help. I am new to GOVERVER and WMS concept and I am looking for a very basic help. I have downloaded and installed Geirev, installed layers etc. (including SLD), however, I do not know how to get this information from here on my website as I mentioned that for this I I am new and I do not know what I am doing, I have tried to search on the web for a step by step, but most easily miss that once you own Kritiptr've uploaded Thank you Steve will be pointing in the right direction for any help or information. > GOseror can either use its own web server (jettie), or run for "tomcat" as a ".war archive" is. This is to be posted on your web server, you have to install software on the actual machine that hosts your website (normally the .war archive will be deployed, when your web server will already be running Tomcat). The work of the geographical position is to provide map tiles according to the characteristics provided by the WMS protoc...

TCP/IP protocol and network topology -

I am a newbie in network related aspects. I have some basic questions related to TCP / IP protocols and networks P> If there are two PC-run clients and servers (which are communicating through async) between a network switch (in a LAN network) chairs, operate below. The client and the server will be notified that the socket connection is no longer active. Clients and servers are running on Win XP OS and are coded using C #. In the case of half-open connections between the socket client and the socket server, network topology plays a role, for example, either one or both of the positions will be disconnected and both are located at the other end. Will be informed and it will depend on the network topology. Going down, the operating system can see that the physical layer has decreased and there is an error in excluding all the sockets bound to that network card, if it is a network element that is connected directly to the PC - it Operating system / network card and other th...

javascript - how do I know if the mouse pointer is on the HTML element? -

I have an event at a time, I want to behave differently in that situation on which HTML element the mouse pointer is is. There is a way, by thinking that I have an HTML element, to know that the mouse pointer is currently at the top of it. I have good information about an on-home / on-house event and how to use them. I am using JQuery I am clearly looking for any type of flag because I do not have to check any state and handle any event. Again, I know how to implement it with events. To ping an element in the position of the mouse rotation, Not aware of the way. However, you can create one by updating a flag in the mousecenter and mouseover - where the suggestions come: jQuery.fn.tracking = function () { This .data ('hovering', false); This.hover (function () ($ (this) .data ('hovering', true);}, function () {$ (this) .data ('hovering', false);}); return;} ; JQuery.fn.hovering = function () {return.data ('hover');} You will need to ...

java - JNI_ENOMEM from JNI_CreateJavaVM when calling dll that uses JNI from VB6 -

I work on a legacy system which has a VB6 app that requires calling Java code. VB uses C ++ dll to solve the solution we use, which uses JNI to call Java code. A little funky, but it really worked very well. However, I am going to a new god box, and I have gone into a serious problem with this. The built VB app works fine on the new box, but when I try to run it with VB, DLL fails to load VM, returns the return code-4 (JNI-ANMEM) from JNIKREJJam. The two built-in apps and VBs are exactly the same DLL phones, and I have tried it with both Java 1.5 and 1.6. I have tried suggestions (redirecting stdout and stderr into files, adding a vfprint option, to add a -xcheck: jni option) but no avail. I can not get any additional information from jvm, as far as I can tell, the new box is configured to be the same as the old one (software, path, cell path, etc.), and both of the same release windows server 2003 Are running in New machine is a x64 more memory box (4 GB instead of 2 GB), but it...

wpf - Where to create parametrized ViewModel? -

I recently parametrized the controller of my ViewModel before, I was doing this in my window: & lt; window. Datacontex & gt; & Lt; Vm: MyViewModel / & gt; & Lt; /Window.DataContext> The framework made the view modal immediately for me. I know that I can set up a data contact in the code, but I would prefer an XAM mode so that the designer could display my test data while designing. Is this possible? Use this if you want to specify the constructor parameter: & lt; Window.DataContax & gt; & Lt; ObjectDataProvider ObjectType = "vm: MyViewModel" xmlns: sys = "clr- namespace: system; assembly = mscoribe" & gt; & Lt; ObjectDataProvider.ConstructorParameters & gt; & Lt; Sys: string & gt; A string parameter & lt; / Sy: string & gt; & Lt; Sys: Int32 & gt; 42 & lt; / Sys: Int32 & gt; & Lt; /ObjectDataProvider.ConstructorParameters> & Lt; / ObjectDataProvider & g...

jar - $CLASSPATH and -cp with Java -

इसमें, -jar विकल्प का उपयोग सभी -सीपी और $ CLASSPATH को अनदेखा करता है इसमें, -cp विकल्प का उपयोग $ CLASSPATH को भी अनदेखा करता है क्या उनके लिए कोई अच्छा कारण है? यह है जब भी आप अपने अनुप्रयोग को अलग-अलग वातावरणों में चलाने के लिए वितरित करते हैं, तब भी क्लासपाथ में संघर्ष से बचें। अधिकांश मामलों में आप चाहते हैं कि आपका एप्लिकेशन प्लेटफ़ॉर्म विशिष्ट विन्यास से स्वतंत्र हो। अगर $ CLASSPATH में वर्गों के संदर्भ में (या तो अनजाने या जानबूझकर) एक ही पैकेज और क्लासनाम है, तो उन क्लासेस से पहले क्लासोडिंग में प्राथमिकता प्राप्त होगी, जिन्हें आपने अपने एप्लिकेशन के क्लासपाथ में शामिल किया था। इससे अप्रत्याशित एप्लिकेशन व्यवहार या संभावित सुरक्षा छेद हो सकते हैं।

sql - Best way to prevent Update -

I have a situation where we want to stop updating the table for a specific scenario. So for 95% of the updates, I want to streamline the update normally and want to update the desired areas .... For that other 5%, I want to stop updating. The update will be based on the data given in the table which is currently populated in the table. That's why a good example is that users present their time for today. If they resubmit their time, then I do not want DB to allow that update as the time table for that user has flagged that they have already submitted their time and the time zone is not zero. I was playing with triggers for this and it allows me to handle it at the beginning of the trigger ... basically only update, if the criteria are true. Any thoughts? Edit: I'm sorry ... maybe this was not a good example. We reuse an updated sproc to make several different updates, so this is quite common. I wanted to know what is the best way for those cases where I do not w...

in perl. how does hash store data in memory -

I have a large XML file and there is too much memory to parse it. Because I believe that there are many reasons for this in the file for a lot of username I changed the length of each user name from 28 bytes to 10 bytes. Play again. But it still takes almost the same amount of memory. The XML file is now parsed with SAX and during the handle, the result is stored in a hash structure such as: $ this-> {'Date'} - & gt; {'School 1'} - & gt; {$ Class} - & gt; {$ Student} ... Why still memory is so high I reduce the length of the student name? It is possible when the data is stored in the hash memory there is too much overhead, no matter how the length of the string is alone? "Go to a linear list all keys of the same hash (see in macro PERL_HASH_INTERNAL ) According to the document If you evaluate a hash in the context of the scalar, then it incorrectly returns if the hash is empty. If a key / value is a pair, then it returns true...

objective c - Properties in dealloc: release then set to nil? or simply release -

I'm new to Objective-C (and stack overflow) and I'm a little bit of a quality. My understanding is that when you do it completely with a property, you can release them and avoid the bug and set it to zero at the same time, so that in the subsequent messages the exception Change is zero. Blockquote> [myProperty release], myProperty = nil; However, when it comes to dealloc for the properties of 'copy' and 'retaining', then there is no need to do both? Or a simple [myProperty release] Is it cut? Also, am I right that I do not need to release 'Assign' property in DeLock? Thanks! Release but do not disturb the setting of zero. Setting zero through your @ synthesized setter: MimarPruth = Nil will issue its old value as part of the reassignment, comments, may have unwanted side effects), but specify only zero in your member variable: myProperty = nil will not be. [myProperty release] You need it. (And you are correct a...

animation - Android AlphaAnimation that only fades out? -

Now I have an alpha animation that fade, the problem is that to finish my action, Only a few faded, it appears and goes out, when I did not want it to just get out. Is there any way to do this? Well, check whether it has turned out and not applicable then animation :) or the existing property of the object Start the starting value of the animation with the value.

powerful javascript canvas libraries -

As a simple JavaScript library, we have jquery which is very powerful. But I have to know that there are some powerful canvas libraries in terms of usability, flexibility and versatility. I found that Rafael is very interesting, but I found that it has less effect, so I'm looking for a canvas library with lots of animation effects and flexibility with SVG and canvas elements. "post-text" itemprop = "text"> looks very sweet.

select - mysql subquery in single table -

I have 2 columns in the "Entries" table: a non-unique ID, and a date stamp (YYYY-MM-5) I am trying to use a subquery, but I do not think that I am using it properly because they are both displaying on the same table, do somebody tell me the correct selection statement Can help out with? I can provide more information if needed. entries where e.date = curdate () and not e.id (select ID from entries E2 where e2.date and lt; E.date)

iphone - Core Data, UITableView, and UISegmentedControl -

I am new to working with core data, and am working with a UITableView. I have a Toolbar with a UISegmentedController, and I want to filter items in the UITWV based on the selected index. In other words, suppose I have a UITABLE view that displays books (stored in core data) and a UISegmentedController with sections to display books in "English", "Spanish" and "French". What's there to get accustomed to everything? When one of the segments is clicked, what do I do, which in the target of the UIGanded control to change things? Sorry, this is a stupid question! I different NSFetchedResultsController for each segment Will use. This will allow you to take advantage of the cash generated for each segment and improve the performance. In addition to Apple's documentation (and my book), you can also read them from your article in Prague Magazine.

c++ - Are there any problems with this overload of operator new? -

I was thinking about some memory pool / allocation material I can write, so I am with this operator I want to use memory to reuse the memory. I am thinking that if there is a problem then you can think with my implementation (or any other potential people). #include & lt; Cstddef> Namespace ns {struct renew_} {}; Renewal renewed; } Template & lt; Typename T & gt; Inline Zero * Operator new (std :: size_t size, T * p, ns :: renew_t renewal) {p- & gt; ~ T (); Return p; } Template & lt; Typename T & gt; Remove Inline Zero operator (Zero *, T *, NS :: Upgrade Renew) {} It can be used like this int Main () {Foo * p (new foo ()); // allocates memory and calls the default constructor of foo (P, NS :: Upgrade) to Foo (42); // calls foo destroyer, then calls the FU consultants on the same memory delivery p; // deallocates the destructor and memory of the call foo} should be good You do not try some crazy and try to renew a subclass as you said that...

delphi - How Can I Minimize Overhead when Processing Messages in a Long Loop -

There are some long, but simple edges in my Delphi program, which can loop millions of times and execute a few seconds. The code inside the loop is very fast and it has been optimized. It takes a lot of time because it is done many times. Example: Screen.Cursor = crHourGlass; R: = FirstRockord; While R & lt; & Gt; Starting zero is something easy to do with R.Value} R: = R.NextRecord; End; Screen. Cursor: = crDefault; Now I do not want my program to be unresponsive, so I want to add an application. Processes inside the message loop But I also want to add details to slow down my loop as low as possible. I am following a linked list, so I also do not have a counting variable available and I have to add one to the desired interval or add a timer, but there is a need to reduce the timing check . How do I add it to which the overhead has been added? Conclusion: For now, I am doing something like the reply of APJ 28. But it seems that I should implement some sor...

jQuery/Javascript: setInterval check if DOM element exists? -

var चेक; फ़ंक्शन शोलोडर () {$ ('# mc_signup_form')। प्रीपेड ('लोड हो रहा है & hellip;'); check_init (); } फ़ंक्शन चेक_इनिट () {check = setInterval ('check_trigger ()', 300); } फ़ंक्शन check_clear () {स्पष्ट अंतराल (चेक); } Function check_trigger () {if ($ ('। Mc_error_msg')। लंबाई == 0 || $ ('। Mc_success_msg')। लंबाई == 0) {$ ('# mc_signup_form .loading')। निकालें (); check_clear (); }} मुझे आश्चर्य है कि मेरा ब्राउज़र कहता है कि check_trigger () मौजूद नहीं है? मैं अपने showLoader () फ़ंक्शन के अंदर एक सेट इन्टरलाले शुरू कर रहा हूँ इसे चेक_ट्रिगर को ट्रिगर करना चाहिए पोस्ट टेक्स्ट "itemprop =" text "> मुझे setTimeout और setInterval पर स्ट्रिंग्स मिलती है, बस समस्या की ओर जाता है:) कोशिश करें: सेट इन्टरवाल (चेक_ट्रिगर, 300);

e commerce - Cannot add items to Magento cart -

I want to keep it in the same way as I still tell all the proper details. I list the details of the site below: (The current page is locked down) You can access the site and see what's really going on. Magento-run ecommerce store on a shared host. After running the store successfully for a few months, he started to think whether it was for memory problems. The site sometimes stops working or generates "fatal errors" when adding items to the cart. When you click Add to Cart, the screen will be white-free without any warning error. When I was checking the error in the index.php file, and tried to add a product to the cart, I received the following: Fatal error: 134217728 bytes of tired memory of the I have tried php upping memory 128m, 512m, 2048m even inside php.ini, .htaccess, and even in index.php ini_set ('memory_limi', '2048M'); Raising the memory limit of 512 or above does not cause a fatal error, but no item can be added to the c...

filesystems - Dealing with file properties C# -

I want to get the file size of any file using C #, and give it to GB, MB, KB and Bytes if possible ... And for audio (mp3) files, I need to get the duration of the file ... You can use to get file size (bytes). Then a simple calculation can tell you KB, MB and GB: string fileName = "C: \ path \ to \ file.txt"; Var File INFO = New FileInfo (fileName); Console.light line ("length = {0} bytes", fileInfo.Length); Console.light line ("or {0} KB", fileInfo.Length / 1024); Console.light line ("or {0} MB", fileInfo.Length / 1024/1024); Console.lightline ("or {0} GB", file info length / 1024/1024/1024); In order to obtain the duration of an MP3 file, you will need to use the library (like) which supports the passing of the header of the MP3 file to the reading period.

android - Changing View properties after onCreate() -

The first time the poster is new to Android, and I have a roadblock on this problem: I am creating a dynamic layout that includes many identical "holistic" objects (these are basically "Floating" liner layouts, each containing an icon (image view) and caption (textview). (X, Y) coordinates based on user actions Are subject to tuned, and require precise placement (i.e.: relative layout, etc.) can not be used, so I am putting them inside a complete layout. OnCreate (), I am adding each of these as a child into a AbsoluteLayout object, then manually setting up (X, Y) there is no problem yet, great works, the initial layout At once Right. Problem: After the initial process (), I can update their layout parasomes (X, Y) positions to change these objects on the screen , But the on-screen layout (inside AbsoluteLayout) is never refreshed. I have tried the force layout (), invalid (), requestLayout (), none of them works. Is there a problem in my basic approac...

Android long key press -

I need to generate / trigger a long key press event of a button in Android. Any help gladly? From Android 2.0, activity includes the method Public Boolean For example, on KeyLongPress (Int keycode, keyEvent event) For example, a long key will press on the back button: @Override Public Boolean KeyLongPress (int KeyCode, Key Event Event) {if (keycode == KeyEvent.KEYCODE_BACK) {/ / Your stuff here comes back to you; } Return SuperConnLongpress (keycode, event); } Take a look.

.net - Why are xml transformations needed? -

What is the basic need of XML changes? In which situation can we use it? Can we use it in the net? Suppose you get many different product lists, each in a different XML format. You also internally use another XML format. The simplest thing to do is to convert different XML formats on their own. You can use XSLT for that. The .NET framework has extensive support from XSL conversions - see namespace.

.net - How to compare class definitions -

I would like to compare two versions of a class. I have used WinDiff, but it shows lots of differences due to different comments and so on. Does anyone know the device to compare two class definitions (fields, methods, etc.) for NAT? Thank you, Martin We have two programming languages Comparing source files in terms of language structures, not text layouts, so it will ignore comments and white space changes. There are several languages, including C #, but not VBnet.

asp.net - Problem with Sessions in ASP .NET -

I have a strange problem with session variables: I am storing some credentials in such session variables: session ["login"] = "foo"; Session ["password"] = "oh"; The page has been deployed to a specific server. After logging in to the page, I came to know that other users (who are in the same network area) are calling the page and are also logged in! I thought those data will be stored for me only (I think the server sends me some cookies back), but is not it? I am sure there is a lack of knowledge anywhere, what is happening? Thanks I do not recommend placing a password in it for security purposes One Session Variable If you must use a session variable, do not store passwords in clear text. Use some encryption method instead.

java - How to read .rpt files and load data to database -

I need to read .rpt files and data to use Java in MySQL or Oracle I have no help in this Can do? As far as I know, .rpt files are used by .rpt (report) files any Are also processed in a way or do you have to write them in the database? In the latter case, the necessary steps are: Make a list of all .rpt files For each file: Read I create a SQL INSERT statement and execute it against my database if I If you clarify your needs, then expand this answer.

javascript - How to figure out if the window is closing in the callback of jQuerys unload(); method -

Is it possible that the event triggered by this event is $ (window)? Unload (); ? To be a little more specific, I'm only interested in this event when a user has closed the window (a popup), and not just when navigating from the current page. I have seen the callback of event parameter unload () passed; But nothing appears in that object, which will be of use. Does anyone know this solution? Code: $ (function () {$ (window). Unload (function (event) {//} This is clearly the pseudo code. Please help! If (event.type == 'closed') {// I had some expectations with these lines to work // make the content before the windows closed}}}}}; No, this is not possible for my knowledge. The document only learns about the unloading. Why is the business of the browser.

Generate row numbers in SQL from Interbase -

क्या इंटरबेस से यह संभव है? उदाहरण के लिए इस में। आप जनरेटर का उपयोग कर सकते हैं। इसे बनाएं उत्पन्न जनरेटर g_rowno; और फिर इस तरह का प्रयोग करें SELECT GEN_ID (g_rowno, 1), फ़ील्ड 1, फ़ील्ड 2, ... आपके_table से लेकिन यह केवल तभी काम करेगा जब एक ही प्रश्न की कोई समवर्ती फांसी नहीं होती है। फायरबर्ड में आप प्रत्येक ब्लॉक को संसाधित करने के लिए और ब्लॉक नंबर को क्लाइंट अनुप्रयोग में जाने से पहले जोड़ने के लिए एक्स्टॉल्ड ब्लॉक निर्माण का उपयोग कर सकते हैं ।

sql - How do I get a single out from an Oracle-Procedure? -

I have found this process: The process of creating or changing CONV1 (in PRT) VARCHAR2, Pierre Out Number, PMOTH Out Number, PADA Out Number) as LDT Date; BEGIN lDate: = to_date (pDate, 'DDMMYYYYH24: MI: SS'); Pair: = to_number (to_char (lDate, 'YYYY')); Pmonth: = to_number (to_char (lDate, 'MM')); PDA: = to_number (to_char (LDT, 'DD')); Closing CONV1; / How do I call this process if I just want a boycott? function that will use the conv1 process, but returns only one value. Or even better for your special case SELECT to_char (to_date (your_date, 'DD.MM.YYYY HH24: MI: SS'), 'DD') Dual to Or the general case is: create or rebuilding work CONV2 (VARCHAR2 in PRT) is the number PDA number; P. Number number; Pier Number; BEGINConf 1 (PDT, PEAR, PM, PDA); Return PDA; End;

silverlight - ComboBox Binding is lost when bound item is swapped for a new item containing null for the field -

I have a "user" screen where a user unit is bound I when it stops as a new user If the bound value for the combboxes is zero, then the kickboxes begin to empty and the purpose of the tasks is to use if I click on my "new user" button, then take any comb boxes from the empty null value to the value Go, while still behind New user Affairs unit is fully binding on. Before clicking on "New", any Cambobox was left taped from the beginning, which would continue to work properly. After that my cockbox is completely dead. Changing its value will not return the source, and while loading a new source, the combobox is not selecting the right data anymore. Is there anything that can be done with this fact that there is no empty line in my blankbox, once I select something then I can not empty it again. I do not know anything can happen to him, but I can not figure out how to make an empty line in the list of options. Once the binding items do not match the s...

JSON response from Ajax service -

Anyone can help me on the query below I'm calling an AJAX web service from Java Script, Web The method returns a custom ozet, the serialization in the Jason's format of the object takes care of the Ajax architecture and I am not doing any clear serialization. Most of the time as I get the response right below, it gets deserialized and my AJAX call back assigned the function to the variable and it works fine. Assuming the variable holding the reaction as "result", I can get the data as a result. Type, result. Verb {"__type": "Thomson. Financial RT template.exx If I close all the browsers and clean the cache and open the application then the same method Returns the answer given below to > {"d": {"__ type": "Thomson. Financial Thin Quatus Ajax state. Ajax call result "," action ":" start "}} The additional object D is automatically being created, the variable in the callback is assigned to...

java - How can I test a jasper report? -

I want to test all Yashppa reports of my application. I have to find out that: Compilation problems (which should check JasperCompileManager.compileReport (some inputstream) JRException does not throws Is there a good option for this?) Filling problems (it will check that does not enter JasperFillManager.fillReport (some reports, some parameters, some data sources) Code> JRException Any other ideas? Problems with rendering: "Null" string starts appearing, Typing text in e pdf file Ul> Ideally, I would like to keep the testing process as the most common possible thing. The thing is that each success story has a different data source so this error To find out I need to generate some data in the list (right?) And I need to generate this data different for every application of my application, so I do not know how much I The code will be able to reuse the code. Which approach will you consider? Thank you! For compile problems, one approach would...

Jquery Pagination Plugin -

सुप्रभात ब्रायन, jquery पेजिंग प्लगइन प्राप्त करने के लिए स्लाइस () विधि का उपयोग करने पर आपका काम ( ) शानदार है और बहुत उपयोगी था मैं सोच रहा हूं कि आपने jquery प्लगइन को कार्यान्वित किया है ताकि पृष्ठ पर अंक लगाना div शीर्ष पर हो और उस भाग के नीचे जहां पृष्ठ पर अंक लगाना परिणाम प्रदर्शित हो। मुझे क्लोन का उपयोग करने में सफलता नहीं मिली () विधि ... तो मैं सोच रहा हूं कि मुझे क्या करना चाहिए आपकी मदद काफी सराहना की जाती है। कोरि बस पृष्ठ पर अंक लगाना फ़ंक्शन दोनों गंतव्य divs के साथ: $ ("# शीर्ष-पृष्ठांकन, # नीचे-पृष्ठांकन")। पृष्ठ पर अंक लगाना (/ * पैरामीटर * /); या: $ ("# शीर्ष-पृष्ठांकन")। पृष्ठ पर अंक लगाना (/ * पैरामीटर * /); $ ("# नीचे-पृष्ठांकन")। पृष्ठ पर अंक लगाना (/ * पैरामीटर * /);

jquery - progressive enhancement and ajax -

So now, there are some of my forms where one has been submitted as one, it receives one in the other model . So right now, I can have a link to example.com/modal/1, which opens the first model. However, if Javascript is not enabled (the browser actually follows the link), then some HTML displays (HTML which was being retrieved.) I want to be able to style it, so I'm guessing that I should make a whole HTML page with stylesheets and everyone, but here's what I'm thinking: jquery Load () , I know that you can select an element ID such as '# form' which will parse that when the request is back and just # form element Use I want to be able to use something like this, But I'm using the post () functionality. Consider how to do this? If you add objects (key / value) to second ( data ) Near the parameter $ Load , this will make a post request from: The post method is used if the data is provided as a commodity; Otherwise, GET is considered.

winapi - How do I put a checkmark on a menu item that has submenu items. (Visual studio 2008 C++/MFC) -

मेरे पास मेनू है जिसमें सबमेनस शामिल है। उदाहरण: आइटम 2 आइटम 3 वस्तु ए वस्तु बी आइटम 3 में इसके नीचे आइटम हैं। किसी भी समय 1, 2, या 3 के नीचे के आइटम की जांच होनी चाहिए। चूंकि मेरे पास आइटम 3 के लिए कोई आईडी नहीं है, इसलिए मुझे अपने कोड के बच्चों में से एक को चेकमार्क दिखाने के लिए मद 3 पर एक चेक सेट करने का प्रयास करते समय MF_BYPOSITION सूचक का उपयोग करना होगा। आइटम 3 में चेकमार्क होना चाहिए, अगर ए या बी की जांच होनी चाहिए। मैं 1 और 2 और ए और बी की जांच कर रहा हूं - लेकिन आइटम 3 को समझ नहीं सकता। मैं या तो :: CheckMenuItem () को सफलतापूर्वक उपयोग करने में सक्षम नहीं हूं चेक मार्क सेट करने के लिए या संशोधित करें मेनू () क्या कोई मुझे ऐसे उदाहरण के लिए बताता है जो सफलतापूर्वक करता है? डॉक्स से यह संकेत मिलता है कि यह किया जा सकता है, लेकिन मैं ऐसा करने में असमर्थ हूं। संपादित करें यह मेनू के लिए है जिसे डीएलजी बॉक्स के लिए मेनू के रूप में सेट किया गया है। मेनू बार में तीन आइटम हैं - जिनमें से एक ऊपर दिखाए गए कार्यों के लिए नीचे जाता है। नोट भी, यह ...

winforms - .Net Treeview Event Handling -

I am in the process of migrating VB6 apps to .NET and we must provide the same identical functionality at all times. There is a check view in a form where there are three levels of nodes. The first level works only for groups of the next level and they are not investigative. Second level nodes are checked by the user and when all checks are made or unchecked, all the children follow the suit. At all levels, clicking on the node or its checkbox means to select it, even if the check status is affected or not. The problem of the third level is the problem (although this issue appears on itself, all treeview check boxes): This level is the 'type' of the two nodes, one that can be checked by the user and unchecked (If parents were checked) and there is a type which can not be checked by the user of the state without being uncontrolled, parents, but its position is the mirror of his parents. In normal use it does all the work as expected; However, if you quickly click on one ...

c - How to read data from file and clean and store to a file -

Good day all. I have a file that contains data which is shown below, in this it records for every 30 seconds for a period of 30 days. I want to do the following on the data. 2010-03-03 16:00:31; 66.89; 24.0; 14.89; 0.08; 2010-03-03 16:00:35; 66.15; 24.1; 14.85; 0.08; 2010-03-03 16: 00:38; 67.10; 24.2; 14.81; 0.08; 2010-03-03 16:00:42; 66.36; 24.3; 14.78; 0.08; 2010-03-03 16: 00:46; 65.83; 24.4; 14.75; 0.09; . . . 2010-03-03 17:00:31; 62.78; 25.2; 13.96; 0.12; 2010-03-03 17:00:35; 63.94; 25.3; 13.92; 0.11; 2010-03-03 17:00:39; 61.94; 25.3; 13.89; 0.11; 2010-03-03 17:00:43; 60.99; 25.4; 13.88; 0.12; 2010-03-03 17:00:46; 62.67; 25.4; 13.89; 0.13; 2010-03-03 17:00:50; 62.57; 25.3; 13.91; 0.13; 2010-03-03 17:00:54; 61.51; 25.3; 13.91; 0.14; . . . 2010-03-03 18:00:29; 66.04; 20.7; 13.63; 0.56; 2010-03-03 18:00:33; 66.04; 20.7; 13.63; 0.56; 2010-03-03 18:37; 65.52; 20.7; 13.59; 0.56; 2010-03-03 18:00:40; 64.46; 20.7; 13.56; 0.56; 2010-03-03 18:00:44; 64.88; 20.8; 13.56; 0.56; . . . ...

Haskell numeric type hierarchy in SICP exercises -

I was recently learning Haskell and was talking to a friend who is working through SICP. We were eager to compare common Lisp and plan and so I decided to practice 1.29 as an exercise to try to translate into Haskell. This exercise function uses sigma which represents the mathematical session function sigma. This function takes the function F to apply for each term, a function to apply a lower bound, the next term to apply on each term, and the upper bound gives it the amount of f applied to each term. Simpson Antigrale is believed to use Simpson's law to estimate the integrality of function F on the boundary [A, B] using "Accuracy" N. I am having trouble working on this function because it seems that I do not know about the types involved. This code will be compiled with the ghc version 6.12.1, but simpsonIntegral will be given a type of reference (Integral A, partial A) that does not make any sense and as soon as you call it . I have found this work at a job, ...

asp.net - Page being loaded twice -

I am developing an ASP.NET 4.0 application with pattern and behavior MVP pattern. When I was debugging today, I saw that my page load was removed twice. When I turned on Fiddler (an HTTP traffic monitoring tool), I found out that my page was actually being downloaded twice. I am thinking that anyone can know that what is happening due to this? Make sure that you do not have any image tag with "#" for the source

NServiceBus: How to hook-up IHandleEvents programatically -

For one of your subscription metrics, I need to implement several implementations of iHandleEvents, as well as 3 parties Allow to specify itself Implementation. At the application startup, I would like to be able to scan the directory and config so that it can be used to determine which implementation can be used, and then can be used for all incoming messages. Is this possible? Can I register some type? Or would I register an example? Or maybe a function is so much that I can decide whether to give a new example every time or reuse? itemprop = "text"> I think you mean IHandleMessages & lt; T & gt; - If you scan the NServiceBus and find it automatically, you can use Configure.With (Type) or Configure.With (Assemblies) you do not want to register to limit the type of NSSS type.

sql - distinct() function (not select qualifier) in postgres -

I just came in a SQL query, especially against a postgrad database, which uses a function called "separate" I.e. meaning: select different (pattern) in the form of style, style, ... etc ... from the style scene ... etc ... Note that this is not a simple qualifier - at least this is not the usual syntax for separate qualifiers, note the brackets. This is clearly using the difference in the form of a function, or maybe it has some special syntax. What does this mean by any idea? I tried to play it with a little bit and if I select different from the bar ( Find similar results select foo to separate from the bar When I add it to other fields in the same selection, it is quite clear to me It's not what it's doing. I can not find anything in the postgrad documentation. (The question is old , But in Google results high for "SQL is not a separate function" (second, first stack overflow) and still there is still not a satisfacto...

What is wrong with this "for dummies" PHP code? -

I am running PHP5 on a free web server and I try to read PHP to read the "Dummy" book I am ... it gives me some code to run and due to some cruelty I get errors on every line of HTML. Here the code is I. Features have been expired but they are correct: gt; & gt; Test MySQL & lt; / Title & gt; & lt; / head & gt; & lt; body & gt; "; $ Host = "XXXX"; User $ = "XXXX"; $ Password = "XXXX"; $ Cxn = mysqli_connect ($ host, $ user, $ password); $ Sql ​​= "show status"; $ Result = mysqli_query ($ cxn, $ sql); If ($ result == wrong) {echo " Error:". Mysqli_error ($ cxn) "& Lt; / h4 & gt;"; } Else {/ * table which displays results / / resonant "table" = '1' & gt; & Lt; TR & gt; & Lt; Th & gt; Variable_name & lt; / Th & gt; & Lt; Th & gt; Price & lt; / Th & gt; & Lt; / TR & gt; "; ($ I = 0; $ i & lt...

xmlreader - XmlWriter - reading an attribute (quick question) -

I'm using it for my code, it outputs the XML file completely, but it's a ' = 'The mark adds element name though only one attribute is one of my elements I think I can do something like this if (reader.Getattribute! = "") // I have made that space, I'm not sure which will actually work with {Console.WriteLine ("& lt; {0} = {1}>,", reader .name, reader. GetAttribute ( "Name")); } Else {Console.WriteLine ("& lt; {0} & gt;", reader.Name); } But is there a cleaner way for code? My code (without optional solution) using the system; Using System.Xml; Using System.IO; Using System.Text; Public Class Mainclass {Private Static Zero Main () {XmlWriterSettings Settings = New XmlWriterSettings (); Settings.Indent = true; XmlWriter w = XmlWriter.Create (@ "path \ test.xml", settings); W.WriteStartDocument (); W.WriteStartElement ("sections"); W.WriteStartElement ("class"); W.Writ...

artificial intelligence - Representing Natural Language as RDF -

How capable is the representation of RDF / OWL in the concepts given in natural language? I am still learning RDF and other semantic technologies, but as I have understood it at present, the information is usually shown as a triple form (subject, forecast, object). So I can imagine that can be used to represent the "punishment of Bob's hat" However, you mall after the approval of "Bob, how would represent a much more complex sentences like over 42nd Street, Owner Will be a job in "? Tag conventions to represent nouns / verbs / ownership / causation / time / etc? Note, I'm not asking how to automatically convert arbitrary natural language text for RDF (as this appears to be currently impossible). I am just trying to understand how RDF can be used to represent the same information representing the natural language. It may be that the order is to define a piece of English, One part of this effort can be mapped to the mapping of Oval 2 DL. See exampl...

ruby on rails - Where do gems install? -

I am trying to edit a config file of Mani and I can not find it. I'm not sure how I did this in the past. Look at your gems environment. gem env You should see an entry installation directory , but also there GEM PATHS is there Where he is loading all the gems from your current environment.

Android Programming...How do I load contact photos so I can use them in an app? -

I'm just trying to load the contact photo of all my contacts and display them in a gallery. Can I make a query? I was just trying to get people.loadcontactphoto but was getting errors ... any easy way to do this? Have you considered using one? You can use it in the method and make sure that the call should be done by contacting the image with the contact with the default view. see public getDropDownView (integer status, seeviewview, ViewGroup parent) {return getview (status, convertview, parent); } View public view getView (int position, see line, ViewGroup parent) // // Set the image to view // ContactContactPhoto // // This method is over / simplified over a custom layout needs to be inflated Is the return line; }

PHP Reads XML Posted to my PHP Page -

I have a PHP page that needs to be posted on the XML page. The post content will be done by type: application / xml (no application / x-www-form-urlxode) For example, my page is called test.php, another server on this page XML will post (test.php). My question is how can I create a code to post an XML on this test.php page? UPDATE First of all, thank you very much and for the time spent helping me, I will try to improve my problem Messenger I am using a platform named "Botplattform". Here's more information: Actually this platform works like this: I have my Instance Messenger (in this case MSN) I type a message, the message that I Has Aip is sent by XML Post on my PHP page. This describes how the platform does this: "Request posting content type app / XML (not application / x-www-form-urlxode). Therefore you should read the whole body In the form of XML data, you could not read any parameters. " To read this XML file, type" user type on ...