Posts

Showing posts from January, 2010

c# - Programatically changing the look of Windows Explorer? -

says that I want to convert some folders font into the program in Windows Explorer, can I do this? And if I have done this as a plugin application, how can I integrate it with Explorer? Some things like custom icons and backgrounds can be changed using the desktop.ini, a simple hidden The file that you created while using the customized folder menu is Windows. However, I do not think the font is one of those things that you can change in this way. For more complex changes you must write shell extension. A good tutorial is available for this.

c++ - boost::intrusive_ptr constructor ambiguity using a class' 'this' pointer -

अपमानजनक कोड: टेम्पलेट & lt; typename T & gt; वर्ग साझा ऑब्जेक्ट {सार्वजनिक: टाइप किया गया प्राथमिकता: intrusive_ptr & lt; T & gt; सूचक; Typedef बढ़ावा :: intrusive_ptr & lt; टी const & gt; ConstPointer; इनलाइन सूचक GetPointer () {वापसी पॉइंटर (यह); // अस्पष्ट कॉल यहाँ} इनलाइन कन्स्पेनॉटर गेट पाइंटर () कॉन्स्ट {रिटर्न कन्स्ट्रॉइन्टर (यह); } ... और इस तरह प्रयोग किया जाता है: टेम्पलेट & lt; typename T & gt; कक्षा कुछ क्लास: सार्वजनिक साझा ऑब्जेक्ट & lt; SomeClass & lt; T & gt; & Gt; {सार्वजनिक: स्थिर इनलाइन बढ़ावा :: घुसपैठ_प्रतिकृत & lt; SomeClass & lt; T & gt; & Gt; बनाएँ () {रिटर्न (नया कुछ क्लास) - & gt; GetPointer (); }}; Int main () {ऑटो वी = कुछ क्लास & lt; int & gt; :: बनाएँ (); } जीसीसी (4.4.1) को बढ़ावा देने के साथ 1.41 GetPointer () के पहले (गैर स्थिरांक) संस्करण instatiating करते समय यह त्रुटि देता है: त्रुटि : ओवरलोड किए गए 'घुसपैठ-एपीटीआर साझा ऑब्जेक्ट & lt; कुछ क्लास &am

cocoa - Accessibility API - Setting keyboard focus to a specific element -

Using the Accessibility API, I am drilling through a series of elements and I am interested in finding a specific accessumer (An external application in all) How do I check whether this element currently has a keyboard focus? And if not, how do I set it? For some, there is something to use ExclusiveSetAttivity to set to KXMineAttriti (it works for a window - thanks Peter!). PS-I tried KaxFocusedAttribute, does not seem to be working, maybe it's only read? PS - I have tried kaxFocusedAttribute, it does not seem to work. Maybe it's just read? Read the very opposite header: written? Yes, not in all other cases for any noticeable element. Ensure that you have activated the application (by setting kAXFrontmostAttribute to correct your code) and creating a window key (before to kAXFocusedAttribute to correct)> to control the code> kAXFocusedAttribute .)

ruby on rails - Wiki software that runs wiki.rubyonrails.org available for download? -

What is the wiki software available for download? I can not find it anywhere, thank you :) I am checking the railway wiki, tried the institute, but still need a lot of work, other railway wiki suggestions are welcome. The source of any page appears to be from the Meta generator tag

php - Order include file depending on inherit -

Hello there guys and best wishes from Sweden! I have a very difficult problem, I will try to show what I mean exactly. I am creating a modular CMS, and some modules get from a parent module. My problem is that the parents' modules need to be included before "children". I get module enfo from an XML file and store it in an array like this: array ([blogg] => array ([module_id] = & Gt; Blog [module_name] = & gt; blog [module_dcc] = & gt; description [module_arimal] => http://www.url.se [author] = & gt; god name [author_url] = & Gt; http://url.se [version] = & gt; 1.0 [heir] => core | Twitter [path] => / path / to / file [dependon] => Array ([0] = & gt; Core [1] => Twitter)) I have exploded the heir and co-found it in "Dependent" As you see above, the problem is that I can sort the sequence to include the files. Every module comes out of the core, but if the Danone array has another module, then the "

asp.net - Create a (edit) hyperlink in front of dropdownbox with jQuery -

I have a table with some data All the data is contained in the dropdown box and the textbox. But it is not easy to see what is new written input and what is the data from the database. So I want to make one (editing) after these boxes, and a literal where the value contained in the dropdown box stands when the editing button is pushed, literally goes away and the dropdown box Instead, it is possible to edit the data. It's all there is no need to save the data to the database in jQuery, I have the functionality in the Save-Button. I do not want to use any additional plugin in jQuery, because it seems a very simple job. Any good ideas? I can completely write the code here, I will change according to my wish. I did not clear your question Try it Click on Edit $ (document) .ready (function () {$ ("Edit") Click () {$ (" Dropdown "). Show (" slow "); $ (" edit "). Hide (" slow ");}); stylesheet.css .dropdown {disp

iis - Network service vs AspNet (Asp.Net Machine Account) -

I have a small asp.net application that writes logs in a 'log' on the file system. I have modified the permissions in the ASP.Net machine account for this folder which works properly. However, when I try to deploy it on another server, it does not work. I have to give the same modified permission in the network service account. Why? Because it is the account under which the application pool is used to run. So this is the case on IIS 6 and 7. On workspaces with IIS5, you will not have application pools, and therefore the ASP.NET worker process runs under local ASPNET account. In addition, it is better to give permissions to IIS_WPG at the local group, from which the network service is a member.

java - Wicket: How to change label's text on textarea's onkeyup? -

How do I change the text of labels on textarea's onkeyup? I have tried to do this but it does not work: form form; Textare Ta; MyLabel results; / ** * The creator to be applied to the page without applying a session. * / Public Homepage (Last Page Parameter Parameter) {this.form = New Form ("Form"); This.ta = new textiera ("text"); This.resultDiv = New MyLabel ("Results"); This.ta.add (new AjaxEventBehavior ("onKeyUp") {protected void onEvent (AjaxRequestTarget target) {System.out.println ("Ajax!"); ResultsDiv.seetext ("Foobar"); resultDiv.renderComponent ();} }); Form.add (ta); Form.add (resultdiv); Add (form); } // constant public class MyLabel label {private string text = "original"; Public string getText () {return text; } Public Zero Set Text (String Text) {this.text = text; } Public MyLabel (string id) {super}; This.setModel (new property model (this, "text")); }} Solution Leonidov

django - Inherited abstract model, can't save foreignKey fields -

Django अनुप्रयोग में मुझे ये मॉडल हैं: class DLL (models.Model): अगली = मॉडल। ('स्वयं', संबंधित_नाम = 'पीटीआईटीम', रिक्त = ट्रू, रिक्त = ट्रू) अगला = मॉडल। फ़ेरिनकी ('स्व', संबंधित_नाम = 'अगला इटैम', रिक्त = सत्य, शून्य = सत्य) वर्ग मेटा : सार = सच वर्ग SomeData (DLL): name = models.TextField () समस्या यह है कि जब मैं अगले या पिछले सेट के साथ कुछ डेटा वस्तु सहेजें उदाहरण: s1 = SomeData (name = 'one') s2 = कुछ डेटा (नाम = 'दो' ) S2.save () s1.next = s2 s1.save () s = SomeData.objects.get (pk = 2) # अब एस = s1 s.next # कोई नहीं क्षमा करें, यह पूरी तरह से अच्छी तरह से काम करता है। परियोजना के साथ कुछ अजीब समस्या होनी चाहिए। हल।

