Posts

Showing posts from February, 2010

Vb6 to VB.Net- How to replace registered dll concept -

I am replacing a VB6 application with a rewrite equivalent in VB.Net. VB6Ap has a 'control' application that offers a form to the user and allows them to select a 'customer' from the drop down list. The reason for reading a INI file that selects the client is to set the client-specific parameter that contains many DLL's program names, which were also written in VB6 and the subjects were registered on the machine. For example, each 'client' had a different letter format, and this letter was written by the selected DLL. It forced for a while, but only one user is most likely to make it convenient for updating only that DLL and continuously updating different characters except the DLL on the old one. Thus the user (clerical) had to be asked to save this file only in the normal folder. I could compile everything in an XE together, make my updates bigger and more complex. How do I change this kind of approach to doing it again in VBnet? I can tie everythin...

ruby on rails - paperclip run processors on selected style -

I have: xxx image processor, and I have two genres in the model: big and: thumbs. How can I process: Only xxx: By leaving the thumb image: The big image is untouched? By default, the rake function refreshes all the thumbnails. Keep in mind that it does not touch the original image Will not find / process You can modify another class and specify a specific thumbnail size, but the current design assumes that you want to take it from the original and redo all the thumbnails from the original.

database - Is it possible to automatically release a lock in PostgreSQL? -

I am testing the fault tolerance of an ActiveMQ system configured as JDBC Master / Slave. This setup has a postgrabbase database and two brokers - a master broker, the other is a slave broker. The way this system works, Master DB puts an exclusive lock on a table. The slave also tries to do this and waits till the lock becomes available. If the master dies, then the lock should be issued and the slave will take over. However, if the master loses network connectivity from the database, the lock is never released, resulting in a deadlock situation. What is needed is a way for postgres to issue lock on themselves, if not renewed within a specific period. This pattern of design pattern is called the POSA 3 book, which is a lease pattern. Is it possible to get postgate to do this? If not, do other database vendors support it? This is not a deadlock, this connection problem has been lost. A deadlock occurs when two transaction resources first try to lock from one another. Postgre...

Javascript File References Problem (with jQuery) -

