Posts

Showing posts from February, 2010

Vim displaying files incorrectly on Windows 7? -

I am using vim 7.2 on Windows 7 and sometimes files are displayed incorrectly. But when I scroll through the file I have given the links to the images. The first and second files are displayed incorrectly, whereas in the last one it appears properly (near the cursor). Images are from a C ++ file, but this display also happens when I'm editing the Tex files

internet explorer - C# UpdatePanel Update seems to be working in Firefox but not IE -

I have a page with many updated panels on it. First there is a panel in which there is an event to close the panel with the gridview and update the update panel - then populate a control in the second update panel. It works fine in Firefox but does not resemble false in the panel visible in IE = false. Gridview is not statistic, so it does not appear, but there is still a place. I hope Firefox works. The second update panel in IE shows that there are some buttons in it, etc. Clicking on any of these throws an error. Microsoft JScript Runtime Error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid Postback or Callback Argument. The event is enabled in the configuration configuration or at the & lt;% @ page EnableEventValidation = "true"%> one page. For security purposes, this feature confirms that the argument for postback or callback events arises from the server control that was originally provided to them. If the data is valid and expected, use th...

.net - CheckboxList input Not working in IE7/6 -

I modified the ASP.NET checkboxlist using CSS. The use of this display hides the input: None and I am able to click on Labels and Cause Postbacks in Firefox but when I click the label in the checkbox list in IE it does not work. What can be wrong here? My code: & lt; Div style = "padding-left: 15px;" & Gt; & Lt; ASP: checkbox list id = "CLL" runat = "server" autopostback = "true" repeat layout = "flow" CssClass = "cb" = "cblD_On selected indexchange" by changing the on-select index; & Lt; / ASP: CheckBoxList & gt; CSS: .cb input {display: none; }. CB Label {font-size: 80%; Background: #fff url (../images/x.gif) No-repeat; Display area; Width: 300px; Height: 15px; Padding: 1px5px030px; } Invisible elements do not trigger in IE instead of using hidden elements Due to postback, there would be a better way to use JavaScript if you really want to be creative, you can alert AJAX :...

mysql - python log view application -

I need a GUI application or web app, where I can see the python log information I can select any required format but it should work with standard logging module. I have configured my logs in the file but I wanted to be logged to store in mysql db (this is possible), but I need a user interface to view logs from a remote location. . Any recommended device or approach? database for logging as you use any Python DB-API 2.0 compliant database interface Handler can write. Again, of course, you can see the logs using any framework that allows you to get and display data through the web. Or, you can use the outlined approach using the log-in chainsaw GUI. Here's a screenshot: Just two views - there is no doubt in it.

sql - Can a superkey include things that aren't part of the primary key? -

Can things that are not part of the primary key? logically speaking, if the column X in column {A, B, C} and A are the primary keys, then {A} , {A, B} {A, C} and {A, B, C} are all superkeys because in those sets you have all Know the value in the line (if it exists.) However, for some purposes it is not considered as a key in SQL, e.g. If the table is y in A and b , then you no usually enter a foreign key Y A, B) References X (A, B) , because {A, B} is not the primary key if you want to be able to declare that foreign key, then you UNIQUE constraint has to be added to X (A, B) which is disabled as it duplicates the part of the primary key In my opinion, this SQL In many flaws A.

dns - Can (domain name) subdomains have an underscore "_" in it? -

