Posts

Showing posts from May, 2014

javascript - Fastest method to replace all instances of a character in a string -

What is the fastest way to change all the examples of string / character in a string Javascript ? A while , a for-loop , a regular expression ? To change all instances, it would be easy to use a regular expression with the g flag: str.replace / foo / g, "bar") with foo with bar string str If you have just one string, you can change it to a RegExp object: var pattern = "foobar", then = new RegExp (pattern, "g ");

Documentation for Jasperserver -

I have installed JSPSharever in my PC using the Basin installer. It was automatically set up with MySQL with Jaspis Server, now I have to move forward in getting my data and start creating reports. Thank you ... Jasperserver mainly manages your report resources And there is an application to manage. It helps to make the report more accessible and provides a web-interface to manage and execute them. For this purpose, it comes with its own MScL-based repository, which is used to store metadata about your report. This repository is completely unrelated to your actual report data, which may differ from various sources such as mysql-datasources, mondrian-datasources, xmla-datasources, oracle-datasources, etc. For example, the repository store: Image resources used by the report Report parameters with user input controls, which can be used to parameter your report execution to the web-frontend Report Definition of XML ... You use iReports to generate a real report, All

vb6 - Internet Access Controller using .net ( vb or c# ) -

I want to develop a software that prevents users from using Internet access vb6 or vb.net. This is not a child sitter program, but 1) Whenever a customer takes any browser machine, he should ask for the username and password. 2) There should be an option to add new users to the server side application. Anyone can recommend any such software You can apply an HTTP proxy using You will stop sharing Internet connection on your server and you will be able to configure other machines to connect to the web through other projects. I would recommend to stop the solution myself; Instead of producing something from scratch, in the router. If you have died using VB6 then you can use Winsock control. Here is a project that uses Winsock to serve files. You can modify it to become a multithreaded proxy server instead. Although this will be a difficult challenge.

wordpress - Textpattern... what's the general feel about it? -

We are going to start a new project, and an outsource developer has come and insisted that the text is in a way Is ahead .. Personally, I have no problem, I can develop in almost any PHP environment ... but the purpose of the game is to do it well with SEO. The question is, is textpartation good? Wordpress, Drupal etc. are all very useful, with a different degree on ease of code, but they all work, for example, why would textpoten really be better than Wordpress? I like community, I like API, I like plugins ... Why do you want to change WP? Thanks guys. These two are very similar as I know. There are more plugins in WP, setting up a theme is easy and it is more popular. Despite this, it is a bad security record. Textpattern is also robust, customizable and good plugin (though not much as WP). There is no easy drag / drop theme installer, as there is a better security record in general on WP (the last time I have checked anyway). I personally feel quite a bit more effor

How can I implement a stock volume chart using core plot on iPhone? -

I am writing a stock charting application on iPhone through core-plot. What type of chart should I use to plot a volume chart? Since I have to overlay the price chart on the volume chart, so how should I go about doing this? There is an image here for reference (I do not mean I am trying to replenish the stockchart's functionality, just thanks What about using a JavaScript charting library inside your webvio for your chart? You can use:

c# - Use VersionControlExt.Explorer outside Visual Studio -

Text after " I am developing a TFS tool to assist developers in our company. It said equipment needed source control explorer like TFS server "using VersionControlExt.Explorer.SelectedItems I believe that to be able to browse", a UI pop-up that TFS server The user will be able to browse (please correct me if I am wrong) However, VersionControlExt only is unfortunately inaccessible to grow within Visual Studio (aka plugin), I am developing a Windows application running inside VS. So the question is, can I use version controlext outside Visual Studio? If yes, then how? An attempt to use to communicate Changset out the details of Visual Studio string path = System.IO.Path.GetDirectoryName (Assembly.GetExecutingAssembly () Ksthan); Assembly vcControls = assembly Load file (path + @ "\ Microsoft.TeamFoundation.VersionControl.Controls.dll"); Assembly vcClient = assembly.loadfile (path + @ "\ Microsoft.TeamFoundation.VersionControl.Client.dll"

continuous integration - Unit Tests on a 32bit/64bit Application -

We have an application that now has a 64 bit goal, as well as the old 32 bit target. My question relates to our unit test. Should we compile and run our unit test in both of them? Is there any chance that we will find fault in this way? If the difference between 32-bit language has been highlighted, then do I have to be very crazy? and 64-bit mode, of course you two-unit testing needed. This will take less than twice the time compared to human resources compared to testing only one platform, so this is a deal :) If your language is 32- and 64-bit (say, you only have an unlimited integer in that language), you can still test both platform units. You will find bugs in the platform-dependent implementation of your platform-independent language, or make sure there is no one who influences your code, and in this case the additional cost of the second set of tests is zero, the same things Are the same for the first. Edit: Think of the matter again 1, you should write your

java - Javadoc "Use" section - why is it missing? -

कुछ एपीआई (jquadocs के बाहर) ( java.lang और java.util ) अनुभाग अनुपलब्ध है। उदाहरण के लिए यह थोड़ा अप्रिय है कि आप एपीआई के वर्गों को जवाडॉक के आधार पर क्लास की आवश्यकता नहीं बता सकते हैं, और आपको कुछ अन्य ट्रिक्स (जैसे आईडीई फीचर) को ऐसा करने के लिए काम करना चाहिए। क्या इन एपीआई में "यूज़" खंड को शामिल करने के लिए कोई कारण नहीं है? आपके द्वारा पोस्ट की गई लिंक के लिए, XMLStreamReader के लिए जावा के पास था, बल्कि मूल जावाईई एपीआई के बजाय। हालांकि, जवाडॉक के लिए "उपयोग" खंड पूरी तरह से आबादी है। अलग, मुझे संदेह है कि यह सिर्फ एक गुणवत्ता नियंत्रण समस्या है।

sql - Why does this 'modify table' statement fail? -

I am trying to add a 'no blank' barrier in a column in Oracle 9. Modify ALTER TABLE user_roles group_id varchar2 (36 characters) Set no; However, operation fails with a strange error: Error Report: SQL Error: ORA-12987: Drop Column with Other Functions Can not add 12987 00000 - "Can not combine drop columns with other tasks" * Reason: Attempted to combine the drop column with other optional tab operations was attempted. * Task: Make sure that the drop column is the only operation specified in ALTER TABLE. > Remove set : modify ALTER TABLE user_roles group_id varchar2 (36 characters) zero And yes, the errors of Oracle can be very confusing.

How to connect a Button in a Silverlight ListItem DataTemplate, in a ResourceDictionary (Styles.xaml), with a handler? -