C pointer arithmetic -

इस कोड को देखते हुए: int * p, * q; P = (int *) 1000; Q = (int *) 2000; क्या q - p है और कैसे? यह मानक के अनुसार वास्तव में अपरिभाषित है पॉइंटर अंकगणित काम करने की गारंटी नहीं है जब तक कि पॉइंटर्स दोनों या तो किसी तत्व को इंगित कर रहे हों, या उसी सरणी से परे। मानक का प्रासंगिक अनुभाग 6.5.6: 9 (एन 1, 362 का मसौदा C1x लेकिन यह c99 के बाद से नहीं बदला गया है) जो बताता है: जब दो बिंदुओं को घटाया जाता है, दोनों ही सरणी वस्तु के तत्वों को इंगित करेंगे, या एक सरणी वस्तु के अंतिम तत्व ; परिणामस्वरूप दो सरणी तत्वों के सब्स्क्रिप्शन में अंतर होता है। यदि आपके int डेटाटाइप 4 बाइट्स हैं, तो आपको सबसे ज्यादा 250 मिलेगा लेकिन कोई गारंटी नहीं है । अपरिभाषित व्यवहार (कार्यान्वयन-परिभाषित व्यवहार के विपरीत) का मतलब है कि, अपरिभाषित। एक पुनश्चर्या पाठ्यक्रम: परिभाषित व्यवहार मानक द्वारा अनिवार्य है, जो कुछ भी हो सकता है, अंतरिक्ष-समय के एक बड़े हिस्से के कुल विनाश सहित, कुछ भी हो सकता है। । कार्यान्वयन को यह अनुरूप होना चाहिए। कार्यान्वयन-परिभाषित व्यवहार को कार्यान्वयन

database - Set of Foreign Keys Where All But One Are NULL -

What is the name of the technique to use a set of foreign keys in the table, where all the lines are given? In other words, each line needs a foreign key for one (and only one) of a different key, so you have all the necessary foreign keys but all are the same null. (Users of DJO can recognize it as an alternative to using a generic foreign key) Instead, I want to create a foreign key that references a common super-table of your different parent tables.

cryptography - Reasons why SHA512 is superior to MD5 -

I was thinking that I can tell the reason for the resources or link to why SHA512 MD5 has a better hashing algorithm . It depends on your usage case. You can not claim "superiority" broadly (I mean, yes, you can do in some cases, but being tough about it, you can not really do it). But there are areas where MD5 is broken: For starters: MD5 is old, and commonplace there are lots of rainbow tables against it, and they It's easy to meet. So if you have a Hashing password (without salt - you negligence!) - using MD5 - you can not even get them, they are so easy to find, even if you are actually using simple salt Arehash with Second closed, MD5 is no longer safe as a cryptographic hash function (in fact, cryptographic hash functions are not considered as Forked One). You can generate different messages of hash for the same value. So if you have got an SSL certificate with an MD5 hash, then I can prepare a duplicate certificate which says what I want, which produc

axis2 - Eclipse is very slow when using Code Assist (org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer) -

Can you guess what happens? Working on a client stub generating while using Eclipse WX [Axis2] and I work with Eclipse very slowly when he tries to use Code Assist, that is, methods of Press any point to get the list, the workbank is pending for 30 seconds. eclipse.buildId = M20090917-0800 java.version = 1.6.0_15 java.vendor = Sun Microsystems Inc. bootloader constant: OS = Win32, Arc = 86, WS = Win32, NL = ru_ru Framework Logic: - Product org.eclipse.epp .package.jee.product Command line argument: -os Win32 -ws Win32 -arch 86 -product org.eclipse.epp.package.jee.product Warning Fri Jan 22 16 : 40: 51 MSK 2010 'org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer' 'org.eclipse.mylyn.java.ui' The proportionate computer from the plug-in did not complete normally. The extension also took time to return from 'computeCompletionProposals ()' operation. After the text "itemprop =" text "> I was mucking with eclipse .ini and XXMaxPerm

sql server 2005 - Getting first n numeric characters from a varchar column in SQL -

I am creating a hash, I'm using a home number from an address area. Which SQL can I use to select only numeric characters in front of a varchar field? EX: 12345 South 1st Street I need 12345 . thank you in advanced. @ MyColumn varchar (250) Set @MyColumn = '12345 < / Code> If you do not, then make my first call @ (my name), cast (left (@mcal column, petindex ('% [^ 0-9]%', @MyColumn )) To prevent errors, add a case statement to ensure that there will be a number: declare @ as MyColumn varchar (250) Set @MyColumn = 'Patidx ('% [^ 0- 9]% ', @ my column) = 1 then left' 'and (@My column, the box Dex ('% [^ 0-9]% as StreetNumber), If there can be any spaces, then you LTRIM :

java - Convert Spring Batch from 1.1.3 to 2.0.0 -

I am trying to convert Spring Batch jobs from version 1.1.3 to 2.0.0 and found many errors is. Most of these have been managed to solve, but not the following: In my quartzback launcher, the code invokes the code "new classpath xmlappcopycontexzobfactree (bean, path, parent)" and I have no luck that is equal to this class 2.0 is. Thank you, pointing me in the right direction while appreciating any help. Maybe it is? Classpath XmlApplicationContextFactory f = new ClassPathXmlApplicationContextFactory new classpath resource (path)); F.setApplicationContext (parent); JobFactoryJ = New ApplicationContextJobFactory (name, F);

objective c - Method signature for a Selector -

I'm new to Objective-C business (most of the time Java developer) and now on my first killer app :-) At this time I am confused about the use of selectors as a logic argument in any way. For example, they are looking a bit different in comparison to the representatives in C #. Looking at the following method signature - (zero) executed: (SEL) callback; Is there a way to select a method to apply a signature to the selector? The method is expecting a method selector with the following signature - (zero) foo: (NSDT *) data; But SEL (type) is normal, therefore there is a good chance of passing the wrong selector for the executed method, there will be at least one strange behavior on the runtime ... but if this happens I would like to see a compiler warning / error. The quick answer is: No, there is no way that the compiler applies the method signature of a method selector Which is provided through the SEL argument. One of the aims-C's is that it is a vu

Powershell advanced functions: are optional parameters supposed to get initialized? -