क्या सबडोमेन (डोमेन नाम) में उनको _ अंडरस्कोर हो सकता है? यहां दी गई अधिकांश उत्तर झूठे हैं डोमेन नाम में एक अंडरस्कोर होना पूरी तरह से कानूनी है मुझे मानक का हवाला देते हैं ,: डीएनएस ही विशेष लेबलों पर एक प्रतिबंध लगाता है जो संसाधन रिकॉर्ड की पहचान करने के लिए उपयोग किए जा सकते हैं। यह एक प्रतिबंध लेबल की लंबाई और पूर्ण नाम से संबंधित है। [...] डीएनएस प्रोटोकॉल के कार्यान्वयन को लेबल पर कोई प्रतिबंध नहीं रखना चाहिए जो इस्तेमाल किया जा सकता है। विशेष रूप से, डीएनएस सर्वरों को एक क्षेत्र की सेवा देने से इंकार नहीं करना चाहिए क्योंकि इसमें ऐसे लेबल शामिल हैं जो कुछ DNS क्लाइंट प्रोग्रामों को स्वीकार्य नहीं होंगे। मूल डीएनएस विनिर्देश भी देखें, अनुभाग 3.5 "पसंदीदा नाम सिंटैक्स "लेकिन इसे ध्यानपूर्वक पढ़ें। अंडरस्कोर वाले डोमेन जंगली में बहुत आम हैं _jabber._tcp.gmail.com या _sip._udp.apnic.net की जांच करें। अन्य आरएफसी अलग-अलग चीज़ों के साथ सौदा करते हैं। मूल प्रश्न डोमेन नाम के लिए था यदि प्रश्न होस्ट नाम (या यूआरएल के लिए, जिसमें होस्ट नाम शामिल...

iphone - UITableViewCell variable height with multiple UILabels and IB -

OK, so I have a situation that is driving me crazy. I am loading a UITableView with a custom UITableViewCell Now there are some pairs of UILBL in this cell. The order is: Label 1 label 2 label 3 label 4 Now there is a certain height of label 2 label 1, label 3 and label 4 According to the size of the string their height will need to be changed. I am using the recommended method to calculate the height for each label: - Size Font: C Restricted: Touchs: Linebreaker MODED: UILineBreakModeWordWrap Overlapping but not sure how is the status of these labels? Or is there a better way to do this? Thanks Create the position of the first label, get its shape, and then Create the status of each subsequent label by the frame of the previous label For convenience, you can put this code in a different method, to call it once, the height of that code is -tableView: heightForRowAtIndexPath: To use in the delegate method, as well as the -tableView: cellForRowAtIndexPath: th...

php - Base URL in Kohana 3 -

How do I get the original URL in Kohana 3? Is there a solution in raw PHP? In the codeh echo url :: base (); RAW PHP echo "http: //". $ _ Server ['HTTP_HOST'] "/ NameOfApp";

QT4, GTK+, wxWidgets or IronPython for a native Windows app using Python -

I need to create a basic window app using Python (and py2exe, I think). Taskbar icon Alert notifications (next to the taskbar icon) The chromosomal window (ideally beautiful, round, One color). WebKit to present some chromosomal windows So far, I've identified the following potential toolkits: pyGTK pyQT4 wxWidgets sarcastic I have not used any of these before and therefore I advise you Rich PS: I have considered and titanium and exempted air; Edit: LGGL Python Binding for Qt (Why PtytT has not yet understood LGGL): I'm using You may have some problems with the QT license. I really like it because it's still very portable, and it's a shorter date than the GTK. Which IMO only leaves wx, but it is still Rai call, best wishes. The wx can do all of the things listed above.

C# Winforms Parent Child Instances -

In my application ... What do I do to navigate between winforms is that I have an object of that form I should show what should be and I use reg.show () register register new ; There are two problems with this If I do this with a button, then more than one example can be opened. If I stop, by example, the child form opend remains. What is the solution .... MSDN Code Gallery Have a look at the code sample from. If you look at the code in detail, it would be a good idea to go to

c# - parse lines using linq to txt -

var t1 = From the row in the file ReadAllLines (@ "alkahf.txt") item = Row. (New string [] {"."}, StringSplitOptions.RemoveEmptyEntries) Poem = Line. Split (new string [] {"\ n."}, StringSplitOptions.RemoveEmptyEntries) Select new {index = item, text = verse}; If there is a problem with the code above, I'm not sure how to parse the lines properly. The format of the file is such, I would also like to ignore any empty line StringSplitOptions.RemoveEmptyEntries does not work for any reason 1 in this text can be number I. In the LINQ section, you That's why you may want to exhaust the blank lines: From the line in the file Reed Allines (@ "Alcataphtect") where! String.IsOlOrequity (line) Then you split two - on a new line, which is strange (because there will not be, because we know we are reading the line). I hope you mean something like this: bears = line Sample ('.') Where the parts Long == 2 Select...

Using ASIHTTPRequest and json-framework on the iPhone -

Am I planning to use these two libraries (or rappers) in my upcoming iPhone app? I reject a top cause applications, because of the use of private frameworks / API calls. Is ASIHTTPRequest and json-framework supposed to be this way, or can I safely use these? When people say "private frameworks", they mean pieces of Apple's iPhone OS that are not documented. Due to the purpose of working, you can call undocumented OS methods by name, and Apple has a tendency to frown at it. It is not a problem to use third party libraries such as ASHITPPRAEVEEVE, unless the Hewitt's 3rd 20 library, the library itself uses unidentified OS calls.

How to charge/budget in agile software development projects? -

How do you charge your customer in a project using a cool method? per hour? Then a great faith has been established before the project. Repeat every? There will be many budget decisions, which can take time. Per project? How can you do this when you do not know the scope? The very essence of the agile is not to write a great advance design / specification. Charging on the basis of defined conditions, which will be different from one traditional conventional bidding contract, let's say a spry contract. Some options have been discussed by Alistair Cockburn Another great resource is of Peter Stevens Mary / Strong> Content is also see,,,. more.

objective c - iPhone + access Controls from other class -

मेरे वर्ग हैं: PropertyCalcViewController .m & amp; .h .h में मेरे पास है IBOutlet UIButton * btnGo; @ प्रॉपर्टी (नॉनैटोमिक, रिटेन) आईबीओटलेट UIButton * btnGo; और .m फ़ाइल में मेरे पास @ संश्लेषण करें * btnGo; अब मेरे पास एक और वर्ग प्रबंधक है। एम एंड amp; .एच। मुझे यह करना है कि वह btnGo से प्रबंधक क्लास का उपयोग करें और इसे PropertyCalcViewController से हटा दें [btnGo removeFromSuperView] मैं यह कैसे कर सकता हूँ? किसी प्रॉपर्टी का उपयोग करने के लिए, आप" डॉट-सिंटैक्स "का उपयोग करते हैं: [the_view_ctrler.btnGo removeFromSuperview]; इसके अलावा, मेरा मानना ​​है कि आपका मतलब है @ संश्लेषण करें btnGo; , इसके बजाय @synthesize * btnGo; जो एक वाक्य-त्रुटि है

Incrementally updating a asp.net web site? -

Is a good way to make incremental changes to ASP.NET.net website without re-publishing the entire site? I am taking an old website from classic ASP to asp.net, and one of the things happening on the site is being converted into isolation. The site is only on one server, and there are several files so that one will reproduce the entire site down for some time. I would like to avoid it, or at least as low as that time. Every page has a code on the back of the file, and some pages are used by each page in the appboard (just in that case if you are building a web site (a web application's Instead, where). All code is compiled in .dll in the /. Folder), And it seems that you can actually deploy only those files that have changed to server - numRecompilesBefor EAppRestart machine or web In config files - this is missed for 15. If you apply any changes in the / app_code folder, then it will recompile the site as it is a shared area. One thing: VS2008 and below, the pu...

user interface - Howto keep Delphi App Responsive during GUI Updates? -

This question is in keeping with the GUI in the long run (some seconds in most cases). I use threads and a work pattern extensively to perform costly tasks in the background thread. But what time does it take about GUI updates? For example, filling a large string grid or tree view? The thread does not help here because everything needs to be synchronized with the main thread. I know that the application. Processesmase is the problem of , but currently it seems like only one solution "text"> IMO if GUI update is a hindrance (Even if StartUpdate / EndUpdate is used as @The_Fox), then it is time to reconsider GUI controls to use it. Standart grid, treewewew, list box are not cut to handle only a large number of items. Many executable third parties control both free and commercial for this purpose. For the starter, check the Virtual Treeview if the barrier grid, the previewview or the listbox is in context.

c++ - A little problem in handling 2-D arrays with class -

वर्ग linklist4x4 {निजी: struct node4x4 {दोहरे डेटा [4] [4]; नोड 4x4 * लिंक; } * पी; सार्वजनिक: linklist4x4 (); शून्य संलग्न (डबल * अंक); शून्य add_as_first (डबल * संख्या); शून्य ऐडफेर (इंट सी, डबल * अंक); // void del (डबल * num); शून्य प्रदर्शन (); पूर्णांक संख्या (); डबल * getdata (int c); ~ Linklist4x4 (); }; उपरोक्त मेरा वर्ग घोषणा है। अब नीचे एक फ़ंक्शन घोषणा है। शून्य linklist4x4 :: append (डबल * Num) {node4x4 * q, * t; If (p == NULL) {p = new node4x4; (इंट जे = 0; जे एंड एलटी; 4; जे ++) पी- & gt; डेटा [आई] [जे] = नंबर [आई] [जे]; // त्रुटि लाइन P- & gt; link = NULL; } और {q = p; जबकि (q- & gt; link! = NULL) q = q- & gt; लिंक; टी = नया नोड 4x4; (इंट जे = 0; जे एंड एलटी; 4; जे ++) टी-> डेटा [आई] [जे] = नंबर [आई] [जे] + // त्रुटि लाइन T- & gt; link = NULL; Q- & gt; link = t; }} जब मैं संकलन करने की कोशिश करता हूं, तो मुझे यह कहते हुए एक त्रुटि मिलती है कि "त्रुटि C2109: सबस्क्रिप्ट को सरणी या सूचक प्रकार की आवश्यकता है" दिखाए गए अन...

tomcat - java tomcat6: javax.ws missing -

I'm trying to run TinyFbClient (small Facebook client) and import it to javax.ws.rs.core.UriBuilder Need to do and javax.ws.rs.core.MediaType I do not have a javax.ws package. Is the Jar file missing? Netbeans 6.8 at Tomcat 6.0.20 Thanks! You do not need a solid JAD-WS implementation tomcat, it's just a service ATP Implementation will require you to have another apeser which also applies to JAX-WS (such as a glassfish), or to add a solid JAD-WS implementation to your webpad. Uses glassfish, which is made on top. You can download it separately and also use it on a tomake. If you use Google's keywords, you will get several indications on the blog, for example. Update to you javax.ws.rs package, no javax.ws package only;) Here's a slightly modified answer: You do not need a solid JX-RS implementation, it's just a service ATP implementation, you'll need another app server which JAX-RS also applies (like glassfish), or to apply solid JX-...

.net - What all are the New features in asp.net 4.0.? -

संभव डुप्लिकेट: एस्प.net 4.0 में सभी नई विशेषताएं क्या हैं? वर्तमान में हमारी टीम .net 2.0 पर परियोजना कर रही है और हम asp.net 3.5 पर अपग्रेड करने के लिए नहीं गए थे। अब हम asp.net 2.0 से asp.net 4.0 तक स्विच करने की तैयारी कर रहे हैं। ऐसी सुविधाओं की एक सूची हमें प्रशिक्षण कार्यक्रम को डिजाइन करने में मदद करेगी। नीचे मेरे नोट्स हैं ) एक आंतरिक प्रस्तुति की मैं कर रहा हूँ यह कोई व्यापक सूची नहीं है, लेकिन यह उन क्षेत्रों में एक ओव्यूव्यूज है जो मुझे रुचि रखते हैं मैंने अपनी निजी पसंदीदा में से कुछ को हाइलाइट किया है:) अधिक आधिकारिक सूची के लिए, देखें। संपादित करें: बस एहसास हुआ कि आपने केवल एएसपी का उल्लेख किया है। नेट 4, लेकिन मैं दिलचस्पी रखने वाली किसी भी चीज़ के लिए वहां अन्य मदों को छोड़ दूँगा। ( भाषा गतिशील कीवर्ड नामांकित / वैकल्पिक तर्क प्रतिनिधियों और इंटरफेस में VB.NET ऑटो गुण कोई वापसी मूल्य के साथ लैम्ब्डा मल्टी लाइन लैंबडा संग्रह प्रारंभकर्ता स्वचालित लाइन निरंतरता / Li> (IObservable) स्थान / जीप...

asp.net mvc - Best way to retrieve XML data in MVC? -

If I am passing an XElement or XDocument in my ASP.NET MVC view, then the best (read: easy) The way is thanks, Matt. Usually you want a strongly typed model in a function, but if you have XML There is a good reason to take in, so here is the approach that I will take: Create a custom model builder that will work for you. In ModelBuilder you can loop through the form and get everything and create your excelment. In Global.asax you can specify that whenever you have a type of XElement or XDocument, then you want to use that modelbender.

php - JQUERY AJAX LOAD Function Error -

मैं jquery ajax लोड फ़ंक्शन का उपयोग करके first.php में एक second.php फ़ाइल लोड किया $ (" ("आईडी")}; // चेतावनी ("दृश्य" क्लिक किया गया ");}); second.php पहले.फिप फाइल की सफलता में दूसरी पीएचपी सामग्री लोड किया गया। लेकिन second.php में कुछ jquery फ़ंक्शन शामिल हैं ... दूसरे में Php $ (दस्तावेज़) .ready (फ़ंक्शन () {चेतावनी ("दूसरा दस्तावेज़ jquery");}); यह काम नहीं कर रहा है ... और इस पीठ पर वापस जाना जावास्क्रिप्ट भी पहले काम नहीं कर रहा है जब first.php में लोड होता है, लेकिन दोनों सीधे काम करते समय second.php कॉल करते हैं क्या करें आपकी दूसरी फ़ाइल & mdash; जो मुझे लगता है कि HTML का एक टुकड़ा है और एक पूर्ण दस्तावेज़ नहीं है & mdash; एक "तैयार" ईवेंट प्राप्त नहीं कर रहा है, क्योंकि आप सिर्फ डोम को संशोधित कर रहे हैं। यदि आपको चलाने के लिए कुछ एम्बेडेड जावास्क्रिप्ट की आवश्यकता है, तो इसे सीधे टैग के अंत में एक टैग में डाल दें: & lt; div id = 'stuff' & gt; & Lt;! - ... --- & gt; ...

osx - Getting a list of used libraries by a running process (unix) -

I need to know what the Unix process has been loaded and can be used throughout its lifetime. Is possible and how Or better yet, I have a library name and I have to find out which process is being used, it is possible. On a single note, it is possible to inform that when a Unix process was launched and when it was left, it would not be the hair process of my procedure, I need to know globally. Update: I think I have not provided enough information about Unix, which I was talking about about Mac OS X (although some people It says that this is not completely Unix), and I was looking for a process to find the loaded libraries and I have to do it in C / C ++. > Solaris has the ability to call you executable or running process for Linux or for mapped libraries You can consider for / proc / PID / maps .

vbscript - Is this a proper XML syntax -

I was wondering if this was a proper XML syntax, because I used VBscript and I actually used this document The need to delete a node is not able to do this . & Lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; DBM & gt; & Lt; Server & gt; & Lt; Server name = "PCTEST" & gt; & Lt; Reference & gt; & Lt; Database name = "TES1" path = "\ C $ \ Build" /> & Lt; / References & gt; & Lt; / Server & gt; & Lt; / Server & gt; & Lt; / DBM & gt; Try "itemprop =" text "> after the xmlDoc set = CreateObject ("Microsoft.XMLDOM") xmldoc.async = false xmldoc.loadXml _ "to & lt ;? xml version = '1.0' encoding = 'utf-8' & gt ;?" & Amp; _ "& Lt; dbm & gt;" & Amp; _ "& Lt; server & gt;" & Amp; _ "& Lt; server name = 'pctEST' & gt;...

sql - Log Shipping - 24 hour difference between source and destination system times -

We are trying to do log shipping between two database servers where the system time set in destination server 24 hours ago What is the source system time can be forced to restore data to the destination machine (neglected transaction file tickets 24 hours ahead). How about a snapshot @ 00:00 (or 23:59:59) daily? Then you can compare those days, though without any mechanism as you would like to log in to play. I'm a big fan of snapshots (just be careful, where you put files on the disk if it's a busy DB). How to do this here:

security - Keeping my Java program secure -

I have a Java project that uses a library, this library needs root privileges to perform certain tasks. That is what I need in my project. I should note that despite the Java-based project it is only for Linux. There will be several tasks in this project which do not require root privileges, some of which have to negotiate with the Root privilege task and nothing else. In addition, the project will execute programs such as user input data under root rights. All this root activity has worried me about security. My system target machine user will have its own computer and there is no intention to run this system on some public terminal but security is still important because The unknown external Bluetooth device will be able to interact with this system. So far, my security measures include a number of filtering user inputs, and with very careful attention to all the tasks that the external Bluetooth devices will cause the system to be executed, but I am unhappy with this I a...

A Java web project created with Maven is not recognized as such by Eclipse -

मैंने इस तरह से मैवेन के साथ एक वेब प्रोजेक्ट बनाया है: mvn archetype: create -DgroupId = Com.mycompany.app -DartifactId = my-webapp -DarchetypeArtifactId = maven-archetype-webapp फिर मैं mvn eclipse: eclipse चलाता हूं ताकि एक ग्रहण परियोजना बना है। ग्रहण परियोजना की सभी विशेषताओं को पहचानता है, लेकिन यह इसे वेब प्रोजेक्ट के रूप में नहीं पहचानता है। इसलिए, जब मैं अपने ग्रहण कार्यक्षेत्र के अंदर एक सर्वर बनाऊँगा, और संवाद पर जाकर जहां मैं परियोजनाओं का चयन करता हूं मेरे सर्वर पर तैनात, मुझे अपनी नई बनाई गई परियोजना को तैनात करने की पेशकश नहीं की गई है। विचार? आपको स्पष्ट रूप से अपने pom.xml में उल्लेख करना चाहिए कि Maven-eclipse-plugin एक WTP-project उत्पन्न करना चाहिए। एक साधारण उदाहरण, जो बिल्ड-पार्ट पर आपके pom.xml में होना चाहिए, यह होगा: & lt; प्लगइंस & gt; & LT; प्लगइन & gt; & LT; ग्रुप & gt; org.apache.maven.plugins & lt; / ग्रुप & gt; & LT; artifactId & gt; Maven-ग्रहण-प्लगइन & lt; / artifactId & gt; & L...