ठीक है, इसलिए स्थिति मैं एक ResourceDictionary (Styles.xaml) में एक ListBox के लिए एक ItemTemplate परिभाषित कर रहा हूँ। ListBoxItem टेम्पलेट इस तरह से कुछ दिखता है: & amp; लिफ्ट; ControlTemplate TargetType = "ListBoxItem" & gt; & Lt; बटन कमांड = "{बाध्यकारी पथ = DoSomeCommand}" सामग्री = "टेस्ट" / & gt; & Lt; / ControlTemplate & gt; अब जहाँ भी इस टेम्पलेट का उपयोग किया जाता है, मुझे यह बटन क्लिक करने के लिए एक उपलब्ध ViewModel आदेश को संभाल करने के लिए बाध्य करना चाहते हैं। हालांकि यह काम नहीं करता है है, मैंने यह भी करने की कोशिश की है: & lt; ControlTemplate TargetType = "ListBoxItem" & gt; & Lt; बटन कमांड = "{बाइंडिंग रिलेटिव सोरस = {रिलेटिवसॉरस टेम्पलेटेड पेन्ट}, पथ = डोजम कॉमांड}" सामग्री = "टेस्ट" / & gt; & Lt; / ControlTemplate & gt; लेकिन अभी भी कोई पासा नहीं है। काम करने वाला एक सरल उदाहरण यह है कि क्या आप उस टेम्पलेट को नियंत्रण (संसाधन) में परिभाषित

PHP drop down coding question -