फिल्टर गणनाफ़िल्टर ($ StartAt = 0) {लिखना-आउटपुट ($ StartAt ++)} फ़ंक्शन काउंटफ़ंक्शन {{सीएमडीलेबिंग ( $ ($ StartAt ++)}} $ ($ StartAt ++)}} $ $ = $ dir = $ dir (पैरामीटर (ValueFromPipeline = $ true, अनिवार्य = $ सच)] $ इनपुट ऑब्जेक्ट, [पैरामीटर (स्थिति = 0)] $ StartAt = 0 प्रक्रिया {write-output ($ StartAt ++)}} $ fiveThings = $ dir | पहले 5 # चुनें या जो भी "ठीक" $ पांच बातें | गणनाफ़िल्टर 0 "ठीक" $ पांच बातें | गणनाफ़िल्टर "ठीक" $ पांच बातें | गणनाफंक्शन 0 "बग़ुगज ??" $ पांच बातें | गणना फंक्शन मैंने कनेक्ट खोज की है और कोई भी ज्ञात बग नहीं मिला जिससे इस विसंगति का कारण होगा। किसी को भी पता है कि यह डिजाइन से है? यह एमवीपी मेल सूची पर आया था। ऐसा प्रतीत होता है कि एड फ़ंक्शंस के साथ, प्रत्येक समय पाइपलाइन ऑब्जेक्ट प्राप्त होने पर, PowerShell डिफ़ॉल्ट मान को दोबारा (पुन: मूल्यांकन) कर रहा है। सूची में लोगों ने इसे एक बग माना फ़ंक्शन काउंटफंक्शन [[सीएमडीलेबिंग ()] परम ([पैरामीटर (मानफ्रेमपीपलाइन = $ सच, अनिवार्य = $ सच)] $ इनपुट ऑब्

javascript - Joining ajax results? -