javascript - What is the best approach for handling a complex form in html? -

I need to implement a webform (JSP, struts) in which checkboxes and texfolds can load. Actually I have a check box tree, which is to increase (like adding a new node). The same data is used on the second page, but refined. Then you add hair nodes to the data structure using TextBoxes etc. I can describe the datastruck in XML: but there are about 100 rows in reality. I have 3 approaches: 1. Make a webform in JSP which reduces the user experience because many postbacks are required (every time I add / edit / delete node, subnodes ... ) 2. In this ASCIN FASHION -> Loads of JavaScript to handle the structure of the data (keep the XML data in a hidden device and update the UI) 3. Go to RIA like OpenLazlo What would you suggest Areas are? If you already know OpenLezlo, go for it. You will end up with a better user experience with less work While developing the app you should target the user interface and display. So IMO, plain JSP will be my last approach

Can I have a folder that belongs to more than 1 SVN repository? -

Essentially, I'm looking at a folder that can function as both a repository, and one Also syncs for other repositories. I think I can remove it by checking in 2 folders. But I am facing space constraint, so can I have a folder structure with more than 1 SVN config? Thank you! Use a case request: 2 computers sync to a folder, although both computers are not connected to the network, and are connected to a thumb drive. How do I sync folders with 2 computers? I think thumb drives have a repository, and synchronize it, however, computers can connect to the internet, in this case, we do not need a thumb drive, and I do not have this dependency Wanted, so 1 of those 2 computers make a repository a method. So in a nutshell, on computers, 1 folder is probably synchronizing for both one repository, and even a repo itself is also clear? I am not very clear with your explanation, you have either a folder that is equivalent to 2 separate repositories Is it or do you want your f...

ruby on rails - Field accessing incorrect controller action on onChange -

I have a website and before that I included the design and some variations (layout, script, etc.) was working. Again, I do not know what happened, but instead of any one in the On-Change method line from my chosen area is reaching the "show" action. I have the following on my new view: & lt;% = archive_type ('category', 'id', @ category, 'id', 'name ', {: Prompt = & gt; "Select a category"}, {: onchange =' Gtc:: class = & gt; newAd_box2_inputField '})% & gt; It is an idea that it updates with another related field with a related record selected. The second selection looks like this: In my paths Rb has found me the following: map.show "/ announcements /: permalink" ,: Controller => 'Announcements',: Action => Show 'map.new "/ announcements / new" ,: Controller => 'Announcements',: Action => 'New' Do anyone know what's going ...

c# - Is there any way to delay- execute a delegate against an IQueryable<T> after/during execution? -

I expose an IQueryable method from my business layer for use in other layers to execute the below-level query After this, I want to execute the function against each item in the countdown. It seems that there should be an event raised after the execution of the query, so that I can work on the results from this normal layer. Something like this: Public IQueryable & lt; Users & gt; Query () {Return _RepositoryQLF & lt; Users & gt; (). ForEachDelayed (u = & gt; Uplandata (U)); } I want the ForEachDelayed function to return the IQueryable without executing the query. The idea is, once the query is executed, the results are passed through this representative. Is there something like this? If not, is there an event like "IQueryable.OnExecute" which I can subscribe to? Any help will be awesome - thanks! Edit I thought I had the answer: Users & gt; () Select AppendData (u); Return user; But now, I get the following error: The method...

Blackberry ListField Text Wrapping - only two lines -

Within my listfind, I want to be able to pick any long string, and just wrap the first line within the screen Take the width, and just take the remaining string and display it below and the rest of the pillar. Right now, this is what I'm detecting in my Draw Paint Call: int totalWidth = 0; Int charWidth = 0; Int lastIndex = 0; Int spaceIndex = 0; Intlineindex = 0; String first LAN = ""; String second = ""; Boolean isSecondLine = false; For (int i = 0; i & lt; long string.length (); i ++) {charWidth = font.get default (). GetAdvance (string.valuef (long string. Chartart (I))); // system.out.printlean (inch width: "+ charwood); if (long string.chart (i) == '') spaceIndex = i; if ((fourvuth + total width)> (this.getWidth ( ) - 32)) {//g.drawText(longString.substring(lastIndex, spaceIndex), Exposure, Y + _padding, DryStyle, LEFT, W- Exposes; lineIndex ++; System.out.println ("Attract to Current line for "+ line index"); / * ...

python - Making a module global? -