Can someone show me how to make a statement where the default value of 0 below a drop (my case ) Automatically submit form if possible? session_start (); $ Current = release ($ _ session ['client namefor'])? $ _SESSION ['client namefor']: 0; While ($ line = mysql_fetch_array ($ result)) {$ id = $ row ["Client_Code"]; $ Cheese = $ line ["Client_Full_Name"]; $ Value = "$ id, $ thing"; ? $ Sel = ($ id == $ current) selected ':' '; $ Options4 = "& Lt; OPTION $ sel VALUE = \" $ value \ "& gt; $ cheese & lt; / option & gt;"; }? & Gt; & Lt; Form name = "form" action = "& lt ;? php echo $ _SERVER ['PHP_SELF'] ;? & gt;" Method = "post" & gt; & Lt; SELECT NAME = "ClientNameFour" OnChange = "this.form.submit ()") & gt; Option Price = 0> Customer & lt ;? Php $ options4? & Gt; & lt; / SELECT & gt

smarty - Several copies of a PHP site with tweaks: maximize code reuse and minimize duplication? -

Sorry for the confusing title .... We are developing an application that has multiple Companies However, it is designed for each company, for the most part, it is the same, your standard sort database header page (search page, edit page, etc.). There is a separate process, and we will be working directly with each company so that we would like to use some kind of system which allows us to zoom the page while viewing the page, on which the company is viewing the page. . For example, a company might want some additional fields on a data input page, or another company should see a different piece of data on the search results screen, and so on. I think that this is all imaginary and I believe that I had a solid example to give you, but honestly, the companies have not given us very good examples. We just want to be ready. So my basic question is, What is the easiest way to allow for these changes and optimization on a per-company basis? Obviously, the most flexible but at le

workflow - WorkflowView force refresh when new child Activity is added -

My application is using workflow designer reheat so that end users can develop workflow. I have an activity available for which the user has to set some state. To accomplish this, I override the initial activity (activity) in the designer and I show a form which I use to set the values ​​in my activity. This is for the establishment of the state when the activity is initially added. I also have a double click event handler in the designer, if they have to edit that position later. Now I have a situation in which, in the form I may need to add or remove based on values, I have been successful in adding activity to a child activity, but always show it in designer Can not find it. When it is started, there is no child activity. I may need to add a child activity. At this point, it works fine and appears in the designer. The problem occurs when It is edited by double clicking it later. In my designer, I have been changed to detect on activity. I make the same call to add a child, t

wpf - How to bind objects list to infragistics data grid? -

Very easy to operate, but the source code does not work as necessary ... please advise. There is a product collection in the class (the approach is based on the MVVM pattern, but it does not grow on the current issue): public class ProductWindowViewModel: Workspace ViewModel // Applied InotifyPropertyChanged {public ProductWindowViewModel () {product = new list & lt; Products & gt; (ProductService.Instance.Repository.GetAll ()); } List & lt; Products & gt; Product {Received; Set; }} Here is the class declaration: Public category products: IERTTI {#region Public Properties Public Entry ID (Receive); Set; } Public string name {get; Set; } Public string description {get; Set; } Public int cost {get; Set; } #endregion} The class example window is linked to the grid data reference: ProductWindow wnd = new ProductWindow (); Wnd.MainGrid.DataContext = New ProductWindowViewModel (); Wnd.ShowDialog (); And here is the xaml code of the window: & lt;

java - JUnit Test a Database Failure? -

I am trying to prepare a test that is a system to ensure the integrity of an Oracle Berkeley DB XML database Fails to simulate Data loss is currently being experienced during an inclusive operation, so I want to set up a test that starts pouring a number of arbitrary documents and the way sack is sown in the process (such as After pointing out the power of a power) I want to lay eggs on a new process and open the database to open it properly Received want. The unit test is one of several in the Maven Build and this test is available in Linux and Windows XP environment. My current thinking process is to exclude a script for both operating systems because I can use the script to kill the process and start a new one instead. Do I have any other options? Can I use a different process space / VM genut? I will not consider such a unit test, but still you are capable of doing something Start recording. At some point Please keep in mind the previous observations on the non d

c# - Converting strings in to an expression trees? -

We need to provide a user friendly description for types. We have created a resource file that maps to a description type Does. The complete name of the example is used as the key with the substituted points with the underscore, the description is a string and includes templates that refer to the property in the example. When we get an example, we get its type, get the key, and use it to find the resource value. Then use regex to remove those template properties then use the reflection to actually get the value of the property For example the example may be that the main name MyNameSpace_MyPublicTypes_Address The name (the full name is' My namespace. Myspace type 'address') The description may be in' user {state.City} in {country} '- state and country are properties on the address class I assume a property in the state Is. Is there anything like 'obj => obj.State.City' or 'obj => obj.Country'? Or some kind of expression? I am us

c# - When to use enums, and when to replace them with a class with static members? -

It has recently come to me that the following (sample) calculations ... < Code> enum color (red, green, yellow, blue) ... appears to be replaced by a more type-protected class: < Code> color of the square {private color () {} public static text only color red = new color (); Colorful green = new color for public static reading (); Public Static Text Only Color Yellow = New Color (); Public Static Text Only Color Blue = New Color (); } With "type-safe", I mean if color was an enum, but if color was the above classes: Var nonsenseColor = (color) 17; // works if the color is an enum two questions: 1) Is this method a widely accepted name 2) In which case should any eneme be used, and when a class would be more appropriate? For the light state information, enums are great, for example, your color enum (excluding blue) [flag] public enum lightcolors {unknown = 0, red = 1, yellow = 2, Green = 4, green_arrow = 8} The current state o

nasm - Develop a Bootloader In Assembly -

I have already made a part of my OS in the assembly, but now I will replace it with my own bootloader About to use GRUB When I was developing my test OS in the assembly, I remember that I boot it like this: org 0x7c00 bits 16; OS kernel here times 510 - ($ - $$) db 0 dw 0xAA55 This is already known to me. Now I want to use it and want to execute the "real" OS which will be the * .bin file written to the second sector of the floppy. I need to add anything I want to know something What will start on the second sector of floppy, execution How can I do a bootloader in the assembly? For the assembly source which will be placed on the second sector of the floppy? int 0x13 To load the number of expected numbers, Code> and go to the place that you have placed the new code. In the second step you do not have to do anything, but you want to make sure that you are valid ds to load the code. Example small OS archive: / * Boos areas es: bx * / pushw $ STA

How to add custom list item on end of jquery autocomplete results -

I am using jquery autocomplete, and I have set up these wars $ ("#some_id"). In autocomplete ("search.php? = Somewhere", {width: 270, selectFirst: false}); $ ('# Some_id') Set option ({max: 5}); As you can see it gives 5 list items (results), and I want to add the sixth list item where some text should be displayed and how many results are there except this 5 . How do I do this? This probably is going to require an edit around this event . function filllist () {list.empty (); Var max = limitNumberOfItems (data.length); For (var i = 0; i Html (options.highlight (formatted, word)). Adclass (i% 2 == 0? "Ac_even": "ac_odd"). Attachment (list) [0]; $ .data (li, "ac_data", data [i]); } // Enter your additional entry in it ... list history = list.find ("li"); If (options.selectFirst) {listItems.slice (0, 1) .addClass (classes .active); Active = 0; } // Apply bgiframe if available ($ .fn.bgiframe) list.b

html - Convert a table based layout to divs with Java -

Recently an Android & amp; An iPhone app is being said for work, I'm a CSS / php designer-developer who has some javascript in the mix. I have to write some Java (not JavaScript) which is a table based layout to a deviant based layout so that I can control positioning, padding, and not. I see very similar posts, but instead of positioning in these positions, instead of functional control, "Designer" oriented goals are included, layout and so on. A good resource would be greatly appreciated because Google could not find a suitable search string for me. My searches include "free javascript code", "java tutorial about creating flashing banners", "how to make a fading menu" and countless other rabbit rings that move towards Wonderland. Oh, currently using Eclipse with Android SDK & amp; ADT plugins are installed. If you have set up a group of rules then it will be easier how The conversion should really be taken. There

unsafe - Nested calls can lead to uninitialized arguments in C? -

क्या लेन सही ढंग से आरंभ और set_array कॉल में सुरक्षित है? शून्य object_copy (ऑब्जेक्ट * स्व, ऑब्जेक्ट * obj) {int len; Object_set_array (आत्म, object_get_array (obj, और len), लेन); } यदि नहीं, तो आप क्या सुझाएंगे? नहीं - फ़ंक्शन कॉल में तर्क के लिए मूल्यांकन का कोई परिभाषित आदेश नहीं है। भले ही object_get_array () को कॉल को object_set_array () से कॉल करने से पहले, उस मान को संकलक गणना और पास करता है < object_get_array () को कॉल करने से पहले कोड> ऑब्जेक्ट_सेट_अरे () लेन पैरामीटर के लिए किया जा सकता है। I ' मुझे यकीन नहीं है कि object_set_array () कॉल के लिए 2 पैरामीटर क्या करना है - शायद आप अल्पविराम ऑपरेटर का उपयोग करना चाहते हैं: शून्य object_foo (ऑब्जेक्ट * सेल्फ) , वस्तु * obj) {int len; Object_set_array (स्वयं, (object_get_array (obj, और len), लेन)); } कौन काम करेगा, लेकिन भ्रामक है और कुछ जिसे मैं सुझाऊंगा। मुझे लगता है कि आप क्या चाहते हैं: शून्य ऑब्जेक्ट_फू (ऑब्जेक्ट * सेल्फ, ऑब्जेक्ट * ओबजे) {int len; Object_get_array (obj

c - Still problems with LLIST *mylist[x] -

तो मेरे पास ... int x; लिस्ट * मेरीलिस्ट [x]; X = 10; बर्जो (लिस्ट * * * x); यह एक वैध समाधान नहीं लगता है .. मैंने -std = c99 जोड़ दिया मेरी मेक फाइल करने के लिए, केवल यह अकेले ही काम नहीं करता है इसलिए यही वजह है कि एम्इल ने उपरोक्त दृष्टिकोण का सुझाव दिया क्योंकि मैं मूल रूप से था: int x = 10; LLIST * mylist [x] = {NULL}; मेरी मेसेज फाइल इस तरह दिखती है: सीसी = जीसीसी सीएफएलएजीएस = -Wall -g -std = c99 LIBS = -lreadline -lm OBJS = llist.o myprogram.o में शामिल है = llist.h सब: $ (ओबीजेएस) $ ( सीसी) $ (सीएफएलएजीएस) $ (ओबीजेएस) $ (एलआईबीएस) -मेराप्रोग्राम .CO: $ । एच $ (शामिल) $ (सीसी) $ (सीएफएलएजीएस) -सी $ .c साफ़ करें: rm -f * .o myprogram यह कोड: int x; लिस्ट * मेरीलिस्ट [x]; X = 10; बर्जो (मेरीलिस्ट, आकार (एलआईएलआईएसटी *) * वाई); दो समस्याएं हैं: आप लाइन 3 पर एक मान देने से पहले एक्स लाइन 2 का उपयोग कर रहे हैं। आप उपयोग कर रहे हैं चर 4 में चर y। मैं सुझाव देता हूं कि आप परिवर्तन पहले एक पंक्ति में एक्स के परिभाषा और आरम्भिकरण को म

c++ - Convert const char* string to NSString with length AND encoding -

I wonder which method would be better to convert the const char * string into NSString. I found that there are some facts [NSString stringWithCString: length:] There is a kind of boycott. [NSString stringWithCString: encoding] can be used for my purpose but I want to convert with length and encoding (because I have a UTF- 8 is OK for some non-ASCII characters by setting the encoding). any idea? I think now Copy the other four and copy it using length std :: strncpy (ch1, ch2, len) Usage [NSString stringWithCString: encoding:] But it does not work well. If your const char * variable is named foo (and this is a Pointing to the redundant string), then just say [NSString stringWithUTF8String: Foo] Because UTF-8 is a superset of ASCII, it Will work that indicates foo for UTF-8 or ASCII. You can then go to full Unicode without any problem.

iphone - What's the default size for the UIImage in a UITableViewCell? -

I want to keep a UIImage on the left side of each row in a UITableView. This is very standard, and supported directly by UIKit. But putting in a bigger image causes all kinds of wins, so I probably should measure this thing correctly. But none of the docs uses the standard size for this image to give a default shape to the box view - I wonder. Others on SO indicate that 44 is the default height of a line () 44x44 "default" image size? Thank you! 40x40 image to 40x40 I need to fill in ... I am using SDK 3.0 with the creation of "Cell Objects in Prefined Style" ...

Are PHP MVC Controllers implemented by url rewrite? -

In a Java EE application, the controller can be presented by the servlet, which is currently using Java serverwork Can be implemented (JSF). But there is no such sublink in PHP, so I think this URL should be rewritten? So that every request should be directed to that controller? It can be done with mod_rewrite but most php has a front-controller mechanism that controls all. This way, through a file, all the controllers are specified in the URL.

utf 8 - How I print UTF-8 characters C++? -

कैसे मैं सी ++ में प्रिंट करता हूं? ठीक है, आप जानते हैं कि यह संभव है क्योंकि आपका ब्राउज़र उन्हें प्रस्तुत कर सकता है। विंडोज पर आप अपने यूनिकोड कोड बिंदुओं को खोजने के लिए charmap.exe एप्लेट का उपयोग कर सकते हैं: ♠ = 0x2660 ♣ = 0x2663 ♥ = 0x2665 ♦ = 0x2666 चुनौती को उन्हें प्रदर्शित करने के लिए एक सी / सी ++ प्रोग्राम प्राप्त करना है। यह किसी भी तरह के गैर-प्लेटफ़ॉर्म विशिष्ट तरीके से संभव नहीं होगा जब तक कि आप क्रॉस-प्लेटफॉर्म UI लायब्रेरी जैसे क्यूटी या wxWidgets का उपयोग न करें। एक Windows GUI प्रोग्राम में आप इसे WM_PAINT संदेश हैंडलर में ऐसा कर सकते हैं: मामला WM_PAINT: {hdc = BeginPaint (hWnd, & ps); HFONT hFont = CreateFont (16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, एल "एरियल यूनिकोड एमएस"); एचजीडीओबीजे पुरानेफॉन्ट = चयनऑब्जेक्ट (एचडीसी, एचएफएफ़); आरईसीटी आरसी = {0, 0, 666, 16}; ड्राफ्टएक्स (एचडीसी, एल "\ x2660 \ x2663 \ x2665 \ x2666", -1, और आरसी, डीटीएलईएफटी, 0); चुनेंऑब्जेक्ट (एचडीसी, पुरानाफॉन्ट); DeleteObject (hFont); एंडपें

Eclipse the import cannot be resolved after Java update -

I have a class that uses Hibernate, before I update javascript, include all required jars in class path and class But now eclipse shows that this can not solve some hibernate imports, what can be the solution? import org.hibernate.SessionFactory; Import org.hibernate.cfg.configuration; If you type (Ctrl + shift + t), or type explorer and Type SessionFactory or Eclipse configuration to find them? If not, make sure you have some problems in .jar files. The way you are using Mac or PC?

java - How can i show it at first? -

I have written a simple Java application, I have a problem Please help me; I have a file (example only): 1.TXT ------- SET MRED: NAME = MRED: 0, MREDID = 60; Set BTT: NAME = BCT: 0, NEPE = DCS, T2 = 5, DK0 = Core; Create LCD: NAME = LCD: 0; ------- And this is my source code import java.io.IOException; Import java.io * *; Import java.util.StringTokenizer; Class 1 exam {Private Final Ent FLUSH_LIMIT = 1024 * 1024; Private stringbuilder outputbuffer = new string builder (FLUSH_LIMIT + 1024); Public static zero main (string [] args throws IOException {test1p = new test1 (); String filename = "i: \\ 1 \\ 1.txt"; File file = new file (filename); Buffettder br = new buffed reader (new filereader (file)); String line; While ((line = breadline ()) = null (string string) = string string new (new string signifier); While (st.hasMoreTokens ()) {string token = st.nextToken (); P.processToken (token); }} P.flushOutputBuffer (); } Private Zero process token (string token) {i

http - Problem with Indy IdHttp Post in Delphi 2010 -

I have problems with the Indy IdHttp post method. The CallRpc () function compiled with Delphi 2007 works fine, but the code compiled with Delphi 2010 raises the same exception. What should I consider when I change the Delphi 2007 indie TIDHTP to Delphi 2010 Indi TIDHTP? function callRpc (constantWorld, SXM: string): string; Var sandstream: tistream; IDHTP: TIDHTP; Start SendStream: = TMemoryStream.Create; IDHTP: TIDHTP. Cut (zero); IWP Try the request. Accept: = '* / *'; IdHttp.Request.ContentType: '' text / sXML '; IdHttp.Request.Connection: 'Keep-Elite'; IdHttp.Request.ContentLength: = Length (SXML); Stringstostream (SXML, sandstream); SendStream.Position: = 0; Results: = IdHttp.Post (sURL, SendStream); Finally IDHTP free; SendStream.Free; End; End; The exception is: EIdConnClosedGracefully The response is: & nbsp; add 25.1.2009: Lt;? Xml version = '1.0' encoding = 'us-asci'? & Gt; & Lt ;! DOCTYPE error [&

php - Count top 10 inputs in a table -

There is a function on my site where people can vote on photos. Every time someone clicks a vote button, my script adds a line to the table (mysql) Each row looks like this: (table name = choice) ID - -------- UserID --------- PhotoName --- ------ Date 1 ----------- 21 - ------------- 34234 -------- --- 20100101 How can I find the top 10 photographs on which people are voting? I tried " SELECT TOP 10 photoName FROM preference " but it did not work ... SELECT COUNT (*) as the dot, photoName FROM the name of the photo ORDER digit DESC LIMIT 10 by the preferred group;

Image Processing and Stroke filter -

I am new to image processing, and I have started a simple project to identify text on pictures with complex backgrounds. I want to use the stroke filter as the first step, but I can not get enough data to apply this data about stroke filter. I have been able to find only the pure definition of stroke filter, so does anyone know something about the stroke filter that can be helpful for my implementation? I have found an interesting article here, but this does not explain the stroke filter in depth "stroke filters" are not a standard idea in image processing. Instead, it is a paper that is connected to you, where they define what they mean by the stroke filter (sect 2) and how you can apply a computational (cult 4). For this reason, you are unlikely to get an implementation in a standard toolkit; Although you may want to look around for someone who has posted an implementation, or contact the authors. Basically, though, they are saying that you can identify text in a

c# - Subsonic 3.0 and "Link" tables -

मेरे पास निम्न सेट-अप हैं। BlogPosts BlogToCategory श्रेणी एक ब्लॉग पोस्ट में कई श्रेणी हो सकते हैं और एक श्रेणी कई ब्लॉग पोस्ट में हो सकती है (इसलिए मध्यवर्ती तालिका। मैं एक श्रेणी में सभी ब्लॉग पोस्ट्स की सूची कैसे प्राप्त करूं। मैंने इसे करने की कोशिश की है लेकिन इसे सही नहीं लगता (मुझे एक IQueryable -> IEnumerable डाली त्रुटि मिलती है) सार्वजनिक IEnumerable & lt; BlogPost & gt; FetchAllBlogs (int? CatId) {श्रेणी से c पर लौटें.सभी () जहां c.CategoryID == कैटआईडी का चयन करें C.BlogPost;} ठीक है नीचे दिए गए मैंने कोशिश की है। blogToCategories में से subtext_link.All () में शामिल हों subtext_content में blogPosts BlogToCategories.BlogId पर सभी () blog.posts.BlogId के बराबर है, जहां blogToCategories.CategoryID == कैट ऑर्डर से (blogPosts.DateAdded) ब्लॉगिंग पोस्टिंग अवरोही; अब यह विचित्र है लगता है कि इसमें शामिल होने के रूप में गलत है जब भी लिंक तालिका में कुछ डेटा होता है (टैबलेट लिंक ब्लॉग पर श्रेणी) यह सभी ब्लॉग को रिटर्न देता है इसके बाद भी नीचे

c++ - What does this stack trace possibly mean? -

मुझे सी + + का उपयोग करते हुए लिखित अपने अनुप्रयोग में सीगलफ़ॉल्ट समस्या हो रही है और जीसीसी 4.3.2 का उपयोग करके संकलित किया गया है। यह डेबियन 5 64 के तहत चल रहा है प्रक्रिया में निम्न कोड पंक्ति पर दुर्घटनाग्रस्त हो गया। # 0 0x00000000007c720f कार्रवाई :: LoadInfoFromDB में (यह = 0x7fae10d38d90) पर। ./../../src/server/Action.cpp:1233 1233 एम_टैंप [टीआईडी] - & gt; स्लिस्ट [एसआईडी] = पीआईटीम; स्टैक ट्रेस कि मैं कोर डंप से मिला इस प्रकार है: # 0 0x00000000007c720f कार्रवाई :: LoadInfoFromDB में (यह = 0x7fae10d38d90) पर। ./../../src/server/Action.cpp:1233 आइटमगुईड = & lt; मान ऑप्टिमाइज़ & gt; मद ईंट्री = & lt; मूल्य ऑप्टिमाइज़ किया & gt; PItem = (कक्षा आइटम *) 0x2b52bae0 फ़ील्ड = & lt; मान ऑप्टिमाइज़ & gt; टीआईडी ​​= 1 '\ 001' सिड = 0 '\ 0' परिणाम = (QueryResult *) 0x7fadcae3d8e0 # 1 0x00000000007c7584 कार्रवाई :: DisplayInfo (यह = 0x0, सत्र = 0x7fadbdd44a20) ../../../src/ पर में सर्वर / एक्शन.cpp: 10 9 डेटा = {& lt; बाइटबफर &

ios - Effective iPhone software copy protection solutions -

Is there any effective copy security solution for the security of the iPhone software? not really I would like to ask you a question, to protect you per Why do you want to?

Why my php substr() shows obscure characters when cutting a text? -

I am using the substr () function to limit the characters in the strings. But sometimes, the output text contains some vague characters and question marks ... The text that is "substred" is already UTF 8 encoded, and not html Is the way. Thanks Because you are cutting your characters in half. Use multibyte character encoding like UTF-8, substr simply calculates bytes, while mb_substr calculates the characters.

iphone - Are there complete examples that make use of all the NSURLConnection delegate methods? -

NSURLConnection Representative Method I have a hard time finding any examples for impalnations, Apple's example of earthquake XML is incomplete. , They do not include - Connection: willSendRequest: redirectResponse: Maybe there is a good lesson I think about all the Apple content Passed through before Here's an implementation that I've been working lately: .h: NSMutableData * responseData; .m: - (zero) load {ns url myURL = [ns URL = URLWithString: @ ""]; NSMutableURLRequest * Request = [NSMutableURL request request with url: myURL cache policy: NSURLRequestReloadIgnoringLocalCacheData timeout interval: 60]; [[NSUr Connection Elok] Init VectorQuest: Request Rep: Self]; } - (zero) connection: (NSURLConnection *) connection was reception: (NSURLResponse *) response {responseData = [[NSMutableData alloc] init]; } - (Zero) Connection: (NSURLConnection *) Connection was the reception: (NSData *) data {[responseData appendData: data]; } - (Zero) Connection

iphone sdk 3.0 - Naming Inconsistency -

My app was rejected due to naming inconsistency The name entered in iTunes matches the name of the installed application However, after the iPhone sdk3.0, the product name may not contain invalid characters such as space. How can I name my application with spaces like "MyApp Lite"? Thanks You tried the remaining characters like "MyApp% 20Lite" is?

jQuery hover event firing twice on mouse over -

I try to temporarily change the content of div on the hover, using this jQuery I'm doing: $ (document) .ready (function () {var $ ratingHtml = ''; $ ('. UserRating'). Hover (function () {$ ratingHtml = $ (This) HTML (); Alert ($ Rating HTML); $ (this) .hmml ('To Into');}, Function () {Alert ($ Rating HTML); $ (this) .html $ Rating html);});}); However on the hover, the alert appears twice - first for the original HTML content, then for 'log in for the string'. It seems like another mouseover event happens, how do I work around it? I decided to go with a different solution - an overlay: $ ('. UserRating'). Hover (function () ($ ('& lt; div class = "loginMsg" & gt; Login to rate & lt; / div & gt;') AppendTo ('. UserRating');}, function () {$ ('. Logms'). Remove ();}); With appropriate styles in CSS

c# - Compare/count values in a System.Collections.ArrayList -

I am scrubbing 5 files for a specific value. I do not expect any other values, but because it is for my own educational purposes, I want to apply to calculate, compare and print the most popular values. For example: ArrayLite ARNAM = new Arrayist (); ArrName.Add ("TOM") arrName.Add ("TOM") arrName.Add ("TOM") arrName.Add ("TOM") I think the result is going to be Tom, but being a newbie, I really do not know how to proceed. Any ideas, suggestions or examples are highly appreciated. Thank you You can use a dictionary (.NET 2.0+) so that each of the repeated number values : Dictionary & lt; String, int & gt; Calculation = New Dictionary & lt; String, int & gt; (); Foreach (string name in arrName) {int count; If (count. Tregate value (name, count out)) {calculations [name] = count + 1; } And {count.Add (name, 1); }} // and then find the most popular value: string is the most popular; Int max = 0; Foreach (name st

dojo - set icon for dijit.MenuItem -

We have a case where we only know the icon for a menu item on the runtime. I know that the iconclass is for the parameter diji.MenuItem , but it's a bit of help until we dynamically with dojox.html.insertCssRule Adds CSS Rules to Runtime - Should be a Better Way! Here is an example of what we are trying to do: pMenu = new dijit.Menu ({targetNodeIds: ["NEW_APP"], leftClickToOpen: true }); PMenu.popupDelay = 100; Pmenu.addChild (New Digit.Popmenuite ({Label: "Watches", icon SRC: "Image / Clocks."), Onclic: DojoHeich (Core Editor, Core.Editor.CreatedNewweep)}); Of course, although an ideal approach is not ideal, something like this: myMenuItem.iconNost.style.cssText = "background-image: url (...); width: 16px, height: 16px";

VGA 15 pin port data read and write using Matlab -

I'm using compaq presario cq40 laptop with computer seven presative (32-bit OS). I want to use the 15 pin VGA port in Matlab (using the Acquisition Data Acquisition Toolbox). Do I need additional drivers or should download anything from Mathworks.com ?? I have already developed a program to send digital signals through the parallel port (LPT1) using the digitalio () function in the DIA toolbox. I want to use VGA 15 pin port in the same way (because there is no parallel port for laptop). Thanks It is not possible to reach the individual pins on the VGA port. The problem is that the graphics card is completely removed from the immaterial (non-leak), so there is no way to work around it, even at the kernel level. I will not recommend using VGA port in any way as a data port.

cocoa - How to store (and use) the current mouse position? -

What is the best way to store an existing mouse state (system-wide) and after that (later) mouse Put the stored point on it? I get the position, and I can move the mouse from one, but they each use a different coordinate system (I believe y = 0 is the most for NSEvent Up and down for a CGEvent). I'm worried about the capture of the screen height and the robustness of using it to convert between two - or is this the best way? Post-text "itemprop =" text "> Yes, using the height of the main screen is the standard way of flipping screen coordinates.

Learning Haskell: String manipulation question -

How can I write a function in Haskell, which takes an input string in format a1a2a3 and spreads in a1a2a2a3a3a3 For example, the input string "code" will be expanded to "coodoo" Probably very disabled: ) f :: int -> [Four] - & gt; [Four] F _ [] = [] Fn (c: s) = (copy nc) ++ (f (n + 1) s) g: [four] - & gt; [Variable] g = f1 s . * Main & gt; G "code" "cooddeeeee"

What's the technical reason why class constants can't be arrays in PHP? -

Any technical reason knows why this compulsion is kept on PHP classes (at least v5.1x)? Unstable type can not contain unstable type is a constant "variable" which can not be changed; It can not be assigned, but if its value is unstable, then this value can only be changed by : class SomeClass { Public const $ array = array (0 = & gt;'Efu ', 1 = & gt;' bar '); Public Stable Work Some Functions () {Self: $ array [0] = 'False'; // SomeClass :: $ array has changed now}}

ruby on rails - How to get Radius tags parsing FBML correctly -

I am using a content engine (from RadiantCMS) in my current apprenticeship. Everything has worked really well, but now I have some problems while using FBM inside my material. When I supply a tag like the following for my template: & lt; FB: Profile-picture UID = "Login Inuser" size = "Square" & gt; & Lt; / Fb: profile-picture & gt; Radical mess becomes, wrongly parsing the closed tag and output: & lt; Fb: profile-pic uid = "loggedinuser" size = "square" & gt; / FB: Profile-pick & gt; ... which breaks the FBML parsing engine. I am not using FB prefix for radius, so there is no collision, and in fact, I can get many tags to work using the self-closing format: / P> & lt; Fb: profile-picture uid = "log inughar" size = "class" /> In many cases, the closing itself is fine, but being capable of providing content for any tag means that the content is visible when the Face

iphone - What could I do in NSURLConnection -connection:willCacheResponse:? -

The documentation says, I can: Return value: Actual cached response cache Store in If the cached is returned, what will be the representative if the response is absent? Representatives can not update cash response, can return modified cached responses, or return. / Strong> Why would I want to return a modified cached response? Example: If you do not modify the cached response, it will be cached Response in Storage Policy and Cached Responses reaction. For one reason you want to override it, to prevent some things from being cached, you are talking with the service in some comfort that is stored on the iPhone in a disk cache. Security provides sensitive data. You can then set a revised cached response to NSURLCacheStorageAllowedInMemory with a storage policy. Only Are you interested in how this works or you have a problem that you think is related to caching?

Inserting self-referential records in Postgresql -

Looking at the following table in PostgreSQL, how can I include a record that refers to itself? Code> Prepare the table (id's serial primary key, name is VARCHAR (255), parent_id is not drawn, foreign key (parent_id) reference reference (id) ); Examples are being given on the web, paren_id has been allowed to tap and then the trigger has been used to update it. If possible, I can update in one shot. You can select last_value from the sequence, when you use Type Serial Forms: table test (id serial primary key, parental integer tap, foreign key (parent) reference test (id)); Enter into test values ​​(default, (choose last_file_type from test_id_seq)); Enter into test values ​​(default, (choose last_file_type from test_id_seq)); Enter into test values ​​(default, (choose last_file_type from test_id_seq)); Choose * from the exam; ID | Parents ---- + -------- 1 | 1 2 | 2 3 | 3 (3 rows) And the following also seem to be simple: also work in the test values ​​(def

javascript - Bookmarklet for ScreenScaping -

text] [1] One of the parsing of a page and submitting content to Google Spreadsheets Strategy Framework It depends on Greasemonkey I want to adapt this approach to a simple bookmarklet, where the address of the page is parsed rather than hardcoding, I navigate to the page in question to execute the bookmark manually I am Assigning the help coding entry point and parse elements. My page has 3 (un-nested) tables at the top-level of the document - it does not have a classname, how can I cross those tables in the start () function? thx If you load your page with a bookmark, So you are free to use any of your Javascript commands inside that page. You can use the document.getElementsByTagName ('TABLE') or load a JS library that will help you to work. And if you are using a modern browser, you can also use document.querySelectorAll with a CSS selector. / P>

IPhone Core Data Persistence & Lifecycle Question -

Whenever I & amp; To run my program, I have noticed that: / user / user name / library / application support / iphone simulator / user / application Therefore, there is no way for me so that the application builds Between the core data continue The way I thought to see this issue (from a test point of view) was to use Iphone Simulator to exit the application just by pressing the circular menu button and running my app again, it was Not to make it but to run it again through the simulator to see if the data core data remains in or not. Now I wanted to know whether the application is running or not every time the application is running. The incident I am using is: (zero) applicationDeffish: Launching: (UIApplication *) application but it only after my creation only occurs; Every time I run the application, I am resuming my program again by pressing the ICI simulator (i.e., menu button) - I do not remove the application all the time when I restart it. Is there any othe

git svn - Can I make git-svn handle svn:eol-style? -

Many svn repositories require new files for a svn: eol-style attribute. Is there any way to ensure that it happens with git-svn? You will automatically properties ([] []) In the inverse conversion will ensure that the ado During operation svn: eol-style is set correctly. AFAIU git-svn is using svn only in internal functioning, and this should load subversion configuration, and auto set example .subversion / config: Enable [Miscellany] -props for new files auto-props = yes [auto-props] * .cpp = svn: keyword = ID revision; Svn: eol-style = native * .cs = svn: keyword = ID revision; Svn: eol-style = native

MySQL Ordering Results by the order of Where Clause Matched -

I have a query that weighs a phrase on the spaces and needs to see the best match for the phrase . It needs to be back before that match. I'm trying to do this in a single query where clause is it possible? I am trying something with these lines: For: My Phrase Choose a name from my name where name = "My phrase" or "% my phrase%" or Name "% My%" and name like "% phrase%") or (like "name% my name" or name like "% phrase%") range 5; In fact, in the order of the top five matches where the clauses are mailed, I know that by default, MySQL evaluates the conditions in a highest way whether it in any way evaluates them in order Is it bound to? And if so, how can I make this result, where does it match? Use full text instead Find it faster, more flexible and allows you to remove results is. SELECT ... against the MATCH (col_name) Order by the DESC ('my firas') against Tbl_name WHERE MATCH (col_name) from

.net - ASP.NET ProfileBase.Create behavior when supplied with an existing username -

Returns the ProfileBase associated with the existing user, then ProfileBase.Create (and If the user name sorry for the trivial question, but the MSDN document actually helped very little. Here is the code for ProfileBase.Create () : Create a public stable profilebase (string user name), Bool is authorized) Procedure (Profile Manager. Enabled) {new provider exception throw (SRkGetString ( "Profail_not_anabddh")); } Initial static (); If (s_SingletonInstance! = Null) {return s_SingletonInstance; } If (s_Properties.Count == 0) {lock (s_InitializeLock) {if (s_SingletonInstance == empty) {s_SingletonInstance = new DefaultProfile (); } Return s_SingletonInstance; }} HttpRuntime.CheckAspNetHostingPermission (AspNetHostingPermissionLevel.Low, "Feature_not_supported_at_this_level"); Return CreateMyInstance (username, isAuthenticated); } Private Static ProfileBase CreateMyInstance (String Username, bool isAuthenticated) {Type Profile Type; If (hosting environme

Array Elements Overwritten with Last in C -

I am trying to create a program that takes a fixed number of strings (to put the user in number They are called for strings they will enter), once after these strings, they are placed in an array using dynamic memory. The output will be something like this: # of strings: 3 cat dog elephant cat dog elephant after the number of my strings My code has a snippet. sptr = malloc (sizeof (four *) * nStrings); (I = 0; i & lt; nStrings; i ++) for {scanf ("% s", string); Length = strlen (string); Sptr [i] = malloc (sizeof (four) * length); Sptr [i] = string; } When I have a sptr array, I will use the string to output. So this is an array, which then indicates individual strings (or other arrays of letters, if you would like to think it like this). We say that there are two strings. I assign memory to two points, then in the first indicator, I scan in a string, I get the length of the string, I assign the size of the memory string and I am equal to the pointer fo

php - Creating a DAO Query with many One-to-Many Relationships? -

I am developing a web application with PHP and MySQL I have a unit, whose name is user, in which many One-to-many relationships (with other objects) (list of addresses, list of emails, list of phone numbers, etc.) These addresses are supplied in various databases via email, phone number, junction tables for the user. (User_link_addresses, user_link_emails, etc.). I am now trying to create an efficient DAO for the user unit, especially the methods ReadUserById ($ userId) and readUllUsers () However, since I am an amateur and DAO pattern in SQL , I'm having trouble making this DAO correctly. I am told that it is important for network efficiency to keep your DAO for a curiosity that reads all the information at one time and then can be mapped accordingly according to that unit. It makes sense, but I'm having trouble generating the A query in which everything has the necessary information and that my unit can be correctly mapped. Now, I can find this information by exec

Can main function call itself in C++? -

Can anyone say that what is the problem of the code given below? int main () {return home (); } I tested, is it compiled correctly, is it always going to move again behind the scene? TLR : undefined in calling main result Behavior Illusion about the terminology used in the standard, and the implications for programmers and compilers, it seems. First of all, the standard alone sets everything about the C ++ language if a specific action is allowed from your particular edition of a particular compiler, its There is no effect whether this work is legal or not. For the rest of the post, I am referring to the ISO03 standard. Then again for the quote, the standard §3.6.1.3 says: The function will not be used primarily within a program. In addition, §3.2 defines that as an "experiment": An object or non-overloaded function is used to name it Appears in a potentially assessed expression. This means that once the program starts, main should neve

layout - WPF making a navigation panel in overlay (in front of other content) -

I have a small WPF application where I'm displaying an image, I have a kind of transparent navigation panel below, Where I have many small buttons (rotating left / right, pan etc). How can I create a navigation panel in front of the image? I have tried with a grid with two rows, but obviously the navigation panel is not on the "top" hover of the image, but any ideas in the bottom line? Edit: Is there a second window and solution to that place? Or can it be done within the same grid? Edit: Like Vista / 7 below toolbar, where you can see it "Back" window. Try a grid with just 1 row, and align the navigation bar to the bottom, and it Give it an ambiguity to make it transparent. & lt; Grid & gt; & Lt; Image ... /> & Lt; Grid name = "navbar" vertical element = "bottom" opacity = "50%" & gt; ... & lt; / Grid & gt; & Lt; / Grid & gt;

mysql - Is it possible to create 2 fields that may NOT have the same value? -

I have a ticket and this ticket has one owner and one viewer. Owner ID is determined when the ticket is made and the buyer ID is set to the default. In this case the laser may not even be the owner. I know that in programming logic it is trivial to do this, but I am thinking that it can be done in the database. Setting Two Fields to Unique: UNIQUE (owner_id, taker_id); In the form of not working, the owner can get many non-tickets at the same time, probably with a triple digit unique key, but then I think there may be some deficiency in my design . An additional bonus is to see how this will be done in Django Django In, you can use "unique_tagier" in your model. Unique_Together = (("Owner", "Buyer"),)

Cross-platform C# - System.io and other quirks -

I am writing a cross-platform code in C #. The code will include the IO, so I'm using the system.io namespace. However, I want to know whether it will work with Linux, or any other OS, which is support for C #? In addition to the directory address, commands like System.IO.Directory.CreateDirectory (), do any other differences require me to pay attention? Also, other parts in the coding should I note when I am planning for cross-platform compatibility? (GUI, etc?) I am thinking of using QT for GUI, is it refined for C #? Thank you! The primary difference is that you need to build a path to use the route. Assume the cambins that the paths are different from the backslash (or if you are coming from 'Nix'). All systems Io library works very well in Mono As a UI, use GTK # - Qt does not really work for .NET (there are libraries, but more finished like GTK # )

how do you detect what (site/service/stored procedure) is making call to SQL Server 2005 using the sa login? -

I was wondering if anyone knew what to find to log on to my SQL Server 2005. I have stacks of websites and I swear that this is configured with a different user id and password but my Event Viewer Log shows me trying to log in using some consecutive credentials. Any help would be appreciated. If they are successfully connected then you can see it in sys.dm_exec_connections, at least it will tell you Client_net_address (IP address as reported to Windows). You can also see PROGRAM_NAME and HOST_NAME in sys.dm_exec_sessions, but keep in mind that these do not matter, and spoofing is easy.

alignment - Align text only on first separator in VIM -

Assume I have this code: width: 215px; Height: 22px; Margin-top: 3px; Background color: white; Border: 1 px solid # 999999; I want to align it like this: width: 215px; Height: 22px; Margin-top: 3px; Background color: white; Border: 1 px solid # 999999; Using Align.vim, I can use : align \ s whotspace as a separator, but there are 2 problems in it < Ol> the initial indent doubles all whitespace is considered a separator, so the last row is disturbed Align.vim offers option I have read through many people, but I did not find any way to do this. If you use, you can simply : Tabularize /: \ zs / . Looking at the alignment details on vim.org, similar traffic should work for it. You can try: : Align: \ zs I do not align, so I'm not positive.

How can I chain position animations using jQuery without introducing a delay between individual animations? -

I am using jQuery to make an image object animation. I want to follow the points based on the object based on a square pattern. I am currently doing what I am currently doing, there are four animations, just pointing to the point of talking and they have only one term. I want it to be continuous, but the animation is delaying for animation. Is it any way to make it constant because it goes from animation to animation and there is no delay during the change? This issue may not be the default ease method in jQuery for swing The reason is more equally that the book linear should be able to change the ease in linear and obtain whatever you want: $ ("# MyImg "). CSS ({top: 0, left: 0}). Value ({top: 100, left: 0}, 1000, 'linear'). ({Top: 100, left: 100}, 1000, 'linear'). Value ({top: 0, left: 100}, 1000, linear '). Value ({top: 0, left: 0}, 1000, 'linear');

python - How can I set up Celery to call a custom initialization function before running my tasks? -

I have a dynamic project and I try to use celery to submit jobs for background processing () I am here. The celery integrates well with jigs and I am capable of submitting my custom tasks and getting the results back. The only problem is that I can not find the sensible method of initializing customization in the daemon process. I have to call an expensive task that loads a lot of memory before processing the processing, and I I am not able to call that function every time. Does anybody have this problem before? Any idea how to work it without modifying the cellular source code? Thanks You can write a custom loader or use a signal . The loader has the on_task_init method, which is said to be executed when the task is executed, and the which is called the cellular + serial bit main process. Using signals is the easiest, there are available signals: 0.8.x: Task_progress (task_id, Work, args, quad) The worker has been dispatched to perform the work (or loca

java - Call a spinner's value? Also, use other values based on a spinner's value -

I have a spinner 'aperture' which creates a list of numbers, and a spinner with two options 'mode' is. When a button is pushed, then I need to compute to use different inputs with the 'Aperture' from the current selection and the value received from 'mode'. How do I call the value of the spinner so that I can use it in calculation? In addition, how do I select spinner mode to set this other value before using it in the calculator? To be more specific, if the spinner is set to small, then the value I use in the calculation is 0.015, whereas if big is selected then I need to use 0.028 My other Input editing is test view, so I have just been set up like this: input = (edit text) findViewById (R.id.input1); Input2 = (Edit Text) Search ViviBid (RID.Inline2); Input 3 = (edit text) Find VVBIID (RID.quarter3); Input4 = (EditText) findViewById (R.id.input4); Find Output = (TextView) VVBIID (RID Reset); Output2 = (TextView) findViewById (R.id.result2);

How many and which values can/should be unitless in CSS -

मुझे दो पता मार्जिन {0 ऑटो} पंक्ति -हाइट: 1.5; क्या कोई अन्य है? आपके पास वास्तव में आपके प्रश्न का उत्तर नहीं है, लेकिन मैं सिर्फ यह कहना चाहता हूं कि मुझे नहीं लगता कि आपको इकाइयों को छोड़ देना चाहिए, जब तक कि आप 0 का मान निर्दिष्ट नहीं कर रहे हैं। यह पढ़ने में आसान है और कोई अनुमान नहीं है ( दोनों ब्राउजर के लिए और कोई अन्य जो आपका सीएसएस पढ़ने वाला हो सकता है)। संपादित करें : इसे फ़ोरम से खींच लिया गया। वे सीएसएस गुण हैं जो निम्न के लिए पूर्णांक मान स्वीकार करते हैं: z- सूचकांक फ़ॉन्ट-वजन पंक्ति-ऊंचाई प्रति-रीसेट मात्रा तनाव पिच-रेंज समृद्धि

windows 7 - XP vs Win7 for programming enviroment :: -

Is there any difference between two OS in terms of being better for a development environment? This is probably subjective, so you can create this community wiki. But in reality, if you want to develop on the Microsoft Stack, you probably want the latest available operating system for that world. If you need to verify compatibility with the old operating system, then you can use XP in VM for most scenarios, except for unusual graphics applications. The primary reason is that you will usually be in touch with the current generation of UI conferences because it is always on your face, and you will have the current generation of development platforms working on the "evolving" environment, instead of being victimized Instead If you are not developing for Microsoft technologies (like you write mostly in Java or PHP or Ruby), then you do not pay too much attention Gay difference. Win7 has some features that make it easy to work with many windows ... Automatic group of

PHP date formatting -

I want to change a date with this format: 01/07/09 this Jen 07.09. How can I do PHP? Use to parse the value you have found, then it will be used in the format you want To output: counter date ("MD, Y", striptime ("01/07 / 09", "D / M / Y")); If you are on Windows, or use a version of PHP where Stripp is not available (& lt; PHP 5.1.0), then its Use instead, but be careful to ensure that your date is in a US English format (i.e. "01/07/09" means 7 January 2009, not July 1, 2009). In addition, if you are actually using jan mass , then use: Echo Stroller ( Date ("MD, Y", striptime ("01/07/09", "D / m / y"));