I will have to produce a result from 2 XMLHttpRequests how I can make requests concurrently and wait for both ends Can i do I have something like this ... resp1 = ""; Req1.onreadystatechange = function (if {this.readyState = 4) resp1 == this.responseText;} req2.onreadystatechangefunction () {if (this.readyState = 4) Finish (this.responseText);} Function Finish (resp2 ) {If (resp1 == "") setTimeOut (end (resp2), 200); Other {... both are done ...} I have not tested it yet but I think it will work. Is there a better way? My code should be as quick and fast as possible. You do not need a timer for this. You only have to check in one callback whether the other has ended or not, and if so, then call ended . For example: var resp1 = null, resp2 = null; Req1.onreadystatechange = function () {if (this.readyState === 4) {resp1 = this.responseText; If (resp2! == faucet) ends (); }}; Req2.onreadystatechange = function () {if (this.readyState === 4) {re

cocoa - hardware acceleration / performance and linkage of different macosx graphics apis, frameworks and layers -

And I read about different types of thoughts / references / rendering backends, and I get confused. In relation to MacOSX, Quartz (Extreme) provides a render backend that is part of core graphics. In Apple documents and in some books, they say that you use OpenGL in any way (obviously because this operating system uses OpenGL to do all of its UI). I currently have an application that is sent from real time (through QTKit, which is based on Quicktime but cocoa) and I forward through the frame (core image, GLSL shader, etc.) From). So far so good. Now my question is - if you drag a) the frame captured through quartz and is vested by OpenGL or b) If you have the OpenGL theme and Drag the image of a displaylink and buffer clearly through OpenGL? What will be the advantages or disadvantages of going by anyway? I have seen various examples (especially Core Image 101 and Corevideo 101) and on the documents of apple developer pages, I can not see why they go that way (or to

java - Limiting try block scope. Does it matter? -

संभव डुप्लिकेट: कोशिश के ब्लॉक के आकार को छोटा रखते हुए किसी भी प्रदर्शन लाभ (विशेषकर सी ++ या जावा में) [पाठकों को अधिक जानकारीपूर्ण होने से अलग है, जो कथन को फेंक सकता है]। निम्नलिखित विधि को देखते हुए शून्य फ़ंक्शन () फेंकता है अपवाद {statement1 statement2 statement3 // statement statement statement statement1} क्या ऐसा करना बेहतर है: विकल्प 1 शून्य फ़ंक्शन () {try {statement1 statement2 statement3 // statement statement statement 4} पकड़ (...) {}} या विकल्प 2 शून्य फ़ंक्शन ( ) {Statement1 statement2 बूलीयन सफलता = गलत; कोशिश {statement3 // सफलता फेंक सकते हैं = सच; } पकड़ (...) {} यदि (सफलता) {statement4 statement5}}

layout - .net special button design control -

I have the following programming task (Visual Studio .NET - not a web application) where I wonder if a type of Are Custom Controls (Third Party?), Which can be useful: There is a rectangular layout and it is possible to create and move rectangular buttons around it. The user should be able to set buttons at the user level and adjust the properties like colors, images, text, etc. Setting custom properties for buttons is also possible. Ideally it is possible to align the button on a grid, mutt-selection, etc. Does anybody know that I have to make it with scratch or something like that would be easier for me to live .. Thanks A simple example of moving a standard button based on the mouse position. You can make controls that are achieved by existing control to make life easier, check it out As the running controls and form around this kind of In the form, you can override the mouse event and create trap events and can actually change the location value (X, Y) depending o

php - How would I programmatically crop an image to a non-rectangular shape? -

I want to crop a rectangular image into non-rectangular shapes. I know that if you really take it completely, then it is not possible. What do I want to do is that Image X stands for shaping Y on a transparent background. For example, say I want to take a picture of the Idaho flag and shape it in shape, Idaho's condition I think I will do something like this: Create an image that has opaque pixels for the size of Idaho, transparent pixels everywhere for any type of bitmap Idaho state image Idaho State For each opaque pixel spot in the image A, copy the pixel related to the Idaho State flag image and place it on a blank, transparent canvas Step 1 will be clearly done manually, but the rest will be programmatically done by me It seems that I have the right idea in general, but I do not know how I will approach the attributes, can someone tell me in the right direction? As far as implementation technology goes, I'm a PHP guy, so using gdLibrary or something that

Started to get a Run-Time error '3159'; Not a Valid bookmark all of a sudden in Access 2007 -

I'm really new to programming reach. I changed an old 97 access db to reach 2007 and it's a while Is working fine for Today I go into it and was moving around the design scene and was looking at the code. I did not change anything. Just saw when I went to run the code, I did get a "not valid bookmark" error only to ensure that I changed the old program and all the code is the same which is causing me problems Mys Bookmark = Status The following Private Sub Product ID / AfterUpdate () Dim pos as Variant Me! [UnitPrice] = Me! [ProductID]. Columns (2) [Product Name] = Me! [Producer]. Columns (1) Me! [GLAcct] = me! [Producer]. Column (3) DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, acMenuVer70 pos = me.Bookmark me .Rquery Me. Bookmark = pause and sub EDIT: I have tried compact and repair. You have to change this code because it is a while old. I'm not sure why this works in the first place, because the updates will be saved, after saving

hex - Setting ints to negative values using hexadecimal literals in C# -

क्या सी # में हेक्साडेसिमल आर्टिकल का उपयोग करके एक नकारात्मक मान को int सेट करने का कोई तरीका है? मैंने विनिर्देश की जांच की, लेकिन इसमें कुछ भी उल्लेख नहीं किया। उदाहरण के लिए: int a = -1; // अनुमति int b = 0xFFFFFFFF; // अनुमति नहीं हैं? हेक्सडेसिमल नोटेशन मेरे आवेदन के लिए स्पष्ट है, और मैं uint s का उपयोग नहीं करना चाहूंगा क्योंकि मुझे कुछ अतिरिक्त कास्टिंग करने की आवश्यकता होगी। अनचेक किए गए कीवर्ड का उपयोग करें। अनचेक करें {int b = (int) 0xFFFFFFFF; } या उससे भी कम int b = अनचेक ((int) 0xFFFFFFFF);

linux - svn problem. I can't add it because it's already in another SVN -

svn guess_language / svn: चेतावनी: 'guess_language' पहले से संस्करण नियंत्रण के अधीन है यह क्यों है? जब मैंने इसे डाउनलोड किया, यह एसवीएन के तहत था। (मैं इसे एसवीएन से डाउनलोड किया है) मैं उस एसवीएन को कैसे रिलीज करूँ ... ताकि मैं इसे एक नियमित डायरेक्टरी में बदलूं? .svn निर्देशिका को guess_language / के अंदर से निकालें और उसका माता-पिता (यदि वह किसी अन्य एसवीएन रिपॉजिटरी से आया हो तो)। यह आपको इसे किसी अन्य एसवीएन रिपॉजिटरी में जोड़ने की अनुमति देनी चाहिए। यह भी guess_language के बच्चों के माध्यम से पुनरावर्ती रूप से किया जाना चाहिए एक कमांड जो आपके लिए यह कर सकता है (आपके लिनक्स पर्यावरण पर निर्भर करता है): ढूंढें -नाम '.svn' -type d -exec rm -rf {} \; (आपको संभवत: इसे स्वीकार करने के लिए नहीं लेना चाहिए, इसे एक गैर-हटाना संस्करण के साथ परीक्षण करना है, अर्थात find। -name '.svn' -type d और केवल उन सूचीबद्ध निर्देशिका की जांच करें जिन्हें आप हटाना चाहते हैं।)

sql - MySQL: Duplicate Entry for Key 2 -

I'm not sure what I'm doing to create this error. Type: (type, language, title) value ('bout', 'n', 'title3') error in query: : # 1062 - Duplicate entry '0' for key 2 Table: create table ` Node` (`nid` et (10) unsigned null auto_interm,` vid` et (10) unsigned null default '0', `type 'varchar (32) tap default' ',` language` varchar (12) not Tap default '', 'title' varchar (255) tap default '', 'uid int (11) Default '0', 'status' int (11) tap default '1', 'made' 11 ', not default' 0 ',' promote 'INT (11) default not by zero (11) No' Default '0', 'Medium' integer (11) No zero default '0', 'sticky' integer (11) No zero default '0', `tnid` int (10) unsigned zero default '0', ' The translation 'int (11) tap default' 0 ', primary key (`nud`), unique key' vid '(`

Call Web Service .asmx using $.get jquery -

I need to call a simple method by using $ $ .get () from the WFService.asmx file. This post works fine with the method. Here's the method: [WebMethod] Public integer amount () {10 + 10 return; } Now the code using Jquery: $ ('WfService.asmx / Soma', function (data) {warning (data.);}, "Json"); And I get an error message. What am i doing wrong To communicate with a SOAP web service, you must send it properly formatted SOAP XML which Define WSDL corresponds to. Unless you explicitly set up your ASP.NET Web service to return JSON data, you will not be able to request $ .get () without creating a sneak message.

iphone - Where does UIApplication's handleOpenURL 'Return' to exactly? -

I am working on handling a custom URL scheme in an app and am trying to resolve it: - (BOOL) Application: (UIApplication *) Application Handle Open URL: (ns URL *) url I am passing a URL to an NSDictionary in my app And thinking of parsing successfully "What now?" Handle Open URL returns a BOOL but what? It is difficult to debug me because I do not know how to run during the debugger on the device. All I know is that applicationDidFinishLaunching completes before handle open URL and it appears that my rootViewController screen Is on. - (zero) applicationDeffish: Launching: (UIApplication *) application {// load data [self initial data]; // Configure and Show Window [Add WindowSubview: [Navigation Controller View]]; [Window-making and knowledgeable]; } Anyway, now, I have this encryption object in Adidlegate, how can you pass it in the root interpreter so that it can see some of its scenes with it? Will I call [[Navigation Controller Topview Contro

algorithm - Approaches for using and analyzing set data in time -

I am preparing an interactive installation for a gallery where I will get input, which tells me that 8 input transducer What has been braded. For example, if a person touches the band number 1, then I can find it. For the convenience, tell us that if they touch together with 1 and 2 as {1}, then I will be able to detect that connection, let's say that {1-2} if a person is a And touches 2, and the second touches 3 and five strips, then I can find the state {1-2, 3-5}. In these lists of connections, an overlap between the set will only create a union of the set. I {1-2, 2-3} will never be able to be detected, instead of {1-2- 3} will see. I have to write a code which causes incidents in response to these situations. I'll vote input and get a list of groups of touched strips and then ... So my questions are - what are the interesting qualities of the list of such subsets? What type of patterns can I see? What is the formula for measuring the list of possible groups of co

dom - Logic for Implementing a Dynamic Web Scraper in C# -

I am trying to develop a web scrapper in C # window forms. The one I am trying to accomplish is as follows: Get the URL from the user. Load the web page in the IE UI Control (embedded browser) in the WiForce. Allow user to select a text (Approx, Small (no more than 50 characters)) From the loaded web page When the user wishes to continue the location ( HTML Dome Location ), then it must be maintained in DB so that the user can use it during subsequent visits Place to get data in that place Assuming that the website being loaded is a precycling site and the quoted rate keeps changing, this idea is to continue the DOM hierarchy so that I can cross it next time I would be able to do this if all HTML elements had their ID attributes. In this case where the ID is zero, I am not able to fulfill it. Can someone recommend a valid idea on it (if possible, the minimum code snippet). This will be useful, even if you can share some online resources. Thank you, vijay An

sql - mysql: change http://old-domain.com to http://new-domain.com in all tables -

I am using the statement from here: But I had to modify them because I am using multi-user and have a separate table structure (strange numbered tables). As you can see that this is all very problematic ... So my question is: Do I to everywhere ... Can I change the table in that database? How can I find such a way and change with mysql? Or maybe something better for this job? You can dump the entire db into a SQL file and replace it and import it back. You can use the mysqldump command to dump the SBL file, or you can still use phpmyadmin mysqldump --opt - UUSERNAME -pPASSWORD -H MYSQLDOMAIN YOURDB & gt; ; Yourdbdump.sql You can do this to change the text in the .sql file sed -ie / old-domain.com / new- Domain .com / g 'yourdbdump.sql to restore it back mysql -uUSERNAME -pPASSWORD -H MYSQLDOMAIN YOURDB & lt; Yourdbdump.sql

How To Make A jQuery Async Multi-Response From One PHP Script Run -

I have a run.php that has a button called "run". Clicking it on a jQuery $ .get () AJAX response on the server. Call back to PHP, and send JavaScript codeback function getResponse (sData) inside run.php's HTML to show results back to the browser. I want to keep such things as response.php runs through a list of tasks, it resonates a reaction with the echo command and receives a response to the receipt of a condition with the condition as If he walks together, suppose that I have 5 steps inside the response 5.php, and therefore return 5 echo statements to get reverse (). I tried to work it out, but what happens is that jQuery waits for jQuery and then one sends What is the technology? I ask that I have a script which is going to do something a bunch of files The first thing is that this file is counted, so it updates my progress bar, as it does with the files , It needs to increase my progress bar like every 1000 files. I think there is no way to react to Aj

How to change the tabbar color in vaadin? -

Want to change the color of the Hello tab when the tab wad is focused on? Anyone can help me .. It is a good idea to use a device like Firebug to inspect the DOM structure of components. . For example, when the tab sheet in the sample inspects the DOM structure of the example, you will see that the style class in all tabs is v-tabsheet-tabitem. If you select the first tab, then it will find the following style category "v-tabsheet-tabitemcell", "v-tabsheet-tabitemcell-first" and "v-tabsheet-tabitemcell-selected-first". If you select the second tab, then it will find the following style classes: "v-tabsheet-tabitemcell" and "v-tabsheet-tabitemcell-selected". As you will see, the modifying styles are slightly dependent on the tab's position in the tabet. Regarding changing the color of the tab, let's take a look at the CSS of the selected tab. .v-tabsheet-tabitemcell-selected {background-image: url (normal / img / ver

c# - Fill DetailsView.DataSource with anonymous type -

I have a asp: DetailsView with multiple columns, e.g. Foo, bar I have to fill it with an anonymous type, that is: gridView.DataSource = new {Foo = 1, bar = "2"}; GridVeew.DataBind (); but the following error is taking place: The data source is an invalid type. It should either be an ILISISOS, INIMERABLE, or IDATOS. What can I do if I want to? Datasource is expected to store assets that the value you are assigning is not a collection. You have to create an archive and give an anonymous typed example in that collection. The following should probably work (though I did not test it with datasource): gridView.DataSource = new [] {new {Foo = 1, bar = "2"}} ;

c++ - Dump class/struct member variables in g++ -

To dump member variables , g ++ or Is there a flag in the device? > Of a structure / class? For example, consider the source code like this struct A {virtual void m () {}; }; Structure B: Public A {int b; Virtual zero n () = 0; }; Structure C: Public B {int c1, c2; Zero o (); }; Struct D: Public C {Virtual Zero (n) (}} Eddy; }; I have to do something like (Vptr ) 4 = b 8 = c1 12 = c2d: 0 = (vptr) 4 = b 8 = c1 12 = c2 16 = d ( -fdump-class-hierarchy does not work. It only prints member functions.) (Suppose I get classes from A to D Or there are so many classes that I do not want to list them out myself.) (Specifically, I want to dump member variables). Use the right tool for the right thing G ++ Most of the tool to see a hierarchy is. You can always use an external device, which can dump the image. There is power-solution for you, which can dump you the whole program into a XML file that you can parse on.

java - Javax.swing timer repeats fine, but ActionListener doesn't do anything -

I am trying to flash the background color in the textfield. My timer setup is as follows: Flash Flash = New Flash (); // set timer TMR = new javax.swing.Timer (1000, new flash ()); Tmr.addActionListener (Flash); Tmr.setInitialDelay (0); Tmr.setRepeats (true); Tmr.start (); My caretaker is as follows: Fixed class Flash implementation ActionListener {ActionEvent evt} {if (flasher) {SpreademPanel. HistoryPnl NameTxt.setBackground (Color.white); } Other {Spread panel. HistoryPnl.NameTxt.setBackground (Color.pink); } Flasher =! Flasher; } // ActionProfile} // Flash Now, when I did it in debug and followed the action, the program repeatedly takes action through flash and between two options Toggles but onscreen, only the first toggle is followed, there is no action, though the flash is still working. What's wrong with this? Thanks in advance for any help. Here are some problems. The first obvious thing is that you are using a temporary situation. This is a very

c#, Problem with generic types -

मेरे पास आधार वर्ग है: वर्ग ARBase & lt; T & gt; : ActiveRecordValidationBase & lt; T & gt; जहां टी: वर्ग {} और कुछ बाल वर्ग वर्ग उत्पादक: ARBase & lt; Producent & gt; {} कक्षा प्रदायक: एआरबीज़ & lt; प्रदायक & gt; {} अब अन्य वर्ग में मुझे संपत्ति प्रकार चाहिए: सार्वजनिक आईएलआईआईएसटी & lt; ARBase & lt; ऑब्जेक्ट & gt; & gt; MyCollection {} और आपूर्तिकर्ता या उत्पादक संग्रह को संग्रहित करने के लिए सक्षम होना चाहते हैं, लेकिन मुझे त्रुटि मिल रही है: सूची & lt; Producent & gt; IList & lt; ARBase & lt; ऑब्जेक्ट & gt; & gt; ... कोई भी समाधान पता है? क्या गलत हो सकता है इसका एक उदाहरण के रूप में, किसी को प्रदायक को निर्माता s की सूची में शामिल करने की कल्पना करें - आप ऐसा नहीं करना चाहते हैं, लेकिन इसे ' यदि आप सूची & lt; निर्माता & gt; से IList & lt; ARBase & lt; ऑब्जेक्ट & gt; & gt; आप चाहते हैं उपभोक्ताओं को अपनी संपत्ति के साथ करने में सक्षम

What learning path I must follow to learn ASP.NET? -

I am an OOP developer on most web development, the most popular scripting language for PHP, To master my skills as a PHP developer, I get the form of PHP, OOP technology, Javascript, AJAX, AJAX libraries, CMS, framework (Zend, Cake, etc.) In-depth Linux (mostly Web) developer optical) ... So now I need some specific guides to determine what are the concrete domains that will allow me to master aNeed to be Spiknet developer and then the way to learn how to follow him (such as C #, webform, ADO, etc.) ... The best in SO all great developers. Damien < ASP.NET webforms div = "post-text" itemprop = "text"> (Or ASP.NET MVC) ADOnate (You can use LINQ to SQL or another ORM bit NHibernate) or C OR or VBnet (C # better) T-SQL and SQL Server (unless you plan to use Basic Windows Server knowledge and IIS management I think That you already have client side dev Web Services (or Better WCF) Depending on how complex your applications are, you need

PHP Xpath following-siblings -

I am trying to use xpath to get the content of a table. The table looks like this & lt; Div & gt; & Lt; Table & gt; & Lt; Tr class = "tableheader" & gt; & Lt; TD & gt; Stuff & lt; / Td> & Lt; / TR & gt; & Lt; Tr class = "indent1" & gt; & Lt; TD & gt; Content & lt; / Td> & Lt; / TR & gt; & Lt; Tr class = "indent1" & gt; & Lt; TD & gt; Content & lt; / Td> & Lt; / TR & gt; & Lt; Tr class = "tableheader" & gt; & Lt; TD & gt; Stuff & lt; / Td> & Lt; / TR & gt; & Lt; Tr class = "indent1" & gt; & Lt; TD & gt; Content & lt; / Td> & Lt; / TR & gt; & Lt; Tr class = "indent1" & gt; & Lt; TD & gt; Content & lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Div & gt; I am trying to drag the value of all tr ​​

Will a Registry Class in PHP work like this? -

If I create a registry object to store other objects and settings like this ... $ Registry = Registry :: getInstance (); And then create 2 other objects and pass them to the registry object as follows ... $ core = new core ($ registry) ; $ Database = Database :: getInstance ($ Registry); And then in the script I add some objects to the registry object ... // Some objects in our object are stored in the registry object Pattern $ Registry-> Store object ("database", $ databases); $ Registry- & gt; Store object ("session", $ session); $ Registry- & gt; Store object ("cache", $ cache); $ Registry- & gt; Store object ("user", $ user); In the main and database objects created at the top, the methods can still have access to all the objects, which I store in the registry, even if other ozages are stored in the registry. Database Objects were Created? Yes, they will pass the objects reference (php> = 5), then ea

Is there a way to overload a function based on different Result type in Delphi? -

There is a very detailed answer on the logical overloading function with return type, and I can see that Delphi does not allow this, but is there any way to overload the function on the basis of different return types in Delphi? type TFoo = record class operator Implicit (const aufoo: TFoo) : Type: integer; Class Operator Implicant (Conf Fu: TFU): String; End; Depending on the context, using the value of type, TFoo is called a proper underlying conversion. If the overloaded routine is trying to use the value of TFoo as an argument, which can take an integer or string in that condition, then a surcharge error will occur: Test.pas (33) Error: E2251 Suspect Overloaded Call 'Q' + Test.pas (19) Related Method: Process Q (integer); + Test.pas (24) Related Method: Process Question (const string);

algorithm - Generic Alpha Beta Search with C++ -

I am trying to design a function template that looks for the best trick for any game - of course The user templates of this function are implementing certain game-specific tasks. What am I trying to do to normalize the alpha beta search algorithm with the function template? The announcement of the templates of this function looks like this: template & lt; Class GameState, Class Move, Class Endgame, Class Evaluate, Classes Guestbook, Class Mekow) Alfa Betamax (GameTest G, Int alpha, Int beta, Int Dathbath); In addition to other things: Determine that a game has ended: bool endgame (g) Evaluate the status of a game: int evaluate (g) Get the possible moves: std :: vector & lt; Move & gt; Tricks = Gatemov (G) Make a move: gemstate gnew = macaw (g, move [i]) You can define an intangible interface Say Game_traits is a special game_state implementation for each game: < / P> template & lt; Typename game & gt; Class game_traits {.

Using custom drawables in an Android Notification -

Is there a way to use an image that I am generating as an icon on the fly? There was a discussion on this topic. Exhibit: I do not think this is possible. UPDATE : A bigIcon property for tablets or other large-screen devices at API level 11+, which is a bitmap Accepts AFAIK, it is unused on small screen devices, such as phones.

c++ - std::vector insert() reallocation -

I was looking through the std :: vector code and I think I did not find much. When the capacity & lt; Size () + 1 is required to allocate buffer again, so this new element can be inserted What does this (as far as I am able to remove from the code) is: Make a new element in the new buffer Old buffer (index end) ) Call old buffer Prefix and Copy of suffix as a copy I can see that it is done with memmove. Does not remember a pure binary copy of the data? It does not call the constructor of the elements, right? I was wondering, why the function is on the elements present in the old buffer Tells to the Destructor, if the memory is gone, has not been created again in the new buffer? I am using MSVC 8 vector mean of implementation Saw - I can not see memmove () . The last vector elements are not transferred, they are copied and their copy is called to copy them to the new buffer (buffer) Is allocated in an allocation, elements are constructed using appointment

c# - Get Non-Distinct elements from an IEnumerable -

I have a class called an item in the item that has an identifier property that is called an item code which is a string. I want to get a list of all non-specific items in the list of items. Example: list & lt; Items & gt; New item ("code2", "description2"), new item ("code2", "description3")}}; I want a list containing two entries below If I Var use different items = itemsList.Distinct (); I get a list of different items which are great, but I want to be almost the opposite. I can reduce the separate list but it will not include all iterations, each will be just one example. I had a play and one Interesting solution can not be detected. No sign or help would be greatly appreciated Thanks! I have 3.5, so LINQ is available Take my: var distinctItems = From the list in the list of listed groups in the list. ItemCode is grouped where the grouping Calculate ()> 1 grouped select;

linux - I need to link C program on a shared object with no section headers -

I have written an interface for the code generator which generates a shared object. Although I do not want to apply support for the section headers table because there is a large number of ALF file formats in that place. GNU LDI uses section headers to link with shared headers. This means that when I try to link GCC with a section header against my shared object, it will fail because Lynde has not found the symbols even if it is not present in the library. The trick can be used to fool the compiler to make linking successful, even if it does not get some symbols? There are some explanations for this problem: cheery @ ruttunen: ~ / document / g386 $ gcc dev / share_test c-l -based-m32 / tmp / cc6qBViY .o: function in `main ': shared_test.c :( text + 0xa): Undefined context for` Example_forcury' collection2: ld 1 to exit status @ rutunen: ~ / document / g-386 $ Cat dev / shared_test.c // GCC shared_test.cL -Lashid -M32 / LD_LIBRARY_PATH = ./a.out # include & lt;

c# - Display unsorted data in SL3 line chart -

I'm having trouble with my Silverlight chart. My model is unordered, that is, the sorting is done on the server side. It needs to support the transition of the year, but as you can see from the screenshot that charting control automatically arranges the model and fills the gap. Line sort is increasing ever increasing and the new year is not falling. How can I show the chart to the left in the sequence given in the grid control? Use of BTW, SL3 Line chart not designed to work You have been asking, after all the purpose of a line chart, the user has to help in detecting a trend or interim value as well as to be reflected among each other. However, if the distance between the horizontal points is not linear and always travels in one direction, such lines are meaningless. So I would recommend that line chart is not suitable or you have some other hidden data that should be used for the Y-axis which makes the lines meaningful. Alternatively the scatter graph or column s

python - TextMate and Django Integration - Supporting {% %} markup -

I have established a textmatic bundle which I believe is able to "{{{{" markup markup] (So ​​that it automatically closes the markup with "}}", but it is not possible that it is possible with other markups that use "{%" and "%}". So, I was thinking that anyone has already been with {{}} like how to get TextMate to add automated completion tag for {%}}. Any help is appreciated! It is possible - Rail bundle does this for ERB (& lt;% automatically closes Is%> tag). So this is a place you can see.