मैं जानना चाहूंगा कि & gt; & gt; & gt; Def func2 (): ... वैश्विक समय ... आयात समय ... & gt; & gt; & gt; टाइम ट्रेसबैक (सबसे हाल का कॉल अंतिम): फ़ाइल "& lt; stdin & gt;", पंक्ति 1, & lt; मॉड्यूल & gt; नामः त्रुटि: नाम 'समय' परिभाषित नहीं है & gt; & gt; & gt; Func2 () & gt; & gt; & gt; समय & lt; मॉड्यूल 'समय' (अंतर्निहित) & gt; & Gt; & gt; & gt; काम करता है, लेकिन & gt; & gt; & gt; Def func (): ... वैश्विक मॉड्यूल ... मॉड्यूल = "समय" ... exec ("वैश्विक% s"% मॉड्यूल) ... exec ("आयात% s"% मॉड्यूल) ... & gt; & gt ; & gt; टाइम ट्रेसबैक (सबसे हाल का कॉल अंतिम): फ़ाइल "& lt; stdin & gt;", पंक्ति 1, & lt; मॉड्यूल & gt; नामः त्रुटि: नाम 'समय' परिभाषित नहीं है & gt; & gt; & gt; Func () & gt; & gt; & gt; टाइम ट्रेसबैक (सबसे हाल का कॉल अंतिम): फ़ाइल "& lt; st...

.net - How do you implement Data Quality & Validation rules in a data warehouse? -

I am developing a debt warehouse to be part of my company's enterprise application suite. So I'm learning a lot about DW concepts but rule engine is difficult and I can not find more information about different methods of implementation Focus of rules is to validate the quality of the data, and this is also a warning when something Business Metrics (for example, $ xx.xx for sale) has reached Our app needs to be optimized for each customer, so I What are valid rules to make me some ways to apply the rules engine? Tools created? Framework / API Design Patents to Make Your Own Other Thoughts Thanks. It can help to see it as something different, together with a working system - The opposition of a "big engine" which is responsible for everything. When it comes to "business metrics", see (major performance indicators). Analytical engines (, , etc ...) allow for the KPI's simple definition and presentation (dashboard). If you are deve...

logfiles - LogParser query to grab only external IP addresses from IIS logs? -

I tried this question above and there was no luck, so I thought I would try it here. I am working on a public website that is used by both external visitors and internal employees. I am after external visitor hit, but I can not think of a good way to filter internal IP categories. What is the best way to filter the IISW3C log through the IIP category, using LogPerser? DO NOT like WHERE [c-ip] It's not that I've come with so far, which is probably the best or most Can not be an effective way. The only option is to use the IPV4_TO_INT and Bitwise functions, where I personally think in your section What you have will be more readable and easy to maintain.

c - gcc optimization, const static object, and restrict -

I am working on an embedded project and I am trying to add more structure to some code, which is the macro Use USARTs to optimize access to registers I want to organize the preprocessor. Define the register address in the #structure structure. If I define as the compound Litrls the structures in a macro and extend to them inline functions, the GCC is adequately bypass pointer in the smart, generated assembly and assumes direct member of structure hardcoded address. Ex .: C-1: Strait Yuet {fluctuations uint8_t * Ukera, * Usisarbi * Usisarsi * Uder; Voltile UIT 16_T * urr; }; #define M_yuetiaks (x) \ ((structure Uart) {\ Kkyusra = & amp; Usisar ## x ## A, Uarsarbi = and Usisar ## X # B, \ Kukesarsi = and Usisar ## x # C, \ .ubrr = & amp; UBRR ## X, \ .udr = and amp; UDR ## X \}) invalid inlined_func (const struct uart * p, other_args ...) {... (* p -> Eucla) = 0; (* P-> ucsrb) = 0; (* P-> ucsrc) = 0; } ... int main () {... inlined_func (& amp; m_URST (0), ot...

javascript - Using jQuery, a Dropdownlist should only be visible if at least 1 checkbox is selected -

