Posts

Showing posts from August, 2011

java - Why can't I pass an object of type T to a method on an object of type <? extends T>? -

In Java, let me assume that I have a container that has a list of class items: public class container & lt; T & gt; {Private list & amp; Lt; Item & lt;? T & gt; & Gt; item; Private T-value; Public Container (T Value) {this.value = value; } Public Zero addItem (item increases & lt;? T & gt; items) {items.add (item); } Public Zero doActions (Item (lt; items: item increases for items) {item.doAction (value);}}} Public abstract class items {public essence Deleting zero (T item);} returns the Eclipse error: the method doesAction (Capture # 1-Expands?) In Type Item Argument Argument (T) Is not applicable for I am reading generic examples and various postings, but I still can not understand why this permission Eclipse does not give any useful suggestions in its proposed reforms, either the variable value is type T, why will not it apply to ? . "post-text" itemprop = "text"> Take a look at the following programs Publ

gwt - GXT - link two components height -

I have to have a panel with two columns. In the first column there will be a list of beans, and to edit those beans, what I want to do is the same height height as the form panel height. My list of beans will grow bigger over time, so its height will probably be more than the altitude height, when this happens, a scrollbar should be shown for the list. I do not want to set a clear size for the list and my form panel (this should be flexible because sometime I will add some form fields). I'm basically new to GXT. I'm looking forward to some offers. Cheers, jjczopek Try setting CSS style overflow - y: auto ; Which includes the Max-Height on the panel (Div?), On which you need the scroll bar, your problem should be solved.

setup project - VS 2008 created shortcut doesn't show up in "Send To" menu -

I created WinForms app using a Visual Studio 2008. I added a setup project for the solution to create an installation MSI file. I need the setup project, which will be sent to the user's menu. This way when someone right clicks on a file, my app will be shown in the send list and selected. Under the File System Settings of the Setup Project, I found out how to add a shortcut to the Send User menu. The problem is, the shortcut does not appear in the Send menu when you right-click on a file. If I manually create a shortcut for your executable shows in the Send Application menu I have read many tips on the web for the necessary registry entries to work on it, a VBS file written by Ramesh Srinivasan Is that which inserts them. On every system I have already installed it on the registry values, so it is not the problem seems to be making Visual Studio (or MSI anyway) with shortcut I have the same problem on Windows XP and Windows 7, I have not seen it on other OS yet. Send

jQuery - search for previous selector relative to current -

There is a form with 3 squares in it My question is if I A tip class is a "hat-tip" to give help to "form-tip" and a square of each input, how can I always look at the last "form-tip" div? Something like this: $ ('is-tip') each (focus (function () {var tip = $ (this) .attr ('title' ); // Find the most recent $ ('. Form-tip') fill it with the dome and tip}}); I hope that makes sense .. Thanks for any help. if .has-tip If you have a child's .form-tip you can use it like this: $ ('.has-tip') each (focus (function () {Var tip = $ (this) .attr ('title'); var ft = $ (this) .closest ('form-tip'); / / Most recent $ in DOM ('. Find and reply it with a tip}}); If it is a brother, you can use it or if it immediately is not before, so it is.

python - new to mac and textmate, can someone explain these shortcuts? -

I'm basically using textmate first, and I lose these funny symbols as key maps I am gone. / P> By using Python bundles, which key I suppress: Run a project unit test to run the test In addition, textmate Along with, do I really define a project in Textmate or I just work on files and do not make textmate of my own. Project type file? Look for some translations for some of the keyboard symbols. It can help you :) This is also a link to a detailed list of shortcuts from Apple's site.

rubygems - Can I have/use different Versions of rails in the same machine -

I am actually reading a rail book written for rail 2.3.5. I want to test Rail 3 Beta, is it possible to do such a setup in my Mac OS leopard? I have tried to rail with the gem list - there are many versions in my mac, but during the application form using rail orders, I do not know how to use different versions of the railways. Install railroad gem: gem installed rail-east

javascript - Regular expression using + problem in js -

In the phone verification I am using regular expressions, I must use that "+" sign in regular expression + Ways to provide sign because + the mark indicates one or more preceding character (s), even if I call it \ + ? As you would like to be the predecessor \ like: < / ^ \ + \ d + $ / This example only matches the starting stars with + , which is either Happens with more than one digit.

telnet - how to send F2 key to remote host using python -

I'll have to send the F2 key to Telnet host. How can I use this python ... Using getch () I have found that F2 key But was sent when & gt; , it's not working I think there is a way to send special function keys but I'm not able to find it. If someone knows, please help me. Thanks in advance Extended key (non-alphanumeric or symbol) Made of sequence of single characters, using the telnet server with the sequence based on the terminal. You will need to send all the characters in order to work. Here, od -c> lt; & Lt; & Lt; ' Ctrl V F2 ' I was able to see the sequence of \ x1b0Q < Code> xterm with terminal

c# - foreach statement (get string values) -

Can someone help me? My code is working to split the string, however, I still need to use the string tied to my page. How can I achieve this? Here is my current code Private Zero Splittings () {List & lt; String & gt; Listvalues ​​= new list & lt; String & gt; (); Listvalues ​​= (list & lt; string & gt;) session ["mylist"]; String [] strvalues ​​= listvalues.ToArray (); If (listvalues! = Null) {foreach (Listlars in string strings) {string [] prods = strElement.ToString (). Split ("|". ToCharArray ()); String prodName = prods [0]. Ostring (); Response.Write (ProdName); }}} How can I change the reaction with any label or literal? When I try to use a literal code on the code, it does not display a single string, which is divided into all the strings. Any thoughts? Instead of specifying a value, use the concurrent operator to get all the strings. If your label name is label 1 then something like label1.Text = = prods [0]. To

python - Which Django 1.2.x multilingual application to use? -

There are many different applications for internationalized content in Django. So far, I have used only in my production environment, but I wonder if there are "better" solutions for my wishes. The following is for the needs of my employees: An object is being created by an employee user in any language (such as "D") < Li> This object should be displayed in the German version of the website. When an employee translates a user object into a different language (such as "fr"), then the page should also appear in the French version. If an object is not translated into the currently selected language (for example "N"), then calling the object URL will cause a 404 error (or better than that, the object only Language is available in "D" and "FR", and visitors may be able to select a single language) My staff is working in user admin interface, so multilingual applications with it Only Should Mrthn. I really d

language agnostic - Structure of open source project's repository -

I am at the beginning of starting a small open source project when the main repository is cloning, with all the editions all official The complete building environment is created with all the libraries and all the tools needed to create the installer file. I like the fact that anyone who wants to contribute, clone the repository and start whatever you want. But I am thinking that it makes it easy for bad people to make malicious installers and leave them in the wild. How should it be structured? What do you suggest included in the repository, keeping vs vs server? What do you think is looking for a directory layout you have tagged your question language-agnostic , But it depends on the language (s) / framework / build tool you want to use. And you can create a default layout for You can give some examples This evil People will not stop bad things, but it will help your potential contributors.

How do I dynamically allocate memory for arrays in Qt C++? -

There are some problems for allocating memory to ARP I doing: Int dx = 5; QPoint * qPoint; QPoint = new QPoint [dx + 1]; However, when I try to debug the code, the program only crashes when it tries to execute the third line .... any clue? If you want to use the Qt SDK properly, then you should use C ++ array or STD array Instead of using QVector. Whether you can use QVector as an indicator, it does not really matter, because it will internally dynamically allocate memory. For example: int dx = 5; QVector & LT; QPoint & gt; Points; Points. Position (dx + 1); You can also: QVector & lt; QPoint & gt; * Points = new conector & lt; QPoint & gt; (DX + 1); If you want vector as an indicator but use the built-in memory sharing for Qt vectors so that you can use the approach most time ago.

class - What happens when you create an instance of an object containing no state in C#? -

I think I'm fine in algorithm programming, if this is the correct word? I wanted to play Turbo Pascal and 8086 assembly language as a hobby in the 1980s. But there are only very small projects and I have not actually done any programming in 20 years since then. So I am struggling to understand like a drowning swimmer. So maybe this is a very intense question or I'm not at all understanding, but say I have such a thing: class something: IDOER { Cancel void (isometringelse X) {x.DoWhatEverYouWant (42); }} and then I var Thing 1 = new something (); Var Thing 2 = new (); Thing1.Do (blah); Thing2.Do (blah); Thing 1 = Thing 2? "Does something new" () can make anything? Or it is not different from a static class, except that I can pass it and swap it etc. etc. Is there one place in memory for both Thing 1 (Blah) "and Thing 2 (Blah) objects? I mean, while executing it, does it mean that there are two things? What processes or just one? There are

NHibernate support .NET 4.0 framework? -

Did anyone use NHibernate with the .NET 4.0 framework? Thanks SDS This works without problems. Whether not is yet implemented System.Collections.Generic.ISet & lt; T & gt; . Support for

sorting words in python -

Is not it possible to sort the list of words according to the English alphabet in Python, but according to the self-generated alphabet /p> You can define custom comparison methods in general so that your restrictions can be sorted. I have never coded one line of Python in my life, but it is very similar to Ruby that to help me notice that the following part can help you: Alphabet = "zyxwvrrrrrrpkfnnjjgfedcba" inputWords = "" England "," France "," Spain "," Italy "," Greece "," Portal "," Canada "," USA "," Mexico "," Peru " Cuba "," Chile "," Argentina "," Zimbabwe "," Juganda "," Congo "," Zambia "," Namibia "," Cube "] was printed (e) The word kaput, key = lambda word: [word for [alphabet.index (c)) word You may also want to check. Good luck!

.htaccess - 301 Redirects, and the correct regex to go with it -

I have many URLs that I want to redirect to a single place, but these are dynamic URLs. The structure is something like this: http://www.mysite.com/declaration/list [query_string] I think That would be ideal for this situation to use some regex in my .htaccess file to redirect all these links to the homepage homepage. I was thinking that someone regex me for this situation so far, I have this, but it does not work: rewrite% {QUERY_STRING} ^ (. *) $ Rewrite rule / announcement / list $ http: //www.mysite com / $ [r = 301, l] My regex is weak to say the least I want to learn something else. Thanks in advance Tom Since you are using mod_rewrite in the .htaccess file You have to remove the relevant path prefix from the pattern then try it: rewrite %% {QUERY_STRING} ^ (. *) $ Rewrite ^ announcement / list $ http: // www. Example.com/ [R = 301, L] and . * will match the any string, your RewriteCond command will not have any additional use: rewrite ^ d

iphone - Can NSUserDefaults be used for pausing the application during a phone call? -

Friends, I currently do not have an iPhone for testing and using the simulator for testing purposes. I'm curious to know whether the application continues to run even after a phone call. I have no option here to test with the simulator. If this is finished then how can I stop things .. and continue after a phone call. What NSUserDefaults can be used for my case. As far as I realized, NSuserDefaults are used to store the data needed by the app next time it loads. But here I do not want to stop my app till the end of my app and continue continuously afterwards. Please clarify to me about this sorry, I am still making a start, so I do not ask for any harsh answer if my question is stupid thanks in advance When the user chooses to respond to the call, then your application is terminated. You can not do anything to stop it. If you get a phone call but decline to answer it Ti your application is not finished. Your application will have the opportunity to save any state's inf

java - wordpress servlet mapping not working -

मेरे पास नवीनतम वर्डप्रेस किक्रस पीएचपी सर्वलेट के साथ टॉमकेट 6.0.26 वर्चुअल होस्ट पर चल रहा है। यह काम करता है, जब मैं पर्म लिंक का उपयोग करने की कोशिश करता हूं एक यूआरएल जैसे /index.php/my-page-name को कभी भी पीएचपी सर्वलेट नहीं मारा जाता है। यह एक ब्राउज़र त्रुटि प्राप्त करता है जो अनुरोध संसाधन उपलब्ध नहीं है। ऐसा लगता है कि यह सबलेट यूआरएममैप से मेल नहीं खाता है। मैं web.xml & lt; servlet-maping & gt; में एक मानक विधि का उपयोग कर रहा हूं। & Lt; servlet-name & gt; क्वरकस सर्लेट & lt; / servlet-name & gt; & LT; यूआरएल पैटर्न & gt; * php। & Lt; / url पैटर्न & gt; & Lt; / सर्वलेट-मैपिंग & gt; मैं उपरोक्त URL का उपयोग करते समय टॉमकेट लॉग में कुछ भी नहीं दिखा रहा हूँ। कोई भी विचार कृपया? यह मैपिंग वाकई पथ के साथ अच्छी तरह से काम नहीं करता। आपके पास 2 विकल्प हैं: प्रीफ़िक्स-मैपिंग द्वारा प्रत्यय-मैपिंग को बदलें। किसी फ़ोल्डर में PHP फ़ाइलें डालिए, उदा। / php और / php / * के बजाय *। Php का उपयोग करें। बना

c# - Grabbing Just The Top Entry From A LINQ Query -

I basically have a badly designed code to do something like this, I'm sure, it's more beautiful Can be done from What I am trying to do is to catch the last date from the database table. var Result = to a DB in Ordering a.Date descending object by new {date = a}; Foreign currency (diverse line in result) {end date = line.Det. date; break; } Basically, there is a foreach loop which is designed to run only once. Dirty code! What is the "best practice" method to fulfill the same thing? var first = result first (); If the result set is empty, then it will throw an exception; You can use FirstOrDefault () which returns the tap if the result set is empty.

netbeans - Can't compile grails Tomcat plugin -

I am using Netbeans to create a Grails app, while I have used it properly on this new computer I can not find even the compilation and running of the basic project. I'm getting errors around the Tomcat Plugin compilation, if I uninstall the plugin and use Jetties then it will compile but the project is not set for JTT and the file is missing. Below I am getting the error, I am thinking that this is something with my classpath but I do not know how to start any help. Update I have tried cleansing abuses, and both 1.2.0 and 1.3.1 Update Grails have used the project that I have attempted to do with Tomcat, the basis project created by Grails. When you say "but the project is not set to jetties and the files are missing." Is there a conflict with that maybe Tomcat? It seems that you have to use certain specific functionality.

Parsing simple MIME files from C/C++? -

I've searched the web for days now but I can not find a good solution to my problem: I am looking for a good (lightweight) MIME parser for one of my projects. My client provides MIME formatted files (linear, no hierarchy) in which there are 3-4 "parts" applications should be able to split those parts and independently process them. Actually, those MIME files are like litter e-mail messages, but without SMTP-header Instead, they start with MIME-Header "MIME-Version: 1.0" and then follow the parts. I am using C ++ for the application, so the C ++ Library is welcome. A standard C library is also welcome; Compact - I just need a parser, there is no SMTP / POP3 support Cross-platform (targeting windows, Mac OS X And Linux) After the days of searching I found the following lybs and causes not use it: (C ++) --- Although this library is full and C ++ is for use, it is based on glib , which will not be compiled properly on Windows. (C ++)

Get stored procedure parameters by either C# or SQL? -

I was hoping to find an easy way to get the parameter list of stored procedure parameter parameters if there are 3 parameters in the process , Then I want a list like this: param1 param2 param3 It would be best to do this in the C # code Capable, but the SQL will also be sufficient. Ideas? Select parameters from info_schema Parameter where specific_name = 'your_procedure_name'

android - How to send HTTP POST request and receive response? -

I'm going to create a mobile application that works with Pro CommuniGate Server. For example, I need to create the following Android client C - CGP server s dialog and get XIMSS.nonce Node value: c: received / ximsslogin / HTTP / 1.1 host: myserver.com content type: text / xml content-length: from 42 & lt; XIMSS & gt; & Lt; ListFeatures id = "list" /> & Lt; XIMSS & gt; S: HTTP / 1.1 200 OK Content-Length: 231 Connection: Live-Stay Content Type: text / xml; Charset = utf-8 server: communiGatePro / 5.3 & lt; XIMSS & gt; & Lt; Temporarily & gt; 2C3E575E5498CE63574D40F18D00C873 & lt; / Temporarily & gt; & Lt; Language & gt; German & lt; / Language & gt; & Lt; Feedback id = "s" /> & Lt; / XIMSS & gt; Example, in action script 3.0 it looks like this: var loader: loader = new loader (); Loader.addEventListener (event.complete, full handler); Var urlRequest: URLRequest = n

api - My Twitter php script stopped working! -

I am using this PHP class for a twitter script: twitter.slawcup Com / twitter.class.phps script is: $ t = new Twitter (); $ T & gt; User name = 'someuser'; $ T & gt; Password = 'somepass'; $ Res = $ t- & gt; Update ($ tweet); If ($ res === incorrect) {echo "error" ; Echo "& lt; east & gt;"; Print_r ($ t> responseInfo); Echo "& lt; / pre & gt;"; } Else {resonant "success"; LR / & gt; Status has been posted; } Where variable $ is the first string generated before tweet. It worked fine till June 8, and then it just died. Now, when I run the code, it gives me: error array ([url] = & gt; http://twitter.com/statuses /update.xml [content_type] => Application / XML; Charset = UTF-8 [http_code] => 400 [header_size] => 1096 [request_image] => 120 [filetime] = & gt; ; -1 [ssl_verify_result] = & gt; 0 [redirect_count] = 0 [total_time] => 0.11795] = 1254 [speed_

clr - What's the "right" way to get Win32 p/Invoke declarations? -

I usually use the site to get a DllImport declaration whenever I Need to call the Win32 API, and I've found that this is the actual standard response on the stack overflow, the API Interop question. Does this "everyone"? Is there a better way? Does Microsoft Provide an Option? Such as a device that reads H files and outputs to an assembly. Why are not some standard assemblies that expose all Win32 APIs? As an alternative to a site like Pinvoke.net, what would be the constraints of creating and using them? I use Pinovok .net as a first resort for Win32 API, which are not already protected wrappers. I codeplex But there is one that will generate DllImport for you - Win32 API or for your own code. When I came back in 2008. Your other questions about your "standard assemblies" probably means that I say wrappers. Windows APIs that are specific to specific parts of the giant body, for example, many Windows 7 and Vista are in the gift.

github - Protect Files from Git -

I'm using Git with WindRiver to manage a project code, though the project is being managed Files are not (eg .cproject, .project, .wrmakefile, and .wrproject) However, when I change the branches, then Git deletes those files, enters them in Gittinger, which removes my ability to compile the code without returning the code or keeping it backed up. So, one way to say is to ignore these files and do not touch them. This should do the trick Remove the files from .gitignore Delete the file from git rm (if you have backup and Commission from branch Dragging it

Testing an application for Android -

I was wondering if anyone compiled a list of the most used Android devices, so that I Let's know what I should test for. Thank you, Rob It does not appear that Google publishes any statistics on special devices, they have more on this data. However, this can get you started. Based on that data, I was testing at least one configuration with API version 1.5, 1.6 and 2.1, and versions with moderate and high density resolutions. If you want to test physical equipment, then I guess G1 and Droid will be the top two ... G1 will give you less API version, and Droid will give you 2.1. Depending on your application, applications that are heavy using OpenGL extensions may need to be examined further, because it is an area where the device has the highest difference in the device. I do not think the emulator for this is enough to see it on differences

com - ATL::CComModule::RegisterServer -

What is Excel (call the registry key) ATL :: CComModule :: RegisterServer (TRUE)? For each category that uses macros, this relates to the registry script processing (.rgs file) Your resource file will be identified by the macro that will be listed. Additionally, because you are going to TRUE bRegTypeLib , this will also identify the registry script.

Ruby mailer is coming up with an EOFError -

I'm getting an EOFError (the end of the file error) on this code in my controller, the block in which the error appears At the end of the line, which says UserMailer.deliver_message ( I am unaware of how to fix it, I was stuck for about 2 months and this site was suggested. Please help. def contact @ title = "contact us" if request.post? @ Message = message.new (params [: contact]) if @ message.valid ? UserMailer.deliver_message (: Message = & gt; @message) Flash [: Notice] = "Thank you for contacting us" redirect_to contact_url End End Here is the message file: / P> and lt;% = @ message.name%> Feedback or a question sent: Message: & lt;% = @ message.body% & gt; from: & lt;% = @ Message.email%> and here user mailer class UserMailer OK, I get this error EOFError # in the pedal controller # contact reached end of file and there is an application trace /usr/lib64/ruby/1.8/net/protocol.rb: 135: in` sysread

html - Semantically correct XHTML markup -

Just trying to hang in horizontally using the correct XHTML markup. Just writing code for a small navigation item where each button is effectively a title and a descrption. I thought a definition list would be great, so I made the following & lt; Dl & gt; & Lt; Dt & gt; Import Image & lt; / Dt & gt; & Lt; Dd & gt; Read new image names for the database & lt; / Dd> & Lt; Dt & gt; Exhibition management & lt; / Dt & gt; & Lt; Dd & gt; Create / Delete an exhibit & lt; / Dd> & Lt; Dt & gt; Image management & lt; / Dt & gt; & Lt; Dd & gt; Edit Name, Medium, and Exhibit Data & lt; / Dd> & Lt; / DL & gt; But ... I should have up to 3 buttons, each button that has DT and DD text. How can I do this with the right code? Generally I will make each button a div and use the behavior of that view button (onhour and current page selection stuff). Any advice please thanks &a

SuggestBox GWT showing all options on Enter key -

I need to create a SuggestBox that will show all the options by pressing the Enter key. I have written the following implementation, and it is working fine. I would like someone to review my implementation and tell me if it will create problems in a particular scenario. Apart from this, SuggestOracle given to the SuggestBox should have a default suggestion set, method set default suggestions () by calling on MultiWordSuggestOracle. Any user of my suggestion should be transparent for this fact. So I think that I have to wrap (or expand) a multi-directional correct oak to do the default suggestion setting Can you please suggest that what would be a good way to do this? PublicSuggestBoxWithAllOptions Suggest Box Provides KeyPressHandler {Public SuggestBoxWithAllOptions (MultiWordSuggestOracle oracle) {Super (Oracle); This.addKeyPressHandler (this); } Public override @ keypress (key press event event) {char c = event.getCharCode (); Int i = this.getText (). Length (); If (C == Keybo

Make C# application Group Policy aware -

I want to make my app GPO aware I know that it is basically just reading with a specific registry path, But I have a few questions: How can I locate a GPO refresh? Register is a GP notification here: But there is nothing ready for C # or is Microsoft ready? The best practice is to be believed: Is the machine policy stronger in comparison to the machine policy or the user policy overriding the machine policy? / Li> Anyone who wants to share some experience in that area? Thanks, Stephen I usually refresh the background GP I use the WM_SETTINGCHANGE window message to trap. One of the flags in that store indicates that it is due to the policy or any other reason, so you definitely want to look for it. In the case of using per-user or per-user, it actually ends with the kind of application you are running, that is policy-enabled. When Microsoft applies the same policy as both per-computer and per-user, generally per-computer settings win, but not universal.

c# - Can output from OutputDebugString be viewed in Visual Studio's output window? -

I see C # and visual & nbsp; Studio & nbsp; I am using 2010. When I write the OutputDebugString debug info, should it show in the output window? I can see the output from output debugstring , but I thought I saw it under Visual Studio's output window under Menu Tools ? Options ? Debugging ? General , and the output is not being redirected to the immediate window. I also looked at the menu tool *? Options ? Debugging ? In the end, I have specified the debug messages that should be displayed in the output window to use the drop-down list in the Output window and all the normal output settings are set to "On". If I change the menu tool *? Options ? Debugging ? To redirect the normal outlet to the instant window, output debugstring messages do not appear in the instant window. Here is my complete test program: using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Using System.Runtime.InteropServices; U

asp.net - Facebook IFrame Application issues for certain users -

We have a strange issue with running a Facebook iframe application (using MVC2). When I run my app and log in to Facebook, then I am just fine on the application. But when my colleague does this, he gets the following error: API error code: 100 API error Description: Invalid parameter error message: Valid next URL is required < / Pre> This error is usually solved by updating the "new data permissions" setting of the Facebook application. However, in this case it does not help We have also tried to log in with our accounts from different computers and it seems that neither computer nor MVC ASP.Net App cases Its going on. The only difference is that who has logged in Facebook, we have seen our Facebook account settings, but no clear difference could be found. Both of us have reached the developer FB application and we both can edit our settings. However, only one of us can run the application without receiving the above error message. Any idea what's go

jquery - Descriptions on Hover -

& lt; form action = "" & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" मान = "" वर्ग = "कार्ड-संख्या" / & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" मान = "" वर्ग = "कार्ड-सीवीवी 2" / & gt; & Lt; / प्रपत्र & gt; & Lt; div वर्ग = "विवरण" & gt; & Lt; p class = "card-num" & gt; अपना 16 अंकीय कार्ड नंबर दर्ज करें & lt; / p & gt; & Lt; p class = "card-cvv2" & gt; अपने कार्ड के पीछे 3 अंकों का नंबर दर्ज करें & lt; / p & gt; & Lt; / div & gt; सभी विवरण प्रारंभ में छिपे हुए हैं लेकिन जब एक तत्व टैग, प्रदर्शन विवरण मैं किसी भी मदद की सराहना करता हूँ। बहुत धन्यवाद! फ़ेड इन और आउट, या अन्य प्रभाव जो आपको चाहिए, का उपयोग करें। दिखाएँ () और। var thisClass; $ ('इनपुट')। हॉवर (फ़ंक्शन () {thisClass = $ (this) .attr ('class'); $ ('description।' + ThisClass)। FadeIn (100)}, फ़ंक्शन () {$ (' विवरण

how to setup VS 2010 to allow debugging of Silverlight 3 and Silverlight 4 -

I have some code that is in Silverlight 3. I am unable to move to SL4 at this time. However I would like to use VS 2010 to develop my SL3 development ... and SL4. The idea of ​​running machines together with both machines I thought I had heard that Microsoft is currently running VS Correct in 2010 Is that correct? If so, how can I direct that how can I get directions? Thank you for any help, Honestly, J Silverlight is not side-by-side VS 2010 provides multi-targeting support for the full NAT framework, which is a side-by-side, but not a serial light. On the machine can only be a version of the Silverlight plugin and runtime. / P> He said, if you want to target the build code to one or the other, then it is possible that by checking the source entry in your source entry but SL2 and SL3 offers an example to do this.

mysql - Insert a Coldfusion struct into a database -

If I want to submit a contact form to the database, how can I submit the form scope? Since then, I have used coldfusion since then. The contact form may vary depending on the site from which it was presented, so it should handle a form with 5 fields and one with 10 fields I just have data in a Blob Table I want to store. Most efficiently and rotationally less complicated back using serializeJSON in original size After that, you can use something like key: value | Key: Value, or XML rendering of your structure.

cocoa touch - iPhone animation with stretchable image -

I have found a UIView subclass that pulls UIImage as background. The image is created using the IjageLeftCapWidth: topCapHyight: method, it has round edges. I also use the animation block inside, from which I resize my scene. I expected that during the animation, the drawRect: method is sometimes called, resulting in the background image being prepared properly. Unfortunately, the animation seems to render the image and then save it again during the animation, which clearly makes the edges of the first round to stretch out. I can think that there is only one solution that will uphold me three different UIImageViews (top cap, medium fill, bottom hat), original background image, and then fill the caps images again and Fill image scaling. However, it seems quite complex ... Is there any better way than I can stop it? EDIT: Found. Looks bad ... While digging through some Apple docs, I accidentally got my problem Found solutions You only have to play with the UIView&#

stylesheet - In CSS, can "#footer #caption" coexist with "#content #caption"? -

मैं सीएसएस id s की तरह "nest" जा रहा था #content #caption {color: teal} ... #footer #caption {मार्जिन: 2em 1em} क्योंकि एसएएसएस (एक सीएसएस जनरेटर) नेस्टिंग कर सकता है के लिए ... लेकिन फिर एक HTML दस्तावेज़ में, हम दो आईडी s को एक ही नाम के साथ नहीं कर सकते, यह सही नहीं है, इसलिए उपरोक्त घोंसले के शिकार काम नहीं करेगा या अच्छा काम नहीं करेगा। (एएसपी अगर document.getElementById () या $ ('# कैप्शन') या $ ('कैप्शन') तत्व को चुनने के लिए आवश्यक है)। हम #content #content_caption {color: teal} ... #footer #footer_caption {मार्जिन: 2em 1em} लेकिन फिर घोंसले के शिकार का एक और स्तर क्यों? क्यों न सिर्फ #content_caption {color: teal} ... #footer_caption {मार्जिन: 2em 1em} ? शब्द "कैप्शन" से संकेत मिलता है कि यह एक अद्वितीय पहचानकर्ता नहीं है। यदि हां, तो मैं एक वर्ग के रूप में कैप्शन घोषित करूँगा। निम्नलिखित पूरी तरह से कानूनी और मान्य होंगे: #content .caption {color: teal} #footer .caption {margin: 2em 1em}

java - CompareTo may return 0, alternative to TreeSet/TreeMap -

I need a set of objects and currently using TreeSet . My problem is that will often return 0 to compare objects, which means that the order of those two objects should be left unchanged. TreeMap (used by TreeSet by default) will then be treated as a single object, which is not true. Which option for TreeMap can I use? Use the case: I have a set of disposable objects I want to sort them with Y coordination, so that they can be provided in the right order. Of course, there can be the same Y coordination in two objects. You're defining a criteria to compare, but you need to add additional criteria. You say: I have a set of displayable objects I want to sort them with y coordination so that they are provided in the correct order. Could. Of course, there can be the same Y coordination in two objects. So, if two elements have the same Y coordination, then what do you put first? What will be the other criteria? It may be time to create, it may be X coo

data structures - java: sparse bit vector -

Is there a famous library for sparse bit vectors in Java? (And there are guidelines for how rare is it useful to use them?) Sparse matrices (1d, 2d and 3d) in it. It also has a skilled bit vector, in which instead of 8 bits boolean [] does, with 1 value per bit. However, sparse matrix does not directly support bits - only pairs and objects, you can mark the bit index for long index by (bitIndex> 6) Double matrix can be wrapped, as each long 64-bit repeats are repeated by a long, long price, and reaching long-bits recovered to use bit manipulation, do a little bit of work, but the spineless vector Not to apply the device elsewhere. Once your cover is working, you can avoid converting doubles for a long time, and using a foil source code available for double 1d spurs matrix as the starting point, apply a real sparse long 1d matrix. You can. EDIT: More info. For storage of colt vectors / matrix no memory is required initially, assuming that all the bits are initially

c# - Add event handler for ListView Items_added -

In the C # windows form application; Is there an event handler for ListView control when the item is added to list view items? I or they are at least one answer, only written in very different styles. Add a short version, ItemAdded event to ListViewItemCollection.

using jquery (json) to get ajax database entries in wordpress - PHP not working -

I am writing a plugin for my WordPress site and I'm having trouble understanding jquery ajax requests. In short, I am trying to load some user meta data when the page is loading. So I have a line in my javascript file: $ GetJSON ("http://mysite.co.uk/wp-content/plugins/myplugin/ Ajax / Ajax .php? Action = test", function (jsn) {// do stuff}); So called above, but this is the PHP code in which I have problems. In the file ajax.php, I am calling a database, but none of the general category information is available. I have tried to include the Admin Ajax page, various other pages of your own plugin (which works) ... not sure what else to do! The database call method works fine in my plugin code .. but I think the AJAX.php file is outside the WP framework and that's why it's not working ... but I do not know how Get it in the framework! To get me your SQL, go to $ wpdb-> The need to use get_results ($ sql) command. The error from firebug is that i

javascript location -

यह जांचता है "अगर हम movies.php पेज पर हैं: यदि (location.href.match (/movies.php/)) {// कुछ होता है} कैसे इस के लिए जोड़ (जैसे या ) "यदि हम music.php पृष्ठ पर हैं"? मेरा मानना ​​है कि आप यह देखना चाहते हैं कि क्या आप movies.php पर हैं या music.php पर हैं? जिसका मतलब है आप एक ही काम करना चाहते हैं यदि आप या तो पर हैं? यदि (location.href.match (/movies@.php/) || location.href.match (/ संगीत \ .php /)) {// कुछ होता है} या यदि आप कुछ अलग करना चाहते हैं, तो आप else अगर यदि (location.href.match (/movies@.php/)) {// कुछ होता है} और अगर (location.href.match (/music\.php/)) {// कुछ और होता है} इसके अलावा, मैच का उपयोग करने के बजाय आप test का उपयोग कर सकते हैं: if (/ movies \ .php / .test (location.href) || /music\.php/.test(location.href)) {// कुछ होता है} पालज के जवाब के आधार पर, आप अगर कथन में नियमित अभिव्यक्ति को परिष्कृत कर सकता है, यह देखने के लिए कि क्या आप किसी एक पृष्ठ पर हैं, एक नियमित अभिव्यक्ति में: / (संगीत | फिल

Erlang Facebook Example -

Does anyone know of an example Facebook app (or Facebook Connect app) that has been done in Ergon? I'm looking for something in which the whole process is involved, especially I do not seem to have anything on user authentication. I have checked, Erlang 2 phosbbooks and aliases but none of these seems to provide a simple and comprehensive example, which is available to me as a starting point. I would be happy for a bit of code though to solve through just though, preferably using mokenweb as backend. I played around writing an FB application in Erlang and saw the projects you mentioned that you have mentioned. I just found it easy to use FB directly for authentication, etc. I used nitrogen / cobweb for web server and made a graph request with httpc: request.

multithreading - Where to begin with multi-threaded programming with c++? -

I am trying to apply my own IRC client as a personal project and I realized that I There should be a way to read and write at the same time socket I realized that I could have a reading thread which reads socket in the background and puts data in a queue and I can have another thread which can be done from the queue Write the data in the socket. Although I do not know how to start with multithreaded programming or how to do it with C ++ for the C ++ thread, (which is the basis for the upcoming > study: threads ) is the best way to go, while threads For the right solution, I wanted to get it out and read / write without the need for threads and multiple sock Non-blocking sockets to write Finalists is a common method. The library wraps the functionality of a cross-platform, selection in C ++ mode and non-blocking sockets.

machine learning - Load balancing and scheduling algorithms -

Then my problem is: I have several different configurable servers I have different calculations (jobs) Are; I can predict how long it will take for each job to run. Besides, I have priorities. My question is that all the machines have 99-100% load and the best way to set the time of the job. Each machine can do many calculations at a time. Jobs push the machine, the central machine knows the current load of each machine. Apart from this, I would like to learn some kind of machine here, because I will get statistics of every job (start, finish, CPU load etc.). How can I deliver the job (calculation), what is the best way, keeping in mind the priorities? Any suggestions, ideas or algorithms? FYI: My forum .NET Look. It is already in academic release and can be useful. - Enterprise solution for distributed computing from Microsoft. Some of which can help in creating load balancing by analyzing the performance counter. is a sample application of Microsoft (with so

Jquery ajax ($.ajax) not working on chrome. please help -

I need a little help in determining why the following code does not work on Google Chrome 5 / Windows XP. It works well on all other browsers (IE, FF, Safari, Opera etc) Can anyone put some light around this? / * AJAX request * / jq ("# a-post-request"). Unbind ("click") Bind ("click", function (e) {// jq ("###########) jq.ajax ({url:" search_data_table. Html ", type:" meet ", cache: wrong, error: function () (warning (" no data is found for your search. ");}, Success: function (data) {jq (" # search- Jq ("#search-result"). Css ({"display": "block"}); jq ("# search-results-table"). Trigger ("Update"); // This is for a table Sorter plugin set // Set sorting column and direction, it will sort on the first column. Var Sorting = [[0,0]]; // This is the first table Sort for the first column / first column. Jq ("#Search-Results-Table") Trigger ("Sortin

Use WatiN for automation upload file on the website -

I need the upload file to website. But there is a problem, I can not choose the automatic file in the code Always the browser shows me the file window to choose what is wrong in my code? IE ie = new IE ("https://www.xxxx.com/WFrmlogin.aspx"); FileUploadDialogHandler UploadHandler = New FileUploadDialogHandler (@ "D: \ 065-6405_URGENT.xls"); Ie.WaitForComplete (); Ie.TextField (Find.ById ("txtUser")) TypeText ("Login to") .; Ie.TextField (Find.ById ("txtPassWord")) TypeText ("***") .; Click on ie.Button (Find.ById ("btnok")). Ie.WaitForComplete (); Ie.GoTo ("https://www.orientspareparts.com/inq/WFrmUpOption.aspx"); Ie.WaitForComplete (); Ie.DialogWatcher.Clear (); Ie.AddDialogHandler (uploadHandler); // This code shows file dialog ie IE File uploads ("FilUpload") ClickNoWait (); . Click Ie.Button (Find.ById ("butUpload")) (); Ie.WaitForComplete (); I had the same problem. I a

visual c++ - Static CComPtr Variable -

What is the static CComPtr member variable in an application? Since we can not control the destruction of stable variables and it can happen after CoUninitialze. provided you take proper precautions, then using a CComPtr As a member, it is not naturally bad. By "proper caution", I mean you should consider: To make sure that using it Has been started earlier; Maintain a mute, static instance count for your own class; Making sure your class is called in your method when the example count becomes zero.

How to connect FaceBook SDK with cocos2d -

As we all know that SDK provides SDK to add a face book to our applications. In simple applications, it is easy to add things like all things are known, but how to add faceback SDK to cocos2d applications. I'm new to this, so if someone can help me, then SDK with Faceback Cocos 2D? I did this in simple applications, but I am not able to work with Cocos 2D. Thanks in advance. Here are some examples, and the code is also how to connect to the face book in Cocas 2D. This will help you get it done.

How do I change a property's value based on a conditional in msbuild? -

If I have a certain value, then I would like to change the value of the property. I wrote in C #: If (x == "NotAllowed") X = "CorrectedValue; This is what I have so far, So please do not laugh: & lt; PropertyGroup & gt; & lt; BRANCHNAME & gt; BranchNameNotSet & lt; / BRANCHNAME & gt; & lt; / PropertyGroup & gt; // / Target set BRANCHNAME & lt; Target name = "CheckPropertiesHaveBeenSet" & gt; & lt; error status = "$ (BRANCHNAME) == BranchNameNotSet" text = "something went wrong .. do not enter the branch name" / Gt; & lt; when status = "$ (BRANCHNAME) == Master"> gt; & lt; BranchName & gt; MasterBrint & lt; / BranchName & gt; & lt; / PropertyGroup & gt; ; & L property by using Code: & lt; PropertyGroup & gt; & lt; BRANCHNAME & gt; BranchNameNotSet & Lt; / BranchName & gt; & lt; / PropertyGroup & gt; &

java - Hibernate Initial SessionFactory creation failed -

I'm trying to use hibernate to fill in my jsf selectonmenu The problem is that I got an unsuccessful problem creating the initial sessionfire before applying my work in the application center, before installing it in session, and I did not get any errors. For the complete error now initial session. Java.lang.ClassCastException: org.hibernate.type.StringType can not be inserted in org.hibernate.type.VersionType You are very likely to have a VARCHAR column version column, and hibernate it reverse engineering equipment generates it: & lt; Version name = "version" type = "string" & gt; & Lt; Column name = "VERSION" length = "20" /> & Lt; / Edition & gt; Instead of : & lt; Property name = "version" type = "string" & gt; & Lt; Column name = "VERSION" length = "20" /> & Lt; / Property & gt; First of all, I think this is not what you

c# 3.0 - Sorting in dataview not happening properly(C#3.0) -

मेरे पास निम्न है DataTable dt = new DataTable (); Dt.Columns.Add ("col1", टाइपफ (स्ट्रिंग)); Dt.Columns.Add ("col2", टाइपफ (स्ट्रिंग)); Dt.Rows.Add ("1", "R1"); Dt.Rows.Add ("1", "R2"); Dt.Rows.Add ("1", "R3"); Dt.Rows.Add ("1", "R4"); Dt.Rows.Add ("2", "R1"); Dt.Rows.Add ("2", "R2"); Dt.Rows.Add ("2", "R3"); Dt.Rows.Add ("2", "R4"); Dt.Rows.Add ("3", "R1"); Dt.Rows.Add ("3", "R2"); Dt.Rows.Add ("3", "R3"); Dt.Rows.Add ("3", "R4"); Dt.Rows.Add ("1", "R1"); Dt.Rows.Add ("1", "R2"); डेटाविवे डीवी = नया डेटाविवे (डीटी); Dv.Sort = "col1"; डेटाटाले dResult = डीवी। योग्य; मैं डेटाइव की सहायता से डाटाएलेट को सॉर्ट करने की कोशिश कर रहा हूं ताकि परिणाम 1 r1 1 r2 होगा ... 2 r1

sql server 2008 - SQL Query Help Part 2 - Add filter to joined tables and get max value from filter -

I asked questions on SO, however, I wish to extend it. I would like to get the maximum value of the 'reading' column only in the place where the 'state' value is an example of 'XX'. So if I join two tables, then how do I compare the line results with the maximum (reading) value. E.g. SELECT s *, G1. * As a grade of pair from school, G1 on G. 1. ID-school = s.id WHERE s.state = 'SA' // How do I get this result set from the line with the maximum reading ( The details of the table are: Table 1 = School column: ID (PK), state (nvchar (100)), school name table 2 = grade column: ID (PK), ID_school (FK), year, reading, writing ... I want to use a normal table expression I will think in RE: Institution with schools (ID, State, School Name) AS (SELECT id, state, schoolname, WHERE state = 'XX' from schools) = G.ID_Schools in schools Select the school from the institutions as the grade of. G. Reading = Maximum (G. Readings) The good thi

c# - Silverlight Datagrid select on right click -

Is there a way for a right click event to select a line in the toolkit datagread? Using Toolkit Context Menu that works well, but the problem is that only the left click rows are able to select, and I'm right click to be able to do this If I want my context menu to work properly Any help is appreciated You can find a solution . Actually it goes like this: Private zero dg_LoadingRow (Object Sender, DataGridRowEventArgs e) {e.Row.MouseRightButtonDown + = New MouseButtonEventHandler (Row_MouseRightButtonDown); } Zero Row_MouseRightButtonDown (Object Sender, MouseButtonEventArgs E) {dg.SelectedItem = (DataGridRow as (Sender)) .DataContext; }

java - Best of both worlds: browser and desktop game? -

While considering a forum for a game, I have decided on multi-platform (Win / Linux / Mac) Make this my heart as far as Browser vs Desktop As I am not too far in development, and now I have second thoughts, I like your opinion! Browser-based games using Java applets: < JOGL , 3D < Strong> / strong> display / quality is decent; Android Some viewers are likely to do great porting (small?) Often gamers switching to computers; It can sit on any computer , load a webpage and play it It is also great for casual gamers or for less information which is a game in a browser Not very happy to play but I'm more familiar with things written in a high-level language than C ++ - but at the same time, I'm more in my computer I want to set things up Easy Update Riya: Reload the page. 100% market access Believing the platform; However, this number is reduced when you think how many people will go through downloading and installing an executa

actionscript 3 - Adding a MovieClip from inside a class method -

I am trying to add a movie clip to my .fla file from a classic. My main Fla file: main.fla actionscript file: script.as They live in the same directory. The script.as file is as follows: package {import flash.display. * Expansion of the public category of the movie Movie Clip (Public Var Target): Movie Clip; Public Function: Mylace () {init (); } Public function init () // If this method is only run within the classroom then it should not be private (trace ('created');} create public function () {target = new myfan (); Target.x = 400 ; Target.y = 50; stage.addChild (target);}} } I create a function to add movie clips from the main.fla file . var is trying: MyClass = New MyClass (); trying.create (); returns the "created" output, but I Output the "Muffin" movie clip inside the SDF file I'm searching all day but not much. How do I add a movie clip to a class file? Thanks for your help. I'm a bit confused about how you&

app engine modify xml -

I am writing a GWT app running on an app engine, which needs to modify the XML file server side. As far as I know that there is no way to modify the XML file in the war directory or any subdirectory, what are the other possibilities to store that data? Can I use data store in some way or should I look for more storage space and get it there (if such a suggestion?)? Any help is appreciated! The length of at least or equal to 500 characters: More than 500 characters in length:

cakephp - To retrieve value from a text box in a form (view) to controller in cake php -

How to get the value for the controller in cake php in a form (see) from a text box? <> Here is an example of the KHHHP Book when saving your model data: function editing (div) $ Id) {// Has any form data been posted? If (! Empty ($ ---> data)) // if the form data can be validated and saved ... if ($ this-> Recipe-> Save ($ this- & gt; ; Data)) {// Set up a session flash message and redirect. $ This- & gt; Session-> Set flash ("cookie saved!"); $ This- & gt; Redirect ('/ recipes'); }} // If there is no form data, edit the method to edit // and keep it on view. $ This- & gt; Set ('recipe', $ this- & gt; cookie- & gt; findById ($ id)); } If your model was a recipe, and your input was named "title", then the value will be in $$ -> data ['recipe'] ['title' ], If you can set your scene like this: $ echo-> gt; Form- & gt; Create ('recipe'); Echo $ the-> Form- &

c++ - non-scalar type requested -

Someone can help me with error `non-scale ' Type 'B' is requested I have class A and it has been received from B, but I have problems with these lines: < Code> A (1); A * PB = new B (A); Bb = * pb; // Here I have an error Thanks for any help class A {protected: int player; Public: A (int initPlayer = 0); A (Consta and;); & Amp; Operator = (Constant & amp; amp;;); Virtual ~ A () {}; Virtual void foo (); Zero foo () const; Operator int (); }; Class B: Public A {Public: B (Intimate): A (Entplayer) {}; ~ B () {}; Virtual void foo (); }; edit I have this code and (I can not change it): A (1); A * PB = new B (A); Bb = * pb; I tried to make constructor for B: B :: B (Constant & amp; A): Player (a.player) {} B & amp; ; B :: operator = (Constant A & A) {If (this == & amp; A) {return * it; } Player = a.player; Return * This; } But this gives me an error, really needs help from professionals Your problem is due to fi

c# - Log4net RollingFileAppender Timeout -

I am currently logging on to a network share drive using a rolling file adapter. There has been a problem where hosted hosting of the server still has basic network communication but it failed to complete the files and other file based tasks. Log4Net hangs while trying to get the log appender for the file on this remote server. Can I use any kind of timeout option? any timeout or any type of property I saw for the appender And this is not doing anything special (Appendor skeleton with file appenders is a crazy path to see all the stream writing in the actual message layout type). I have two recommendations ... Custom Apeender for the rescue! You can try to write a custom appender that includes all types of protection from the network (like NetworkFileAppender to hear it). But you really have to consider the design. Appenders synchronous in Log4net will be faster. I see a post written about the login-innet, it's full of precautions and imperfections shared

.net - Byte to integer in C# -

I'm reading a row from a SQL Server table, one of the columns is of the tint. I want to get the value in an int or int32 variable. rdr.GetByte (j) (byte) rdr. GetValue (j) ... is the only way to get the value. But how do I get the result in the int variable? int value = RDR. Getbyte (j); A clear artist is not required, because byte to int widen the conversion (no possibility of data loss).

c# - Is int? thread safe? -

I know that. The threads are all 32-bit types (i.e., int , Bool , etc.) threads in the net. That is, no partial typing (according to specifications) will not be. But, does this apply to such a int? (nullable int)? The question is bad word, and hence the confusion in the answer so far. The question should be, "Is it going to be atom ?" No, not at all. The device is very clear at this point: reads the following data types and writes atom: bool, char, byte, sbyte, short, ushort, uint, int, float, and reference type . In addition, reads about the enum types with an underlying type in the previous list and writes the atoms also. This is entirely possible for thread, writes other types of And writes, including long, unholy, double, and decimal, as well as user defined types. For example, suppose you have an integer? Variable X, which is currently null in the value. Therefore, there is an int, set to zero and a bull, which is set to false. Now on another thre

rspec - Rails: How to test state_machine? -

Please help me, I am confused. I know how to write the state-run behavior of the model, but I do not know what I should write in the spec ... See my model. Rb file Class Raptation & lt; ActiveRecord :: Base is_to: User attr_protected: status_events state_machine: status,: initial => : Boss State: Boss State: Owner State: Disclaimer State: Incident: Transit Permission: Boss = & gt; : Owner, owner = & gt; : Ended Event: Transition [: Boss, Owner] => : Degradation End Event: Repeat Infection: declarant = & gt; Post-text "itemprop =" text "> The question is old, but I had the same one. Take the example from: : Parked Event: Park Transition [: idling, first_gear] = & gt;: Parked and Event: Kindle Infection: Stall = & Gt; equal,: vertical =>: ending and event: inactivate transition: first_gear =>: ending and event: shift_up transition: idling =>: first_gear ,: First_gear = & gt;: seconds_gear,: seconds_gear = & gt;

c# - LINQ to SQL in and not in -

Is in in and is not ? Choose for example from ... in the table (...) and * not in the table (..) What's the above statement from LINQ to SQL? You use, where & lt; List & gt; . (& Lt; Items & gt;) var myProducts = d into p Select product where productList.Contains (p.ProductID) p; Or you can predefine a list like: var ids = {1, 2, 3}; Var query = item in context. Select the item where the id. Compatibility (item.id); For the 'NOT' case, just '!' Operator 'included' statement before

osx - Are Automator variables persistent? -

Is the automator variable running in the execution of a workflow? If a variable is set during execution of the workflow, can I get the last value assigned to a variable, when the workflow is re-implemented? Automator variables are not static , And then sets the variable content in the selected text in the host application; The invitation to the service always returned an error about the variable, which means that the variable content was not consistent (differently, the error is only reported for the first time only).

php - CakePHP Routing Problem -

I have encountered the KPHP root problem. I can only use the "" " / " root and this CakePHP default shows the welcome homepage. Later I write my controller (icons_controller.php) and view (view / icon / index.ctp) I try it, there is a problem in it. I've typed in http: // localhost: 8080 / myapp / icons / , it always says " not found the requested URL / myapp / icons / was not found on this server. "My router.ff file contains: router :: connect ('/', array ('controller' => page ',' verb '=' Router :: connect ('/ pages / *', array ('controller' => gtk; page ',' verb '=>' display ')) ; I will create a controller in the icons_controller.php file: set (' symbol ', $ this-> symbol-> search (' all '));}}? and file this Only one paragraph tag should be opened in the text (/views/icons/index.ctp). my symbol But I can not open index.c

cygwin sed substitution against commands in history -

I can not find an answer to this exact problem, so I will ask it. I am working in Sigwin and ! I want to refer to the previous commands using the N notation, for example, if the command was 5, then which ls , then ! 5 ! 5: s / which \ ([az] \) / \ 1 / should run only LS, or whatever logic it will be for command number 5. I have tried several ways of this type of replacement and the same error: bash :: s / jo ([az] * \) / \ / / Replacement failed This works for me by using Bash in SIGN (note that my which is the LS command in my history Number 501 was not in the list; 5 like you): $ (! 501 | sed 's You can also do this (which is less / cleaner): You can also do this like this (which is low / cleaner): $ (! 5 01 | Sed 's / which //')

statusbar - OpenFeint + iPad + Hiding status bar -

My app does not run fullscreen any status bar, but when it starts and asks which account to use , The status bar appears. How can I disable this? Note that when the connection window is closed the status bar leaves a white rectangle. Remove the viewController from the window, set the required size and add it again in the window. The sample code is as follows: - (Zero) Dashboard appears Willy {_appDelegate = (MyAppDelegate *) [[UIApplication shared applicant]]]; [_appDelegate.navcontroller.view RemovingPreviewView]; [_appDelegate.window Setframe: CGRactMake (0.0, 0.0, 768.0, 1024.0)]; [_appDelegate.window addSubview: _appDelegate.navcontroller.view]; }

Simple javascript console log (FireFox) -

I am trying to log changes of values ​​in the console (firefox / fire fly, mac). if (calculate and lift; 1000) {count = count + 1; Console.log (count); SetTimeout ("Startup", 1000); } This is refunding only 1 value. After that he stops. Am I doing something wrong or is there any other effect on this? You do not have a loop Use only a conditional statement while var number = 1; While (calculation> 1000) {count = count + 1; Console.log (count); SetTimeout ("Startup", 1000); // Do you really want to do this 1000 times? } Better: var number = 1; SetTimeout (startProgress, 1000); // I'm guessing where you want it (calculation & lt; 1000) {console.log (count ++); }

android - Adding multiple views to a listview -

I tried to look at these views, but every time I try and connect to a ListActivity view Yes, it's nothing, it's nothing. What am I doing wrong? I set my list views like this: list & lt; View & gt; View = New Arreelist & lt; View & gt; (); For (int x = 0; x & lt; tagg_views.size (); x ++) {lv.addHeaderView (views.get (x)); } It seems that you want to add x number of headers to your ListView. It does not make sense With each information on each list, copies of the same view should be x number in a list view. Gives a good example of the right use of a ListView.

c# - Creating standalone, console (shell) for domain-specific operations -

Say I have a system service, and I want to provide it with low level maintenance. For that purpose, I would like to create a standalone, console application that somehow should connect to the server process and allow the user to type in the command, on the single / double tab press autocomplete and automatic : Allow to use suggestions (just like linux bash shell, mysql cli, cmd.exe, and countless others), allow command line editing capabilities (history, move cursor key around text, etc.), etc. . Now, it is not so much that by rolling your own from scratch, handling user input, scanning key, and doing the right action, there is a problem creating something like this, why reinvent the wheel? Is there a library / framework that helps in problems like this, like Linux, to improve command-line editing capabilities under Linux, are there any such problems? Of course, this new "shell" will only suggest valid, domain-specific commands, and valid arguments, options, switche