jquery - AJAX VS JSon "Cross Domain Built-in Security" Question -

It looks like I can not call "AJAX" outside of the existing domain name but I have jquery twitter API ( With JSON) I am able to call ... not using both the XMLHTTP objects? If this is (or not), why am I able to call another domain name with JSON (using JQuery), but not with AJAX? What is the difference between Ajax and JSON? The Twitter API uses JSONP, which does not use XMLHTTPRequest, but the "foreign" JavaScript To include & lt; Script & gt; This script uses the tag then calls the function in its own JavaScript. The Google Maps integration in third party websites will not be possible without this "hack" (this is exactly what it is: a hack). Here is more information on JSONP: Or in Wikipedia article on JSON:

Django form floatfield separator -

I have a form float field to the default separator '.' What is the best way to change my service ','? I tried to set DECIMAL_SEPARATOR in the settings ',' but it does not help whether there is a way to configure it or do I have to overwrite the clean method of flatfield? Thanks! Flatfield does not support i18n; You have to write your own.

c# - Silverlight: loading controls based on radioButton selection -

I am working in SL version 2.0 I have 3 radio buttons in a group and 3 User control that I want to load based on the selection of radio buttons. How can this be done? What options do I have? I was thinking about adding user controls in the same xaml file as a radio button, and made them invisible. Then make the rear code visible to them based on the selection of the radio button. Is this the only solution or is there a more effective way to do this? Thanks in advance. Depending on the size and complexity of those controls, your solution may be appropriate. There are other methods, including dynamic loading modules. This adds significant complexity; Prism is the most important project for this, and it can be found on. 10 Things to Know About Prism: Podcast on the Introduction to Prism:

c++ - How to create a class to wrap GLUT? -

I am writing a game for school in OpenGL. Since there are many more similar functions, I want to create a small framework for OpenLL in general. I have made some simple games in the past and I usually break it down to screen input and drawing in the IO classroom, to break the class of games for the main game loop / logic, and break the sections of the objects in the game I am Before I was using SDL, so my question is, is it the right way to go to OpenGL? I have already participated in some trouble. I want my IO class to initialize the window, visual drawing, and mouse click handle. Therefore the creator looks like this: IO :: IO () {currWindowSize [0] = DEF_WIDTH; Curl window shape [1] = DEF_HEEHET; GlutInitDisplayMode (GLUT_DOUBLE | GLUT_RGBA); GlutInitWindowPosition (INIT_WINDOW_POSITION [0], INIT_WINDOW_POSITION [1]); GlutInitWindowSize (currWindowSize [0], currWindowSize [1]); Glute Crew Wandow ("Test"); Set-up(); GlutDisplayFunc (drawScene); GlutMainLoop (); }

html - How does Flickr prevent people from downloading images from the site? -

Just wondering how does Flickr prevent people from downloading images from their site? What are they using? Transparent on image .gif you still see the HTML source and find the actual URL of the image to find the actual image Can download. For example, a random image: & lt; Img style = "position: full; top: 0px; left: 0px; display: block" src = "http://l.imgg.com/g/images/spaceball.gif" alt = "" width = " 500 "height =" 366 "& gt; This is a transparent image at the top. & lt; Say flowers with flowers by img src = "http://farm5.static.flickr.com/4057/4300352607_edcc5a4a9eJpg" alt = "CIDO * (back in a few days)." Title = "" width = "500" height = "366" square = "reflect" & gt; This is the real image, which is called spaceball.gif.