I have the link, when clicked, select or deselect all checkboxes. I also have the dropdown list which I would like to show if at least one checkbox is selected. What is the best way to do this? Should I enter the code inside the code that he chooses / deletes it or is there a better way of doing this? I will have a function that sets the visibility of the dropdown I will assign this function to each checkbox and link handler I would say click handlers - I assume that your link handlers do not fire only one click event on each box, but set its position. Unless you have any other behavior to trigger click event firing on each checkbox, it will be very expensive, use the test of the set in your function, use a test, to see if the number of check boxes visibility Is more than 0 for. function setDDVisibility () {var isvisible = $ ('.checkbox-class-selector: checked'). Length & gt; 0; If (invisible) {$ ('# ddl'). Show (); } And {$ ('# ddl'). Hid...

How do I design unit tests for multiple Perl modules in the same distribution? -

I am developing an internal framework that is created with a bunch of Pearl modules. All these modules are dependent on a single module which displays some Win32 functionality. For example, the modules A, B, C, D, etc. all depend on one module Z So import all these modules using "MyFormWork :: Z" All these modules A, B, C etc. can be used individually. No other frameworks are dependent on the module. Now, with that simple design in mind - how can I design my unit tests. I am planning to use the test: more to test all the units. Should I write separate unit tests for each module? There are 25 different modules related to this profile any suggestions? Unit tests should cover Win32 functionality for Z . Unit tests for A should cover the functionality of A which is not included in Z . Repeat for C , C , D , and so on. If you think that C , e , and g are doing the same thing and you have almost identical unit testing Writing, which is the signal for the r...

elisp - How can I perform a partial symbol match on a defstruct? -

In this, I have created an employee database and provided the Select-By-First function (select-by-first-pattern '' select) If I match any part of the string / symbol, then how do I write choose-by-first-pattern Can i EV); ('cl' is required) Returns all record returns with (defvar *) (like Steve) The code required for the creation of the database is: (Updated: Recommended solution) (app-recorder) (Add-records) (Add-records) records (make-worker: age 34: last name 'forequarse: first name' Alice: gender ' Women)) (Junk record (age 43: last name 'jobs: first name' Steve: gender 'male)) (add-write D (make-worker-age-53: last name 'baller: first name' steve: sex 'male)) (pick-by-first (first name) (delete-if -not #' (lambda (employee) Employee-first-name employee) first name)) * emp-db *)) ;; ---------- Answer below ---------- ;; (Select-By-First-Pattern (First Name) Cancel (Delete-If-No #) (Lambda (Employee) (if (String-m...

javascript - Sliding menu on mouse over -

सभी, निम्न कोड में & lt; body & gt ; & Lt; div id = "slidemenubar" & gt; & Lt; a href = "" & gt; 1 & lt; / a & gt; & Lt; / div & gt; & lt; br & gt; & Lt; div id = "slidemenubar2" & gt; & Lt; a href = "" & gt; 2 & lt; / a & gt; & Lt; / div & gt; & Lt; / body & gt; हाइपरलिंक्स 3 & lt; br & gt; , 4 & lt; br & gt; पर माउस पर, 5 को दाहिनी ओर दिखाया जाना चाहिए ( स्लाइडिंग मेनू की तरह) 2 6 पर माउस पर & lt; br & gt; , 7 को स्लाइडिंग मेनू में दिखाया जाना चाहिए और नया मेनू दाहिनी ओर से नीचे या ऊपर । यू के किसी भी कृपया मुझे कोड दें या इसके लिए एक उदाहरण लिंक का संकेत दें। धन्यवाद .............. मुझे लगता है कि आपको इस लिंक पर क्या चाहिए: लिंक पर आप उस कोड को अपडेट कर सकते हैं जो वेबसाइट बहुत अच्छी है यदि आप लिंक नहीं खोल सकते हैं, तो यहां कोड है: & lt; html & gt; & Lt; शीर्ष & gt; & LT; शैली ...

How to plot in circle instead of straight line axis in Matlab? -

I have a set of 3 datasets, which I want to plot in MATLAB, but the 'x' axis I give Want to think of how to do this as a circle instead of straight line below? An example plot: The common command to plot in MATLAB is plot (x, data1, x data2, x, data) 3) In the , that x axis is taken as a straight line, should i be taken as a circle of x axis. Does anyone know the command for it? @lok asks if you want a polar plot, I tell you that you want a polar plot ! View the Matlab document for function polar () and its relationships, such as cart2pol . Based on your exact requirements (I have not followed your link) you can expect that it is difficult or difficult to build a really simple conspiracy.

Passing parameters to JavaScript files -

I will often have a javascript file that I would like to use, for which to determine the definition of some variables in my web page needed. So the code is something like this: & lt; Script type = "text / javascript" src = "file.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Var obj1 = "Some criteria"; & Lt; / Script & gt; But what I have to do: & lt; Script type = "text / javascript" src = "file.js? Obj1 = somevalue & obj2 = someothervalue" & gt; & Lt; / Script & gt; I have tried different ways and at best, we have to parse such query string as such: var scriptSrc = document.getElementById ("Myscript") .src.toLowerCase (); and then search for my values. I am surprised that there is no other way to do this to create a function to parse my string. > Do you know all of the other ways? Use a namespace and...

delphi - How to identify unicode keys on key press? -

My application uses unicode characters and I have several text fields, where I can tell the user a special letter like I want to ban the input: ''; if not initialized (['a' .. 'z', '', '' key of '0', '9' # 13, # 8]) then the key: = # 0; If the key = # 13 then bak. Click; the ending; At this point it adds the user to the blank space and use the backspace key to erase it, and of course enter the key of the compartment. There are some unicode characters that I want to input. Ą, č, ė, į, š, ų, ū, and their uppercase options, but just add them as set ... In key ['a' .. ' Z ',' a '..' z ',' ',' 0 '..' 9 ', # 13, # 8,' â '..' ž ',' Ą '..' Ž '] ... does nothing and I still can not write these symbols in the text area. I know how to fix this problem. Is there a way to say that the pressed keys are Unicode characters looking for I? ...

WPF - Why are changes to an object for a simple data-binding not reflected back to the target in the main window? -

I am currently learning WPF (C #) and have taken following simple data binding examples from a text book that I have to do. Trying to work The example shows a simple window containing a name and age text box and a birthday button. The names and ages displayed are shown in an individual object. When birthday button is clicked, the age increases and a message box is displayed. Displays the message box "Happy Birthday, [Name], Age [++ Age]". For example, if the name on the screen is dangerous and age is 28, then when you click on the birthday button, the message box will say "Happy Birthday, Dangerous, Age 29" Individual object has increased accurately but this information does not appear back on the screen through binding. However, if you change the name or age field on the screen, then this information has been updated correctly in the person's object. The examples given in the book illustrate that I should see the updated age back on screen. I am pro...

c# - Render a view for an email in Asp.Net MVC 2 in a background service -

I must submit a view to send an email as an ASP.Net MVC 2. Using the new HTML method is easy to present a view for the string string and then until you have it inside a controller or a view (where you can access the HTML helper or controller reference) Send me an email as I should be able to send a delayed email using the background service. I want to present them in the same way as I am in a controller but I can not use HTML Helper or Controller Reference. I tried to create my own method using the viewpage class and call it the passing method maslef in a stringarititor called it. The problem is that I do not have any visual references to the HTML Assistant, so I can only present those views which do not use HTML support or URL helper. Any ideas. Thanks There is something in MVCContrib that can help you

google app engine - SourceForge like application (with version control) for GAE? -

Recently Kainai was announced to close soon, so I need to migrate my project to some other host. I have started thinking, if there are blog apps that you can install and run on GAE, then maybe there is a way to setup SVN on GAE? Maybe the Keni / Sourceface type app can put me on GAE? Is it possible to setup your own hosting hosting on GAE? Of course, there are many SCM hosting solutions now (like (git), and (boring)) ... who can beat their own rolling

Javascript pass variable by reference -

How can I pass the variable with reference to the call back function of the set interval? I do not want to define a global variable, is it just possible for the counter? var intervalID; Function Test () {var value = 50; IntervalID = setInterval (function () {inc (value);}, 1000); } Function ink (value) {if (value> 100) clearInterval (intervalID); Value = value + 10; } testing(); If you turn one off for it, you value it at all, this interior Will be available in the scope, but not outside the test function: function test () {var value = 50; Var intervalID = setInterval (function () {// We can still use 'value' and 'intervalID', although they are not valid if (value> 100) clear interval (intervalid); value + = 10 ;}, 1000); } testing();

windows ce - Verifying T-FAT on WinCE 5.0 -

There were serious problems on WinCE 5.0 with corrupt files on our Flash based FAT file system. We believed that the files were corrupted, because the WinCE device was discontinued while writing the FAT, thus we changed to T-FAT (Transactional FAT). What is the minimum time to solve our problems? You can view the storage manager (which can be enabled in the control panel if you have your own Making themselves O / S images). The Storage Manager has a UI for scanning, making and repairing. You can also do this program: -

sql server - How do I get a proper weighted average date in SQL -

I use this query to get my average date: convert (DATETIME, AVG Convert (Float, Chargeoffet)) [Average C / O Date] Give me the date of '2003-08-12 14: 17: 22.103' correctly. When I use this query to get the weighted average date convert (DATETIME, SUM (converter (float, chargeoffet) * face value) / SUM (Face value)) I get a date like '1938-10-19 21: 28: 48.000' which is far from the average date, I think it is a simple There is a thing and I'm missing something important but small. Example: Announce the @temp table (value daytime, [weight] money) Enter in @temp values ​​(NULL, 8850.00) @temp values Insert (zero, 137.91) into @temp values ​​('2006-01-15', 221.13) into @temp values ​​('2006-10-15', 127.40) @temp values ​​('2001-07-31', 551.44) Insert in @temp values ​​('1997-10-12', 4963.41) Insert @temp values ​​('2006-03-15', 130.36) TEMP value ('2005-01-07', 1306.31) (Average date), convert (dat...

Can I remove the URL from my print css, so the web address doesn't print? -

I've written some stylesheets - including a print.css - and it's working fine. I want to remove the URL from printing on each page. I am surprised that it is impossible to start, is there an element / option that I can set to display: no one to do this? The reason for this is that a 'normal' and 'print' stylesheet is specially formatted on specific pages, it makes a meaningful note, so the URL is irrelevant. In Firefox, (see page source :: tags HTML). In your code, & lt; Html & gt; with & lt; Html moznomarginboxes mozdisallwherelection print & gt; . In other browsers, t know, but you can see

forms - How to bind control's properties to variables in C#? -

I have lots of textboxes and there are lots of threads in my program that need to read the contents of those text boxes ( Settings). Since I can not see the control from other threads, I decided to create a special class which will keep all the settings, and if the user changes something, then the control will invite the antitech event and change the corresponding value in the class. But if I use that approach, then many similar handlers will be connected in this way private zeros txtCrap1_TextChanged (Object Sender, EventArgs e) {Settings.Crap1 = txtCrap1.Text; } What I have to do is do something like Private Zero SetupControlBindings () {AddBinding (txtCrap1, Settings.Crap1); AddBinding (txtCrap2, Settings.Crap2); } Private Zero AddBinding (Object Control, Object Value) {// Add Entry to Any Kind of Dictionary} Private Zero UpdateValue (Object Sender, EventArgs E) {If (Sender Text Box) {// Find it in dictionary and find the appropriate value Change}} But I can not find...

flash - Why won't SWFUpload execute the upload.aspx code, and why is it saving all files to the root directory? -

I am using SWFUpload v2.2. IE (8): & nbsp; & Nbsp; If I upload a very small file (16 KB): & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 1) The file appears in the root directory where upload.aspx is located. & nbsp; & Nbsp; & Nbsp; & Nbsp; ; 2) Page_load is executed on Upload.aspx.cs. & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 3) The file is actually processed through the page_load process, and the processed file is saved in the right place. If I upload a normal file (1.5 MB): & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 1) The file appears in the root directory where the upload.aspx is located. Firefox in (3.5.7): The size of the file does not matter, it is: & nbsp; & Nbsp; & Nbsp; & Nbsp; & Nbsp; 1) The file appears in the root directory where upload.aspx is located. I have the max.exestLength = "30000" executionTimeout = "3000" web. Just to be sure in the con...

ruby - how to encrypt text -

I need to encrypt a string (from the text field) which will later be decrypted when displayed. I do not have to worry that it is quite safe, but not just to store data in plain text format. How to do it easily on someone in the train? If you are not concerned about security, then you can only base 64 Can change: encoded = base64 :: encode (string) is decoded = base 64 :: decode (encoded) anyway Binary data is also suitable for encoding. This is not really encrypting because any developer can be estimated that its base is 64 encoded data.

ORACLE - Temporal change in archivelog mode -

I have to change temporarily (to run a process) on archiving mode noarchivelog After switching back to the archivelog, do I need to open the database with the Resets option? Reset logs are not required. You can turn access mode on and off, just know that any log switches that take place whenever it's closed will mean that there will be a difference in the log you saved on disk. This means that you can abandon the recovery capability, after returning archive mode I will perform a full backup.

mysql - date change in sql -

Hello I have a date which is 2009-06-02 00: 00: 00.000 and I only group on a month Want to . How can it change? You want to group by month, but there is a data that has been for more than a year Has spread. In that case, I do: by year group (mode), month (mind)

ssms - Rename database data file in SQL Server 2005 -

I need to rename the database data file. Is this possible through SQL Server Management Studio? FYI, I do not have the built-in box allowed. EDIT: I also need to change the location of the file. Yes, you can do this, as long as you have the right to separate and re-attach the database , And as long as you physically rename files on the disk: 1) Issues these commands ALTER DATABASE Modify your database file (NAME) = Logical_file_name, FILENAME = 'your-new-file-on- (As a DCGET commentary:' Your new file-on-disk.mdf 'should be a full file name - this includes paths - 2) Separate the database 3) Rename the file to disk 4) Re-attach the database Then

c# - nHibernate safe delete -

Is there a way to check that it is safe to delete the record from the table? For example: Daostudent. Delete (id); Exceptions do not thrown if it has any hair record, but I like it. I can also do other actions like deactivating a student. I got it, SomeStudentRelation.HasItems () to check that it has a child record.

Jython & Mysql - what is the current practice for connection? -

Just trying for the first time, because something came on the job that was right for it. I think mythsql can make a jdbc connection using mythsql jdbc driver. Googling and after reading, though I'm having trouble and it seems Jyothan-specific and perhaps simple. So I do Jyothon: Geothan 2.5.1 (Release_2_5_1: 6813, September 26, 13:47:54) [Java Hotspot (TM) 64-bit server VM (Apple Inc.)] For more information on Java1.6.0_17, type "help", "copyright", "credit" or "license". & Gt; & Gt; & Gt; Import systems and gt; & Gt; & Gt; Print sys.path [ ',' /JYTHONPATH/mysql-connector-java-5.1.10-bin.jar ',' /WorkArea/Apps/jython/jython2.5.1/Lib ',' __classpath__ ',' __pyclasspath __ / ' , '/WorkArea/Apps/jython/jython2.5.1/Lib/site-packages'] & gt; & Gt; & Gt; Java.sql to java.lang import *, I'm running the code "JDBC: mysql: // local host / test user = ...

entity framework - Deferred Execution -

मैं जानना चाहूंगा कि आलसी लोड हो रहा है == स्थगित निष्पादन? नहीं "आलसी लोडिंग" आमतौर पर यह इंगित करने के लिए प्रयोग किया जाता है कि यदि आपके पास एक ऐसी संस्था का उदाहरण है जो किसी अन्य इकाई को संदर्भित करता है, तो कोड में प्रॉपर्टी को हटाना एक डेटाबेस क्वेरी को अमल में लाना होगा यदि वह पहले से ही लोड नहीं हुआ है, तो वह अन्य इकाई। उदाहरण: var foo = Context.Foos.First (); Var bar = foo.Bar; // आलसी लोडिंग के साथ, यह फ़ू के लिए डीबी क्वेरी का कारण बनता है। "डिफर्ड निष्पादन" का आम तौर पर मतलब है कि जब तक कोई IQueryable चलती नहीं है तब तक कोई भी डेटाबेस क्वेरी जारी नहीं की जाएगी। उदाहरण var foos = context.Foos.Where (f = & gt; f.Id == आईडी); // no डीबी क्वेरी; स्थगित हुए var foo = foos.First (); // अब एक क्वेरी जारी की जाती है। Var गिनती = foos.Count (); // एक अन्य क्वेरी जारी की गई है

ASP.NET/jQuery Is it possible to execute a link without opening a new page? -

Is it possible to have a link, once clicked, execute href target, but a new window pop Not up? I think you use jQuery, because you tagged it as a tag . Using AJAX calls will suppress the page and if you wish you can take action when you are finished. E.preventDefault will stop the clicks (by visiting the URL) to stop coming. Something like this? $ ("a # mylink"). Click (function (e) {Var goto = $ (this) .attr ('href'); // url $ .ajax ({url: goto}); // href e.preventDefault (); // Click Prevent}};

Windows shell extension with C# -

I wanted to write a simple Windows shell extension to add to the context menu, and C # is the language I have the most Use the day. Is this a good option for shell expansions? Is the interface easy to get with it? Is there an additional overhead which can cause the menu to slow down to pop up? Have any good signs given for starting? A. Raymond's post:. A recent follow-up: The bottom line is, no, it is not correct: has been modified, and This continues the recommendation against typing Shell Extensions and Internet Explorer Extensions (and other types of in-process extensions) in managed extensions, even if you are using version 4 or more.

testability - Testable design -

I have a Java class that has a static member using fatted (singleton). implements Class A interface {Private Static Datastore DB = Datastore Familiar.Just Instance ("BDB"); // Singleton Example Public Zero Save (Last String Key, Last String Val) {db.save (key, val); }}; Here the class A is used as the member variable for WebSwari (Stateless Bean). I can not test this code using EZMock because there is no way to override the datastore instance. There are two options. Give an example of a datastore to a constructor, which will be set to the DB member variable. The problem is that I do not want the webservice class to know which datastore example is created. Provide an additional safe set method to override the DB object. I used it in the same place where I am making DataStore an easy object and the member variable I'm overriding. Is this the right design? What are the other possibilities? You are right that the testability is bad for. Use depend...

jquery - Child elements in div won't fadeTo() in IE -

This is strange for me this code: $ (".layerver"). Feedto ("sharp", 0.0); $ (".layer"). Hover (function {$ (this). Fedora ("fast", 0.9);}, function () {$ (this) .FadeTo ("fast", 0.0);}); .. Works fine on all browsers except IE7 and IE8. In IE6 and IE8, this works in IE6 (screaming!) (Slowly), this code will not remove the child elements from the img tag simply unaffected Sit there However, if I enable "compatibility mode" in IE8, then it works as expected. Is IE a little bit in my javascript to help play better? Can I emphasize compatibility mode in IE? And I know that someone is commenting on the FOUC. I am working on that too. Update: Here is the CSS Part div.layover {position: absolute; Padding: 0px; Display: inline-block; Background color: #fff; Height: 106px; Width: 312px; } This does not answer your main question, but I believe Your first line will help in fixing your FOUC: $ (".layove...

generics - Java Prevent code duplication when getting a list of a property in each Object from a list of Objects -

I have several objects that look like this: class PhoneNumber {String getNumber (); String Mill Extension (); Receive date time for the host (); } Class address {string getCity (); String hoststate (); Int getZip (); } I want to be able to take a list of one of those items and get a list of a special property. This is a trivial operation if I want to write a function for every property, but as I think, duplicating this code several times is bad behavior. So I want to be able to do something for any object either in the object: list & lt; Address & gt; Address = address = get (); & Lt; String & gt; CityList = getListOfProperties (address list, Address.getCity / * to populate a list returned with instructions in the form of property * /) I try to do this I have racked my mind in with generic, I'm not even sure that this is possible, but as I think, many magical things can be done with Java programming language. You can do this work with generic...

iphone - Indexing an alphabetically sorted list -

I have a list of orleases in which alphabetical alphabetical list is a list of objects (a lowerCaseString method) and I need to sort it for +1 characters for 1 alpha characters in an array of arrays. An easy way to do this would be to loop through the source array with a huge 27 stack deep if not more then if not ... . There is no need to say that I do not think this is a very good solution, so I was thinking that I can change the first letter of the string that I am sorting on an intratted basis, then I will select that object I can use to sort the objects. . So I need help in implementing it or finding a better way to do it. I am working on the iPhone platform so I have access to cocoa and core apple libraries. You can use the "sorted" NMTTable array and this is your 27 "letter" NSMutableArray object You can use an NSArray of 26 characters (like NSString objects) and you can use indexOfObject: to get the pointer from the "sorted" ar...

javascript - Sending Text Cross Domain By Bookmarklet -

I need to navigate to a certain page, in which a fixed device is full of useful text. Then click on my bookmarklet and send the text back into my server to my server, which is different from the current domain, I successfully added jQuery and selected text on bookmarklet click. Now I need to find a way to send a cross domain to that text on my server I tried JSONP with jQuery and my text is too long for the URL. My second idea was to open a new window and load a page from my domain, and then in some way enter the selected window in a new window, after which the user can submit and post that data on my server. Cross-site did not work for reasons. Does anyone have any experience with this or for ideas? Thank you. Create a form (with dom) and post data (you can target an iframe , But it will fire and forget).

javascript - Deciphering the Google Search API: how to refer to an argument passed into callback function? -

I am using Google Search API to load some search results in my page. I want to set an argument for the callback function which says which div should attach itself to the search results. Callback function definition here, per Google: .setSearchCompleteCallback (object, method, opt_arguments?) Here's how I am: Finder .set search full callback (document, function) {alerts (opt_ragruments [0]. Id);}, new array (indude)); The documentation states: "Applications can optionally pass in the context argument using optical arguments, which then pass the specified method." Yes - but how? I have passed in the context argument, but how do I reference it inside the function? I have just tried to call opt_arguments, but JS errors clearly show that it is not defined. The document is. Thank you! Actually, this is the following: You can bind to an event handler like this: function searchable (message) {alert (message); } Function onload () {var searchControl = new ...

Python's layout of low-value ints in memory -

My question is, where are these patterns (below) started? I learned (somewhere) that there are unique "copies" in Python, if it is the correct word, then for the small integer for example: & gt; & Gt; & Gt; X = y = 0> gt; & Gt; & Gt; ID (0) 4297074752 & gt; & Gt; & Gt; ID (x) 42 9 7074752 & gt; & Gt; & Gt; ID (Y) 42 9 7074752 & gt; & Gt; & Gt; X + = 1> and gt; & Gt; ID (x) 42 9 7074728 & gt; & Gt; & Gt; Y 0 When I look at the memory places ints, there is a simple pattern quickly: & gt; & Gt; & Gt; N = ID (0)> & gt; & Gt; & Gt; For category (5): ... print i, n - id (i) ... 0 1 24 2 48 3 72 4 96 >>; & Gt; Bin (24) '0b11000' It is not clear to me why it is chosen as salary increment. Apart from this, I can not explain this method to everyone above 256: gt; & Gt; Prev = 0> gt; & Gt; & Gt; For the category (270) I: ... t = (...