Posts

Showing posts from April, 2011

deployment - Changing the file in tmp directory does not pick up the changes automatically in JBoss 5 -

I wanted to convert jmp, xml, xsl files into TMP directory and these changes will be automatically generated by w / And restart the necessary page refresh was giving me the reflected change though it does not seem to work in Jboss 5.1.0. Can anyone help me get it in jboss 5.1.0? There may be an error in your JSP, edit it in eclipse, Eclipse will tell you that an error If so, fill it in the copy directory. If there is an error in it, then it will not be compiled and JBOSS using the previous version. Hope this works, it used to work for me, I was getting the same problem.

MySQL - Stored procedure with multiple result sets -

Using two selected statements in a stored procedure but it is returning only to the single selection statement table, both tables How do I get records to set me suggest? Ensure that you are using the extension in php to be able to get multiple results Resources from stored procedures - The standard PHP MySQL interface does not support it. Now from the start of the offline, it seems like a very good introduction to the class: The first thing to do is, do not treat those stored procedures as calls to you You should do general SQL queries, which come back as a result. The reason for this is that, when executed, a stored procedure gives you two results, one with the actual result and another that sends the status of the stored procedure (OK / ERR).

iphone - Simple XML parsing -

Is there an easy way to parse XML inside an iPhone app? I am right in the NSXLL parser and I have heard that these are only two choices in me. I just do not want to go under a long road, when there is something that I can use. gives a very good overview of the most common XML parser available for the iPhone (build-in and third-party) "post-text" itemprop = "text"> / P>

Visual Studio Designer: Opening XML files as a Grid (hidden feature) -

Once I found this add-in in VS2005, to allow me to edit XML files in Excel-like table view Was allowed. I can access it from within Visual Studio by right-clicking the XML file, click Open with, and then select Add-In then I will be able to read / write my simple XML in a simple table format . The way I remember it, this feature was sent with VS 2005, but was not actually registered with the "Open With" dialogue box, although the required DLL machine resident (VS 2005) Does anyone know where this DLL is? I had learned this secret from a blog post before, which I have lost for a long time, and doing so much, I have not installed any 3rd party software to make this file available to me. It may be possible that this VS Adder to the designer is still present in 2008, or 2010 ... but after searching for this feature for 3 years, I am only examining a conscience. Edit: And as an additional bonus, the dataset object was able to read / write this XML format, without a...

configure - How to link to a specific version of the standard library (with gcc) -

I have installed GCC 3.4 in / OPT / gcc3.4, and I'm using it to compile legacy code I am inconsistent with GCC 4. It means C (++) are older versions of standard libraries, binutils, and utility libraries. This works fine for some libraries, but libtiff fails compiling because it raises / system library in / usr / lib (see output below) it is an autotools / configurable problem , But I'm not sure I can not find any configured switches or environment variables, and I do not want to modify my system /usr/lib/libc.so How to ensure that it ignores / opt / gcc-3.4.4 / lib from the standard library, and / lib and / usr / lib completely? Output of the output: libtool: link: g ++ -share-nostedlib / urr / lib / critti.o / opti / gcc -3.4. 3 / LBB / GCC / I686-PC-LLDS-GNU / 3.4.3 / CRBBNSO. LBS / TIFIstreamOWL, --Volley-archive./port/.libs/libport.a-Wl-no-whole-archive -Wl, -rpath-wl, / home /jason/d0src34/prereq/ Tiff-3.9.4 / libtiff / .libs -Wl, -rpath -wl, / opt / gcc-3.4....

objective c - UITabBarController and switching from one tab to another through code -

I have a UITabBarController that controls two tabs, main and settings. Now, I would like, to switch some settings below the settings tab from the main tab (such that the user has to do this before using the app). I know that I can do this with AppDelegate, but my situation may be when I am running in main view. I have tried to do something like this: AppDelegate * delegate = [[UIApplication sharedApplication] representative]; Delegate.rootController.selectedIndex = 1; Where the root controller is a UTTB controller defined in my appellate. The result of the above code is that the tab changes (like the settings tab is actively shown) but it still shows the main view. I'm sure this is a simple solution that I should remember ... All suggestions are appreciated. You have tried: self.tabBarController.selectedIndex = 1; Controller in the first view?

Which authentication gem/plugin should I use for Rails 3 running on CouchDB? -

I am building a Rail 3 application on CHDB (using the systemic gem) and I want to use some existing gem / plugin for authentication instead of making it from scratch. The problem is, I work smoothly for CHDB, which can not be found, everything holds that you are running on ActiveRecord Do you have any suggestions? Try experimenting.

Pass arguments from array in php to constructor -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब आम तौर पर, अगर मैं चाहता हूं $ Myarray से $ somefunction के लिए तर्क पास करें मैं इसे php में call_user_func_array ($ कुछ कार्य, $ myarray) का उपयोग कर कर सकते हैं; हालांकि यह तब काम नहीं करता जब फ़ंक्शन एक कॉल करना चाहता है किसी ऑब्जेक्ट के लिए कन्स्ट्रक्टर है। काफी स्पष्ट कारणों से यह करने के लिए काम नहीं करता है: $ myobj = new call_user_func_array ($ classname, $ myarray); वहाँ काफी कुछ सुंदर है कि काम करता है ? आप प्रतिबिंब API का उपयोग कर सकते हैं: - दिए गए तर्कों से एक नया वर्ग उदाहरण बनाता है। उदाहरण: $ परावर्तक = नया प्रतिबिंब ('फू'); $ Foo = $ परावर्तक- & gt; नया इन्स्टेंसआर्ग्स (सरणी ('एफू', 'बार'));

vb.net - Visual Basic setting a global variable making my code DRY -

How can I customize my code to make it a dry approach? So I want to make my variables to be public / general I can use it again public class BasicForm retarded product 1, PRODUCT2, Product3, Integer Dim firstName, lastName String Private Sub btn_getValue_Click as (ByVal in as the System.Object, ByVal e System.EventArgs) handles btn_getValue.Click 'set variable' product 1 = val (tx_productfield1.Text) PRODUCT2 = val (tx_productfield2.Text) as calculate Product3 = val (tx_productfield3.Text) '' tx_totalValue.Text = product 1 + PRODUCT2 + Product3 end Sub end class May include anywhere and variable (product 1, PRODUCT2) that I set it once and want to move can easily reach other control I set alway variables to every control what I did before. Please advise. Thank you! I'm not sure I get your question, because you're working in a classroom Am right, but do you know your variables are variable variables? Your "product" variable should b...

indexing - Index a subdirectory of DocumentRoot Apache -

I have DocumentRoot enabled with option + index However, I can not find the sub-section of the document path through the browser How can I do this? Thank you. Maybe they do not read and execute the permission flag set? Try chmod ug + rx filename and make sure sub-aparts are related to Apache user.

which sql supports vista -

itemprop = "text"> There are windows vista in my laptop .. i have installed Visual Studio 2008 i need sql server ... i tried scllexpress 2005. It shows the issues of compatibility .. I go ahead, ultimately this error shows 1603 .. I give full rights to the directory where it is established .. help me .. Thanks long ago You can try that Neither is the latest version. It works fine for me on WinV .