php - Filter out categories in wordpress -

I was wondering how can I not post in a certain category. I tried query_posts ('post_status = publish & post_type = post & category! = Books and offset = 5'); So I'm trying to get all those published posts which are not in category books, and then I have offset of 5. Thank you, Matt Muller You need to use - {$ category_id } $ cat = get_category_by_slug ('category'); Query_posts ("cat = - {$ cat & gt; term_id} & offset = 5");

Many to Many Join Query in CodeIgniter -

All previous attempts at JOIN have left me with disk or item data, which is the result of the ID, the result of the title key ( item table field: id, headline disk table field: id, title item_date table field: item_id, disc_id / code> How do I create a double join so that I can use a disc related to an item. Currently I will send two different questions For a single item record, then for a single disk array. In addition to being included in a query, if I ever want to get more than 1 record , I currently have to run 2 queries per item because I can not be included in my data. Please help !! I think this is my last many many obstacles (though speaking very soon Dare not ). Because both items and discs have column names and titles, they will overwrite each other title as item_title, d.title as item i, disc d, item_disc as i.id = Order by m.item_id and d.id = m.disc_id i.title, d.title for an item and its disk: M. *, I.title item items, as d.title item

sql - Using LIMIT within GROUP BY to get N results per group? -

निम्नलिखित क्वेरी: SELECT year, id, rate h से WHERE वर्ष 2000 के बीच और 2009 और आईडी में (चयन 2 टेबल से छुटकारा) आईडी द्वारा आईडी, वर्ष के आदेश आईडी, दर DESC पैदावार: वर्ष आईडी दर 2006 p01 8 2003 p01 7.4 2008 p01 6.8 2001 p01 5.9 2007 p01 5.3 2009 p01 4.4 2002 p01 3. 9 2004 p01 3.5 2005 p01 2.1 2000 p01 0.8 2001 p02 12.5 2004 p02 12.4 2002 p02 12.2 2003 p02 10.3 2000 p02 8.7 2006 p02 4.6 2007 p02 3.3 < / Code> मैं क्या चाहता हूं केवल प्रत्येक आईडी के लिए शीर्ष 5 परिणाम: 2006 p01 8 2003 p01 7.4 2008 p01 6.8 2001 p01 5.9 2007 p01 5.3 2001 p02 12.5 2004 p02 12.4 2002 p02 12.2 2003 p02 10.3 2000 p02 8.7 क्या ऐसा कोई तरीका है जो किसी प्रकार की सीमाओं का उपयोग करके संशोधक की तरह होता है जो ग्रुप बीई में काम करता है? आप कर सकते हैं आईडी द्वारा समूहीकृत और दर : SELECT id, GROUP_CONCAT (वर्ष) द्वारा क्रमबद्ध एक एकल कॉलम में सभी वर्षों तक एकत्रित फ़ंक्शन का उपयोग करें परिणाम ---------------- ------------------------------------------- | आईडी | GROUPED_

WPF: What is the generic container control? -

The normal container control in HTML is a div, it does nothing in its own right, but it does not have to Makes a great place. Similarly WinForms had the usual container control panel. What should I use for WPF? Some of the more commonly used containers are: Grid StackPanel DocPanel RapPanel canvas < / P> Also see

javascript - How do I grab the value from an html form input box as its being entered? -

How can I get value from an input box being logged? A key will be turned on each time a release. Although this solution appears, there are some problems in it. If users take the cursor with the arrows, then it has been triggered and you have to check yourself if the value of the field does not change. If the user copies / pastes a value in the input field with the mouse, or the undo / click in the browser, the onkeyup has not been triggered. Like in Mac or Google Docs, I did not want a Save button to submit the form to our app here. Any comments, or shortcuts are welcome because it is a bit overwhelming . Store the current value of onfocus , and start an interval to check the changes When the user takes something in input If there is a comparison with the old value, onblur , when the user moves away from the field, clear the interval and event handlers < / Li> Here is the function I use, the elm input field is reference and when the value The change is t

.htaccess - 500 error for clean url mod re-write -

Thanks to all who have helped me find my clean URL, I'm almost there but want to lick this last thing. .htaccess # Save this line on the Revive Engine site last! RewriteBase / ~ accountName / #Hide .php extension rewrite convert for cleaner URLS% {REQUEST_FILENAME}! -d Recovery code% {REQUEST_FILENAME} Php -f Rewrite rule ^ (. *) $ $ 1.php # Calendar-Extended Rest-off URL rewriting ^ Calendar-Extended (/.*)? $ Calendar-Extended.fp $ 1 [L] Option All-Indx & lt; IfModule mod_security.c & gt; SecFilterEngine of SecFilterScanPOST Off Lt; / AMMDOL & gt; # All sub-directories SUPHP_ConfigPath /home/accountName/public_html/php.ini My working URL #propagate for www.example php .ini file. Com / calendar-expanded / 4 / mother-in-concert / A broken URL www.example.com/calendar/12/a And-band-live / Obviously do not have to rewrite any code for calendar / . My question is, do I completely report internal page errors There is a rule needed for each page to av

php grabbing data from javascript -

Apparently I try to save the data in mysql, but it does not work. ? Create_users.php & lt; Form method = "post" action = "check availability.php" & gt; & Lt; Script & gt; Var Mac = {getMacAddress: function () {document.macaddressapplet.SetSep ("-"); Return (document.macaddressapplet.getMacAddress ()); }} JQuery (document) .ready (function () {var mac = macs.getMacAddress (); $ .get ('/ checkAvailability.php? Mac =' + mac, function () {Alert ('yes'); })}); & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Document.write (macs.getMacAddress ()); & Lt; / Script & gt; & Lt; / Form & gt; check availability # php $ dbhost = 'localhost'; $ Dbuser = 'root'; $ Dbname = 'Registration'; Mysql_connect ($ dbhost, $ dbuser) or die ("Could not connect to database"); Mysql_select_db ($ dbname); $ Mac = $ _GET ['Mac']; $ Mac =

iphone - NSURLRequest/NSURLConnection for tcp -

Is it possible to send a TCP request using the NSWRXAST / NSURL connection from the IC address, if the port related to the iPhone app? Using NSStream It is possible to establish a TCP connection in an IP and port. I am trying to establish a connection with a non-apple device and it works fine using nsstream but it is not very responsive [can be caused by remote device] Therefore I do the same thing to NSURLRequest Looking for the / NSURLResponse method can someone suggest how it is possible [possible]? A small Google Webmaster takes me to this link. Is this my problem behind the problem is NSTrim, although I did not find any errors Thanks RNATIM < P> No, this is not possible. CFStream and / or NSStream

c# - How change the color of SelectedItem in CheckedListBox in WindowsForms? -

I want to change the color of hidden items in CheckedListBox in C # WindowsForms. Can anyone help me in solving this problem! This should start with I have a checked listbox subclassed and drawing event The result is that the items checked in the list are drawn from the red background. Playing around this, if you want to see the area behind the checkbox as a different color, then use e Griffix. Before calling on File Rectangle base.OnDrawItem . ColoredCheckedListBox: Checked Listbox {Safe Override Zero OnDrawItem (DrawItemEventArgs E) {DrawItemEventArgs e2 = New DrawItemEventArgs (E. Graphics, E. Font, New Rectangle (E. Bounds.Space, E. Bounce Size), E. Index, E. State, E. Four Collar, Check Indians, Canton (E. Index) Color: Red: SystemCollars. Window); Base.OnDrawItem (E2); }}

c++ - Creating dll from cpp files with nmake -

There is a problem: * All sources in a special folder *. Need to compile DLL with CPP files nmake For example, CPP files are stored in the ". \. Src" folder, and they should be compiled into a DLL. Where can I read about NMK? Or some examples? checkout

javascript - How to make custom, no editing need, bulletproof jquery's noconflict version? -

In my job I have to use jquery with prototype, I can create a custom jquery with library file Like I will add once the head and then there is no need to change anything in any code. Is this possible? I do not want to change anything from code to $ to jQuery . to keep it short One of the other functionality in NokiaFICT mode has found some functionality: You can select a different variable to use instead of the standard "jQuery". Uses looks like this: var $ j = jQuery.noConflict (); Now, in addition to using the default jQuery () signaling, I can also use less $ J () notation to allow it to avoid running in problems with my other frameworks , While still enjoying almost the same parity in my code.

What Language(s)/technology was used to make the old school search engines like Excite, Altavista, Lycos? -

I'm just researching some of the language and technologies that old school search engines like Excite, Altavista, Lycos and Ask Jeeves? Would I want to know that basically used the technology and databases used to make them? For example, the first version of Google.com was created using Java and Python. / P> Thank you in advance; -) Google employees Jeffrey Dean and Sanjay Gamwat say in his paper "Mapadas: Simplified Data Processing on Large Cluster ", Google used ad hoc distribution of processing of its large input file for indexing, including 3800 LOC C ++ for a (!) Phase. I think the task code was a big mix of sophisticated high level languages ​​and scripts to pass data around many machines. There were no databases around the GFS + Bigtable.

How to import or include data structures (e.g. a dict) into a Python file from a separate file -

I know that I can include Python code from a common file by using Import MyModuleName Am I - But how can I go about importing only one word? In the problem I am trying to solve, I have a word in it that should be in the file in an editable location, whereas the actual script is in another file. By a non-programmer, it can also be hand-edited. script.py airportName = 'BRISTOL' myAirportCode = airportCode [airport name] 'Belfs',' Billingham International ':' BHX ',' Belfast International ':' Belfast International ':' myDict.py airportCode = {'ABERDEEN': 'ABZ', 'Belfast International' Birmingham, Intel: 'BHX', 'Bournemouth': 'BOH', 'Bristol': 'BRS'} how script.py ? airportcode dict from within? "> Import from the script Import script print script. Airport code Or, better Import Import AirportCode Print AirportCode Be caref

c++ - Passing platform-specific data in a platform independent design? -

I have a game engine design written in C ++ where platform-independent game objects are a platform-specific application The object is within The problem I am trying to solve is the case, where I have to pass from the application to the game from OS-specific data. In this case, I have to use the main HWNDA from Windows for DirectX or an OpenGL theme renderer for other platforms. Unfortunately, I have little control over the renderer, which can expect platform-specific data. I realized that I can initialize the renderer in the application side, but I have to decide when and where to do it. Generally, I have control over the application side but not towards the game. The sports writer can choose to use a different renderer. I also have the idea of ​​making some "property manager", where I can cross data through the stars, but I do not like the idea is too much. Any thoughts? Remember that you only need to know the timing compilation in the target platform with t

java - Using webservices to connect front-end and back-end, a good idea? -

This project runs front-end web server on one JVM and back-end on the other. To call the web any biz-logic methods in the back-end, it has to call the web service (Jax-WS). I understand that parts of the application will need to be integrated with other systems, it is a good idea to distribute a service through the web server service, but I do not have a system yet Where is the every biz-logic call highlighted as a webmaster Display? transaction? Generally a good idea? I'm a big fan of what theory (keep it simple). There should be compelling reason to split the application between JVM and make the WS interface layer. Potential reasons include the need to measure the presentation level different from the business level. JVM tuning differences, such as a different garbage collection algorithm Or DMZ is needed. If no compelling reason exists, then combines the isolated complexity which may cause headache for development from the development. Need to highlight the bu

c# - Using INotifyChanged on DataContracts -

I am trying to isolate actual service data with the functionality of the service and therefore return data as data contract The one that holds many properties (data members) is generated by using the client code svcutil / edb which also generates the INotifyPropertyChanged implementation for the proxy code. As far as my tests have been revealed, that code has not implemented the event changing the property for changes on the server. In addition, receiving a property, the value of the property is returned only when the data contract proxy is received. Actually, what I found here: (server side) [service contact] Public interface IControllerService {[OperationContract] DataModel GetDataModel (); } [DataContract] Public class data module: INotifyPropertyChanged {Private string _State; [Database] Public String State {Set {if (_state! = Value) {_state = value; OnPropertyChanged ("State"); }} Get {return_state; }} Private Event PropertyChangedEventHandler PropertyChanged;