Posts

Showing posts from September, 2013

How can I get Dreamweaver to search Perl files? -

I use Dreamweaver as the preferred editor for web development, and often older projects get some Pearl files. Find and replace the Dreamweaver for some resonance dialog does not seem to recognize these Pearl files. .pl or as searchable files. CGI , so when I use "Find in Folder" on a folder, I know that only the Pearl files that give "0 does not get found in documents" and do not appear to be searched. How can I get help to find these files? Thanks, Tom Dreamweaver default search SCALA , CGI, PERL, CLS, [insert rare file type] files do not. For example, if you need to find and replace a global inside files with many CGI and PRL extensions like .cgi or .pl, then Dreamweaver will skip the extension. In order to create Dreamweaver windows recognize these extensions, you need to edit two different extensions.txt files. Here are basic steps to follow. Back up any files that you are editing for unplanned screw-up Dreamweaver Run Notepad.exe in

SubSonic SQL CE Error -

I have an old C # project which currently runs on SQL CE database. I decided yesterday that I would like to use subsonic to make DAL for myself because I have used a lot of subSonic in my other projects (with a standard MS SQL database backend) and I'm comfortable using it. > Everything looks fine, I can create and delete records, but as soon as I update a record using the Save () method, it returns the error: < P> example: person = new person (); person. Name = "Robert"; Person.Save (); // works fine, record person is saved. Name = "Robert - Update"; Person.Save (); // failed with error below "There was an error parsing the query. [Token Line Number = 1, Token Line Offset = 61, Error in Token = SELECT]" When I create a new question and install the type of query for the update, it works as expected. Any thoughts? Thanks Try to capture the generated SQL to see what is executed Please. My guess is that the subsonic column

java - What would you expect of a mobile development framework? -

We are planning to create a web-based client-side application framework. The main goal is to look at the original using Java Write webapps and compile them for your targeted platform. Our planned target platform will be iPhone and Android (at the top of PhoneGap), backberry and palm webos. Our goal is to create a decent framework and this is how it is posted. We want to know how developers will expect such structures and what topics are more important than other topics. We also want to know that providing UI-Framework will be more important, which is actually the target platform (for example Scrolling behavior) or use HTML5 and PhoneGap features, to store, and manipulate data. A. Provide some decent APIs. e.t.c. Would you, as developers, really like to look into a kind of structure? After all, you are such that (hopefully a few days) will use it. And most important: will you use it? I need a good GWT framework for mobile platforms at least on the iPhone and Android), a nat

javascript - How to show live preview in a small popup of linked page on mouse over on link? -

How will the live preview show in the little popup of the page added to the link? Text "> You can use an iframe to display a preview of the page on the mouseover. & lt; A href = "http: //en.wikipedia.org/">Wikipedia</a><div class =" box "& gt; & Lt; Iframe src = "http://en.wikipedia.org/" width = "500px" height = "500px" & gt; & Lt; / Iframe & gt; & Lt; / Div & gt; The mouseover is open on CSS: .box {display: none; Width: 100%; } A: Hover +. Box, .box: hover {display: block; Status: Relative; Z-index: 100; } .

iphone - How to print the public key of a certificate (Objective-C) -

I have a certificate. P12 and .crt and I have to store the public key to print it and the key iPhone application I have seen the documentation of the iPhone, but I can not do this ... This is surprisingly easy. You do not need to add a certificate for the keychain to handle this case. Rather, just load the certificate data (i.e., the contents of a .cer file) in your application (you can either get from your bundle or turn off the network) and then underline a certificate using SecCertificateCreateWithData Please. From there you can remove a public key ref by using a SecTrust object (SecTrustCreateWithCertificates, SecTrustEvaluate - you can choose to ignore the resulting SecTrustResultType- and SecTrustCopyPublicKey). And from there you can encrypt and verify using SecKey APIs (SecKeyEncrypt, SecKeyRawVerify).

c# - Remove need for Invoke() by handling within threaded library -

I am writing in a classroom library that I have a way to go to the library and some stuff on a different thread Does something like this: Public Zero DoStuffAsync (APP) {this.Running = true; this. Cancel = false; Parametted Thread Start Thread Start = New Parameterated TraderStart (DUSTF); Thread procThread = new thread (threadstart); ProcThread.Start (p); } I have many such events that can be declared by developers on these interfaces, such as StatusUpdate and ProgressUpdate. I am currently writing a small test app (currently in WPF though I expect the same behavior in WinForms) which calls DoStuffAsync () and then updates a progress bar and label. Unfortunately 1A got an error, I do not have a common thread which is the owner of control What I want to do, the need to call the request () to the user removed from the UI , And just for them to subscribe to events and to work them. So the question is, one way I can do this while working with event handler? Currently trigger

PHP drop down and Session question -