gdb - Xcode "step in" debugger problem -

I have a problem when using the step in function - the debugger jumps into a header file that is not related to the implementation Function is working as expected for other tasks .. Do you have such problems before? What did you do to solve it? It is very strange .. I had never had such a problem before Xcode before I tried to disable compiling for the thumb option because I had seen it as a solution in other threads, but I still have problems is. Thanks for any help!

url rewriting - how to remove part of string from url for webalizer -

On my site, I use version-strings in the URL, for example: Www.mydomain.com/images/image.v7234872.jpg In the HTTP Configuration, I rewrite the URL so that the version string is truncated. How can I track URL again in Weblizer? Thanks to Oliver

iis - How to Create Virtual Diectory build asp.net web site using nant? -

I am trying to create virtual directories and develop asp.net projects. Can you tell me the solution You should be able to use "Mikisard" to create NantContrib your virtual directory: if you Want more control, you can use the custom nant works created by this man here: - Diego

iphone - Parsing Text Between Two Empty XML Elements in Objective C -

मुझे पहले से ही पता है कि सामग्री ( & lt; this & gt; सामग्री & lt; / this & gt; / कोड> उद्देश्य सी में, लेकिन मैं वर्तमान में एक वेब सेवा का उपयोग कर रहा हूं जो मुझे दो बंद तत्वों ( & lt; start-paragraph / & gt; सामग्री की आवश्यकता है & lt; end-paragraph / & gt; / कोड>) मैं किसी और के किसी भी उदाहरण के लिए ऑनलाइन देख रहा हूं, लेकिन मुझे कुछ भी नहीं मिला। अगर कोई जानता है कि दो खाली तत्वों के बीच कैसे पढ़ा और साझा करने की परवाह है, तो मैं इसकी सराहना करता हूं। / P> मुझे कहना है कि मुझे एक्सएमएल के दुरुपयोग के रूप में मानना ​​है। लेकिन मैं 'जाँच की है और दुख की बात यह है कि एनएसएक्सएलएल पार्सर (जो मुझे लगता है कि आप क्या उपयोग कर रहे हैं) अच्छी तरह से बनाई गई है। इसके साथ सामना करने में सक्षम होना चाहिए। आपको मूल रूप से जांचना होगा कि आप किस प्रकार शुरुआत में हैं तत्व और अंत तत्व इवेंट आपके में हैं। फिर -pa प्राप्त करने के बाद Rser: didEndElement: namespaceURI: qualifiedName: आरंभ-पैराग्राफ के लिए संदेश -parser: foundCharact...

Firefox crash instantiating NPAPI plugin -

I already had a complete plugin working as a very simple implementation with many global and stable variables, I have now changed it to an object based design, so I can safely instantify several instances. However, since I have done this, when creating an example of a plugin, it becomes MyScriptableNPObject :: NewObject () method, where it tries to call the createobject but never Also does not return and the browser crashes. ScriptableNPObject * ScriptableNPObject :: NewObject (NPP npp) {_DebugLog ("ScriptableNPObject :: NewObject"); ScriptTableNPOBject * Newbase = (MyScacheNOPObject *) NPNFunks- & gt; ProjectObact (NPP, & amp; _npclass); _DebugLog ("ScriptableNPObject :: NewObject - end"); Return new obz; } I'm getting some basic logging as a quick way to debug it and I can see that this method is expected from getValue (), but never end logs On getting out, something is obviously going wrong in the createobject (). I have defined my own a...

Query MySQL for permissions in PHP -

I have a site where a user can have multiple permissions (see, edit, delete, create). Each of these is stored in the database as a tint (1) field. I see that the user has the ability to view this page, Here's a snippet: $ user = mysql_real_escape_string ($ user); $ Resultset = mysql_query ("selectionback testbankAccess where UID $ user"); While ($ result = mysql_fetch_row ($ resultset)) {if ($ result [0] == '1') {Back true; } } return false; $ resultset = mysql_query ("Check with checkbackbackback access where UID = $ User LIMIT 1 "); $ Result = mysql_fetch_row ($ resultet) if ($ result [0] == 1) {back true; } I think it can not be fast (almost nothing is happening there) unless the UID is a key in your table.

query string - How can I read a QueryString in CodeIgniter? -

I know that has been asked before, but I need it for affiliate tracking ... How do I get that parameter and the $ _GET parameter mentioned in that URL? And yet, sometimes. A clear example is when you use the API that sends a post-back to your site (PayPal, etc.) The easiest way, in my opinion, You have to parse a server variable with the GET data required after the $ _GET erase (in my example, there is my GET data in REQUEST_URI.): parse_str (strstrchr ($ _ Server) ['REQUEST_URI'], "?"), 1), $ _GET); This framework allows the same functionality without requiring a global change in the settings Here is a usage example. Pgate Controller {Function Postback () {parse_str (substr (strrchr ($ _ SERVER ['REQUEST_URI'], "?"), 1), $ _GET; $ Receipt = $ this- & gt; Input-> Xss_clean ($ _ GET ['receipt']); }}

sql - How to show row numbers in PostgreSQL query? -

I want to show an overview number for each record received by a PostgreSQL query. I 8.4 can display this capability in windowing functions. select row_number () more than (by sequence & lt; region & gt; ), * Foo_tbl by command & lt; Field & gt; If the command is not necessary, then this answer may also be simplified: select row_number () over (), * - Notice: a field Not required from Foo_tbl

LINQ Question - Query -

I have a table which for example stores a cultural form for a particular key. RecordID Key CultureID Description 1 1 NG-B Hour 2 1 SS-ESHara 3 2 NBG Swimming I have been given this as an IEnumerable @ cultureID = "ES- I want to return the parameter of "ES" to the following In short, if the cultural version is present then return it to the given parameter, and then return the "N-GB" entry (which are present), can anyone help me with the LINQ query for this RecordID Key CultureID Description 2 1 es-ES Hora 3 2 n-gb swimming thanks You can use the fact that booolans sort in [false, true], so the following quer not the same en-GB , and then en-GB . var result = (where x.CultureID == cultureID = x.CultureID == "N-GB" order by x.Culture ID == "N-GB" x in variant in x Select) first (); If no "N-GB" entry is present for any key ( first is a demand for at least one record) then this query is an error Will, but y...

How to use nginx with PHP? -

What is a good way to use PHP with NGNX? From the search I found, maybe using PHP-FPM can be a good way to hand over PHP behind NGNX. We have the problem that the free web-based APIs we serve receive many requests (about 500K per day), requests are mostly small and small but Apache can take a lot of memory Used to be . I have to try nginx to see if it can be handled better. Thank you. Ubuntu Lucid 64-bit Install APT-Go nginx App-get updates install apt-go php5-cli php5-common php5-suhosin install dragon-software-properties Add-apt-repository PPA: brianmercer / php AppT-Mill Update & amp; Amp; ; Apt-get install php5-fpm php5-cgi restart /etc/init.d/nginx /etc/init.d/php5-fpm restart Editing (This may be needed in your site): location ~ \ .php $ {fastcgi_read_timeout 60000; Fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_param SCRIPT_FILENAME / var / www / site $ fastcgi_script_name; Includes fastcgi_params; } Place ~ /\.ht {reject al...

html - WMPlayer embed not playing video -

In my company, we link our site to a video provided by a partner company. They changed their video encoding from FLV to MP3 videos and the current video player does not play them on our site. We have changed it to a Windows Media Player, which is running our most popular Windows and Internet Explorer, the embed code we have used is: & lt; Object & gt; & Lt; Embed type = "App / X-Empler 2" plugins = "http://www.microsoft.com/Windows/MediaPlayer/" name = "videoplayer" ShowStatusBar = "false" EnableContextMenu = "false" autostart = "true" width = "426" height = "285" loop = "false" src = [video_url] /> & Lt; / Object & gt; I see WMPlayer displayed on the site and plays video, but my clients only display the player and the video does not play. We have updated the Flash plugin to our customers and still nothing. What can be the problem? You have to install addition...

pointers - dealloc or releasing best practice in objective-c? -

मैं बस ऑब्जेक्ट्स को बस के रूप में जारी करता हूं: [myObj release]; मैंने दूसरों को देखा है: [myObj release]; MyObj = शून्य; क्या बाद वाला अधिक फायदेमंद है क्योंकि अब उस पॉइंटर का कोई संदर्भ नहीं होगा? यह सुनिश्चित करने के लिए है कि अन्य लगातार संदेश जो myObj पर भेजे जा सकते हैं अपवाद नहीं फेंकें। संदेश को शून्य पर भेजना संभव है उद्देश्य-सी अन्यथा, myObj अभी भी मेमोरी एड्रेस को इंगित करता है जहां यह है और इसे एक्सेस करने से BAD_ACCESS त्रुटि हो सकती है ।

asp.net mvc 2 - JQuery validation based on class? -

I have a form that has dynamically created elements, one of those date types will be on my form There may be many fields of this type, all of which are valid. I am using a properly typed sequence in asp mvc, so the name will change based on various factors. I am valid on the basis of class name instead, because it will be stable for that type of field. Ie: & lt;% = html .textbox ("question greetings [" + index + "]. Reply", qa.AnswerValue, new {@class = "DateTypeClass"})%> Then I will need JQuery validation based on the classname DateTypeClass versus the name. Any thoughts? You can check the value in your verification job: Var dateFieldValue = $ (".DateTypeClass") Val () .; // valid dateFieldValue here Additionally you do not need to select by class if you do not want to. If any other fields do not share this validation, you can choose from jquery partial ID. It will look like this: var dateFieldValue = $ (...

jquery - How to avoid validation loop? -

I have a form that has two checkboxes, "A" and "B" and the form that broke down in stages is. If "A" is checked and not "B" then I need to display a warning when the user clicks on the next step button, only once the form prevents the form from progress. ("(": "(": "(" "" (":") ("(": "A") ("(Czech") and $ ("b").) {Warning ("foo");}) ; How can I do it only once, which displays the alert, the user clicks on "OK" to close the closure and allow progress through the form Thank you var userHasBeenAlerted = false; if ($ ("": "A ") (": Check ") and amp; amp; amp; $ amp; $ (" b ") (": no (': check') "& user! True; warning (" Foo ");}); Yet And I do not really follow it, what do you mean with 'breaking steps', page reloading etc.? If such a case sets it ...

javascript - how to make fancy scroll -

How to make fancy scrolls? Something like this image There is a code to show the fancy scroll bar in the body, in which you can get it under any control - & lt; HTML & gt; & Lt; HEAD & gt; & Lt; STYLE TYPE = "text / css" & gt; HTML, body {scrollbar-face-color: # 00BD66; Scrollbar-arrow-color: # 000000; Scrollbar track color: # 000000; Scrollbar shadow color: # 000000; Scrollbar-highlight color: # 000000; Scrollbar-3dlight color: # 000000; Scrollbar-darkshadow color: # 000000; } & Lt; / STYLE & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / HEAD>

jquery fadeIn not working -

Can anyone tell me what I'm doing? Style: . Humor {boundary: 1px solid # F0AAAA; Background: #FFBABA; Color: # C90000;} Markup: & lt; P class = "warning" & gt; A successful authority already exists. At this time more authorities are not allowed. & Lt; / P & gt; Script: $ (). Ready (function () (warning ($ (".warning") .HTML ()) // WORKS $ (".warning"). Fadein (4000); // does not work}}; Unless the element is hidden, no fade will occur, you need something like this: > $ (). Excluded in +, you should use $ (document) or a smaller version, such as: $ (function () {$ (". ") Hide. FadeIn (4000);}); The option element is to give a display: any initially not it is JS-disabled Users may break, or if JavaScript errors may be to prevent fade, then you can try to run clear from this perspective.

.net - Formatted string parsing and updating -

I need to replace the special marked placeholders in the string with the value I similar to the string. Formats, but in a slightly more advanced way For example: Input String: "Binding Path = @ Welcome to the City!" @Sitite's value should be "Boston" output string "welcome to Boston". I can successfully parse the input string with regex and get the value. But I'm just using the string to update the string. Replace If there is a better way to handle updates for such a follower then am I notorious? But you really only need it if you need a match (ex: multiple {binding path- City} to see a number of places to convert to a string.)

wpf - How can I use SnapToDevicePixels and StrokeDashArray -

मेरे पास निम्न XAML कोड है: & lt; पथ डेटा = "M0,0 एल 12 0 एल 12 12 एल 0 12 जेएम 6 एल 6 12 एम 6 एल 12 6 "स्ट्रोकडाशअरेरे =" 1 1 "स्ट्रोक =" ब्लैक "स्ट्रोकटिचनेस =" 1 "स्नैपटोवडिवाइस पिक्सेल = 'ट्रू' & gt; & lt; / पथ & gt; हालांकि यह मेरी स्क्रीन पर बुरी तरह लग रहा है। क्या कोई समाधान है? यदि आप एक कुरकुरा, धराशायी पथ चाहते हैं और आप रैंडरॉप्शन। एजीजोड को घोषित करके इच्छित परिणाम प्राप्त करने में सक्षम हो सकते हैं, तो पट्टी की चौड़ाई के बीच एक डैश गिरने से पथरेखा को बीच में ढकने से ढांचे को रोकने के लिए ओलिपिड के रूप में: & lt; पथ डेटा = "एम 0,0 एल 12 0 एल 12 12 एल 0 12 जेएम 6 एल 0 एल 6 12 एम 6 एल 12 6" स्ट्रोकडाशअरे = "1 1" स्ट्रोक = "ब्लैक "स्ट्रोकटिचनेस =" 1 "रेंडरऑप्टेशंस। एड्जमोडा =" एलेटेड "& gt; & lt; / path & gt;

outlook - Can I change the Sender's name in an email already sent on an Exchange Server? -

अगर मुझे john.doe@aol.com से एक ईमेल मिलता है और मैं प्रेषक का नाम जॉन @ मैडोमेन को बदलना चाहता हूं I कॉम, मैं यह कैसे करूँगा? क्या मैं उस ईमेल को संशोधित कर सकता हूं जो पहले से ही सर्वर पर रहता है? मैं ईमेल को अग्रेषित नहीं करना चाहता ... बस इसे जगह में बदलें । मैं एक ऐसे एप से खुश हूं जो एक्सचेंज सर्वर से जुड़ता है और यह करता है, या कुछ ऐसा जो मेरे आउटलुक क्लाइंट में चलता है जो इसे सर्वर पर बदलता है। यह सिर्फ एक मूल अनुमान है, लेकिन आप निम्न प्रयास कर सकते हैं: एक imap आधारित ईमेल खाता प्राप्त करें अगर आपका एक्सचेंज अकाउंट भी इंपैप है तो उस पर भी ठीक होना चाहिए। यदि यह एक खाता है जो एक्सचेंज खाते से अलग है, तो आप उस मेल को इंपैप इनबॉक्स फ़ोल्डर में कॉपी कर सकते हैं। उस खाते को जोड़ने के लिए थंडरबर्ड का उपयोग करें एक बार जब आप अपने IMAP खाते को सिंक्रनाइज़ कर लेते हैं, तो आपको अपने स्थानीय हार्ड ड्राइव पर मेल होना चाहिए (अपने थंडरबर्ड प्रोफ़ाइल फ़ोल्डर में)। यह संभव है कि आप इसे वहां संपादित कर सकें और इसे अपने IMAP सर्वर पर वापस सिंक्रनाइज़ कर सकें। वहां, इसे अपने एक...

Kohana ORM relationships question -

मेरे पास टेबल हैं: उपयोगकर्ता {id, name} projects {id, name} roles {id , नाम} प्रोजेक्ट_उसेर्स {आईडी, यूज़र_आईड, प्रोजेक्ट_आईड, रोल_आईड} मेरे पास मॉडल हैं: प्रोजेक्ट {परियोजनाओं के माध्यम से कई उपयोगकर्ता हैं} उपयोगकर्ता {परियोजनाओं के माध्यम से कई परियोजनाएं हैं} प्रश्न : एक प्रोजेक्ट के लिए मुझे उपयोगकर्ता भूमिकाएं कैसे मिलती हैं? या हो सकता है कि मुझे मेरी तालिकाओं का पुनर्निर्माण करना पड़े? कोड: $ project = ORM :: कारखाना ('प्रोजेक्ट', $ id); $ उपयोगकर्ता = $ प्रोजेक्ट-> प्रयोक्ता-> खोज_पूर्ण (); विदेशी मुद्रा ($ यू के रूप में उपयोगकर्ता $) {$ भूमिकाओं = $ यू-> .... इस उपयोगकर्ता के लिए और इस परियोजना के लिए सभी भूमिकाएं कैसे प्राप्त करें? } प्रोजेक्ट_युजर्स तालिका प्रोजेक्ट्स पर भूमिकाओं का प्रतिनिधित्व करती है, उस मॉडल से जुड़ी एक अन्य मॉडल को जोड़ती है। : एक उपयोगकर्ता की एक भूमिका में एक परियोजना है} उपयोगकर्ता {के पास कई परियोजना_ले ...} प्रोजेक्ट {के पास कई परियोजना_लओ ...} फिर आप ऐसा करने में सक्षम हो सकते हैं: $ user = ORM :: कारखा...

iphone - iOS Universal app iPad launch images not being used -

I'm following the iOS Programming Guide "to" provide images Launch various orientation and not get my iPad the specific launch images for the work I am if I read the docs, then "default ~ iPad page" to be taken as the projection image if I launch my app in the iPad simulator, but instead " Default of "default.png" Doing industry. If I say to run the simulator as an iPhone4, then it uses my "Default@2x.png" correctly. But it just leaves me more confused why the iPad version is not working. Nobody knows how iPad-specific launch images work? A few ways to do this is from the "iOS App Programming Guide" my preferred method providing images launch various orientation: in Info.plist, code> UILaunchImageFile set Make: Files in your bundle using this naming structure: Code> & lt; Basename & gt; & Lt; Orientation_modifier & gt; & Lt; Scale_modifier & gt; & Lt; Device_modifi...

Access and Change PHP MySQL Fields Easier -

I have a PHP web application, where the user logs in, a bunch of different properties associated with them in the MySQL table it happens . What I want to do, is something like this: $ obj = mysql_fetch_object (Mysql_query ("select user from where userid = '$ id'")); Then, if I want change or access properties, then I want to do something like this: $ obj-> Password = "newpass"; ek $ obj- & gt; password; However, now what do I have to do if I want to change the user's password then I have to: mysql_query ("User User Safe Password = 'newpass' where user id = '$ id' "); Is there an easy way to do this that takes less code? Thanks for any help in advance. I found - very simple and easy to use.

mono - MonoDevelop command line compile a solution -

The problem is as follows: I have a monodevelop project (ASP.NET) on your development workstation. I am currently on a customer site, without my regular development environment on my laptop (regulatory burden). I have SSH access to my development workstation, but the network X11 simply too long to manage I need to make a slight adjustment and compile again. I, xbuild try to use an effect: Qdot @ trigati ~ / SVN / proj / trunk / proj $ xbuild proj.csproj XBuild engine version 2.6.4.0 Mono, version 2.6. 4.0 Copyright (c) Marek Sierezky 2005-2008, Novell 2008-2009. MSBuild: Error MSBUILD0000: /home/qdot/svn/proj/trunk/proj/proj.csproj: imported project: "/usr/lib/mono/xbuild/Microsoft/VisualStudio/v8.0/WebApplications/Microsoft.WebApplication.targets "Not in existence. ? What are some features that could trigger rebuild Monoded source code Obviously the code builds through the GUI. mdtool construction proj.csproj

c# - Using LuaInterface - ERROR_DLL_INIT_FAILED -

I am trying to integrate Luah into my managed code, using LuaInterface. I am using lua51.dll which came with the downloading assembly, but when I try to create a new lua object, the manufacturer fails with ERROR_DLL_INIT_FAILED or HRESULT 0x8007045A. I checked that what I'm building as x86 can be the problem? Maybe you're mixing 32 bit and 64 bit? Is it possible that you have a different version in your path? Try to run with high privileges. Change your DLL to ol>

Android Download Zip to SD card? -

I have a 100 meg zip file that I need to download when the app starts first. It has to be opened with the SD card (400 megapixels). I do not need to touch the phone's storage, because on the phone's storage, 400mg will not be free in many phones. Can it be done (any one example?) thanks, Ian can be done What exactly are you looking for? Regular downloads or how to check? Here is the download method, so you should run it in an AsyncTask either. / ** * This locals * downloads a remote file and stores to download @param from the remote URL of the file * Where to store the file * the ultimate for local path (For string from string) @throws Exception Read / Write Exceptions * / Fixed Private Zero DownloadFile Exception {HttpURLConnection Conn = (HttpURLConnection) throws new URL .openConnection (); Conn.setDoInput (true); Conn.setConnectTimeout (10000); // timeout 10 seconds conn.connect (); InputStream input = conn.getInputStream (); FileOutputStream fOut = New Fi...

Google Maps API v2 vs Google Maps API v3? -

Google Maps API v2 vs Google Maps API v3? Why did Google create a new one? What prons and cons? Which one to use? Thanks Coming to sub-closing overlay classes, Google Maps v3 Most of the time, most of the time when you have some custom overlays on your map, it will start with lag, which means that it is unusable in most cases. Version 2 is very much, very fast for real purposes. Unfortunately it is no longer supported: (

asp.net - How to check the Condition here -

& lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ ('# पाठएडिट')। क्लिक करें (फ़ंक्शन () {$ ('# ObnAdd')। Val ('सहेजें');}); & Lt; / स्क्रिप्ट & gt; & Lt;% (Html.BeginForm ("बनाएँ", "ओब्नटेक्स्टकंपनेन्ट्स", फॉर्ममैथ। पोस्ट, नया {@id = "TheForm"})) {% & gt; मुझे अवश्य जांचना होगा अगर मेरे ओबनाबेट बटन टेक्स्ट जोड़ना है, तो ऐक्शन रीसल्ट बनाएँ यदि बटन पाठ बचा है तो मुझे एक्शन रेजिल्ट बचाए जाने की आवश्यकता है .. धन्यवाद आपकी टिप्पणियों से ऐसा लगता है कि नियंत्रक पक्ष पर बटन के मूल्य की जांच करना बेहतर है क्योंकि आप अपना एएसपीएक्स कोड बाद पृष्ठ लोड नहीं बदल सकते। तो, अपने नियंत्रक में आपको ऐसा कुछ होना चाहिए (सुनिश्चित करें कि आपके ओब्नैड में नाम = ObnAdd है): सार्वजनिक कार्यवाही SaveCreate (FormCollection फ़ॉर्म, स्ट्रिंग ObnAdd) {यदि (ObnAdd == "सहेजें") {// Do save} else अगर (ObnAdd == "Create") {// Do Create} // यहां रीडायरेक्ट करेंअक्शन या जो भी...

vb.net - Sending Mail Failure: SMTP Exception -

I hope that you will help me today I would like to develop a mail application using vb.net For this, I have written the code below. This code throws an exception ("SMTP exception") String = "Report Claims as Public Function SendAnEmail (ByVal MsgBody as String) "Dim MsgFrom string =" amolkadam.a@gmail.com "Dim MsgTo string =" amolkadam.a@gmail.com "Try as dimmsgsubject as' a new MailMessage slow message New Net.Mail.MailMessage (MsgFrom, MsgTo, MsgSubject, MsgBody) to send messages in the message 'Create a SmtpClient New SmtpClient Send Email as Dynamic MailClient ("219.64.91.90") '= Local Machine IP Address' Use Windows Credentials of the current user mailClient.UseDefaultCredentials =' Optional User Assurance near the mail message mail server mailClient.Send (MSG): String.Format MessageBox.Show (("Message subject successfully sent from {1} to {2}", MsgSubject, MsgFrom, MsgTo), "Email", ...

database - Password protect a page without db access with php -

Is it possible to password protect a page without access to DB? I only have some pages but I should be able to change passwords and save session etc. And I want a safe way because it is for the production site! How to submit it to MD5 after config.php: If this is a good idea, is it a way to restrict access to this php from a single script, which is called check.php or something else? Sure, why not? You can use flat files in the inaccessible directory (protected by .htaccess or secured with www root) and can be used as a database. Here is a simple entry class that I have killed: class simple login {personal $ user; Private $ db = './pass.txt'; Function __ construct () {$ data = file_get_contents ($ this-> db); If (! $ Data) {dead ("DB can not be open"); } And {$ this- & gt; User = unassigned ($ data); }} Save the function () (if (file_put_contents ($ this- & gt; db, serialize ($ - user)) === false) ('Could not save data');} Auth...

data binding - WPF - How to bind to a Dependency Property of custom class -

I'm once again in WPF binding hell :) I have a public class ( treatment ) Is as follows: Treatment of public class () {... public ticker socktime real; ...} inside ticker is a dependency property: public class ticker: framework element {// value string As shown in the Dependency Property for public static reading, IntervalProperty = DependencyPrint. Registrar ("display interval", typef (string), typef (ticker, blank); Public String Display Interval {get {return (string) GetValue (DisplayIntervalProperty); } Set {Set Value (DisplayIntervalProperty, value); }} ...} In my app, a single treatment object has been created and should be easily accessible in XAMML ( app). Xaml ): & lt; Application Resources & gt; & Lt; ResourceDictionary & gt; & Lt; U: treatment x: key = "current treatment" /> & Lt; / ResourceDictionary & gt; & Lt; /Application.Resources> Now, I need to bind the dependency property Soak...

java - How to change from while to for loop -

मेरे पास एक jsp फ़ाइल है जिसमें निम्नलिखित कोड है: & lt;% जबकि ( Rsnext ()) {// rs परिणामस्वरूप% & gt; & Lt; tr bgcolor = "# एफएफएफएफएफएफ" onMouseOver = "this.bgColor = 'सोना';" onmouseout = "this.bgColor = '# FFFFFF';" & gt; & Lt; td width = "3%" & gt; & lt; span style = "font-size: 8pt" & gt; & lt;% = i + i + 1% & gt; & lt; / span & gt; & lt; / td & gt; & Lt; td width = "10%" & gt; & lt; span शैली = "फ़ॉन्ट-आकार: 8pt" & gt; & Lt; a href = "cir_view.jsp? Cir_id = & lt;% = rs.getString (" cir_id ")% & gt; और मैं लूप को लूप में बदलना चाहता हूं मैंने यह कोशिश की लेकिन, मैं cir_id के लिए मूल्यों को पुनः प्राप्त करने की कोशिश में फंस गया था। यहां मेरा कोड है: & lt;% के लिए (int j = 1; j & lt; = totalcols; j ++) {% & Gt; & lt; tr bgcolor = "# एफएफएफएफएफ" onMouseOver = ...

.net - Why structs cannot have extern properties, but methods are OK? -

निम्न कोड का निरीक्षण करें: [attributeUsage (AttributeTargets.All)] सार्वजनिक वर्ग XAttribute : विशेषता {} सार्वजनिक संरचना ए {[एक्स] सार्वजनिक स्थिर extern int xx {get; }} यह संकलन नहीं करता है। त्रुटि संदेश कहता है संशोधक 'extern' इस मद के लिए मान्य नहीं है लेकिन, निम्न कोड ठीक संकलित: [AttributeUsage (AttributeTargets.All)] सार्वजनिक वर्ग XAttribute: विशेषता {} सार्वजनिक संरचना ए {[एक्स] सार्वजनिक स्थिर extern int GetXX (); } क्यों ??? संपादित करें दोस्तों, दोस्तों मैंने यह नहीं कहा होगा कि मैं इसके लिए एक वास्तविक आवेदन नहीं कर रहा था। मैं समझता हूं, केवल शैक्षणिक रुचि यह समझने के लिए कि कुछ चीजें क्यों परिभाषित की जाती हैं कि वे किस तरह से हैं, कुछ ऐसा नहीं है जो हम में से कुछ प्रेरित करता है, इसलिए यहां पृथ्वी प्रेरणा के नीचे है। मेरे पास एक PostSharp विशेषता है, जो कि गुणित एक्सटर्न संपत्ति में एक निश्चित तर्क प्रदान करता है। विशेष रूप से, असली कोड ऐसा दिखता है: [लॉगगरएवेशप्रॉपर्टी] निजी स्थिर एक्सटेंशन अलोग लॉगर {get; } जहां PostSharp ल...

c# - Building web services and updating client application with MSBuild -

I have a solution that includes two projects (web service and client applications). When I created the solution, I need to manually update the web reference (web service proxy). Is there any way to automate it with MSBuild? You should be able to create a proxy for yourself. You just have to get all the parameters right.

oracle - Jet Database and pass-through queries, parameters -

I am connecting with Jet 4 DB via Odyssey. Jet DB has used pass-through questions to Oracle DB. It works so far (direct P-T questions can not be used, but there is a trick by creating an opinion on the query). I need some subsets of data provided by P-SS. Parameters will be the best, but not supported. Two questions: 1) Where the jet seems to be able to push something from the oracle. For example, I have a passthrough query that returns 100k rows. With a single flirting section on Pete (such as "District = '1010'"), a scene is very fast, so processing takes place at the oracle. Adding more cloud can slow down the query, looping for minutes with high CPU usage. Is there any documentation on what has been passed on the jet side and what has been done? 2) How to create dynamic passphrase with VBA / Access There are lots of tutorials to make it possible to do with Jet (or anything with that effect) carried through Odyssey? Thanks Martin Edit: Sorry to be...

java - how can we call JDBC code function from another application? -

How can we call the JDBC code function from other applications? So that we do not have to write the JDBC code repeatedly Just put it in the classpath (if distributed Jar is required in the taste of the file) and import . This problem is not particularly related to JDBC, but in general it is only in Java. To reuse the code, you need to do all that is in the room and import the appropriate class and call the appropriate method.

android - How do I return to a calling activity if the user presses BACK? -

मेरी मुख्य गतिविधि एक बाल गतिविधि है जिसमें एक ListView होता है। हालांकि यह ListView (एक AsyncTask के माध्यम से) पॉपुलेट किया जा रहा है, एक अनिश्चित प्रगति पट्टी दिखाई जाती है। हालांकि, यह मानते हुए कि मैं एक अधीर उपयोगकर्ता हूं और मैं बैक बटन दबाता हूं, प्रगति बार रद्द कर दिया जाता है, लेकिन मुझे एक रिक्त स्क्रीन के साथ छोड़ दिया गया है। मुझे मेन लाइब्रेरी में वापस जाने के लिए एक और बार वापस जाना होगा। मैं ऐप को सीधे वापस केवल एक बार दबाने से मुख्य गतिविधि पर वापस जाना चाहता हूं। क्या कोई मुझे सही दिशा में बता सकता है? मुझे लगता है कि मुझे finish () कहीं कॉल करना चाहिए, लेकिन मुझे नहीं पता कि इसे कहां रखा जाए। अग्रिम धन्यवाद! डायलॉग पर उपयोग करें (जो प्रगतिशील दलाल फैली हुई है)।

ruby - Why am I getting Net::SMTPSyntaxError? -

I am trying to install Sinatra based Ruby App to connect to Gmail and send emails via SMTP. I have followed the instructions given on the web, but I always get this error: net :: on SMTPSyntaxError / contact 502 5.5.1 unrecognized command. K30sm7454901vbl.19 * file: smtp.rb * location: check_procession * line: 930 being lifted from this core ruby ​​file / System / Library / Framework / RUB / Framework / 1/8 / UR / LIB / RUB / 1/8 / Net / SMTP RB In Check_Prown ... and here is the method that does this: def check_production (res) until res.success happens? Raise.exception_class increase, res.message end end Can anyone tell me why this is happening and what am I doing? Thanks in advance! may be useful, where the author states that Google's SMTP requests the use of TLS SMTP does not support Lib Different Thinking There is also one.

javascript - Applying DIV/Span tag to a word by specific co-ordinates -

नमूना HTML डेटा & lt; body style = "width: 300px; "& gt; & LT; h3 & gt; लंबे समय पाठ & lt; / h3 & gt; कुछ पंक्तियों से ग्रंथों को संग्रहीत करने और प्रदर्शित करने के लिए एक सरल उपकरण सर्च बटन सर्चक्लासेस में सूचीबद्ध वर्गों के सदस्य से संबंधित सभी शब्दों को उजागर करेगा, वह स्वयं केसेट क्लास के सदस्य भी होगा। हाइलाइट किए गए शब्द हाइपरटेक्स्ट हैं संपादित करें wscripts / acedb.editor को आमंत्रित करता है, जो डिफ़ॉल्ट रूप से emacs को लॉन्च करता है उस फ़ाइल को उसके स्थान पर एक अन्य संपादक को प्रारंभ करने के लिए संपादित करें सहेजें emacs से ठीक हो जाएगा, लेकिन इसे नष्ट नहीं करेगा। पढ़ें एक पाठ फ़ाइल पढ़ा, ताकि आप इसे खोज सकें ** सामान्य ** grep खोजशब्दों की तुलना में लाँगटेक्स्ट्स के एक सेट को एनोटेट करने का एक तरीका है। यह एक ऐस फाइल बनाता है जिसे आप एक्सरेएफ से जीन आदि के लिए XREF बनाने के लिए फिर से जांच कर पढ़ सकते हैं और फिर पढ़ सकते हैं। & Lt; h3 & gt; वर्ल्ड वाइड नोटपैड & lt; / h3 & gt; वर्ल्ड वाइड नोटपैड माइक्रोसॉफ्ट के नोटपैड क...

Visual Studio to load Qt source code for debugging -

I compiled QT 4.6.2 from the sources of VS 2008. Now I would like to take action in Qt sources. Debugging my application How do I raise VS infrastructure sources? I forgot to mention that QT was created statically, and I do not get any .pdb files. I believe that all the required data should be included in debug .lib files? Did you compile the debug version of Qt? To do this, you must give debug or debug-and-release arguments to the configured step. I believe that even for the stable version, you will get PDB files.

ruby on rails - Best practice for displaying data the user might not have -

I got Ruby on Rail App where I do the following: @ User = User.find (: first,: conditions => ['lower (user name) =' ', current_ subdomain. Downcount] ,: = include:> bio) : Included =>: Bio 'is the important part. Then in the scene, I want to display some bio: & Lt;% = @user .bio.title% & gt; & Lt; / Em> & Lt; Br / & gt; & Lt;% = @ user.bio.city% & gt; & Lt; Br / & gt; & Lt;% = @ user.bio.state% & gt; & Lt; Br / & gt; & Lt;% = @ user.bio.country% & gt; But if the user does not have any information then it will replace some blank lines. I have tried some different things, no one has worked so far ... & lt;% if @ user.bio.title% & Gt; # Is always correct & lt;% if @ user.bio.title & gt; 0% & gt; # Triggers an error if @ user.bio.title is not set & lt;% as long as @ user.bio.title.empty? & Gt%; Like the above Any solution to display data to the u...

.net - Event Handlers in Constructors - Is it Possible or Even Wise? -

I have an object that can take from second to second to start up to two minutes. The reason for this is that the manufacturer receives data from a webservice, which can be for several megabytes of kilobytes, and may vary greatly depending on the speed of the user's connection, for this reason I include events. I want to handle the progress notification. This is my question: Can I place event handlers in the controller or should this type of action be done with the loading method? For example: Public class MyObject {public event event handler & lt; UpdateLoadProgressEventArgs & gt; UpdateLoadProgress; Public MyObject (int id) {background worker bgWorker = new background player (); BgWorker.DoWork + = Representative (Objects, DoWorkEventArgs args) {// Load data and update updates as updated UpdateLoadProgress (this, New UpadteLoadProgressEventArgs (progressValue)); Result = some value; } BgWorker.RunWorkAsync (); } The result of public spacing {get; Set; }} Ho...

django - Widget filling values in two fields -

I know that if I need a custom "selector" for a field in the DjuiceAdmin, then create a custom widget is required. But what if the widget has to create two values, for example, the X and Y coordinates, how can I fill them in the model from two different areas? Janice Leadl had released a widget long time ago. As far as I remember, it took coordinates from a map and gave it an area and some javascript was cut into 2 coordinates for 2 areas. It should work quite well with a custom

delphi - Assign the contents of a blob field to combobox items -

I have a list of country names or other strings in the TextBab field. When I read the fields, Returns a string with LfCr between Is there an easy way to assign this string to the item for the property of TComboBox ? I am using TADOQuery on a FireBird 2.1 database. Regards, Peter If you have found LFCR between phrases Simply specify the string for the property, which is a string that takes a string and divides it into individual items on line breaks.

Using ruby to find frames in a binary protocol and store each frame in an array -

I have a binary file, many of which are frames each frame starts with FF FF FF, after which - There is random data of different lengths. For example: FF FF FF XX XX XX XX ... FF FF FAF XX XX XX XX XX XX FF FF FX XX XX XX ... .ff ff ff xx xx xx xx xx xx xx xx xx xx xx xx xx ........ It is safe to assume that FF FF Only random data as it will appear in the frame header part. I am looking for a way to parse this binary file and remove each frame from the array using ruby. Can anyone help? For Ruby 1.8, you can simply split the input string on "\ xFF \ xFF \ xFF" Are there. The first entry will be before the first frame, and with such a format you can not know whether the last frame is full or not. They are quite simple, however, to remove: input.split ("\ xFF \ xFF \ xFF") [1 ..- 2]

ios4 - IPhone 4 images Local vs Server? -

So I'm researching how to handle different resolutions on the iPhone screen. In the document, found here: They say that using a naming convention and doubling the number of your property is how to do it. It's all well and good for local images, but do not discuss how to get images from a server. Should I ask the device resolution before dragging the appropriate images from the server? Is it just that easy? "post-text" itemprop = "text"> iPhone 4 is pixel twice as the old device If your image is crisp on iPhone 4, then your image is twice Must have pixels. Therefore, to test it, you test which device is and drag the image to the right solution.

php - There is a way to get all keys of the array? -

I want to get all the keys of the array, comparing each key to a number, something like this: array ([0] => 7 [1] => 8 [2] => 4 [3] = & gt; 6) If (6! = Aare's Everything) {therefore ...} does not show this condition because there are [3] => 6 and key 6 = 6 courses. Is there a function to do this? anything else? . foreach ($ array as $ key) = & gt; $ Val) {if (6! = $ Key) {// so ...}} Example: $ Array = array (7, 8, 4, 6); Forex currency ($ key as $ key = & gt; $ val) {if (6! = $ Key) {echo '6 is not equal' $ key '& lt; Br / & gt; '; } Else {echo '6 equals' $ key' & lt; Br / & gt; '; }} Result: 6 equals 7 6 6 is not equal to 6 is not equal to 6 6 is equal to 6 If you want to check that value exists out of 6, If (in_array (6, $ array)) {// is present in array 6}

linq - If Entity Framework is meant to work with POCOs, then why the dependency on IObjectSet? -

I'm hearing about EF 4.0, POCO, IOBJet, UnitofOffwer (By the way, UOW less than 17 years old I have heard it before) etc. So some people talk about the repository "pattern" etc. Many bloggers are performing a "cover" or a repository or similar similar concoction, but they all require IObjectSets (or in some cases - IQueryables) so that they can close their POCOs. Hope you can write questions against them. So if anyone needs iobagets and does not need just ILIT or any other simple collection, then we are saying that it is free from POCO and EF? If I want to swap EF from the bottom, then I need to make sure that my "other" O / R Mapper (I know I know .. EF is not just O / R Mapper ) IObjectSet understands and can be able to parse, draw conclusions from expression questions and otherwise behave like EF. IObjectSet does not have an interface that makes POCO a unit, it is just the strong container IObjectSet. Poko means to prevent you from receivi...

jquery - multiple inputs with similar names -

Then I have some input with name session and they increase ... session 1 session 1 session 2. If I want to run them through a loop, how will I do this? I am using jquery. For example for (i = 0, i & lt; 10, i ++) {var num = (session + i) .value + I ; } So what do I want to go through all the inputs with the prefix session and output their values ​​in the loop and variable. It can be carried out in an array if the array clearly looks more. num [i] = accessories + i; Thanks. OK, I'm going with javascript. Thanks for all the help it works great here was the last code. get the function () {var alldata; Var value = []; $ ("Input [name = = 'media']). Each (function (i, anInput) {var check = value [i] = $ (anInput) .attr ('checked'); if (check == true) {Var ID = "session" + i; var type = $ (anInput) .attr ('value'); if (i> 9) {var cont = "#ex" + i;} and {var cont = "[Name = '" + id + "']...

html - How do I modify the jQuery cycle plugin for a two image slideshow instead of one? -

The idea of ​​a slide show looks like this: Except that instead of three there are two images. Apart from this It is what I have to make. However, when you press 'Next' and 'Previous', I want to move each image to second place and vice versa. The code will look something like this: & lt; Div id = "slideshow" width = "100%" & gt; & Lt; Div class = "slide" & gt; & Lt; Img src = "image1.jpg" width = "43%" & gt; & Lt; Img src = "image2.jpg" width = "43%" & gt; & Lt; / Div & gt; & Lt; Div class = "slide" & gt; & Lt; Img src = "image3.jpg" width = "43%" & gt; & Lt; Img src = "image4.jpg" width = "43%" & gt; & Lt; / Div & gt; & Lt; / Div & gt; jQuery looks like this: $ ('#slideshow'). Circle ({fx: 'wipe', timeout: 0, prev: '# left-arrow',...

c# - Calling method on Master page from WebMethod -

"itemprop =" text "> or any viable alternative solution. So, imagine a master page that the tool IFooMaster with a method ShowFancyMessagePopupTheBusinessCantLiveWithout (string message); I am on a page that receives this master page, if a checkbox is unchecked, I want to send a message to the user that if he saves it, then some administrators Can not check the checkbox again without action. I have been given feedback that I can not use just one alerts ('message'); In Javascript because they want to show these messages continuously Next, I tried to make an AJAX call through PageMethods to show a message (as all the use of this codebase Does). My problem lies in this method being frozen. ("IFooMaster Master") .ShowFancyMessagePopupTheBusinessCantLiveWithout ("You think that's unchecked, you can re-check it. can not do. "); } Since ShowSuperImportantMessage () is stable , I can not use master from within . The ...

vb.net - Vb2010 - Snake Game Issue -

I am currently making a "snake" game in VB2010. I am using the picture box to make a snake. The snake runs fine and this apple is fine. But when I change the snake left or above then only displays the first 5 sections of the snake. When the snake travels right or down, it displays the entire snake. I'm stumped completely on what's happening. To transfer the snake, here is my code. I proceed as an integer to move the body of snake (= 1) 1 phase (-1) snake (I). X = snake (i - 1). X Circle (I). Y = snake (I-1). Sa Nagbadi (I). Place = new point (nominal). X, snake (I). Y) Snake (i) Serpent = Serp (I-1). On progressing I run 'snake head forward' if left in snake (0). Place = 1 then snake (0) .x = snake (0) .x - 20 snapbody (0). Place = new point (snake (0) .x, snake (0). Y) 'move if other snake (0) .fing = 2 then snake (0). Y = snake (0). Y-20 Snakebird (0). Location = new point (snake (0) .x, snake (0) y. 'Moves right ales of snake (0) .ising =...

Android: How to give focus to a background Activity belonging to a different task? -

Say that the user has started my app and then stopped using the browser (so we have 2 jobs are ongoing tasks). After some time, something happens to my app that requires user attention, so it posts a notification to notify the user. In your notification, you make an intentional call to start your app, if you ensure that it has the following flags then it will bring up instead of creating another example: intents contentient = new intent (this, ABC. Square); ContentIntent.setFlags (Int. FLAG_ACTIVITY_CLEAR_TOP | INTENT.FLAG_ACTIVITY_SINGLE_TOP);

sql server 2008 - How to best write a SQL SPROC to clone table rows but changing select fields -

Assume that I have the following table feed field 1 field 2 1 dennis 1 F. Mac 2J ClownBaby 1K Charlie 3T frank 7DD And I want to move all the rows in the first line with 1 and with a number in the same table I would like to incorporate the logic for my stored procedure so that if I take my stored procedure As said in the form of a small colony (1,8), I would end up with a table with Feed field 1 field 2 1 Denis 1f Mac 2J Clonebaby 1 with Charlie 3T. 7D D8A Dennis 8F Charlie of Mac 8 create process Select the rollclone (@fidtoclon int, NNAFID int) as the table (FID, Field 1, Field 2) @NulfFide, Field 1, from the field 2 table where fID = @fIDTo Clone You might want to add an extra check to make sure that you do not make regular duplicates. However, you did not mention what the unique key on the table exists.

JavaScript prototypes -

संभव डुप्लिकेट: इस तरह एक प्रोटोटाइप बनाने में क्या अंतर है: दिनांक.फू = फ़ंक्शन (बार) {अलर्ट (बार); }; और यह: दिनांक.प्रोटीटिप.फ़ू = फ़ंक्शन (बार) {अलर्ट (बार); }; क्यों / जब मैं या तो का उपयोग करना चाहिए? में पहला उदाहरण, foo एक कन्स्ट्रक्टर विधि है, इसकी तरह जावा में एक 'स्टैटिक' विधि। दूसरा एक वर्ग पर एक विधि foo को परिभाषित करने की तरह है - इसे उदाहरण के लिए स्कॉच किया गया है। आप पहले जैसे date.foo () और दूसरी तरह दिनांक d = नया दिनांक () d.foo () या किसी अन्य विधि में दिनांक की तरह this.foo ()

iphone - iOS app, classes suddenly vanish, crash in alloc -

It's odd to turn on and off as I'm working on my application, this problem is popped up, and Then it has always disappeared mysteriously. Today it is refusing to disappear. My app uses two view controllers to handle automatic rotation Occasionally, purpose-can not find my classes. For example [OneViewController alloc] will crash I have added a function to capture this situation, and even if I call it before running a line of my code, things still break down Are there. I take it to prove that whatever is wrong, it is not from any bad code written by me. Anyone have any idea why universality will not be a stable? Unverified Universal Goodness () {id portrait_class, landscape_class; Portrait_class = NSClassFromString (@ "OneViewController"); Landscape_class = NSClassFromString (@ "Other ViewController"); NSLog (@ "Checking Goodness: Portrait% @, Landscape% @", Portrait_class, Landscape-Class); If (portrait_class == NiL) Landscape-class == z...

x509certificate - Preventing Duplication of the x509 Certificate Used on a WCF Client? -

WPF and WCF apps require the installation of a certificate (.pfx) on the client side, which enables WPF to call. I WCF service. How can I stop the client from exporting certificates from their certificate store (so that they can get the .pfx file and not install it on other client computers)? Generate alert for WCF Generate a Certificate Authority Ratio Make-up R-PPN-N "CN = MICA" "My SSR Location Messine Mayrut Janakrakt.Saar -a Make a self-signed P-Export Create a private key generated by Mark -S topic certificate stores name which store output certificate -SR content certificate store location The file that you generate from is popped up in that machine's personalized serous store. This file is for you to give your server / client a trusted root authorization (T click on TT) as imported Export the proof with the private key to use it on the server, so you can create a CA certificate on the open MMC, certificate A Click on D-On, Pers...

mvvm - Deciding whether to pass a Model or a Repository/Service to my View Model? -

I will come repeatedly against this decision and I will constantly stagger on what kind of approach. Many MVM example models are being seen as models of the model. Therefore each VM is connected with a model. To make a logic and VM to get the model back, "elsewhere" is outside of VM, the model should know how to change it. The second option is to pass some kind of reference, service or store through VM and VM decides which model is needed, the implication is that VM is a long life and many different models It can be reused to display. Did any rule come with any rule to work best for any scenario? Generally a view model is defined as a scene on a model, i.e. It exists in mediation between model and scene. Although a visual model is completely possible, which is sufficient for mediation for many model types, reverse is true in practice and multiple visual models may exist for a model model, especially in such cases Where a model is needed to be sung in various p...

Send Audio data with SMS in android -

I am trying to send an audio file converted to a byte array with SMS using SMSManager.sendDataMessage. But, I'm unable to send it to another phone. Is there any suggestion how can I do this? SMS text based message is for 160 character limit, but you sender sender = new intent (int. Action_snnd); Try to do something like that. SendIntent.putExtra ("sms_body", "some text"); SendIntent.putExtra (Intent.EXTRA_STREAM, Uri.parse (url)); // url will point to MP3 file sendIntent.setType ("Audio / MP3"); Good references:

java - How to interrupt another thread from a monitor Thread -

I know that this is a sick advice, but even then I interfere in a thread that is hanging from one another Trying to check a method of giving thread that is keeping time. What I'm doing: I'm starting the monitor thread before the suspicious network operation. This thread keeps track of the time when it started and if the time is greater than the threshold value, then it kills the thread which initially started it. To inform this new thread, the object of that thread is monitored, the object of the new thread is to kill the thread. In short, it happens: Now, the problem is that, it is not working for any reason, calling itself Binder. Land. [Note: uppercase letters denote the names of the thread] me Looks like there's something wrong code (unless I found your imagination not true) the code follows the expectation of the code (sorry for the terrible nested structure): The output was: is going to be interrupted in C.B is interrupted. C is still alive ... i...