इससे पहले, मुझे यह था: & lt; head & gt; & Lt; script src = "/ स्क्रिप्ट / jquery-1.3.2.min.js" प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; Var optPrompt = "- एक का चयन करें -"; Var उपकैटेंज; Var पेरेंट कैट; Var next बीटीएन; Var मातृभावित = कार्य () {साफ़लेख (); यदि (this.selectedIndex == 0) {$ (subCats) .html ($ ("& lt; विकल्प & gt;")। पाठ (optPrompt)); } $ .getJSON ('& lt;% = Url.Action ("GetChildCategories")% & gt;', {parentId: $ (यह) .val ()}, फ़ंक्शन (डेटा) {subCats.options.length = 0; $ ("और" विकल्प " .text (this.Name) .appendTo (subCats);});}); } Var DisplayDescription = function (catId) {$ .ajax ({url: '& lt;% = Url.Action ("GetDescription")% & gt;', डेटा: {classId: catId}, डेटा प्रकार: 'html', सफलता: फ़ंक्शन (डेटा) {$ ("p # श्र...

objective c - How to delete a row of a Table in iPhone -

itemprop = "text"> A UITableView to me and I is that the user intends to provide functionality like when he slips or breaks Fiss your finger on it Is the line I have provided editing style know which provides a circular red button with -ve sign him, but how to implement Fliking style I've seen using several applications, so Apple has no inbuilt delegate it or us You have to write your own controller for this. You table to swipe scene representative is required to be implemented - (void) table Views: (UITableView *) tableView commitEditingStyle: (UITableViewCellEditingStyle) editingStyle forRowAtIndexPath: (NSIndexPath *) indexPath method, swipe to delete this interaction Will provide access. I usually provide an editing interaction to host where it is possible to delete because some of the swipe interaction users are hidden. For example: - (minus) Talikadrishy: (UITableView *) Table View Bejenaiting Style: (UITableViewCellEditingStyle) RowAtIndexPat...

python - To make a plan for my first MySQL project -

I have to complete a plan in a few days. I need to prepare the first version of code for the next Tuesday, while the end of the project is about three weeks. Questions about the project that are not fit here The tools for me to choose Backend Tools Python in creating database schema ??? Strong> Which tool to use to create login and logout-system They do not allow me to use Google's system. It forces me to use some simple open source code because it is a line login / logout - to create a system It will take more than a week. Tools Django (if we can use MySQL in Django) Google Docs' spreadsheet keys and other links to the database Tools for coding (Only if I get a hard error message) My focus in this project: The goal is to create only a database system for users and moderators, such as I only provide the following attributes To allow the user to be added to a database that I ha...

css - Div. Combine precentage and fixed size -

Is this possible? Div "Menu" and "Submenu" should be 50px tall. "Top" and "bottom" should be 60% and 40%, for the "top", the previous-to-view-count will be 60% -50px. & lt; Div id = "menu" & gt; & Lt; / Div & gt; & Lt; Div id = "top" & gt; & Lt; / Div & gt; & Lt; Div id = "submenu" & gt; & Lt; / Div & gt; & Lt; Div id = "down" & gt; & Lt; / Div & gt; CSS did not find units to say you 60% - 50px - this effect To achieve something like, you have to resort to javascript to calculate the sizes. If your div is straight inside, then you do not have to apply too many layout engines again - on document load, get the viewport size, then calculate That's 60% -50px in pixels and assign #top element as height, and so on for #bottom.

ASP.NET State Management in appropriate situations -

ASP.NET 3.5 (as far as I know) there are 6 technologies to manage the states. Can someone give me something for example: (*) session state: personalization, buy carts, etc. (*) Cookies: Saving user credentials, etc. state management options view status: when To store small amounts of information for that page Vshykta occurs, use the back will automatically post View state property provides functionality with basic security. Control Status: When you need to store small amounts of small information to control between the round trip from the server. Hidden fields: When you need to store small amounts of information for that page which will be posted back or another page, and when the security There is no problem. You can only use the hidden fields on pages that are submitted to the server. Cookies: When the customer needs to store small information and security is not a problem. query string: Use it when you are moving small amounts of information ...

switch statement and loops using jquery/javascript -

Can I generate switch statements in jquery / javascript by using some types of loops to work for me? For example, if I had a statement: switch ($ ("#play option: selected"). Text ()) {case '1': $ ("# play_1" ). .slideDown () seems ("input") addClass ("SomeClass") .; break; Case '2': $ ("# play_1"). Slidedown () ("Input"). AddClass ("someClass"); $ ("# Play_2") slideDown () seems ("input") addClass ("SomeClass") ... break; } It's okay that I have only a few options in my selection menu, but I have 99 options and therefore '99' I had to display 99 new devices or whatever Can they be? for (var i = 1; i & lt; = $ ("# play Option: selected "). Text (); ++ i) {$ (" # play_ "+ i) .Sliddown () ("Input"). AddClass ("someClass"); } If you select 10, then that loop will get ten elements from # play_1 to # ...

c# - If I lock when writing to a variable, do I also need to lock when reading, if the read is otherwise atomic? -

मेरे पास निम्न कोड के साथ एक वर्ग है निजी रीडोनली ऑब्जेक्ट m_lock = new ऑब्जेक्ट ( ); निजी IClient m_client निजी ऑब्जेक्ट m_context; क्लाइंट और संदर्भ सेट करते समय, मैं निम्नानुसार लॉक करता हूं lock (m_lock) {m_client = theClientFrom कहीं भी; M_context = contextObject; } मेरा प्रश्न यह है, अगर मुझे केवल m_client ही प्राप्त करना है, तो क्या ऐसा करने के लिए सुरक्षित है? Var स्थानीय क्लाइंट = m_client; डीबग करें। अटैचमेंट (स्थानीय क्लाइंट! = नल); localClient.DoStuff (); m_client एक संदर्भ प्रकार है, इसलिए पढ़ें ( localClient को निर्दिष्ट करते समय), इसलिए यह एक एकल सीपीयू पर ठीक काम करना चाहिए । मैं कर सकता है (यह भी सिद्धांत में) m_client चर अस्थिर , और फिर इसे एक से अधिक CPU के पार सुरक्षित होगा बाहर के- रोकने के द्वारा आदेश अन्य CPU के द्वारा पढ़ता है, लेकिन सवाल यह है कि क्या ताला-कब-लिखना अस्थिरता के बिना पढ़ने के लिए सुरक्षित करता है? सीपीयू कैश को "फ्लश" लिखते समय लॉकिंग करता है, ताकि जब वे पढ़ो यह क्रम से बाहर नहीं होगा? लॉक में स...

c# - Linq to Sql Many to Many relationships -

I have just started a new project using Linq for a SQL model and I have many I'm implementing I have found this blog how it executes: When I add some child objects If I try and try to delete one before saving, then I get an error, system. Resident Operation Exception: An entity can not be removed which was not attached is. Any ideas? Someone has already commented on the blog author, but there is no response. Greatly appreciate! You are calling the Onsubmit removed on an entity, which has not been sucked into datacentext. To test it (rather than a hamy way), do the following: var e = some_entity; Var CS = DC Chat changet (); If (cs.Inserts.Any (x => x == e)) {d.SomeTable.DeleteOnSubmit (e); } DC. Submit changelog ();

asp.net - jQuery, string manipulation : find a tag -

"After a post with $. Ajax () ", sometimes I The server receives an exception. You can see a portion of the HTML below: & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; MyMessage & lt; / Title & gt; & Lt; Style & gt; / * ... * / & lt; / Style & gt; & Lt; / Head & gt; & Lt; Body bgcolor = "white" & gt; & Lt; Period & gt; & Lt; H1 & gt; Server error '/' application & Lt; Hour width = 100% size = 1 color = silver & gt; & Lt; / H1> & Lt; H2 & gt; & Lt; I & gt; MyMessage & lt; / I & gt; & Lt; / H2 & gt; & Lt; / Span & gt; & Lt; P & gt; Exception description: & lt; / B & gt; System Exception: Mimese & lt; Br> & Lt; Br> & Lt ;! - ... - & gt; [Exception: MyMessage] Lambda_Math (ExecutionScope, ControllerBase, Object []) +15 9 ... & lt; / Body & gt; & Lt; / Html & gt; I...

windows - How can I start Capistrano from bash? -

I am trying to use the scriptists on my server, on my server. I have made everything and setup DeloRb file and remote repo on a Geet Live. Now when I try any cap command, even with cap -h git bash, I get this error: sh.exe ": cap: command not found I am in the right directory. It seems that the Git Bash is not connected to Capistorno. What do I have to call Capistarons? After the reply to SPL, I added to the Capitolano directory in the path: C: \ InstantRails \ ruby ​​\ lib \ ruby ​​\ gems \ 1.8 \ gems \ capistrano-2.5.8 \ Bin. Now the error message has changed from cap -h : text "itemprop =" text "> GIT Bash, Windows Command Prompt In contrast, only the path environments do not appear in the E-Bed and the current directory, either specify the full path of the cap executable (if it is in the current directory, use ./cap ) or Its place is PATH variable Add, and you will be able to run it. / P> Note that you have to close git ba...

Is C# going existential on me? -

For any reason if (false) are actually working, the reference aquell call is in the form of an additional test. Before it was just user == faucet that came in the form of a liar and still if the statement is still already .. [UPDATE] This is a SharePoint / ASP.Net environment, yes It's multilingual, although none of the code I have written is not threading it is a simple enough call result in a boolean type, which if a statement seems to be false = true I try a clean solution , The god restarted the atmosphere Sector while, while restarting the machine. I am not getting any evidence that the code in the debugger is different from being executed. [Note] The code is not very good as I have cut a certain amount of use for some things and check why this is going wrong, do not keep bad codes against me, for example userFound NameNotFound Try creating a clean build? It is possible that the code at IDE does not exactly match the debug code.

sql server - Guidelines for creating additional full-text catalogs -

Good Wizards are called If this is a large table or view, or if selected In the full text list there are indexed or other large tables, consider assigning this table or see your own full-text list "big" is a very subjective word Is this 1,000 records or 1,000,000 in a table? What guidelines do you follow when creating additional full-text catalogs? Is it bad to deal with multiple tables in this 1 full-text catalog, or to keep a 1-1 relationship between the list and the table? I have usually only broken them on the basis of specific rules, e.g. This list ignores any non-alphanumeric, it gives everything, it is very sensitive, etc. Read in this FT white paper published by the SQL CAT team: It is more comprehensive than your specific question;

c# - Castle.DynamicProxy2 and Adding a Property at Run Time -

I am using Castle.DynamicProxy2 and I am immediately converting my proxy: Private Static T Generate Process () {ARE LIST addtlInterfaces = new array list (); AddtlInterfaces.Add (type (INotifyPropertyChanged)); AddtlInterfaces.Add (EntityStatus); Object Entity Proxy Generator. Secret Class Proxy (Typef (T), Adult Interface .Ore (Type) Type [], ProxyGenction Option Default, New Inteceptor [] {New Leggie Interceptor ()}); Return (t) unit proxy; } My interface of IEntityStatus looks like this: Public Interface IEtityStatus {bool IsDirty {get; Set up;}} I need to be able to use that property during runtime so that when an asset has been changed in my DTO, then the event will make DTO dirty Can be set for. However, because it is an interface and it has no clear implementation, how can I harm it. Is there an option to get a set and method for the set method that I would like to save, can I gain another way of achieving it? I know that I can establish a collection of all my ...

c# - Is there a way to get the variables that were used in a RegEx.Replace to use in .NET? -

For example, I have a pattern I used to use the \ g option Looking for I miss my last search I want to be able to reuse them. For example: string pattern = @ "\ g & lt; test: something \" * for example: net c # (i.e.: save matches in archives) ;; String id = regEx.match (original, pattern). value; // The boy above has 3 matches and I want to save all three in a generic list. I hope that it is clear, if not I can expand. Thank you: -) Try it: Private zero btnEval_Click (object) sender, EventErgues e) {txtOutput.Text = ""; Try (if (Regex.IsMatch (txtInput.Text, txtExpression.Text, getRegexOptions ())) {MatchCollection matches = Regex.Matches (txtInput.Text, txtExpression.Text, getRegexOptions ()); match foreign matches (matches) {txtOutput.Text = = match. value + "\ r \ n";} Int i = 0;} Else {txtOutput.Text = "regex can not be matched";}} catch (exception ex) {// the probable cause is a syntax error in the regular expressio...

How to Sandbox Ant Builds within Hudson -

I am using the Hudson Build system as a centralized, "sterile" build environment for a large company whose There is a very distributed development (from both a geographic and managerial perspective) to ensure that one goal is to create only one task of a source control tree and a build script (part of that tree). In this way, we can be certain that the code placed in the production environment actually generated from our source control system Hudson has a complete set of specified rights to the user implementing himself on the Hudson server Ant script provided because we want to allow individual development groups to modify their construction script without admin intervention , We (1) would like a way to create a sandbox creation process to limit potential pitfalls due to a wrong builder script, and (2) avoid all games to include any malicious code in a build Could. Here I think I want (at least for the ant, we are not using Maven / Ivy yet): near the ant build scr...

Flot Data Labels -

I am trying to create a line chart using float, but I would like the data to appear on the label chart - Meaning, I want the price of each point to appear next to that point I think this should be an option, but it can not be found in the API. Am I missing something, or does anyone know an alternate solution? Thanks in advance. Here's how I had added the feature with a pleasant animation effect: Pre> var p = $ .plot (...); $ .each (p.getData () [0] .data, function (i, el) {var o = p.pointoffset ({x: el [0], y: el [1]}); $ (' Lt; Div class = "data-point-label" & gt; '+ el [1] +' & lt; / div & gt; '). CSS ({status:' full ', left: o Left + 4 , Top: o top-43, display: 'none'}) .appende (pg. Placeholder ()). Feedin ('slow');}); You can move the status and display CSS in a stylesheet.

google app engine - How to refactor this Python code? -

वर्ग मेनपेज (webapp.RequestHandler): डीईएफ (स्वयं) प्राप्त करें: user = users.get_current_user () tasks_query = टास्क.ऑल () कार्यों = कार्य_क्वैरी.फेट (1000) यदि उपयोगकर्ता: url = users.create_logout_url (स्वयं। अनुरोध) अन्य: url = users.create_login_url (self.request.uri) template_values ​​= {'कार्य': कार्य , 'Url': url} पथ = os.path.join (os.path.dirname (__ फ़ाइल__), 'index.html') self.response.out.write (टेम्पलेट। रेंडर (पथ, टेम्पलेट_विभिन्न)) श्रेणी गैजेट ( Webapp.RequestHandler): def (स्वयं) प्राप्त करें: user = users.get_current_user () tasks_query = Task.all () कार्यों = tasks_query.fetch (1000) अगर उपयोगकर्ता: url = users.create_logout_url (self.request.uri) अन्य: Url = users.create_login_url (self.request.uri) template_values ​​= {'कार्य': कार्य, 'url': url} path = os.path.join (os.path.dirname (__ फ़ाइल__), 'गैजेट। Xml') self.response.out.wr आईटीई (टेम्पलेट। रेंडर (पथ, टेम्पलेट_मूल्य)) वास्तव में यह आपकी क्या निर्भर ...

Absolute url in jsp -

I am experiencing problems in resolving relative URLs when including CSS, JS and images in my JSPS. The URLs change to refresh the page or click on the back button. I think the solution to the problem is to include external files using the absolute URL. But I can not know how to use contextual URLs and use it. Can anyone help me on this? Is it looking for you? $ {PageContext.servletContext.contextPath} ... In your jsp: & lt; Link rel = "stylesheet" href = "$ {pageContext.servletContext.contextPath} /css/page.css" media = "all" type = "text / css" />

.net - C#: Check if a file is not locked and writable -

I do not want to write files or use the list of files before starting to replace them. Sure I know that the time of file check and file copy is an opportunity to lock one or more files to another person, but I handle those exceptions. I would like to run this test before copying the file, because the complete list of files is a good chance to succeed, if one file fails to fail in the middle of the operation. Any one of you or an indication in the right direction This thing There is no guarantee that you have a similar list, it is going to be in the form of the next one, because when someone comes back to you you can control the file. I do however, in a way - see "lock" those files that you want to replace by receiving their respective filestream objects. In this way you are certain that you have locked all the "available" files and then you can replace them the way you want them. Public Zero TestGivenFiles (list & lt; string & gt; listFiles) ...

Iframe Size problem in facebook iframe application -

I have an IFrame application that works well, but the problem occurs when the contents of iframe are large, cut the text goes . I registered the application as IFrame and set it as resizable. I have implemented the following code but nothing works I have the xd_receiver.htm file in the Myapp folder. Please help me on this in my iframe app use FB.CanvasClient.startTimerToSizeToContent (); setSizeToContent () instead of which seems to work for me. Edit : Can your Javascript actually be in the xd_receiver.htm file? Does it require a path (full or relative)? Did Apache eat stable files from that directory?

c# - ListView onScroll event -

I am programming a simple C # application, and I need a Scallow event on the list view. So I inherited the original ListView class created in ListviewEx witch. I found out how to locate the scroll message from WinAPI and I modified the WndProc method. Now I have this WndProc: protected override zero WndProc (Ref message message) {base.WndProc (Ref I); If (m.msg == WM_VSCROLL) {onScroll (This, New EventArgs ()); }} But the problem is, I do not know how to know about scrolling information. This data should be in wParam, but there is a LOWORD macro ++ like in C in C # and I switch to find the criteria like SB_ below, SB_ENDSCROLL, SB_PAGEUP etc. there any way Need to change the LOWORD macro from C #? Or any other way to find the necessary parameters about scrolling? You can define the WParam constants as the following: Private const int WM_HSCROLL = 0x114; Private Constant WM_VSCROLL = 0x115; Private contact int SBHOZZ = 0; Private Consultant SB_VERT = 1; Private Con...

css - Footer on last printed page -

I have a web page that the client wants to print, and that part would have trouble getting around my head #printfooter {display: block; I used to get the footer to sit in the bottom of the page with the last printed status: fixed; Below: 0;} But it displays the footer at the end of each page. Maybe I'm asking a lot from CSS ... is this possible? I am thinking that I should just be mad & lt; Br /> 's (^ _ ^) Try to complete the relative and footer of the body Do: body {status: relative; } #printfooter {status: complete; Bottom: 0; } You can use something with: @page: last {@ bottom-center {content: "..."; }}

About Delphi Wings (ORM) -

Does anyone know that the Delphi Wings (the Mbarcadero ORM for Delphi) will be available in Delphi 2010? I am testing some ORMs, but I will soon pre-embarcorder, if it is available soon. Regards, Francis Wings are not an officially supported ambercadero ORM That will be part of Delphi This is a project developed by Powell Gołki, an Emberdadro employee.

Best approach to remove time part of datetime in SQL Server -

Which method provides the best performance when extracting time from a datetime field in SQL Server? a) Select DATEADD (DD, DATEDIFF (dd, 0, getdate ()), 0) or b) Select cast ( The second method sends some more bytes in some way, but it can not be possible that it is important as the speed. . Both appear to be very fast, but can there be a difference in speed while working with hundreds or thousands of rows? In addition, is it possible to do SQL In an equation There are also better ways to get rid of the time part of Yaseema? Strictly, the method A is the least source: a) Select DATEADD (DD, DATEDIFF (dd, 0, getdate ()), 0) proven low CPU intensive one for the same total duration I had seen similar tests somewhere else with similar results. I like DateAD / DATEDIFF because: Walker is subject to language / date format issues Example: Float on internal storage This works on the first day of the month of tomorrow, by changing the "0" b...

java - JSF: Accessing Bean from Validator via field -

I have a JSF videorator who checks whether the container number is consistent with string specificity or not. This works fine, though I must add some conditional processing based on other values ​​in the bean where the container comes from the number. This bean can be of many different types. Is there a way to use and work on bean in verification? Ideally I would love to keep it as a legitimate, although if there is no solution, then I have to apply it before applying logic in Bean. I am thinking on the lines of this: public class ContainerNumberValidator applies javax.faces.validator.validator {public void verification (FacesContext reference, UIComponent component , Object value) Throw ValidatorException {substance bean = UIComponent.getMyBeanSomehowThroughAMagicMethod (); If (BeanA instanceof beans) {// do this} else if (BeanB instanceof beans) {// that}} Update: In many ways it At the same time there is a similar problem for the recognition of many areas by balusc...

javascript - How Google Analytics knows which internet connection we are using? -

There is an option to know about connection information about client access in Google Analytics, I think everyone knows about this But my question is, how does Javascript know these details? If it is not talking about IP or http / https, then it seems that I am using Tata Indicom or cable connection for internet use how Google Know in JavaScript is not there. Javascript can not provide your IP address to Google. Google then uses your IP address, to analyze the network you are doing, and then provide details to Analytics users (of course, it is not always 100% accurate ... but it has been given).

c# - WCF web service watching other WCF web services -

I have to do a traffic COP or controller WCF web service that does nothing with data, but instead gives an order To do this, the second WCF web service. Can someone tell me an example of how this can be done? It would be better that I was not getting any APM stuff. Instead, a supervisor who spins another contract for WCF web service later, when it needs to be seen after that there is currently no other WCF web service with the same meta data in memory or processing. If this is impossible then please say so long as you do not know a small example of how it is done. Maybe an indicator where a person has already covered the subject? Thanks apolfj I do not really understand your question, But maybe this will help you: A "service virtualization" approach Includes a WCF load balancer Maybe among them One will be tailored to your needs

.net - Set default print paper size when printing a pdf generated from crystal reports? -

To generate a PDF in ASP.NET.net, I am using Crystal Reports (version which comes with Visual Studio 2008) which is then pulled into a customer's browser. Some of these reports are on legal size papers, which means that for these reports our customers have to change the paper size every time in print print. Of course, often they do not do this until they already print 10 page reports on the wrong paper, which will waste time and paper. Is there a way to embed information on the default paper size for printing inside the PDF? I do not see any option on Crystal Reports API, but I'm not particularly aware about it. The default paper size is actually set in the crystal file -> using page setup; This will determine the output size of the PDF. Unfortunately, in the print dialog of Adobe Acrobat, the "Select the paper source from the PDF page size" check box needs to be changed, the check box must be checked. I believe this checkbox is "sticks" on all t...

Debugging C# ASP.NET Web Services -

I have some legacy web services written in C # ASP.NET, a specific library in the library used by the web service. Is the object that I have to inspect. Setting a breakpoint in the web service does nothing. With this fact it becomes difficult that the code is so awesome that the entry point in the web service callout is unclear. Here are some reasons your breakpoints are not working: Li> You are adding the debugger in the wrong process. Does not match the PDB assembly for your assembly (module window shows PDB load status). Maybe PDB is outdated.

How to find dispose and memory issues? C# -

My app was not using 150MB of memory long before, it is now at 286 MB, it is slowly So I should forget to break some. This is not a problem for me because I have 4GB but I want to send it only to those who have 1 GB RAM. Others are going through the line from the line through the code line. How can I find an object that just needs to be tackled or just generally big objects? expanding both JP and Reid's responses. I wanted to clear some confusion if you are seeing a significant increase in memory then there is no possibility of a problem in resolving the problem. Settlement is usually done to liberate unmanaged resources such as handles, they do not take much memory, but instead are more valuable as resources. An increase in memory is usually associated with a large object or collection that can be used directly or indirectly from a managed object through a stack object or a strong GC handle. This is an area you want to focus on your investigation.

php array and foreach? -

Below is my code. I'm trying to work, but I actually have very little knowledge of array and foreign language Then it does not work correctly I have to show a dropdown form in the browser with the content of the array, I also need to select the item if it is == $ mycountry, then finally I have to show to the United States and the UK at the top of my list Can anyone tell me how I can do this "Turks and Caicos Islands", "21 9" => "Tuvalu", "220" => "Uganda", "221" = & gt; "Ukraine", "222" = & gt; "United Arab Emirates", "223" => "United Kingdom (Great Britain)", "224" => ;" United States of america "); $ Mycountry = 224; ? & Gt; & Lt; Select name = "country" style = "width: 180px;" Onchange = "do_get_rest_popup (this.value)" /> & Lt ;? Php $ countryCounter = 1; $ AmtOfCountries = C...

regex - Apache mod_rewrite only if request does not start with '/THEMES/' -

I am writing a CMS in PHP, and now I am working on theme features. I have an .htaccess file: RiverEngineOnOrvrite Rule ^ ([a-zA-Z] [a-zA-Z0- 9] *) $ index.php? M = $ 1 rewrite ^ ([A-zA-Z] [a-zA-Z0- 9] *) / (. +) $ Index.php? M = $ 1 and P = $ 2 If I have a request for this: / page It needs to load the view function of the class named page. If I have a request for this: / page / test with parameter 'test', this page It does all this work, but if this request begins with no : / Themes / then I can apply CSS styles etc ... Can anyone help me? Thank you. You can use an additional rule to stop the rewriting process: RewriteRule ^ THEMES / - [L] RewriteRule ^ ([a-zA-Z] [a-zA-Z0- 9] *) $ index.php? M = $ 1 RewriteRule ^ ([a-zA-Z] [A-zA-Z0- 9] *) / (. +) $ Index.php? M = $ 1 and P = $ 2

How can I use SqLite with BlackBerry OS 4.5? -

I am currently using persistent storage in Blackberry. I want to use the SQLite database with Blackberry OS 4.5, but I can not find any tutorials for that. Can I use Escrow with Blackberry OS 4.5 or do I need another version of Blackberry OS? SqLite support for BlackBerry OS 4.5 supports BlackBerry OS 5.0 Square support. For more information, see of the rim

problem in parsing XML in iphone SDK? -

I have used the following to parse the xml file, but i can get the t value ... anyone Can also help me ..? (Zero) parser: (NSXMLParser *) parser didStartElement: (NSString *) elementName namespaceURI: (NSString *) namespaceURI qualifiedName: (NSString *) qualifiedName attributes: (NSDictionary *) attributeDict { If ([elementName isEqualToString: @ "query"]) {// Certify the array. AppDelegate.books = [[NSMutableArray alloc] init]; } Else if ([elementName isEqualToString: @ "city"]) {// certify the book. ABook = [[Book Alok] Init]; // Remove the attribute here. ABook.bookID = [Attribute object objectForKey: @ "name"]; // NSLog (@ "Reading ID ID:% i", aBook.bookID); } // NSLog (@ "Processing Element:% @", elementName); itemprop = "text"> You must have at least 3 of NSXMLParser delegates } to see actual instructions

c# - Add Event Handler to User Control from custom object -

I have created a user control in which there will be a table of linkbutton (and other information). I create table rows in another custom object and return a TableRowCollection with some link buttons in these table rows. In the rear code for user control I have created an event handler for the button click, these passwords pass the user control in the call call to make the buttons lines (using "this") And then try to add event handler to "click" in the link button. For some reason, the event handler does not fire back on a post due to this button. What can I do to make this incident a fire? Here is the code where I create a button and add event handlers: link button button = new LinkButton (); button. Text = movie title; button. Click + = new event here. Dragler (Control LinkedClick); button. CommandArgument = result.localid.toString (); Cell1.Controls.Add (button); Where "control" user controls have been passed as a parameter and the "L...

How could metaprogramming be used to reduce redundancy in this Ruby code? -

वर्ग डिवाइस डीईएफ़ प्रारंभ (DEVICE_ID, data_resource) @id = DEVICE_ID @data_resource = data_resource अंत डीईएफ़ display_device मोड = @ data_resource.get_display_device_mode (@id) प्रीसेट = @ data_resource.get_display_device_presets (@id) सारांश = "display_device: # {मोड} ($ # {प्रीसेट})" वापसी "* # {सारांश}" अगर प्रीसेट == "XTC909" सारांश अंत डीईएफ़ चिप मोड = @ data_resource.get_chip_mode (@id) प्रीसेट = @ data_resource.get_chip_presets (@id) सारांश = "चिप: # {मोड} ($ # {प्रीसेट})" वापसी "* # {सारांश}" प्रीसेट अगर == "XTC909" सारांश अंत डीईएफ़ input_device मोड = @ data_resource.get_input_device_mode (@id) प्रीसेट = @ data_resource.get_input_device_presets (@id) सारांश = "input_device: # {मोड} ($ # {प्रीसेट})" वापसी "* # {सारांश} "यदि presets ==" XTC909 "सारांश के अंत का अंत जैसा कि आप ऊपर दिए गए कोड से देख सकते हैं, वहाँ बहुत कम है redundan तरीकों के भीतर सीआई चाहे इस अतिरेक को कम करने का...

javascript - Stop Submit With Empty Input Values -

I'm looking for a simple solution to stop a login form from submitting from the blank input field. The code for is below. If possible, I would like to use a simple JavaScript solution. & lt; Form id = "login" method = "post" action = "" & gt; & Lt; Input type = "text" name = "email" id = "email" /> & Lt; Input type = "password" name = "pwd" id = "pwd" /> & Lt; Button type = "submit" id = "submit" & gt; Login & lt; / Button & gt; & Lt; / Form & gt; If possible, I would like to change the range of empty fields. Thanks in advance. Sample code with dummy check: & lt; Script type = "text / javascript" & gt; Function Check Form (Form) {var Mail Check = Checkmail (Form Elements ['Email']), PWD Check = Check Paid (Form.Elements ['PWD']); Return Mail Checkers & amp; PwdCheck; } Fu...

java - Question about SQL catalogs - What exactly are they? -

Now something is bothering me, and one hour or two googlin 'has not really told any useful Replying to the topic, I thought I would just write questions. When I am creating a database using 'create database' in SQL, then am I making a list in that database? Is it appropriate to refer to 'DBNAME' as a list? Or is it something completely unrelated? When I use the getMetaData () function, using the MySQL JDBC driver to get the list of tables in the database using the "TABLE_CAT" column (meaning 'I will be cataloged') always me The name of the chosen database is set to. Coincidence? Or am I completely wrong on this? List how many people have the JDBC word (and some RDBMs) call databases. I.e. a collection of tables / ideas etc. in the database system.

c++ - How do Concepts differ from Interfaces? -

How do concepts (which recently come out of the C ++ 0x standard) are different from the interface in languages ​​such as Java? Concepts are for compile-time polymorphism, which means parametric generic code. Interface is for run-time polymorphism I You have to implement an interface as you implement a concept. The difference is that you do not have to explicitly say that you are implementing a concept. There is no problem if the required interfaces match. In the case of interfaces, even if you have implemented the necessary all , you are excited that you are implementing it! I will try to clarify my answer :) Imagine you're designing a container that has size member The function is. We formalize the concept and call it a smile, of course we should define it somewhere else but it is no longer an example. template & lt; Class HasSize & gt; Square container {hyss [10]; // just do not take it an example seriously :) / should be a member of the elements / ...

html - Making CSS Tabs a Specific Width and Height -

I am trying to set up CSS tabs and I want them to have the same height and width. How can I do this / the following CSS: #master_tab_layout {height: 35px; } #master_tab_layout li {display: inline; Hidden flurry; List-style-type: none; Background color: # FE000C; } # Master_ababy_layoutaa, a. Active {color: #DEDECF; Background: # 0EB1E8; Fonts: Bold 1em "Trebchett MS", Aerial, Non-Serif; Border: 2px solid black; Padding: 2px 5px 0px 5px; Margin: 0; Width: 150px; Text-decoration: None; } # Master_ababy_layout a. Active {background: # ef2000c; Border bottom: 3px solid # Abaada 85; } # Master_ababy_layout a: hover {color: #fff; Background: #FFF; } #master_tab_layout a: visited {color: # E8E9BE; } # Master_ababy_layout a. ActiveHouse {background: # FEA 2000C; Color: #DEDECF; } ... and later HTML: & lt; Div id = "master_tab_layout" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "/ howtoorder" & gt; How to order ...

c# - Create an Eventhandler via class -

I have an application with lots of ListBox controls. I was wondering if the listing holder for Anseleted Indix Will it be possible to add? All listboxes will use the same method for it I know that I can manually add them but I was hoping for a solution that is currently being used by all those who use the same phenomenon People will change and when I add a new one, which does not tie the method. Can you just iterate over the controls? For example (initiaize your form '/ control ' in ctor): CascadeListBoxEvent (this, MyHandlerMethod) Using the utility method: Fixed zero CascadeListBoxEvent (control parent, event, handler handler) {line & lt; Control & gt; Line = new line & lt; Control & gt; (); Queue.Enqueue (parent); While (queue number; gt; 0) {control c = queue.Dequeue (); ListBox lb = listbox; If (lab! = Null) {lb.SelectedIndexChanged + = Handler; } Foreach (control children in c.Controls) {queue.Enqueue (child); }}}

What would be the best workflow to do refactorings intermingled with new features in Git? -

I am using GIT as a source code management tool. Review the difference with the head less I have more workflow of this workflow The reason for this is that I have faced the situation after some time, which I think is a typical one: After being committed, I used to add a new working directory I'm starting to revise the feature. The code for a while, the status of the working directory should be one at this time. The important thing here is that state A is not a working directory ready, because the new feature has not yet been completed. At this time I realize that it will be better to do a refactoring than before. Accept this, sometimes the need for a refactoring in the process of code modification becomes clear. Now I have to start again from the head and refactoring first. But I do not want to lose code revision -> State A So basically I need it: Refactoring in a copy of the work directory that has not yet changed Last commit Earn it I have merged t...

html - Tomcat: playing audio -

I have removed a web application from one of the options of this app to run audio files that were previously on the server Uploaded I am trying to use the following code: object object id = "mediaplayer" type = "app / x-olebaxy" height = "42" standby = "windows Media installer player ... "width =" 138 "align =" Anup Midi Interpretation "class =" Sielsaidi: 22 D 6 F 312-B 0 F 6-11 D 0-9 4-B 080 C 74 C 7 E 9 5 "& gt; & Lt; Param name = "filename" value = path> & Lt; / Param & gt; & Lt; Param name = "autostart" value = "true" & gt; & Lt; / Param & gt; & Lt; Param name = "volume" value = "3" & gt; & Lt; / Param & gt; & Lt; Param name = "EnableContextMenu" value = "1" & gt; & Lt; / Param & gt; & Lt; Param name = "transparent atstart" value = "wrong" & g...

Getting existing git branches to track remote branches -

जीआईटी के साथ काम करते समय मेरे सामान्य वर्कफ़्लो, ऐसा कुछ है: स्थानीय बनाएं उस रिपॉजिटरी में कुछ काम करें, फाइलें जोड़ें / बदलें आदि। यह तय करें कि मुझे रिपॉजिटरी के लिए एक केंद्रीय रिमोट स्थान चाहिए, और एक बनाएं अब, मैं धक्का और पुल करने में सक्षम होना चाहता / चाहती हूं > इस रिमोट रिपोजिटरी से निर्दिष्ट करने के बिना कि मैं कहां से धक्का या खींच रहा हूं; मैं अपने स्थानीय मास्टर को दूरस्थ मास्टर को ट्रैक करना चाहता हूं। यह करने का उचित तरीका मेरे लिए स्पष्ट नहीं है, और मैं इसे दस्तावेज़ीकरण से निर्धारित करने में असमर्थ हूं हालांकि, यह वास्तव में एक से अधिक कमांड नहीं होना चाहिए। क्योंकि यह कुछ ऐसा है जो केवल एक बार रिपॉजिटरी के लिए किया जाता है, मैंने आम तौर पर दो में से एक सरल, लेकिन हैमी, समाधान: > एक नया स्थानीय भंडार बनाने के लिए इस्तेमाल किया git क्लोन , और पुराने को हटा दिया। जीआईटी क्लोनिंग के बाद, मूल को ट्रैक करने के लिए नया रिपोजिटरी तैयार किया जाता है। मास्टर ट्रैक मूल बनाने के लिए मैन्युअल रूप से संपादित .git / config। मुझे लगता है क...

Firefox shows issue with window.onbeforeunload event -

When using the onbeforeunload function, I do not want to show the warning message for submitting the button inside my form and some other buttons. I'm looking at the situation of Boolean [T / F] to fire it. It works with IE, but it does not check the status in Firefox. This problem is showing whether someone can help thanks I'm not 100% sure, I think what you are saying, but it seems that you are trying to do something that you Should not. If I understand correctly, then you are trying to use onbeforeunload event without a warning message. Think about it for a moment. You will probably see to see that the person who is not of your best interest, can keep you on your site and make it impossible to leave for you. This is the reason why Firefox does not allow you to do this - and There is something like that to be happy!

shutdown - How do you cleanly abort a Delphi program? -

I have a program that is facing some problems during shutdown, to raise exceptions that I It can not be returned to their source, it seems time-bound and non-deterministic, it has happened after all the shared resources have been released, and since it is closed, so the memory leak is not a problem, so I would wonder That if you go to sharing resources Minister immediately after immediately and no way to go quietly telling the program to cease with the shutdown sequence and give an exception message box. Does anyone have to do this? Delphi runtime library after viewing source code and Microsoft document; I can confirm Mason and Paul-Joan comments. The hierarchy of the shutdown is as follows: Application.Terminate () application blocks some unknown housekeeping of Halt () Halt () Exit the call if ExitProc Calls the user in case of runtime errors, can get rid of packageload call references, which can be pending, call all exception handlers to finalize all the units, call exi...

php - How do I detect groups of common strings in filenames -

I am trying to find out in a way that I can locate a series of files. For example: If the given directory contains the following files: Birthday 2001. Birthday 002.jpg Birthday 003 .jpg Picknic1.jpg Picknic2.jpg Afternoon Jpg. I afternoon (1 image) / ul> groups me How should I go about detecting? This is a method you can solve, which is more efficient than an animal force method . Load all names in an associative array with the key equal to the name, but with the equivalent number of names ( you have Something like that would be $ arr1 = [Birthday001 => birthday, birthday 2002 => birthday] ... Now another companion with key Make an array which is the value of the first array and value that is counting when you have already seen the key. Enhance the count. In the end, you will end up with a second array. Here you will find the $ arr2 = [birthday => 2, ...]

html - PHP set selected value of dropdown box -

I have a dropdown box that I'm building with PHP. Here's the code: $ region_result = mysql_query ("select area from area") ;; $ Dropdown = "& lt; select name = 'region' & gt;"; While ($ line = mysql_fetch_assoc ($ region_result)) {$ rid = $ row ["id"]; $ Area = $ line ["area"]; $ Dropdown. = "\ R \ n & lt; option value = '{$ line [' rid ']}' '{$ region}' / option & gt;"; } $ Dropdown. = "\ R \ n & lt; / select & gt;"; After the above code has been processed, I have to set the selected value of the dropdown box. Is there any easy way to do this? Do anyone have any suggestions? Thanks! EDIT: Thank you for your reply. Tell me what I'm doing. I was setting up a "edit user" page, where you can search the user with many criteria and then the results are listed in "edit mode" - that is - in the text boxes and dropdown boxes, then y...

c++ - Structure prototype? -

How can I destroy a straitjacket in a separate file? Function prototypes in header files put me with the function can do eg. Included File.h and file.cpp such instructions included in the source file with the function body and then the main directions in a file # using "file.h". Can someone give a simple example of doing the same thing with a structure like below? I am using dev-c ++. struct person {string name; Double age; Bull sex; }; Simply stated struct person; This is called C ++, Strkkts classes are public by default with all members.

SQL/C# MVC: Order over multiple fields -

I have records for whom "Firstname" and "Lastime" for individuals, and for both companies "company name" The records live in the same table, and I know that it is through a company with Isiompany Bit field in my table or with a person. The problem I am facing now is that I have given them a order grid, in this form: There is no "real" grid, it has only one table that has been provided to server side. How do I order this (via SQL / LINQ?) So that I can order it correctly, eg: Fitz, Mark (Indian) Field, Jonathan (Personal) Waste Resistance Inc. (Company) Fyat, Abel (personal) I appreciate your help people .... Difficult time with this time: ( when IsCompany = 1 THEN company ELSE LastName + ',' + First MyTable ORDER BY DisplayName from the display name as ADN as the name

Android Terminal Emulator commands -

I am a root user, but I can execute Linux commands can not execute certain commands which the Android Terminal Emulator are? The complete list of commands here that you can execute. monkey showlease dosfsck dhcpcd am gzip check_prereq dvz ime logcat applypatch flash_image input server debuggerd getevent pm qemud linker getprop svc radiooptions logwrapper hd debug_tool vold ping id gdbserver dumpstate recovery insmod htclogkernel toolbox shade installd iftop sh ifconfig add-property-tag were tested and found Lost + cpueater latencytop nc netperf Netswr scp showlab ssh strace su dexdump libranc procrank procmem backup Krasr pppd showmap daemonize sqlite3 timeinfo

apache - htaccess rule conflict? -

मेरे .htaccess फ़ाइल में मेरे पास निम्न नियम निर्धारित है। RewriteRule t / ( [^।] +) / $ / वीडीआईटीटीपी.पीपीटीटी === [क्यूएसए] यह नियम टैग पृष्ठों के लिए ठीक काम कर रहा है। जब मैं यूआरएल को http://example.com/video/t/funny/ के रूप में एक्सेस कर रहा हूं, तब यह अजीब टैग के साथ सभी परिणाम प्रदर्शित करता है लेकिन जब मैं एक URL http://example.com/video/script/common/video.php तक पहुंच रहा हूं तो टैग के लिए खोज टैग परिणामों वाले टैग पृष्ठ को प्रदर्शित करना है सामान्य। मुझे लगता है कि URL और .htaccess नियम के बीच कुछ विरोधाभास है। इसके ले / t / common / और इस पर htaccess नियम लागू करने के लिए इस मुद्दे को कैसे हल करें ?? आपका पुन: लिखना नियम सवाल में स्ट्रिंग से मेल खाता है। आप इसे इस तरह से बदलने के लिए बदलना चाहते हैं: RewriteRule ^ / video / t /([^.]+)/$ /video/tag.php?tag=$1 [QSA] असल में, क्या हो रहा है, क्योंकि आपने अपने नियम का START निर्दिष्ट नहीं किया है, यह आपके यूआरएल में "स्क्रिप्ट" के अंत से मेल खाता था और इसे वहां से दूर ले गया था। यदि ...

php - stripping character from mysql result -

I want to move some four such example (/, \, / t..etc) to mysql result. Can I touch every one at a ceremony? I want to know this event. Help me You can change the conditions with empty string, you can do multiple replacement tasks at a time : str_replace (array ("\ t", '/', '\\'), '', $ string);

session variables - PHP HTTP_REFERRER - how to detect last page? -

I need to figure out where the user has just clicked - as my AJAX content is from the source page It is required to display differently depending on the basis If it is to go to about.php, then it needs to be the data only, but if it is going to main-main.php So it should be the whole middle column so that it needs a top / footer cover. Data The HTML phone via AGX is organized in a PHP page which uses this code to see who is asking, and then formatting the HTML response properly. $ array [] = "/cf/about.php"; $ Array [] = "/cf/about/about-main.php"; $ Array [] = "/cf/about/other-page.php"; $ Ispage = ""; Forex currency ($ value $ value) {if ($ _SERVER ['HTTP_REFERER']! = $ Value) {$ ispage = ""; } And {$ ispage = "woot"; }} If ($ ispage == "woot") {$ echo $ content; } Else {include_once 'about-header.php'; Counterpart $ content; Include_once 'about-footer.php'; } The problem is .....

.net - how do i add a title attribute to a panel (div) in the c# code behind file? -

ASP.NET C # How do I add a title attribute (div) to a panel? The file behind the code add runat = "server" attribute to your div, then you can access This is like any other ASP.NET control. Markup: & lt; Div id = "myDiv" runat = "server" & gt; & Lt; / Div & gt; Code-Back: myDiv.Attributes ["title"] = "some title";

html - Where to create a web-site map for developers -

Imagine a web-designer with many fake-up HTML pages. Now it is time to start development according to these fake ups. At first, I would like to know that all fake-ups are present, that means each link has contacted the duplicate page. I just can not click on hyperlinks, because they are empty ('#' urls). And secondly, I have to be a type of map, where the developer can see changes and figures from the page Does any device know any device that is Can I help in creating such documents which are described above as my requirements? Thank you in advance for Windows or for OSX / div> "post-text" itemprop = "text"> You can help create a landscape project , Where you can create an interactive diagram where each box shows the page. When you click on a box, it shows the page mockup associated with the box. You can also draw lines between each box that represents the links to other pages on this page.

How to avoid conflicts when using services? (.NET C#) -

itemprop = "text"> Imagine this class namespace CommonLibrary {public square report () {public Start Date Time {Get; Set; } Public int count {get; Set; }}} This is the return type of a WCF service method. When I use svcutil.exe it re-creates the square from the metadata: Name space CommonLibrary {[System.CodeDom.Compiler.GeneratedCodeAttribute ("System.Runtime.Serialization", "3.0. 0.0 ")] [System.Runtime.Serialization.DataContractAttribute (name =" TrafficProblemReport ", namespace =" http://schemas.datacontract.org/2004/07/Indica ")] Public partial class TrafficProblemReport: Object, System. Runtime.Serialization.IExtensibleDataObject {Private Systems. time to time. Serialization. ExtensionData Object ExtensionData field; Private Systems DateTime Startfield; Private integer calculation field; [System.Runtime.Serialization.DataMemberAttribute ()] Public System.DateTime start {{get it. BackField Return; } Set {this.Begin...

web services - Most RESTful Authentication Approach - Who is using it? -

डुप्लिकेट: यह प्रश्नों में से एक का चाहिए डुप्लिकेट होना चाहिए जो निम्न खोज में आते हैं: कृपया इसे डुप्लिकेट के रूप में बंद करें यदि आप सहमत होते हैं, और किसी भी अन्य प्रश्न का कोई भी जवाब जोड़ते हैं। प्रमाणीकरण का सबसे ह्रृदय रूप क्या है? क्या वेबसाइट इसका इस्तेमाल करते हैं? (इसलिए मैं दस्तावेज़ीकरण को देख सकता हूं)। कुछ एपीआई को देखते हुए जो कि बाकी होने का दावा करते हैं वास्तव में पीओएक्स (उदा। दूध याद रखें) मुझे नहीं पता है कि यह 'सबसे अधिक प्रफुल्लित' प्रपत्र है, लेकिन अमेज़ॅन एस 3 एक प्रमाणीकरण विधि का उपयोग करता है जो दस्तावेज है। प्रत्येक अनुरोध पर हस्ताक्षर किए गए हैं, इसलिए बैकएंड पर नज़र रखने का कोई सत्र नहीं है, लेकिन आप यह भी सुनिश्चित कर सकते हैं कि किस उपयोगकर्ता ने अनुरोध जारी किया है।

Flex layout : Changes made to a single state -

I was modifying the layout of the Flex application in the flex builder. What I did not know was that the changes I made were made for a particular state. There are about 6-7 states in my application. Now, I need those changes in all the states. How do I do this? So far, there are several rows in such a state: & lt; Mx: SetProperty target = "{accno}" name = "x" value = "116" /> & Lt; Mx: SetProperty target = "{accno}" name = "y" value = "826" /> & Lt; Mx: SetProperty target = "{phone}" name = "x" value = "116" /> & Lt; Mx: SetProperty target = "{phone}" name = "y" value = "866" /> If the condition is relative, you can use math in your binding. Why do not you buy X & amp; For the variables on aquoons and phones, and do math for relative status? & lt ;? Phonetag? X = '{accno_x}' y = '{accno_y + 40}' ... /...

C++ interpreter / console / snippet compiler -

I'm looking for a program where I can put a C ++ code snippet in a window, pressing a button Tax, and output. Another window compilation should somehow be concealed behind the button. Every copy will be fine, complete interactive based on the snippet, which is probably asking too much. It should be run under Linux / Unix, learning / testing / small debugging etc. will be the main use case. Related Content I found: - Reinteract project for Python (which I have told the sage that there are similar characteristics) - for C # The same thread is here: - CINT interpreter from Cnet Root project (which may be close, but may be a more comfortable app around) - Some programs that are quickly compiled or called the code snippet, which are M $. Works well for this purpose By default, when you press the submit (and any errors you may have) when you submit results, it will paste you. .

c# - Cookie getting unset when a read attempt is made? -

Image
There is a strange problem for you. I have created a control that puts a record in a database and writes a cookie to the user's machine here's the cookie writing code snippet: protected void CreateCookie (Guid id, DateTime expires) {var oCookie = new HttpCookie ("gsow"); OCookie.Value = id.ToString (); OCookie.Expires = ends; HttpContext.Current.Response.Cookies.Add (oCookie); } Very simple, nothing fancy. The id is passed through the function which writes the entry in the database and this id is generated on the fly. Now the code for my cookie readings is: Protected Zero Page_load (object sender, eventArgues E) {var oCookie = HttpContext.Current.Response.Cookies ["gsow"]; Output.Text = "I'm here" "; If (ocu! = Null) output. Text + oaku.value; Else output2.Text = "no cookie."; } Once again, it is very easy. Here are the steps I have taken and repeated many times: Make a cookie / db entry by launching the fir...