What really needs to happen here .. One session takes my data from the drop down below. And then take it back on this page, with a header on the process page. Then when it comes back to the first page, the dropdown will be populated with the session or the same client when I left that page and the change in the drop down will work. Can anyone help me with this. Thanks, now it gives the customer drop down, but changing to drop down does not work which I really need to work on. session_start (); $ Current = release ($ _ session ['client namefor'])? $ _SESSION ['client namefor']: 0; While ($ line = mysql_fetch_array ($ result)) {$ id = $ row ["Client_Code"]; $ Cheese = $ line ["Client_Full_Name"]; $ Value = "$ id, $ thing"; ? $ Sel = ($ id == $ current) selected ':' '; $ Options4 = "& Lt; OPTION $ sel VALUE = \" $ value \ "& gt; $ Item; }? & Gt; & Lt; Form name = "form" action = "

Returning reference to a pointer- C++ -

निम्नलिखित वर्ग पर विचार करें। वर्ग मैपिंग_इटम्स {public: mapping_items () {} शून्य जोड़ (कॉन्स्ट मैपिंग_आईटेम * आइटम) {items_.push_back (आइटम); } Size_t count () const {रिटर्न आइटम_आकार (); } कॉन्फ़ मैपिंग_आईटेम & amp; खोज (const std :: string और pattern) {const mapping_item * item = // पुनरावृत्त वेक्टर और आइटम ढूंढें; वस्तु वापस; } निजी: मैपिंग_आइटम्स (कॉन्स्ट मॅपिंग_इटम & amp;); // अनुमति नहीं mapping_items & amp; ऑपरेटर = (कॉन्फ़ मैपिंग_आईटेम्स & amp;;); // अनुमति नहीं std :: vector & lt; const मैपिंग_आईटेम * & gt; items_; }; सी ++ अकसर पूछे जाने वाले प्रश्न कहते हैं, जब आप कर सकते हैं संदर्भों का उपयोग करें, और जब आपके पास संकेत मिलता है। ऊपर दिए गए उदाहरण में, क्या मुझे const mapping_item & amp; या const mapping_item * ? वापस कारण <+> मैपिंग_आईटेम & amp; इसलिए है क्योंकि हमेशा एक डिफ़ॉल्ट रिटर्न मूल्य उपलब्ध होगा मैं कभी रिक्त रिटर्न नहीं होगा इसलिए एक संदर्भ यह स्पष्ट करता है कि इसमें नल नहीं हो सकता है। क्या यह सही डि

javascript - Combined JS File Using YUICompressor Causing Errors -

I'm adding several JS files using YUI Compressor This command works successfully and a joint file is properly Outputs. When I point it to my page, though, it does not seem to be read properly and I get this error in the Javascript error console. yahoo has not been defined I have tried to use the --nomunge and --preserve-semi options but still one Only get the error. Any thoughts? Are you sure you want to run Yahoo's UUJ JS file before your script? Variable YAHOO is defined in yui.js so that the script needs to be in existence and try to run any javascript before you use it.

arrays - How to get A-B in PHP? -

$ arr1 = सरणी (23,43,54); $ Arr2 = सरणी (34,23,3456,43,11,54); मैं $ arr2 के तत्वों को प्राप्त करना चाहता हूं जो कि $ arr1 < Div class = "post-text" itemprop = "text"> array_diff () आपका आदमी है

c# - EndianBinaryReader - Contious update of the input stream? -

I am trying to use EndianBinaryReader and EndianBinaryWriter Which John Skeet wrote as part of it, it works very well for the two uses used by me. Reading before the network stream ( TCPClient ) where I read a loop reading data. I can make a single Andyen Banner Reader and then I can settle it after application closes. By creating EndianBinaryReader in TCPClient.GetStream Now I'm trying to do the same thing when one reads from UdpClient But it does not have a stream because this connection is low so I get data like this byte [] data = udpClientSnapShot.Resive (ref endpoint); I can put this data into a memory stream var memoryStream = new MemoryStream (data); and then EndianBinaryReader var endianbinaryReader = New EndianBinaryReader (new BigEndianBitConverter (), memoryStream, Encoding.ASCII) . ; But this means that whenever I read, I have to create a new Andian Reader. ID is there a way where I can only create a stream that I can update inpu

asp.net - PHP/Drupal Gotchas? -

I am starting to switch from asp.net to PHP, and also from Drupal. In ASP .NET, if the user has cookies or JavaScript close, it can present many unexpected problems and complications. Most users have default settings (on, turned on), but when they do not, the soil hits fans and where "bug" can be confused. What other types are there for PHP and Drupal? If javascript, cookies will stop, then what are the problems? Do not delete the user with id 0, it is an anonymous user Many funny bugs will give. Drupal will cache pages for anonymous users. If you run some code by going to a particular page and so on, they can sometimes give some problems because they will only get a cached version and you will not work. However, it has a major performance advantage. Drupal has used OOP using "hook" , so failing to correctly rename your function and make the difference between success. There is a lot of information about Drupal cache for menus and theming systems

linux - How to change colors programmatically in Konsole based on current directory? -

I currently use a color scheme on which I am working. I manually opened a console shell and then found the CD in one directory and in the settings and changed the color scheme. What I would like to do is that the console automatically sets its foreground and background colors on which I am based on that directory. Basically if I have a meter in any subdirectory below / home / me / src / java then I would like to use text white, background blue for example. For example, if I am down / home / me / src / documentation, I want text black, background white. I would like the color change to happen automatically, programmatically, when I call the "cd" command. Is this possible? If so, how can you provide me some directions? The way I see it, I should be able to do some things: The shell process is running to detect the console. Be able to tell the console, possibly through the API call, to change the color scheme on the fly. To get you started, talk about using D-

iphone - How to stop routers blocking traffic within a network? -

I have an iPhone app that is connected via a local network to a user running on a server running on Mac / PC depends on. An http service is running on server port 8080 I already add default to the default window firewall, or default Mac firewall to ensure that traffic is reaching my app. Is allowed. Although the most common customer issue is that the iPhone can not communicate with the server. Generally this network router is blocked traffic - though sometimes the user is running their own firewall that blocks block traffic. Is there a protocol that will allow me to say something about the effect of ? 'All firewalls on this network, please & lt; Ip; Gt; ; I have looked upwards - but it seems that focusing on opening the harbor in the outer world is not what I do Suggestions? Thanks in advance. No, there is no way or protocol from UPNP and I would not recommend it in any way because the company This would be the cause of all kinds of problems and secur

git rebase - Edit the root commit in Git? -

Ways to change the message from a subsequent message are: git commit --amend # For most recently committed GIT rebates - Interactive Master ~ 2 # * * Parents * is required You are very How can a committed commitment change the first commitment (which is not a parent)? Assuming that you have a clean work tree, you can do the following. #outout routed commit gate checkout & lt; Sha1-of-root & gt; # Modifications in the GIT Commissions - Modify the # # Root all other committees of the master in the modified Root GIT Rebate - then Head Head Master

ruby on rails - subdomain routing -

When a user types in their username.example.com, then I read subdomains and present the user personal page map.home ",: Controller => 'User',: action = & gt; 'Show' The problem is that I now want to add custom subdomains like www, '', help and so on. What I do now but does not work: I read subdomains in the application controller and when I help, redirect the controller to help. Redirect does not work because the application controller calls again and I end up in the eternal loop. Does anyone know how I face it? Thanks We use a plugin for this:

php - Is this smart or no? -

Is it okay to use this code to trim in my register function and avoid all posts? Or it is a good practice to touch and avoid every practice. // Clean and clean our input $ _POST = array_map ('trim', $ _POST); $ _POST = array_map ('mysql_real_escape_string', $ _POST); If (invalid input) is entered in the DOSTFILE user (user name, passwd) values ​​('{$ _POST [' user name ']}', '{$ _ POST [' passwd ']}') No, because: This does not work for multi-dimensional arrays. You can not consider every single $ _ POST value as a DB parameter and 3). It may be reducing unnecessarily. mysql_real_escape_string () might require a $ link_identifier argument. Point # 1 can be worked with a custom recursive function, the price of more slowdown.

c++ - Using Function Templates -

I have created a structure of various data types and I want to return all types of data. Can such a function be done using templates, which takes different data arguments that are not included in the structure or any arguments? I have something like that, struct mystruct {int _int; Four _c; String _state}; In the function template (int i) {mystruct s; Switch (getInput) {case 1: return s._int; Case 2: Returns s._c; Case 3: Return s._str; }} Zero main () {int getInput = 1; // pass getInput value to work on template} Yes: template & lt; Class T & gt; TF () {Return 0; // for example}}}} {main}} {returning; At & G; (); // template parameter} template & lt; Class T & gt; Please, specify. Of vector & lt; T & gt; another example(); // Use another_language & lt; Int & gt; () Which is a vector & lt; Int & gt;

Java Swing Font Chooser -

In my Java Swing app, I want to select the user my font. There are no main swing libraries to take fonts to my surprise. I was hoping to find a jefilchuzer but there is no such facility. It seems like a simple dialogue that I'm sure there are present. I really do not want to write myself. I looked around the Internet and found some different implementations of this kind of dialogue. The problem is that most of them are on random blogs or just code snippets. I'm looking for things that are part of a library that is well-used and tested. very good Looks and open-source.

objective c - Image processing on the iPhone -

I would like to apply image processing to photos taken on the iPhone. This processing will include 2D matrix conversions. I'm afraid that performance with nested NSArrays is very bad What is the correct way to manipulate pixel-based images? Should I just use the array allocated with malloc ? Engine available in the iPhone SDK? Or maybe core graphics? Apple has described the different imaging techniques available on the iPhone. Unfortunately, there is nothing good in the image kit so far on the iPhone.

c# - Find out if item exists in Microsoft.Office.Interop.Word.Styles collection -

I'm trying to use an item on the collection of styles of a word document, I was wondering if anyone The way to know if an item with something is present without throwing an exception. I am doing something like this now: newStyle = _document.Styles.get_Item (ref styleName); This works when the item exists, if it does not fail (I know that I can use an attempt / hold block, but I do not want to. < / P> Thank you for your help You need to loop on style and name it Check, and Exit Loop if you have a match.

javascript - How to add a var to href -

मुझे इस तरह से कुछ चाहिए: var link = "http: // www। Google.com"; & Lt; a href = 'link' / & gt; इसलिए मुझे एक लिंक के रूप में href एक वैरिएबल का उपयोग करने की आवश्यकता है I क्या यह संभव है? यह "& lt; a href = '" + link + "' / & gt;" के साथ काम किया। क्या कोई बेहतर तरीका है? आपको सर्वर पर href मान सेट करना चाहिए, यह खराब डिजाइन है इसके लिए स्क्रिप्टिंग का प्रयोग करें। हालांकि, प्रश्न का उत्तर देने के लिए, इसे डीओएम में एक बार तत्व की href संपत्ति सेट करने के लिए स्क्रिप्ट का उपयोग करके किया जा सकता है, जैसे: & Lt; a href = "& lt; एक उपयोगी यूआरआई यदि जावास्क्रिप्ट उपलब्ध नहीं है>" id = "a0"> foo & lt; / a> & lt; script type = "text / javascript"> var a = document.getElementById ('a0' ); यदि (ए) {a.href = "http://www.google.com"; } & Lt; / script> बेशक, हज़ारों अन्य तरीके हैं, सभी अपने नुकसान के साथ हैं इसलिए सर्वर पर म

objective c - Call instance method from class method -

So I need to call some example methods in class methods in objecitve-c ... < P> Example: + (ID) Barwithfu: (NSF *) {[Fu Foo]; // compiler raises the warning} - (zero) foo {// cool stuff} then my question; StackOverFlow is how do you do such things in purpose, I'm doing the OO in a new way, am I crazy, or is there a way to do this? There is no way to do this. It does not work with object-orientation. Classes type is just about things They just describe what does that kind of thing? An example might be that you have a 'dog' class. You have examples of ways that will define how a dog loses its tail or how it eats you. There may be a class method to do. My pet dog Fido Class is an example of a dog. I can send a fido message, asking him to remove his tail and eat his food. However, I can not ask the class 'dog' to reduce my tail; Whose tail wag? Is this a fido, or would it be my neighbor's dog? When you send a message in class, you d

Trouble with jQuery's .animate() -

I am using .animate () to move some divs smoothly again. "). Since the Divis can still do or make animation, so I also want to make sure that this step happens after the animation work is using .c (). Problem: work. It goes to the correct line of code, but does nothing and does not cause any errors? Javascript: function Arrange_sections () {var margin = 20; var left = margin; $ (". Section.active") .Q (function () {$ (". Section.active"). Quote () {$ (this) .mate ({"left": left}, "slow") left + = $ (this) .wide () + margin;})}}} CSS: (I use the show ("slow") to bring the section out of the display: none) .section {anything display Do not; position: full; top 5%; left: 5%; padding: 20px; z-index: 20;} I tried to run the code, but did not see anything, though, when I used the firebug's HTML tab to view the page, I noticed that most of them had a style = "left : 140 px "or similar.

java - Open a project in Eclipse -

I'm totally new to Eclipse / Java / Android programming, so it may sound like a silent question, But I did not open the project last week I was working ... this is the "HelloWald" project. I am very familiar with Visual Studio so I was searching for something like a project file / solution or there is a way to open a directory in Eclipse, but I have no luck and completely I'm lost. Any help is appreciated! Import and then select existing projects in the workspace and then select the directory with your HelloWorld project. Are you?

iphone - How can I get information about who called a method? -

I'm called a special method, want to get some information about this. That is, if possible, get the method number and file name to call. Except for a level in the stack, it is possible in high-level languages ​​like FILE and line , but what is the purpose of doing this in Objective-C? - (zero) myMethod {NSLog (@ "me file% @, line #% i", callingfile, callingline); } No, no. You will have to tell the user to pass the code to __ file __ and __ line __ . Define my myth: # myfethod myMethodWithFile: __ FILE__ line: __l LINE__ ... - (zero) myMethodWithFile: (const char *) file line: (int) line {nslog (@ File% s, called by line #% D, file, line);} ... [obj myMethod];

c# - Count the numbers that are not divisible by 2, 3, 5 -

In my program, I think my count is not worth the variable. What can I do to hold it up? Here's my code. Fixed zero main (string [] arg) {double A; Double count = 0; Console.light line ("Enter number:"); (Double I = 1; i & lt; = 10; i ++) for {a = convert ToDouble (Console.ReadLine ()); If (a% 2! = 0 || one% 3! = 0 || one% 5! = 0) {count = count ++; } // and // {//} console. Readline (); } Console.light line ("numbers, which are divisible by 2,3,5:" + count); Console.ReadLine (); } Your mistake line is count = count ++; . This does not increase by count you count ++; . Expression will need to be used by count ++ the value of the calculation must be returned and then the expression value is the original value of the count . In this case the increment of count ++ before the assignment increases, so the count has increased from the first one, but then you count ++ The value of, that is, the original value, count again, so it does n

Algorithm question: print all the elements on a single given level of a binary tree -

I have to print nodes at one level of a binary tree (must travel) I do not know how to do it But then I am not usually very skilled with algorithms. I know that you use the queue in the fourth-first traversal and you start by inserting the root node in the queue, then you compute it and enqueue it to the children and then you confuse the first enclosed child and It enjoins children and does so ... and by my understanding it becomes absolutely impossible when one level is finished and the second begins until you start with each node Do not assign programmed, when it is built binary tree that level is and when the fourth-intersection. Something like this (the code is in PHP but this is not a php related question. This is a common algorithm related question - it is a part of the function that adds a node to a binary tree which is accumulating the level When each node is added to the node): if ($ this-> root == zero) {$ this-> Root = $ node; $ This- & gt; Root- & gt;

google app engine - Appengine mercurial error -

I'm trying to deploy Mrkyuriyl to Google App Engine and continues to this error. Please see if anyone has a solution & lt; Type 'exceptions.ImportError' & gt ;: A module named pwd Traceback (last most recent call):. File "/ base / data / home / apps / ajatus-graphics / 2.339364808142331297 / hgapp.py", at line 33, in & lt; Module & gt; Main () File "/base/data/home/apps/ajatus-graphics/2.339364808142331297/hgapp.py", line 23, dashboard "/base/data/home/apps/ajatus-graphics/2.339364808142331297 main import dashboard file /dashboard.py ", line 3, & lt; Module & gt; Bright Import templater, templatefilters, util file "/base/python_dist/lib/python2k5/py_zipimportkpy", line 242, / base / data / home / apps / off "in load_module executive code in modern .__ dict__ file ajatus - Graphics / 2.339364808142331297 / hg.zip / mercurial / templater.py ", in line 10, in & lt; Module & gt; File "

entity framework - Resolving associated objects in SL4 RIA -

itemprop = "text"> In VS2010, creating a standard Silverlight business application and establishing a model from a SQL Server database, I have various organizations and associations, Out of which Asset Group and Asset 1: m are in relationship. Allegedly, I can use dot notation to extract assets from asset examples. Through modern miracles of suspended execution and lazy loading, I am assured that my data will be given to me a very moment. But it does not work. What are the prizes, and do I have to kill a chicken or a goat? Looks promising as soon as I have tried to do it, I will update. In the question I mention a blog post containing a possible solution This solution works, but There may be a change in the generated code, which is clearly weak as a solution. Here's a strong way to implement solutions: Change the code generator. Right-click the context menu on the EDMX Designer surface and add code generation items ... on "Model1.tt"

how to pass button_click to child window in C#? -

Can anyone here do any favor? I have a MainWindow with a HideButton and RetrieveButton. When I click on a button, it will run on another childwind. There is an OK button in my hair window. The question here, set the else statement in C # to the following pseudode? Private Zero OKButton_Click (Object Sender, EventArgs e) {// pseudocode if (if HideButton is clicked in MainWindow) {// works} If (Recovery button is clicked in MainWindow ) {// other works} Thanks in advance. If you want to retrieve or hide the child window If you are creating, you can easily pass the parameter either through the constructor or by setting a custom property: ChildWindow child = new ChildWindow (); Child. Retrieving = True; Child.Show ();

apache - Is it better to handle friendly/clean/pretty URLs with mod_rewrite or a language like PHP? -

I am developing my first decent sized PHP site, and I "believe it" To handle clean / friendly / beautiful URLs in the application. The way I look at it, there are two main options (one example I use a simplified social news site): 1 to handle all possible URLs Use mod_rewrite for it looks similar to the following, but not the same: rewrite rule ^? ([^ /] *) /? ([^ /] *) /? ([^ /] *) / Content / article Php? Articleid = $ 1 & slug = $ 2 rewrite rule / user (?) ([^ /] *) /? ([^ /] *) / Content / user.fip? User == 1 app; Username = $ 2 Remarket Rule ^ Search / ([^ /] *) /? /content/search.php?query=$1 2. Pass everything in some handler script and let it be worried about the details: rewrite angle% {REQUEST_FILENAME}! -f rewrite code% {REQUEST_FILENAME}! -D Rivetrium (. *) Handler. FP? Content = $ 1 Obviously this is all unwanted "air code", but you get the point. Is one of these two ways slower than the other? Probably mod_rewrite is slower,

.net - WPF Beginner Tips -

I am starting with WPF and am surprised that before I did anything, it is very different < / P> Can someone recommend something that is worth explaining, which will make life easier to develop a WPF app? Thanks in advance. I'm not an expert or anything, but to start coding, these two things are well It is very important to know that the WPF model is not trying to implement "right" and other GUI norms: Use the pattern when designing your applications. Use wherever possible and design your classes Discover and understand how dependency properties work and how to implement their properties correctly (book Check, on the Pattern section). How to develop an understanding of controls are styled and how style templates can communicate with data binding. I suggest doing some tests.

what's the best scenarios for used Windows Workflow? -

I'm learning this, but do not know the best scenario for using it (both state machine workflow and sequential workflow. Take a look at this explanation: is a sequential workflow The predicted workflow. Execution path can wait for the branch, or loop, or an external event, but in the end, the sequential workflow Activities, conditions and rules that we essentially keep on March ahead of workflow in the control of the process. A state-machine workflow is an event-driven workflow, that is, state machine The workflow depends on the external event to drive to workflow. We define the legal states of the workflow, and between those states Legal changes Workflows are always in one state, and an incident will have to wait for a new state to arrive before the transition. Generally, the import decisions are carried out outside of the state machine workforce. Defines the structure, but the control is from the outside world. This article also provides a good (but very similar)

vb.net - What is the file path, as a string, of a file in the application's resources? -

want to, I printed in asking that I run-time is because a file in the application of resources, the like: Private sub Button1_Click (ByVal as the System.Object, as ByVal e System.EventArgs) Button1.Click dim printProcess handle new process printProcess.StartInfo.CreateNoWindow = true printProcess .StartInfo.FileName as = "C: \ Users \ Geoffrey van wake \ documents \ Countdown_Timer_Help.rtf" printProcess.StartInfo.FileName = My.Resources.Countdown_Timer_Help printProcess.StartInfo.Verb = "Print" printProcess.Start () End Sub When I Use "C: \ Users \ GeFree Wayne Wake \ Document \ Countdown_Timer_Help.rtf" as the name of the argument of the file, it works. But when I use My.Resources.Countdown_Timer_Help, it says this file can not be found. No, do not get it you did not, the file will only exist on your dev machine if you After deploying your program, the file will be embedded in your program and can not be printed. You must write code that s

javascript - Jquery write on the fly in a div -

I am trying to create a Sudoku game using jquery and php I have all the game logic, End of work. So what I need to do is click on an empty cell, which will be a div that will activate that div. Then use the number on the key board to enter the number that the user wants. If they want, they have to be able to remove them. Any thoughts? I have used jquery before but there is no clue as to where to start with it nick I do not necessarily support the use of such plugins functionality, what you can do with basic jquery, assume that you have such structure: & lt; Div & gt; 7 & lt; / Div & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; / Div & gt; ... You can do the following: $ ("div"). Click (function (i, div) {if ($ (Div) .find ("input") {// is already editing an element, go back to return;} var number = $ (div). Text (); $ (div) .empty.append ($ ("& lt; input"; "input&

c# - Is there a standard way for form layout in ASP.Net? -

ये मेरे फ़ॉर्म लेआउट हैं: & lt; body & gt; & Lt; p & gt; ध्यान दें कि यह प्रपत्र वास्तव में आवश्यक फ़ील्ड वैलिडेटर को स्पष्ट करने के अलावा कुछ नहीं करता। & Lt; / p & gt; & Lt; form id = "frmValidator" विधि = "पोस्ट" runat = "server" & gt; यूसुराओ: & lt; एएसपी: टेक्स्ट बॉक्स आईडी = "टेक्सटीयूसर नाम" रन = "सर्वर" / & gt; & Lt; asp: RequiredFieldValidator id = "userNameValidator" ControlToValidate = "txtUserName" त्रुटि संदेश = '& lt; img src = "../ छवियाँ / कोई पेज" & gt;' Runat = "server" / & gt; & Lt; br / & gt; Contrasena: & lt; एएसपी: पाठ बॉक्स आईडी = "txtPassword" runat = "सर्वर" / & gt; & Lt; asp: RequiredFieldValidator id = "passwordValidator" ControlToValidate = "txtPassword" त्रुटि संदेश = '& lt; img src = "../ छवियाँ / कोई भी पेज" & gt;

Is there a better way of inserting my element into text using Jquery? -

I wrote some jquery to solve this problem. Although this works, I think my jquery awesome & amp; I was hoping someone could tell me that I'm missing something and fixing my code to make me use some more awesome. Especially the string consensat I am doing (commented on seeing 'vomit') is lame, can anyone ignore it? The problem is to get the HTML given below and the text has to move glucose in the braces a little further down with the anchor and change the anchor text from the words in the braces. It should be done normally (i.e. not hard-coded) because there are many. I found that in order to anchor the text in this special way, really was not prepared for any jquery methods - I hope that 'I am wrong' HTML given & lt; Tr & gt; & Lt; Td class = "german" & gt; Bin Ichin Ain {Glucose} Flidge & lt; / Td> & Lt; Td class = "english" & gt; I am a happy fly & lt; / Td> & Lt; TD & gt; & L

Once I have a database project in Visual Studio, if I edit a stored procedure or view, how do I apply the changes to the server? -

Once I project a database in Visual Studio, if I edit a stored procedure or view How do I apply these changes to the server? solution explorer ... right click project ... open properties .. create tabs .. your server Set target db on Then go back to the Solution Explorer ... Right click ... Create again ... then it is done when right click and deploy. :) Kindness, Donation

Using structs or multidimensional arrays in C -

I want to create a fault log fault line must be able to store the past 10 flaws. There are 3 information in one mistake: 1. The number of errors. 2. Defect name 3. Date of fault. How can I use strokes? Should I use an array and if so how? The error log is for storage in memory only. I think you want to store it in memory, then you can combine the structure and array Can be used. Something like this would be: typedef struct {int number; Four names; // You can use an array instead of four names [MAX_FAULT_NAME_LENGTH] int timestamp; } Fault_entry; Fault_entry fault_log [10]; Of course this is hands-waving if you want to store it in a file, you have to serial. You should think of using data-type for date / time and name. But it should help you get started.

cocoa - EXC_BAD_ACCESS in SQLite on Mac OS -

I am pulling data from a secret database and pushing it. I use the FMDabase cocoa wrapper. I am dragging and pushing data from multiple threads, but I'm sure there is never a transaction at the same time. I get EXC_BAD_ACCESS after a few hundred calls on the database but never at the same time. It is also not related to memory (I have tried NSGobies and seen memory management of parameters). Here is the stack and code: FMResultSet * Result = [db executeQuery: @ "Select from latitude, longitude, where name = ?", Name]; [Result next]; NSString * latitude = [result stringfor column: @ "latitude"]; NSString * latitude = [result stringfor column: @ "longitude"]; I do not know, does anyone have it? Seeing the relevant code in FMDatabase , it seems that Result bind NSString 's -UTF8 string method to use the result of the sqlite_bind_text () routine result SQLITE_STATIC Code> autoresaled pointer). This means SQLite as

wpf controls - Emerging MessageBox while processing data -

I am working with C # and a WPF project. I have created a button, information about the process which can usually last for less than 3 minutes; During that time, I show a message box which indicates: "This process lasts less than 3 minutes, please wait", then when the process is finished, I would like to suppress the message box automatically. it's possible? How do I get it? Thank you. Instead, why not start using a long-running job and report progress We do ?:. In fact, this is the mechanism of WPF called Dispatcher:

encryption - PHP Encoding with a Remote Key? -

I have coded a very good class and I want to install it without the risk of taking the code on the client server I do not pay for it. If possible, I have a way where "key" is on my server, and with that key the client encrypts the source code on the server and how to get some code key My server is included in this method, so if I do not pay, I can change the key at my end, thus disabling the code from working at their end. Any thoughts? Edit: I know about Zend and ioncube, I'm trying to see if there is a different, less expensive "free" way to do this. You can do something similar, which includes all the files: if (file_get_contents ('http: //your.domain.com/getKey.php')! = 'Too CERT code') (die ('Make me pay');} < / Pre> and then you have to encode the file or similar code. Your server should be online otherwise you may have problems (or you can code a more robust system). Also, your customer's server fo

.net - Sending fax via asp.net -

I am an esp Trying to send a fax with the .NET (C #) program, can you please suggest any trusted third party control? . Need to create PDF and send it through fax in my web application. Any indication and suggestion would be greatly appreciated. Thanks! I use itextsharp to create pdf during a pagelifecycle. I use the spool directory of GFI Faxmaker, after sending the fax, there is a status file that can be parsed to deal with the success / failure of the dispatch.

c# - Why subscriptions interact with each other? -

I am experimenting with RX, and I've gone into the following problem (at least I think it's a problem I believe in). The following code makes a noticeable, and subscribe it twice. I thought the subscription should work independently , so the code below will be two lines on each key press, one for a subscription. But this is not the case, I always give a special key stroke, semi-randomly only one subscription to handle first or second. Why is this happening and what is the "recommended" way of doing it to many observers? Fixed IEnumerable & lt; ConsoleKeyInfo & gt; Keepers () {for (;;) {var currentKey = console Read (true); If breaking (currentKey.Key == ConsoleKey.Enter) yield; Turn yield yield; }} Fixed zero main () {var timeToStop = new manual reset event (wrong); Var keypresses = KeyPresses () ToObservable (); Keypresses Subscribe (key =>. Wrightite (key.Key + "1"), () => timeToStop.Set ()); Keypresses Subscribe (key =>. Wrightite

java - How to disable the debug logging of class using log4j? -

मेरे log4j.xml में, मुझे & lt; logger name = "java .sql "& gt; & Lt; level value = "DEBUG" / & gt; & Lt; / लकड़हारा & gt; लेकिन इसका उपयोग करने से, यह इंटरफ़ेस Resultset के लिए लॉगिंग को सक्षम करता है। अगर मैं इस इंटरफ़ेस के लिए लॉगिंग को अक्षम करना चाहता हूं, लेकिन फिर भी statement , readystatement , आदि के लिए डीबग लॉगिंग करना चाहते हैं ... मैं यह कैसे कर सकता हूं? लॉग 4j आप क्लास या पैकेज नामों प्रति से के आधार पर लॉगिंग को नियंत्रित करने की अनुमति नहीं देता है। इसके बजाय, log4j (और समान जावा लॉगर) के साथ लॉगिंग नियंत्रण की ग्रैन्यूलिटी, आवेदन द्वारा उपयोग किए गए लॉगर नामों द्वारा निर्धारित की जाती है। यदि आपका जेडीबीसी चालक के बयान, तैयार बयान, परिणाम और इसी तरह के लिए अलग-अलग लॉगर्स हैं, तो आप ठीक हैं। हालांकि, अगर यह सभी लॉगिंग के लिए एक एकल लॉगर का उपयोग करता है, तो आपको कुछ प्रकार की फ़िल्टरिंग का सहारा लेना होगा। अधिक जानकारी के लिए, एक XML विन्यास फाइल में फिल्टर को कॉन्फ़िगर करने पर एक अनुभाग है, और Javadoc उ

How do I use PHP to display one html page or another? -

I wanted to use PHP and the if statement, and I wanted to If ($ variable) {display html page1} and {display html page2} How can I do this? Please note that I do not want to redirect the user to a different page. - Edit - I will not have any problem with doing any of these, but the second file, this is not too much trouble to do this. - Edit - It's coding so far: My problem is that it would be really complex and confusing if I wanted to create an html page for each php page, so I need some way to show the full HTML page instead ( "Index.html") ("index.html") if ($ Variable) {include ("file1.html"); } Else {include ("file2.html"); }

version control - Any tips for installing CVS Server and Tortoise Client on Windows 7? -

I am installing CVS and Tortoise clients on Win 7. Receiving a warning "CVSN locking service ... failed to begin verify that you have sufficient privileges to start services" I am running as an Administrator with UAC .

scalability - What makes Oracle more scalable? -

Oracle has a reputation for being more scalable than the other RDBMSes. After working with it, I can say that it is more complex than other RDBMSes, but I have not really seen anything which makes it more scalable compared to other RDBMSes . But then, I have not really done a lot in depth. What are the features that are more scalable than the Oracle? Instead of going to disk like some other tricks, instead of going to the disk instead of loading the block from the buffer cache of the other node. In addition, maintenance of RAC with rolling upgrade helps in operating a large system more sensible. There is also a different aspect of scalability - storage scalability makes ASM storage capacity very straightforward. A well-designed ASM based solution, without the need to do some special work, should scale the past 100 terabytes of size. Do they make Oracle more scalable than other RDBMS, I do not know. But I think I would be less happy to try to increase the non-oracle d

c# - How to set cell values programatically in a GridView? -

Asp.Net C # VS08 पर काम करें। मेरे पास एक ग्रिडव्यू है जो ऑब्जेक्टडेटासॉर के साथ बाँध रहा था कमांड लिंक क्षमताओं को सक्षम करें। जब भी उपयोगकर्ता एक पंक्ति को संपादित करता है और किसी दिए गए सेल को बदलता है, मैं एक और सेल वैल्यू को बदलना चाहूंगा, प्रोग्राम को एक सेल वैल्यू बदलूंगा (द्वारा टाइप किया गया नया सेल मूल्य उपयोगकर्ता)। तो, क्या संपादन मूल्यों पर सेल मूल्यों को प्रोग्रामेटिक रूप से बदलना संभव है? मैंने पांच कॉलम के साथ एक ग्रिडव्यू लिया। पहले कॉलम में मुझे संपादन बटन हैं I दूसरे कॉलम में मेरे पास नाम है और तीसरे में मेरे पास आयु, स्टार्टटाइम, एंडटाइम है.मेरे नाम सेल में मैंने पॉपअप कंट्रोलएक्सडर उपयोग किया है, जब उपयोगकर्ता नाम सेल में वे एक ग्रिडव्यू पॉपअप को देखते हैं जिसमें नाम और आयु वहां से उपयुक्त नाम चुना गया था। इसके बाद नाम का नाम चुना जाना चाहता था आयु आयु में स्वचालित रूप से सेट हो जाएगा। आयु का सेल। कहां से लिखने के तरीके, कैसे लिखने के लिए। PopupControlExtender पॉपअप ग्रिड मैं bellow कोड का उपयोग कर नाम सेल पर मूल्य का चयन कर सकते हैं और सेट

asp.net mvc - Editing and Updating Entity Framework entity in ASP .NET MVC -

I have a unit framework unit called "ABC" (Attribute ID and Title). Look at the update record, I've added the ID as a hidden field and the headline text box. The controller looks something like this: Public Action Update Action (ABC OBJ) Let me do everything right and fair in obj Meets - i.e., title and id. To update the records in the database now, I read the parent unit: var = (base.context.ABC in x where x.id = = Obj.id). Single (); To reflect changes in the original now, I think the update should be modeled: this.TryUpdateModel (original); I get an error: | ... stating that the column ID can not be changed. Property 'id' is part of important information about the object and can not be modified. I do not want to manually specify properties on the original object back. The second option can be: TryUpdateModel (original, new string [] {"title"}, form.ToewoProver ()); But I hate string - my object is like 20 char

loop through elements with jquery? -

I have never looped through elements with jquery and it would be great with some help. my dome looks like this: & lt; Div class = "section" & gt; & Lt; Div class = "group" & gt; & Lt; Div class = "comment" & gt; & Lt; Input class = "comment" type = "text" /> & Lt; Br / & gt; & Lt; / Div & gt; & Lt; Div class = "link" & gt; & Lt; Input class = "link" type = "text" /> & Lt; Input class = "link" type = "text" /> & Lt; Br / & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "group" & gt; & Lt; Div class = "comment" & gt; & Lt; Input class = "comment" type = "text" /> & Lt; Input class = "comment" type = "text" /> & Lt; Br / & gt; & Lt; / Div & gt; & Lt; Div class = "lin

c# - Size of managed structures -

Introduction to classes for the .NET 4.0 framework. The centers are centered around the methods and. These are not martial, but copied from and to the file in which they are laid out in the managed memory Let's say I use a memory-mapped file to use these methods Want to write two structures sequentially: [structure layout (layout kick, seqyk, pack = 1)] structure fu {public four c; Public Bull B; } [StructLayout (LayoutKind.Sequential, Pack = 1)] struct bar {} static void type & lt; T1, T2 & gt; (MemoryMappedViewAccessor Accessor = file.CreateViewAccessor ()) (T1 item 1, T2 ITEM2) where T1: struct using T2: struct {(MemoryMappedFile file = MemoryMappedViewAccessor =) MemoryMappedFile.CreateNew (Null, 32)) {Accessor.Write & LT; T1 & gt; (0L, ITEM1 referee); // & lt; - (1) Accessor. Write and lieutenant; T2 & gt; (??, ref. 2); // & lt; - (2)}} static zero principal () {Foo foo = new fu {C = 'α', b = true}; Repeatedly = new times {}; Write

VBScript regex question (.*) -

I am using VBscript in QB and I am a little confused: browser ("Name: =. *") // works Why the browser ("name: = *") does not work? While the normal wildcard ( Just as many files are used in the shell to specify at once-e.G. * .txt ) Only the query ( * ) is zero Or an indication for more arbitrary characters, this is the one in regular expression. This tells the regex engine about the predecessor token However, after = a * one Matches . Equals 0 or greater will be equal to sign ( = ) - Since the asterisk always works on predecessor token, which is just an equal sign here. Note: A token can be many things, such as = , a character group, such as . , \ w or [AG] , a group like (ABC) then abcabcabc And any string like c. This allows for more rich type of expression that you can define in comparison to plain old wildcards. Generally, the near similarity between the wildcard and regular expression catches up; There are some det

c++ - Edit values in config. file -

Currently, I am using ReadFile () and WriteFile () APIs to write & amp; Read from the file if any data is sufficient to rewrite, then what is the API function to change / edit text? I've only heard about SetFilePointer (), but I'm not sure how to use it to change text from a file. For example, select a string / character of the file, Key2 of the value '0'. Key1 = 0 Key2 = 0 and change it to '1'. Key1 = 0 Key2 = 1 < Functions and privateProfileString It can be good for this.

Return only time irrelevant date javascript -

My question is no more about logic. I create something new over time, supply each new message, I compare time with the current time and give each background a line Is it possible that I have time with javascript To get not just the current time on DATE. Regards To compare time, time, month and day without comparing, try the following : var now = new date (). SetFullYear (1, 0, 1), and then = new date (date message) .Setifulyear (1, 0, 1) if (now & gt; and then) DoYourStuff ()

Pick form field values and calculate totals using jquery -

मेरे पास इन पंक्तियों के साथ एक फ़ॉर्म है: & lt ; टीडी & gt; - & lt; / td & gt; & Lt; input id = "invoice_invoice_line_items_attributes_2_item_type" name = "इनवॉइस [invoice_line_items_attributes] [2] [मद_प्रकार]" प्रकार = "छिपा" मान = "अन्य" / & gt; & LT; टीडी & gt; & lt; इनपुट आईडी = "invoice_invoice_line_items_attributes_2_description" नाम = "चालान [invoice_line_items_attributes] [2] [विवरण]" आकार = "30" type = "text" / & gt; & lt; / टीडी & gt; & LT; टीडी & gt; & lt; इनपुट वर्ग = "लघु" id = "invoice_invoice_line_items_attributes_2_quantity" नाम = "चालान [invoice_line_items_attributes] [2] [मात्रा]" आकार = "30" type = "text" / & gt; & lt; / टीडी & gt; & LT; टीडी & gt; & lt; इनपुट वर्ग = "लघु प्रारूप मुद्रा" id = "invoice_invoice_line_items_attributes_

ide - Best libraries, extras and things for C# (ASP.NET included) -

I wanted to know some good libraries for C #, IDE, Xtra, what would happen (web development in ASP.Net For example: Library - Cross platform C #. Net implementation, also capable of running ASP.NET specific stuff IDE - Open Source C # IDE (compiler - OpenSource and cross platform C # IDE (includes compiler) additional - Code refining for unit testing and C # (free for open source) < - Name for any use : No fee, it says all - Ref <> for C # Ring Thanks reflector Process Explorer (No.NET) Wire shark (not .net is specific, but must be in every Dev's toolkit)

php - Error using propel, it can't find build-propel.xml -

I get a while trying to build a build using propell-jane (propell v 1.4): [phing] Error reading project file [wrapped: unable to open /path/to/project/build-propel.xml to read]: I do not find any reference to this file in the propell documentation. Definitely a problem with the latest fing. You should try: $ pear uninstall -n fing / finger $ pear installation phang / phang-2.3.3

c# - Where can I find features in a jComboBox that are found in the .NET ComboBox? -

I am a pure C programmer today who wants to learn Java these days. I can connect DD, I am getting data with JDBC. How can I fill out JComboBox and set my DisplayMember "PersonelName" and ValueMember "PersonelID" .NET has related properties such as displaymember, datacours, welcome, I can show the name of the person with the displaymember and when I write data, I can learn the Intel ID from Valuemberg property. But there is no such kind of quality in Java. How can I get PersonelID in JCombobox in Java and show personal names? Can anyone give an example of Thanx? JComboBox constructor can take combo box modals as a logic. DefaultComboBoxModel combobox is a solid implementation of the embedded interface. Therefore, if you have a personal category: Category Personalel {String personelName; Int personelId; // getters, setters // this will be your display member @ override public string toString () {return to this.personelName; }} And understand that you

How to get the fully qualified path for a file in VBScript? -

I am using the shell.approperty object, which allows me to script a zip file Is allowed to be built. But for this to work, I want the full path of a zip file. File Zip does not work, I need the code c: \ full \ path \ file.zip , even though the script is running within the same directory where the file is found. How can I get the full path of a file? Something like the % ~ FI extension in CMD.XA shell. ON, there is one way that does this what is it for me The task is: dim folder name folder name = ".. .. .. .." set the form fso = CreateObject ("Scripting.FileSystemObject") Dim fullpath Fullpath = fso.GetAbsolutePathName (foldername ) WScript.Echo "folder device:" & amp; The folder name is WScript.Echo "fullpath:" & amp; Full path

ruby - Sinatra Sub-Directory Views -

I want to be able to get Sinatra views from the subdirectory of ./views (like ./views/admin) . . I know that you can set such ideas: set: view, Proc.new {file.join (root, "templates")} < P> But how do I set it up for a part of the file? I'm not sure exactly what you are asking, but by doing so you view / Administrators can provide a view in : erb: "admin / report" If you are asking that you How do you look in the subdirectories of thoughts> , when you call erb: report , I'm not sure how to do this, and I do not think you want to (What happens if different d The same name two ideas Yron?).

Zend Framework: Zend_DB Error -

I'm trying to learn ZFF, but got a strange error after 20 minutes :) Fatal error: Unsecured exception 'Zend_Db_Adapter_Exception' with 'Message' configuration array should be a key for 'dbname' which is the name of the database instance ' What is the error? the meaning is? I found DB information in my config file: resources.db.adapter = pdo_mysql resources.db.host = localhost resources.db.username = name resource.db.password = close resources.db .dbname = name Any suggestions? Edit: This is my model file /app/models/DbTable/Bands.php: class matches Model_DbTable_Bands Zend_Db_Table_Abstract { Protected $ _name = 'zend_bands'; } index controller action: public function index () {$ album = new Model_DbTable_Bands (); $ This- & gt; View- & gt; Album = $ album- & gt; Fatch ALL (); } Edit all code: bootstrap.php secure function _initAutoload () {$ autoloader = new Zend_Application_Module_Autoloader ( Arr

Assistance with Some Interesting Syntax in Some Ruby Code I've Found -

I am currently reading agile web development with Rail, version 3. On page 672, I came to this method: def capitalize_words (string) string.gsub (/ \ b \ w /) {$ &. Upcake} End What is the code doing in the block? I have never seen that syntax, is it like the array.map (& amp; some: method_method) syntax? This input is the title wrapper inside the block, $ & amp; Represents an existing match (\ b \ w i.e. the first letter of each word), which is later upper.

java - Best Design Pattern for HttpRequestDispatcher? -

An HTTP request is the best design pattern to use for dispatch, which is an output to "GET" or "POST" Returns the stream, parses the production stream, and then displays the results parsed on the interface? Currently, I have an HttpRequestDispatcher.java in which a UI class is defined in its constructor, and the run () method in threaded, the result sent to UIClass.request responsive or UIClass.requestFail Goes where the stream is parsed and the results are displayed. With this problem I actually have interface, parser, and dispatcher. In this way, in the future, I can really re-use the dispatcher with many other classes ... Right now, I have to be an HttpRequestDispatcher for every "screen" ... Any advice Appreciate, thank you! Firstly you should send the object already parsed to the scene. Your idea should not be control over parsing content / logic. Now the flow should go something like this, Pars -> Dispatch -> Current Here I

c# - Map ViewModel / partials with AutoMapper -

I have created the presentation model and I want to map it to the view modal (with Automap). ViewModel is composite / because I'm using partial and I want to reuse the keyboard view model on other views / partials as well. How can I see this presentation model in Maple? Is this the right way? Thank you! Public Segment Main Presentation Model: Bee Performance Model {// Main view should be done in model. Keyboard Keyboard {private; Set; } // should be located in main wichdom model. Keyboard Default Keioban Public ILIT & lt; Keyboard & gt; Keyboard {Receive; Set; } // should be the map in the Main View Model. Get some public string {some; Set; }} Public Class MainWorld MODEL: BaseViewModel {Public KeyboardSwim Model Keyboard {Get; Set; } Some of the public string {receives; Set; }} Public Square KeyboardSwimmedale {PUBLIC Inc. DEFAULTKEYBOARD {Received; Set; } Public IList & lt; Keyboard & gt; Keyboard {Receive; Set; EDIT: After trying, I think this is an op

javascript - How do you stop and then start / trigger an event with JQuery? -

I'm trying to stop the default action when a link is clicked. Then I ask for confirmation and if I want to continue this incident then it has been confirmed. How do I do this? I can stop the incident but it can not start here that I have done so far: $ (document) .ready (function () {$ (".le") Click (function) {event.preventDefault (); if (Confirm ('do you want to delete it?') {If (event.isDefaultPrevented ()) {//}}}}}} );}); There is no need to stop the default to start . Just do this: $ (function () {$ (". Del"). Click (function (evt) {if (! Confirmation ("Are you sure you want to delete it? ")) {Evt.preventDefault ();}}}}}); Rather than preventing the event, it is easier and more logical to stop it and then to stop it (even if it is possible). Remember that when the user chooses to correct or cancel, the code will stop running when the user submits the confirmation box. By the way, take a look. If you want to stop the p

Flex Cairngorm - How to update the model without losing focus in Datagrid? -

Using Cairnomorum in my Flex project, I have a model that is a bindable to be displayed by a data grid Array keeps the collection. My problem occurs when the model is updated by reply (after the "update" event, from the Java service), because the focus of the datagrid cell has lost focus (scroll status IL is also lost). Therefore, I retrieve the situation before the update, DataGridEvent. With ITEM_FOCUS_IN event: myModel.focusedCell.rowIndex = e.rowIndex; MyModel.focusedCell.columnIndex = e.columnIndex; But from where to restore these parameters? How to trigger this trigger only when the model is updated? Thanks in advance. For information, I have resolved my problem as follows: After that, we will have to solve a problem with the scroll as explained in the following post:

Distributing the Visual C++ Runtime Libraries (MSVCRT) -

An ATL / WTL project has been developed using Visual Studio 2008 and so far I am permanently adding CRT libraries, avoiding the need to ship them, however, I would rather use dynamic libraries (DLL) There is a need to consider - so that the size of the code can be reduced and because I want to use the excellent tool (for which you have to dynamically CR Now, MS supplies a stand-alone installer (vcredist_x86.exe) and an MSM package but it is not good for me because of two reasons: I'm not using MSI based installer However, if you want to install, then you are sure You should do that there is a manifest in your application, and then copy this entire folder into your EXE directory: X: \ Program Files \ Microsoft Visual Studio 8 \ VC \ redist \ x86 \ Microsoft.VC80 .CRT and other folders if you have more than CRT sub Make sure the industry that you have added to the manifest. Just after I want - except I understand this part: Ensure that the manifest in your application

how to set the custom options panel in android? -

एंड्रॉइड में कस्टम विकल्प पैनल कैसे सेट करें? एंड्रॉइड एप्लिकेशन में सेटिंग्स हैं साथ ही प्राथमिकताओं को प्राप्त करने और सेट करने के तरीकों से, एपीआई भी प्रदान करता है। ऐसे विकल्प पैनल सामान्य रूप से एक के रूप में बनाए जाते हैं। यदि आपके पास एसडीके के साथ उपलब्ध कराई गई जानकारी है तो आप का उदाहरण पा सकते हैं।

ajax - How to implement a Chained menu in PHP? -

I have to do an AJAX function to implement a chain menu + a result table. What do I have to do: First of all, the page automatically populates a vertical menu from MySQL and results table. Secondly, when I click on an item in the menu, then it displays a submenu and a new result table in a certain area in the page. Thirdly, when I click on an item submenu, it displays a sub-submenu in another set area of ​​this page and a new result table. Last, when I click an item in sub-submenu, it displays a result table. All the result tables are in the same position. It changes on the basis of clicks in the menu How do I get lost in this? Do you think about implementing it? Thanks a lot. Edit : The effect is like this: Your first, second, third, last looks very much I believe this is written in Javascript + jQuery, so that you learn from its source Able to