Posts

Showing posts from May, 2013

c# - GroupBy in LINQ -

I need a table group by month The query is made in this way: var query = from db.bt to db.facts where a.Count_Key == b.Date_key new {A.Month, b.Fact_key}; From this query I'm trying the month group query = query.GroupBy (x => x.Month); Grid1.DataSource = Query; Grid1.DataBind (); Then I get the following error which says: Can IGrouping int be converted? In IQueryable You can: Var query2 = query.GroupBy (x => x.Month); Grid1.DataSource = query2; Grid1.DataBind (); The problem arises because the var query is inherently assumed by its use. query type IQueryable & lt; SomeAnonymousType & gt; and GroupBy method one IQueryable . These are just two different types.

Deleting from Multiple Isolated Storages - windows phone 7 -

I currently compile an item and a history compilation are both separate .at files. The savings and performance work well for both of these different storage, though the problem occurs when I try to delete something from the item, I also want to delete all the items from history ITEMCollection is out where the item items are indexed in the history item I Update: There may be something like this in the item compilation: History item collection can look like this: a B b So if I remove b (itemIndex 1) then I want to remove both of them in history ItemCollection . I can remove items from items. The compilation is okay, but history throws ITemCollection errors. int i = 0; (I = 0; i & lt; = App.ViewModel.historyItemCollection.Count-1; i ++) {If (App.ViewModel.historyItemCollection [i] .VehicleId == (Current as application.App) .hhicleIndex } {App ViewModel.historyItemCollection [i] .remove (i); }} App.ViewModel.VihilitesExclosure [(Current as applicatio...

dreamweaver - Javascript won't display? -

This is probably a silly question, but for some reason I can not find JavaScript to display on my pages. I'm trying it on both Notepad and Dreamweaver, and testing them using the local host in XAMP, but it can not be displayed to check it. I have tried to do this with just a few very basic code to see if it works, something like this: "document.write (" & lt; b & Gt; UTC Time: & lt; / b & gt; "+ utctime +" & lt; br / & gt; "); hours = now go. Mins = now.getMinutes (); Secs = now. GetSeconds (); document.write ("& lt; h1>"); Document.write (hours + ":" + minute + ":" + sec); document.write ("& lt; / h1> gt; ; "); But nothing is available at this time, only one HTML header which I keep. I was hoping someone had There was a suggestion. now = new data (); is it New date () can be? If so, it will remove a reference and close its code.

Django: How do you force an app to use a non-default database from the settings.py? -

Django can use many database engines at the same time My problem is that the questions always reference the default database . How do I solve it? I think this is powerful enough for your needs, but if you need more flexibility, you can use the "

navigation - Displaying/Nesting MediaWiki pages in Wordpress? -

I googled already and tried myself for the day without results. How is this possible for MediaWiki in WordPress (both latest stable versions)? What I've got (and it's not too much) is for older versions of MW and WP, ​​such a work does not seem to be a plugin or tutorial. The HTML (dotspay, etc.) gets spoiled by simply adding the files to MW. What should be done basically: Use WordPress headers, menus and backgrounds for navigation and design and use MediaWiki to display content. Is there any difficulty to achieve this? You must load the wordpress structure (via wp-load.php) in your MediaWiki templates. Follow the instructions here:

c# - TimeSpan FromMilliseconds strange implementation? -

मैंने हाल ही में एनएटी टाइमप्न कार्यान्वयन में कुछ विचित्र व्यवहार का सामना किया है। टाइमस्पेन परीक्षण = TimeSpan.FromMilliseconds (0.5); डबल एमएस = परीक्षा: कुछ मिलिसेकंड; // रिटर्न 0 FromMilliseconds पैरामीटर के रूप में एक डबल लेता है। हालांकि, ऐसा लगता है कि मान को आंतरिक रूप से गोल किया जाता है। अगर मैं 5000 टिकों (.5 एमएस) के साथ एक नया बार-बार प्रारंभ करता हूं, तो कुल Milliseconds का मान सही है। TimeSpan को देखते हुए परावर्तक में कार्यान्वयन से पता चलता है कि इनपुट वास्तव में लंबे समय तक लगाया जाता है। माइक्रोसॉफ्ट ने क्यों नहीं किया है कि एक लंबे पैरामीटर के बजाय डबल पैरामीटर ले जाने के लिए माइक्रोसॉफ्ट ने क्यों डिजाइन किया है (क्योंकि इस कार्यान्वयन को दोहरे मूल्य बेकार है) ? पहला विचार सोच रहा है कि उसने क्यों दो बार रिटर्न के रूप में चुना है मूल्य। लंबे समय का उपयोग करना एक स्पष्ट विकल्प होता। यद्यपि वहां पहले से ही पूरी तरह से अच्छी संपत्ति है जो लंबे समय तक है, हालांकि 100 नैनोकेकंडों की एक इकाई के साथ टिक्क्स स्पष्ट नहीं है। लेकिन उन्होंने दोहरा लि...

c# - session object is null after update -

I am populating an object model with a linq query. The model looks like this: MyModel {Date time from the appointment {get; Set;} Intel TotalAppoints {get; Set;} obtaining environments {receive; Set;}} The linq-to-sql query looks like this: public stable GetAppointsFromDB (parameter) {var MyQuery = from ... .where ... Select new MyModel {AppointDate = ..., TotalAppoints = ..., AppointDuration = ...}; Return microdel as mycodel;} In the master page, I want to load the result of this question in session: If (session [ "Appointment"] == faucet {session ["appointment"] = GetAppointsFromDB (...);} When I run from code, the session is always nullified. I added this line a second time, just right after that, and the query runs again. When I'm looking to use the session at some other point in the code, then it is also zero there also the query works because when I put a breakpoint on the return statement, the object is filled in properly is. Plea...

jsf - Richfaces ExtendedDataTable selection question -

Take a look at Please help You will see a "car market" table with multiple selection support. You will also notice that one of the selected rows appears in bold. What does this bold line mean? Is it somehow managed by the org.richfaces.component.UIExtendedDataTable or any other RF class? That line does not have to find an API. What am I trying to do, to create a new item to support Bean and emphasize the table selection to point to the newly created object. I have been able to set the selection through setSelection () , but I have no control over that bold line, it remains in the previous state, please help. The bold style for the selected row is sent by the stylesheet with Richface. Each theme has its own stylesheet in Richface Enriched: Expanded DataTable . For example, rf-edt-r-Sel or rf-edt-r-act defines the style of the selected row, you You can override by declaring the style for those style category names where you rich: Extended DataTable ...

regex - How to find (* comments *) using Java's regexp? -

I do not know how to work with '(', ')' and '*' which may be in the comment is . Comments are multiline. This is a simple pattern to handle: \ (\ * (*. *)) * * * Example: You may also want to set a single-row flag, (? S ) \ (\ * (* *.) \ * \) Note that these cases are not a code such as (* in the string, or other Strange combination. Your best bet is to use parses, for example, which is ready ().

Haskell: Catching exceptions from Data.Binary.Get -

I have received the following code: Import data. Binary L importable control as L. Exposure as X = Mainly = L. Pack [1,2,3,4] E.catch (E.evaluate $ runGet getWord32be dat) (\ _ -> return 0) (return 1) putStrLn "Done" I get the following error: Expected type `m1t - & gt; Io GHC against the 'estimated type' MA Ford Word 32 'Ek' Doo Express' in an STMT: E.Kech (E.Alvite $ Rangergate Virus 32 BA DAT) (\ _ - & gt; Return 0) (return 1) But I can not understand what is mismatched, can anyone illuminate? Hold only two arguments you are giving it three.

internet explorer 7 - Half of link is working the other half is not IE7 -

If you take a look at this page with IE7; You will not be able to click on half of the link, any body holds an idea about it? Edit: I do not know how I can explain this situation. Some arbitrator, by not having enough information about my last question, My problem is that when I I have put a link in that white area, so I can not click on them for some reason because nobody has any idea why does 7I do? It seems that you have a lot of z-indexs being used that you Try to manipulate the z-index of your links, whether you're giving them some space behind them ...

java - android failed to make .apk on using ant debug -

I have built an Android project on the command line using the Android tool. After adding the ADL file while using the command (AT debug project name), the "IIPC" present in the "IIPC" project is giving RO "IIFC" You should just issue the AT debug command and nothing else is incorrect AT debug project name .

Inserting integer and datetime from PHP to MySQL 5.0 db error -

I have tried to figure out what is wrong. The table is conditions_loop. A column is condition_id, and the second is a date time type. This code is $ dt = date ("Y-M-DH: I: S"); Mysql_query ("Insert under conditions (status_it, date) value (latest code, $ dt)" or die (mysql_error ()); $ Latest code is 1 digit integer. The error says there is an error in your SQL syntax; I tried to do everything, but it's something that I'm not doing, manual that matches mysql server version for my simulator, near '13: 12 : 14) Use. To know Thanks for reading. You should quote the date value: Mysql_query (" Condition_loop` (`condition_id`,` date`) values ​​('$ latest_condition', '$ dt') ") or die (mysql_error ()); And when you are on it, quote table / field names by using backtakes (`)

c - Swap pointers instead of memcpy -

edit : I'm sorry for your mistakes in my code snippets, now I have both outputs I was the only one to see. Below is an edited version. Let me assume that I have a structure: typedef struct {char m [5]; Four f [6]; } Couple; and a single file containing the RomeoJuliet that I read in an array: char * data = malloc (11); FILE * f = fopen ("myfile", "rb"); Fred (data, 1, 11, f); Fclose (f); When I need to fill my structure with a byte array, then I always use this code: coupical titanic; Memcpy (& Titanic, data, sizeof (data)); Printf ("% s and% s", titanic.m, titanic.f); It works fine, but in fact my byte array can be very large, so here's my attempt to customize my code below. COUPLE * titanic = (COUPLE *) data; Printf ("% s and% s", Titanic-> gt, titanic-> f); So, my questions are: (obsolete) Why do I get different outputs? (obsolete) How can I fill out a composition by simply casting from a...

C#/C++ - Memory Leak -

I have no C + + DLL ( no serial code / .pdb is available for c + + DLL ) in production. It is being called by the C # application with the help of P / Away mechanism. Now, there is a leak in C + + DLL. And, after executing 20-22 times, the application crashes every time now, how can I handle this way that I continue to use C + + DLL with leak from the C # app? For me, if this is perfect for changing / changing of C ++ DLL, and you If there is no problem in the P-Invov layer, then the only option iif's display is acceptable / em> DLL calls in an executable communication with the main one with an IPC (for example Remoting) so that you Can be forced to recycling in the hosting process. This approach will work only when you call c ++ dll, it is not very grainy. One way to do this with less effort is to host a C ++ call by cresting a web service (if calling C ++ as a web service always happens during execution) , Then host it, specify a recurring basis depending on the s...

Java Guassian Distribution-Bell Curve -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैंने गणना और एसडी की गणना की है मूल्यों का एक सेट अब मुझे जावेवा स्विंग में सामान्य वितरण दिखाने के लिए उन मूल्यों का उपयोग करके एक घंटी वक्र आकर्षित करना होगा। सूची: 204 297 348 528 681 684 785 957 1044 1140 1378 1545 1818 कुल गिनती: 13 औसत मूल्य (मीन): 877.615384615385 मानक विचलन (एसडी): 477.272626245539 अगर मैं एक्स और वाई कमांड को प्राप्त कर सकता हूं, तो मैं यह कर सकता हूं, लेकिन मैं उन मानों को कैसे प्राप्त करूं? सबसे पहले आपको सेट के लिए विचलन की गणना करना होगा। विचरण को अपनी माध्य से प्रत्येक संख्या का औसत चुकता विचलन माना जाता है। दोहरी विचरण (डबल [] आबादी) {लंबी एन = 0; डबल मतलब = 0; डबल एस = 0.0; के लिए (डबल एक्स: आबादी) {n ++; डबल डेल्टा = एक्स एक ???? मतलब; माध्य + = डेल्टा / एन; S + = डेल्टा * (एक्स सा मतलब); } // यदि आप एसटीडी विचलन रिटर्न (एस / एन) की गणना करना चाहते हैं; } एक बार जब आप यह मान लेते हैं कि आप अपने वैल्यू सेट की तुलना में अपने ग्राफ रिज़ॉल्यूशन के आधार पर एक्स का चयन कर सकते हैं और...

php - sending session id with uploadify -

I want script_id to be sent to uploadify using script data, I am trying the following in jQuery code: 'scriptData': {'session_id': '& lt ;? Php echo session_id (); ? & Gt; '} and at php $ session_id = $ _REQUEST [' session_id ']; But the problem is that instead of getting session ID, I get this value If I try php code in script.data without quotation marks, then this syntax returns error. Can someone please help me how I can send the session_id price? Thank you. It seems that your PHP is not being executed in JavaScript code. It is possible because it is in a javascript file, not in any PHP. The simplest (and worst) solution would be to move that code to a PHP file in order to execute that PHP.

asp.net - ODP.NET VB.Net calling a stored procedure and returning a refCursor -

Text after " This problem has driven me crazy more than a day now. I can make a connection to the database, I execute SQL and that's the result in itself, but I can not seem to call a stored procedure. Here is the code New MyCMD as the new OracleCommand Dim TheDataReader as new OracleDataReader myConnection1.Open () myCMD.Connection = myConnection1 myCMD.CommandType = CommandType.StoredProcedure myCMD.CommandText = "WS_DATA_LAYER .select_user_groups "myCMD.Parameters.Add (new OracleParameter (" id_user ", OracleDbType.VarChar2)). Value = "Txa" myCMD.Parameters.Add (new OracleParameter ("ws_rs", OracleDbType.RefCursor)). Direction = ParameterDirection.Output 'has tried every single execution function and none of the work is done here' either error thrown or empty refresher myCMD.ExecuteScalar () TheDataReader = myCMD.Parameters (1) .Value () GetDataReader () At this time, the problem lies in the execution slaler. It is t...

javascript - How can I *unpack* an object into a function's scope? -

मेरे पास यह कोड है ... फ़ंक्शन ए (विकल्प) {for (var आइटम विकल्प में) {if (options.hasOwnProperty (आइटम)) {continue; } यह [आइटम] = विकल्प [आइटम]; }} A ({'abc': 'def'}); । हालांकि यह ऑब्जेक्ट से चर को अनपैक करता है, यह उन्हें वैश्विक स्कोप ( window से जुड़ा हुआ है) के कारण सेट करता है क्योंकि यह तो इस स्थिति में विंडो है। फ़ंक्शन के बाद मैं अलर्ट (एबीसी) कर सकता हूं और यह डीईएफ , जो अच्छा नहीं है। मैं फ़ंक्शन के चर का दायरा कैसे सेट करूँगा? यदि आप वस्तु के गुणों को समारोह के दायरे में रखना चाहते हैं, तो आप के साथ का प्रयोग करके दायरे को बढ़ाएं : फ़ंक्शन एक (विकल्प) {के साथ (विकल्प) {// `विकल्पों` के गुण हैं I दायरा चेतावनी (एबीसी); }} अस्वीकरण :। इसे टाला जाना चाहिए और इसे भी बहिष्कृत किया जाना चाहिए: के साथ का उपयोग करना अनुशंसित नहीं है, और इसे ECMAScript 5 सख्त मोड में मना किया जाता है अनुशंसित विकल्प ऑब्जेक्ट को असाइन करना है, जिसकी संपत्तियों को आप अस्थायी चर में एक्सेस करना चाहते हैं। तो प्रश्न क्यों options के साथ...

charts - Android :: BitmapFactrory Cuts off image -

Image
We are trying a prototype using the Google Charts API. http://chart.apis.google.com/chart?chf=bg,s,000000&chxs=0,FFFFFFF00,9.5&chxt=x&chs=500x300&cht = P3 & amp; Chco = 3072F3 FF9900 | 80C65A | 990,066 & amp; nbsp; CHD = T: 50,5,5,40 & amp; Chdl = 50% C2% B0% 20Apples | 5% C2% B0% 20Oranges | 5% C2% B0% 20Dates | 40% C2% B 0% 20 Strawberry and CDLP = B & CP = 0.1 Problem The problem is that when we look at the chart in the browser, it displays the mythology but when we get the bitmapfactor to an image in an image view or SD card Legends disappear to download (this happens even when the legend is placed above, down, left or right). Code Private bitmap loadchart (URL url) {bitmap chart = zero; Try {HttpURLConnection httpConnection = (HttpURLConnection) url.openConnection (); HttpConnection.setDoInput (true); HttpConnection.connect (); InputStream = httpConnection.getInputStream (); Chart = Bitmap Feature Encodestream (is); } Hold (IOExcep...

c++ - int main() running constantly -

I'm new to c ++, so I apologize if this is a stupid question but I do not seem to answer Could it For a while I have been using the processing and want to start using C ++ because I have heard that it is fast and the program I created is too long / dense for processing to run at the right speed . In processing, there is a setup zero which runs once and then draw zero which then runs continuously. To make a remake of a program in C ++ (a chess AI) I need to use it and I need it. Is there a way to continuously run the intestine? If it does not happen, then I call a function that will go continuously? Besides, is there a way to pop up a program, when you run a program that can attract geometry? (I will need to make pieces that can be ideally manipulated by the mouse) The way I am using Xcode main () should usually be set up and then start the main message processing loop provided by your toolkit. . The message processing loop will continue to run until the user requ...

android - Implementing Custom adapter -

Text after " I am creating a custom adapter, simple stuff and it has exploded on the public integer getCount () of adpater. I do not know what I'm remembering? The public class extends GREVocabulary activity {/ ** is called when the activity has been created first. * / @Override Public Zero onCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); // set color mlayout.setBackgroundColor (Color.WHATEVER); SetContentView (R.layout.main); & Lt; String & gt; Alphabetslsit = arrays.asList (getResources (). GetStringArray (R. W. Alphabet)); Spinner Spinner = (Spinner) Find VVBIID (RID Spinner); {Try AlphabetAdapter Adapter = New Alphabet Adapter (This, AlphabetSit); Spinner.setAdapter (adapter); } Hold (exception e) {Log.v (e.toString (), e.getMessage ()); }}} Public Class Alphabet Adapter Extends BidAPP Extender SpinnerAdvertiser {Private List & lt; String & gt; Aplhabetlist; Personal reference references; Public Alphabet Adapter (reference ...

c# - Problem in MaskedTextbox using for Persian date input -

In Persia (Iran), when we want to write a date, first we write the day of the month, for example For 18 we write months of the year, for example 6 and then we write our year for example, and the text should be 1367/6/18. I have added a masked box in my form (right tool = yes; mask = 00/00/0000) (RightToLeft = Yes; RightToLeftlayout = True) The data input format is correct but it is 18/06/1367 Displays data as What is the solution? You can change your mask to use spaces between numbers and slashes: 00 / 00/0000 In this way you can enter the value of the previous one, but the display direction is the same: 1367/06/18 Explain this behavior

problem in showing latitude longitude location in an android app -

The following is the code I use to locate the location and location of the location in my app, but it always shows No location found I've added permissions to the manifest file { LocationManager locManager; SetContentView (R.layout.main); LocManager = (LocationManager) getSystemService (context.LOCATION_SERVICE); locManager.requestLocationUpdates (LocationManager.GPS_PROVIDER, 1000L, 500.0f, locationListener); Location Location = locManager.getLastKnownLocation (LocationManager.GPS_PROVIDER); If (location! = Null) {string param = (string) locManager.getProviders (true) .get (0); Location People = locManager.getLastKnownLocation (Ultimate); Double latitude = location.getLatitude (); Double longitude = location.getLongitude (); }} New zeros with Private Zero Update {location location} {text view myLocationText = (TextView) findViewById (R.id.widget52); String latLongString = ""; If (place! = Null) {double lat = location.getLatitude (); Double LNG = location.get...

public key - How to find plain text from RSA cipher text -

मेरे पास एक आरएसए सिफर टेक्स्ट है c , सार्वजनिक कुंजी (e, n) । (जहां c = m ^ e mod n ) अब मुझे भी सादे टेक्स्ट m जाना चाहिए "1234XXX" या "12345XXX" , जहां "XXX" एक 3 अंकों की संख्या है। क्या मुझे पता चल सकता है कि कौन सी 3 अंक संख्या? (मैं सिर्फ जानना चाहता हूं कि पहले भाग "1234" या "12345" है, और मुझे परवाह नहीं है कि XXX क्या है ।) आप ऐसा नहीं कर सकते (यह एक प्रकार का पता-सादा पाठ हमला है)। (समान समान पाठ संदेश समान एन्क्रिप्टेड संदेशों का उत्पादन नहीं करते हैं) आप कुंजी पर कोई भी जानकारी प्राप्त नहीं कर सकते हैं और न ही सादे टेक्स्ट पर। आपके मामले में, जहां आपके पास सार्वजनिक कुंजी है, तब भी आपको संबंधित एन्क्रिप्ट किए गए संदेशों को खोजने के लिए, सभी संभावित सादा इनपुट संदेशों (ब्रूट बल) को एन्क्रिप्ट करने के लिए मजबूर किया जाता है।

php - Need a formatted a output from the following code -

मुझे एक सरणी आउटपुट को यह [[1, 26], [3, 16], [ 3, 17], [4, 27], [4, 26]] निम्नलिखित php mysql कोड से शामिल करें ("db.php"); $ विला = $ _GET ['विला']; $ Sql ​​= mysql_query ("से अनुपलब्ध_डेटा से, अनुपलब्ध_डेटा को विला से WHERE नाम = '। $ विला।"' '"); $ Json = "["; जबकि ($ परिणाम = mysql_fetch_object ($ sql)) {foreach (डॉलर का परिणाम $ फ़ील्ड = & gt; $ value) {$ a = विस्फोट ("-", $ value); $ Json = $ json '[' $ A [1]। ','। $ A [2]। '],'; } $ Json = substr ($ json, 0, स्ट्रेलन ($ json) -1); } $ Json = $ json ']'; प्रतिध्वनि $ json; वर्तमान कोड निम्नलिखित परिणाम देते हैं: [[03,08], [03,10] [03,15], [03,20]] क्या कोई मुझे बता सकता है कि मैं दूसरे और तीसरे सरणी तत्व के बीच एक अल्पविराम कैसे जोड़ सकता हूं धन्यवाद $ json = substr ($ json, 0, strlen ($ json) -1); को $ json से पहले लाइन पर होने के लिए "itemprop =" text "> = $ Json ']'; । ऐसा दि...

android - how to display images stored in application directory -

"/ data / data / com.package / images /" में संग्रहीत छवियों को कैसे प्रदर्शित किया जाए निर्देशिका में एक ग्रिडव्यू। चरण 1) फ़ाइल से एक बिटमैप को तैयार करने योग्य बनाएं: बिटमैपड्रॉउबल डी = बिटमैपड्रॉउबल.क्रेडिटप्रथमपथ ("पथ"); चरण 2) इस अनुरुप ग्रिड आइटम के छवि दृश्य पर यह चित्रण सेट करें। ImageView iv = नया ImageView (this); iv.setImageDrawable (drawable); ग्रिड दृश्य में छवि दृश्य कैसे सेट करें, कृपया इस लिंक का संदर्भ लें:

Android Augmented Reality (AR) Concept -

I'm new to Android's infected reality. If anyone knows AR concepts, then please help me. There is a very good library for AR - there is also a port for Android -

Large dataset in memory - .NET Framework and C# -

I have a DLL project that creates the singleton of all the display strings used in my application. I need reference of this DLL for problem in many freely running applications. I understand that if I refer to the DLL project in all the freely running applications, they will load all the DLLs in memory and the individual singles they can mention, but this There is redundancy I want to save. Is there a way that I can keep an example of this singleton in memory and can refer it to all independent projects? I think I can be stupid and it is loading, not at all, but I am searching for about an hour now.) I'm using it As with Net Framework target language with C # I will not bother myself with memory consumption. Actually there is a problem. We do some simple math 2 ^ 13 (8192) strings 2 ^ 3 (8) has 2 ^ 16 strings, and if a string is the average size of 2 ^ 8 (256) characters, then the total number of bytes for all applications 2 * 2 ^ 24 (32 MiB), there should be no p...

javascript - Problem with at sign in div name -

I have a page in which there are some divisions, each div ID starts with the word divfor and then there is a suffix . These suffixes come from databases just like divorjon, divorjam ... etc. My problem occurs when I try to load something in that division, causing this problem if it contains @ sign, therefore, if I do something below: $ ("# divfor" + divsuffix) .html ('some text goes here.'); If there is a divname divforjohn , but if there is a divname divforjohn @ x , then it does not make any problem. > So, how can I address the ID on which his ID is signed @ Or its a range / jquery / bug? Thx. element with javascript in id = "divforjohn @x" You can do this via document.querySelectorAll or via jQuery / Sizzle) to @ , like this: $ ( '# Divforjohn \\ @ x') Demo: In addition, the accepted answer is incorrect ??? This ID naming rule states that HTML 4 was included in the device. The thing is, Browsers have never im...

java - Internal Server Error - Python CGI -

I am currently writing a CGI script that has an end goal of running a Java program and then on a separate page Being redirected. However, when I try to run the Java program, CGI 500 internal server error causes I have tried OSSystem ("[Command"]) and call (["command"]) and subprocess. Popen ("command") and all three are asked to crop the same issue. Edit In addition to this, Apache log does not tell me any information only by saying that there is an invalid header. Edit #! / Usr / bin / python # import cgi module import cgi import random import os import system import re-import subprocess # essential header which tells the browser html render print "content-type: text / html \ n \ n" form = Cgi.FieldStorage () userID = random.random () print "& lt; html & gt;" Print "& lt; Title & gt; Results & lt; / title & gt;" Print "& lt; body & gt;" Command = "java [classname]...

lex - Regex with letter in range abcd at least once -

How do you write a regular expression that will return all the words in which each sequence character (such as ABCD) Thanks! thanks for using Lex with % {%} delim [\ t \ n] ws {delim} + lc [az] %% {ws} { / * No action taken * /} (? = {Lc} * a) (? = {Lc} * b) (? = {Lc} * c) (? = {Lc} * d) {/ * some code * /} %% Using letterheads, the existence of all the letters in one word A simple pattern to check: \ b (? = \ W * a) (? = \ W * b) (? = \ W * c) (? = \ W * D) \ w + \ b instead of ^ ... $ you want \ b ... \ b , If you want to valid the word Capture , and you want to change the \ w in your acceptable alphabet. Each (? = \ W * a) token has a look - it checks that the letter and a a are ahead, but not advance - The next situation is checked from b , then start again. For example: See also: Also see: Also See: P>

how to dynamically create controls for GridView DataTemplate in WPF? -

मेरे पास एक ग्रिडव्यू नियंत्रण है: & lt; GridView & gt; & Lt; GridViewColumn हेडर = "नाम" चौड़ाई = "500" & gt; & LT; GridViewColumn.CellTemplate & gt; & LT; DataTemplate & gt; & Lt; स्टैकपैनेल ओरिएंटेशन = "क्षैतिज" & gt; & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & LT; /GridViewColumn.CellTemplate> & Lt; / GridViewColumn & gt; & Lt; GridViewColumn DisplayMemberBinding = "{बाध्य प्रकार TypeName}" हैडर = "प्रकार" चौड़ाई = "100" / & gt; & Lt; / GridView & gt; पहला कॉलम ("नाम") के लिए , मैं एक तंत्र रखना चाहूंगा, जब हर रिकॉर्ड बाँध किया जाता है, एक तरीका होगा (उदाहरण के लिए ईवेंट), ताकि मैं गतिशील रूप से जोड़ सकूं StackPanel पर नियंत्रण। उदाहरण के लिए, मेरे डेटा में AnimalType नामक कॉलम है, अगर यह एक बिल्ली है, तो मैं StackPanel पर एक छवि जोड़ूंगा; अगर यह एक गाय है, तो मैं एक फिल्म चलाने के लिए एक मीडिया तत्व डालूंगा;...

xml - Uploading 4GB file to Amazon-S3 -

I am doing some very simple data mining (in fact, only one verb), as for my undergraduate program Research project. I am going to use the Amazon Lowish Map Raidus. I have 4 GB Need to upload XML file. What is the best way to do this? Upload small zip files and in some way unzip them in the bucket? Or upload a split file, and then use all the small files for mapping work? Thank you You should put this XML into a sequence file and bzip2, Or it should be decompressed in bzip2 and cloud.

asp.net session dissappers -

I have a strange problem: I have a site on which there is an administrative system in the system There is a way to edit my input. To make it easy, I can search to find their ID. The problem occurs when the page postes the variation of the session back, I hold the "Login" value, nothing happens .. and I am being thrown out why this is happening is? EDIT: This works for a coworker, but not for me .. Besides, it does only on certain inputs. P> EDIT2: I get an exception but it does not say that, only "property evaluation failed" says I get it on this code line: feedback. Redirect (". / Admin.aspx? Search =" + u.FirstOrDefault.ProductID.ToString, False) and If you If you experience an exception, your session may restart Edit on your update : Make sure you create eccount == 1 global globally and set breakpoints in app_error, session_end and session_start events . , Because FirstOrDefault will throw an exception, if the calculati...

vbscript - Error: ActiveX Component Can't Create Object Scripting.FileSystemObject -

मेरे पास मेरी सीडी पर एक साधारण vbs-file है c: निम्न सामग्री के साथ: ObjShell = CreateObject ("Scripting.FileSystemObject") सेट करें जब मैं इसे लॉन्च करने की कोशिश कर रहा हूं, तो मुझे त्रुटि मिलती है c: \ fso.vbs (1, 1) माइक्रोसॉफ्ट वीबीस्क्रिप्ट रनटाइम त्रुटि: ActiveX घटक ऑब्जेक्ट नहीं बना सकता: 'स्क्रिप्टिंग.फाइलसिस्टमऑब्जेक्ट' मैंने व्यवस्थापक के रूप में लॉगिन करने और एक्सक्यूट करने की कोशिश की wscript -regserver , लेकिन मदद नहीं की। क्या कोई मुझे मदद कर सकता है? मान लें कि आप व्यवस्थापक के रूप में लॉग इन हैं, कृपया HKCR के तहत scripting.FileSystemObject के लिए रजिस्ट्री में एक नज़र डालें। यदि आपको यह PROGID नहीं मिल रहा है, तो आप आवश्यक फाइलों को याद कर रहे हैं या घटक अक्षम है (पंजीकृत नहीं है)। scripting.FileSystemObject को scrrun.dll में लागू किया गया है।

Presence indicator menu problem in SharePoint 2007 contact web parts -

In SharePoint 2007, I get a problem with the presence indicator when I add more than one contact web part to a page I noticed that when I added more than one contact, I always got gray bubbles, so I searched around the Internet for a solution. Someone found that the ID of the IIG tag (of the presence indicator bubble) should not be unique. Since SharePoint automatically adds the static ID to the IMG tag, I need to override the ID. I have written this javascript code (actually a copy of the guided function; -)): function s4 () (returns ((1 + Math.rendum ()) * 0x10000) 0) .toString (16) .substring (1); } Function guid () {return (S4 () + S4 () + "-" + S4 () + "-" + S4 () + "-" + S4 () + "-" + "S4 +) + S4 ()); } Window.IMNRC = function (native) {return function (name, elem) {if (elem! = Null) {if (elem.id = "contact_im, type = sip") {elem.id = guid (); }} Original (name, amm); }} (Window. IMRC); I do not know that this is ...

oracle10g - How can I extract package source from Oracle database? -

Can anyone help me remove a package from the Oracle database schema through a command line interface. Use Object_type INVARCHAR2, name IN VARCHAR2, schema VARCHAR2 debugged faucet, version VARCHAR2 default in 'Complex', Models in VARCHAR2 default 'Oracle', conversion to VARCHAR2 default 'DDL') CLOB;

.net - I have a jquery problem when using $.noConflict in master page -

I saw it in a single page. I worked. But Master try this page (Datnet) therefore, no works can tell u what about this issue ============== aaaaaaaaaaaaaaaa. Master page . & Lt;% @ Master Language = "C #" AutoEventWireup = "true" CodeFile = "aaaaaaaaaaaaaaaa.master.cs" Inherits = "aaaaaaaaaaaaaaaa"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Script type = 'text / javascript' src = "javascript / jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script language = "javascript" type = "text / javascript" & gt; $ .noConflict (); & Lt; / Script & gt; & Lt; Asp: C...

javascript - getSelection() not working for in IE -

Leading from me, which was done by. Now I need to do this work for an iframe (do not ask). This is basically an intelligent editor that uses an iframe. I have coded the testing environment. / P> The code is as follows: CSS: h1 {font-size: 150%; Border bottom: 1px solid #ddd; Margin: 20px Auto 10px;} HTML: & lt; H1 & gt; General text (work) & lt; / H1> & Lt; P & gt; Alex Thomas & lt; / P & gt; & Lt; Button ID = "click" & gt; Click & lt; / Button & gt; & Lt; H1 & gt; IFrame & lt; / H1> & Lt; P & gt; Write in some text: & lt; / P & gt; & Lt; Iframe id = "iframe" & gt; & Lt; / Iframe & gt; & Lt; Br / & gt; & Lt; Button ID = "iClick" & gt; Click & lt; / Button & gt; jQuery (document) .ready (function () {setTimeout (makeEdit, 10);}); Click $ ('#click') (function () {var range = document.selection.create...

c# - Adjust amount of padding and speed of scrolling when calling .Focus() on a control in WPF -

I have a control that is slightly longer than the screen, the user moves the contents from the left side of the screen in this control on the right Are there. When the user moves something up, we want to highlight the content where the content went. Currently I can easily do this with the setting. Focus on control () It fills in. By setting focus, if the control screen was off, focusing on it is located above or below the window. Is there any way to do this pad a little bit, when a control focus is made, it is centered on control and gives approximately 50px padding from the edge of the windows ? Also, is there a way to animate the scroll, so instead of jumping on the field, the window will actually scroll if necessary? Finally, is there an event that I can handle (such as Focus () or RecievedFocus () or OnFocus ()) when a Control Focus occurs? I probably would like to highlight the field that was focused, and I thought if I can handle the incident then it will only be h...

html - Embedded PHP, cannot stop? -

I'm just a little confused. I have this code: & lt ;? Php $ this- & gt; Head (? & Gt; style = type = "text / css" & gt; .error {background-color: # ccc; range: 1px solid # 999; padding: 10px; width: 500px;} & lt; / Style> Php); ? & Gt; I was confident that you can do this: It is very similar: & lt ;? Php if (true) {? & Gt; Hey & lt ;? Php}? & Gt; An error actually occurs: Parse error: syntax error, unexpected ';', expected '' 'in file.php on line 1 (Line 1 of code) How can I fix this? Use heredoc if you are trying to pass html as a variable . $ var = & lt; & Lt; & Lt; HTML & lt; Style type = "text / css" & gt; .error {background-color: #ccc; Border: 1px solid # 999; Padding: 10px; Width: 500px; } & Lt; / Style & gt; Html; $ This- & gt; Head ($ var); You can not do this: $ variable =? & Gt; & Lt; P & gt; Omgwtfbbq & lt; ...

actionscript 3 - Flash ABC : What does the number part of .as$ in a swfdump -

If I take a swf, and run it via swfdump swfdump .exe -abc file .swf> ABC.txt The first run I can get some output in ABC.Txt like this ObjectConfig.as $ 60 and a different output on the subsequent run of the same SWF ObjectConfig.as $ 61 What does the number mean after $? This debug is a part of the metadata that the mxmlc compiler adds to the bytecode when you do a debug compilation, debug = true . If you compile a general release, then this information has been omitted. This metadata stores file names and line numbers so that you can see the location in your source during debugging. Although I am not sure, on the exact meaning of these special numbers, they seem to have a unique identifier or index of that file, perhaps in the case of two classes of the same name.

google app engine - Dereferencing two ReferenceProperty's that points to the same object in the datastore -

I was reading about curious loading which would tell me about efficient deering on GAE. Is it true, that if I point out the same object in the datastore due to two contextual practices, the framework does not maintain any type of identity map and two separate requests Receives? There are various examples returned to objects and changes on one do not clearly appear on the other. Is not it less than ideal? I am coming from a SQLite background, where I feel really comfortable with the session pattern. That's right, Guido's new project demonstrates this mapping, but the current DB framework does not . The reason for this is what you want: If a single institution is brought and modified in two different parts of the code, it can cause unwanted side effects. The natural hope is that if you get the object, then it is yours and nothing is going to change it under you, unless you want it. At the time you want to delete the batch of the same entities, you can convert the l...

viewstate - String var assigned to view-state? -

मुझे यकीन नहीं है कि यह वेबफ्लो 2.2.1 में संभव है flow.xml & lt; दृश्य-राज्य id = "flowId1" मॉडल = "flowModel1" दृश्य = "/ वेब-एएनएफ / टेम्पलेट्स / फ्लो_फॉर्म / फॉर्म 1.जेस्प" & gt; & Lt; सेट विशेषता = "strVar" मान = "$ {'someStringVar'}" / & gt; & Lt; = "step1Action" / & gt; के लिए = "चरण 1" पर संक्रमण; & Lt; / दृश्य राज्य & gt; jsp & lt; h1 & gt; $ {strVar} & lt; / h1 & gt; मूलतः, मैं स्ट्रिंग वेर असाइन करना चाहूंगा जो कि व्यक्तिगत दृश्य-राज्यों में मूल्य को बदल देगा, जो कि flow.xml में सेट है .. क्या धन्यवाद मिल गया .. :) & lt; दृश्य-राज्य आईडी = "flowId1" मॉडल = "flowModel1" दृश्य = "/ वेब-एएनएफ / टेम्पलेट्स / फ्लो_फॉर्म / फॉर्म 1.जेस्प" & gt; & LT; ऑन-प्रविष्टि & gt; & Lt; मूल्यांकन करें अभिव्यक्ति = "'कुछ स्ट्रिंगविर'" परिणाम = "प्रवाह स्काइप .स्ट्रार...

shuffle image using matlab -

For example, I have a screen size of 1024x768. And, each of my images is 150 x 250, where I have a total of 4 images. How can I randomize these images to appear on different positions on the screen? What do you really want? What's this: Keep 4 predefined spaces and randomly assign each 4 image to an empty space, Or just randomly place them on the screen Keep it? This idea is to display images and take care of every shape object (H1, H2, H3, H4). Ideally they have to be stored in a handle list H. For the first consideration, store the top-left corner position of each empty space in the POS list of 4 entries. Make connectivity list LC where LC [I] = J poin indicates where HH [I`] to know the status of. For example, if LC = [1 2 3 4] handles HO then POS status, H2 is assigned to POS [2], etc. ... then use the random () () () like That Ashish told on the LC list. This will randomly "mix" the connectivity list, and therefore, at the end, drag the situations to...

Linq query to get data from array of objects c# -

सार्वजनिक संरचना पैरामीटर {सार्वजनिक पैरामीटर (स्ट्रिंग का नाम, स्ट्रिंग टाइप, स्ट्रिंग कैरिएटिप) {this.Name = name; This.Type = प्रकार; यह। ParentType = parentype; } सार्वजनिक स्ट्रिंग नाम; सार्वजनिक स्ट्रिंग प्रकार; सार्वजनिक स्ट्रिंग पैरेन्ट टाइप; } निम्नलिखित मान पैरामीटर की सरणी में संग्रहीत किए गए हैं: नाम का प्रकार ParentType --------------- ------------------------- एक और टाइप टाइप करें अन्य कॉम्पोझिट टाइप टाइप करें संमिश्र टाइप स्ट्रिंग एक और कॉम्पोसाइट टाइप स्टार्टडेट डेट अन्य कॉम्पोसाइट टाइप मैं इसे एक एक्सएमएल बनाने के लिए पढ़ना चाहता हूं। कुछ ऐसा: & lt; composite & gt; & LT; BoolValue & gt; बूलियन & lt; / BoolValue & gt; & LT; StringValue & gt; स्ट्रिंग & lt; / StringValue & gt; & LT; AnotherType & gt; & LT; खाता & gt; स्ट्रिंग & lt; / खाता & gt; & LT; StartDate & gt; तारीख & lt; / StartDate & gt; & Lt; / AnotherType & gt; & LT; समग्र & gt; & LT; isThisTest ...

matlab --error: index must be a positive integer or logical -- how to make movie -

I have this matlab code and this gives me an error in my headline. Scalar wave 1d equation time = 1000 solution; Stages = 1000; A = input ('Please enter the value ratio cdt / dx:'); % Preterocate matrix u u = zero (step, time); Fill the matrix for% I = 1: time = 1 for Jammu = 1: phase-1 if (i == 1) u (j, i) = 1; Edited - gt; & Gt; = 0% initial condition and edit from U (J, I) - & gt; & Gt; Jammu == 1 and I == 1 Jammu == 2, I == 2 if time (Jay == 2 & amp; i> = 2 & amp; i & lt; = 50) is the time period for% 50 Pulse's U (J, I) = 50; Second solution of waveform equation U (J, I + 1) = one * A * (U (J + 1, I) -2 * (U, I) + U (J-1, I)) + 2 * U (J, I) -U (J, I-1); - & gt; Here is the end end end error for Kashmir: Edit the phase - & gt; Plot (U (K, 1: 100)) Plot (U (K, 1: 200)) Plot (U, 1: 200) Plot (U (:, I + 1)) Plot (U (K, 1: 300) )) Plot (U (K, 1: 400)) .... end In addition, how do I more efficiently past loop plot) and how do I cr...

c# - Get All Contacts using Lync ContactManager -

I'm currently using the LyncClient.ContactManager.BegginSearch method to search for contacts. However, I have not understood how to get all the contacts I have tried to pass "*" and "%" as wild-card characters but it has not worked yet my function is call. _lyncClient.ContactManager.BeginSearch ("*", SearchProviders.GlobalAddressList, SearchFields.DisplayName, SearchOptions.ContactsOnly, 400, Search Callback, "Search Contact"); Lync is organized into contact groups, so you have to start at the group level . Once you find a group, you can calculate it through its contact foreach (_client.ContactManager.Groups in var group) {foreach (different contacts in the group) {MessageBox.Show (contact .Uri); }} Good for backgrounds, more advanced features edit : Specifically, the distribution group's expansion question For, I think the sample is flawed. Instead of calling BeginExpand and waiting on WaitHandle, provide callback...

linux - How to output MP3s to a sound card -

I am trying to write some sound especially in sound card in output sound (especially MP3) . I have not seen any examples of any sound output in Soundcard in Perl, so its an example would be useful. My question is, how do sound players get sound for sound cards? Do they convert them to WAV when flying? This problem fixes for WAV files to convert compressed MP3 files to WAV There are many packages, like And

php - Wrong rendering in Zend Framework -

I am using when I preview every URL of my site, there is a few letters behind the HTML which I do not know their source! ! This character is at the top of the returnd HTML (first doctype ) and this is the reason why incorrect rendering in Ineternet Explorer (because it prevents you to know the correct Doctype) suggestion? This can be (okay, maybe). Good editors can shut them off You are either using a bad one or a good program is configured :)

sql - How much more efficient is building a recordset with newquery vs a union & connecting to database? -

How is making query more efficient by using queryNew ()? I recently created a DB call for a "dummy query" across the code, which did not connect to any table like this: VS & lt; Cfset IncludeList = queryNew ("code, description", "integer, uppercase") & gt; & Lt; Cfset newrow = queryaddrow (include list, 2) & gt; & Lt; Cfset temp = querysetcell (include the list, "code", 0, 1) & gt; & Lt; Cfset temp = querysetcell (include list, "description", "excluded", 1) & gt; & Lt; Cfset temp = querysetcell (Include list, "code", 1, 2) & gt; & Lt; Cfset temp = querysetcell (include list, "description", "include", 2) & gt; Avoid database connection For QofQ (i.e. dbtype = "query" ), while it seems like a good idea, in practice I have seen the server during load crashes when multiple requests are all the same QofQ. Based on stack traces...

android - Logcat won't show up -

Image
I'm new to Android and I'm setting up my approach vision (I'm quite anal). I want to show in my general editing perspective. But in the window I & gt; Show Show & gt; Other view .. Choose Android and Lockat and the window is not visible sometimes it becomes gray. If I change from the perspective of DDS, then it just looks fine. What am I doing wrong? Thank you! Try eclipsing in the following Windows-> Turn off all perspectives Windows-> Open-Perspective-> JavaEE Window-> View of the scene- & gt; Other- & gt; Android-> gt; Logcat

c# - Retrieving multiple XML elements with LINQ by attributes -

इस XML को दिया गया है: & lt;? Xml संस्करण = "1.0" एन्कोडिंग = " यूटीएफ -8 "? & Gt; & LT; queryableData & gt; & Lt; तालिका प्रदर्शननाम = "जहाजों" dbName = "उद्धरण" & gt; & Lt; विदेशी कुंजी स्तंभ = "ग्राहक आईडी" संदर्भ = "ग्राहक पंजीकरण" / & gt; & Lt; विदेशी कि कॉलम = "कोटस्टैटस आईडी" संदर्भ = "कोटस्टैटस" / & gt; & LT; क्षेत्रों & gt; & Lt; फ़ील्ड प्रदर्शननाम = "उद्धरण शुल्क" dbColumn = "उद्धरण चिह्न" प्रकार = "संख्या" / & gt; & Lt; फ़ील्ड displayName = "कुल वजन" dbColumn = "TotalWeight" प्रकार = "संख्या" / & gt; & Lt; / क्षेत्रों & gt; & Lt; / तालिका & gt; & Lt; तालिका प्रदर्शननाम = "ग्राहक" dbName = "ग्राहक पंजीकरण" & gt; & LT; क्षेत्रों & gt; & Lt; फ़ील्ड प्रदर्शननाम = "प्रथम नाम" dbColumn = "FirstName"...

php - MySQL issue with UPDATE numbers -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं करने की कोशिश कर रहा हूँ PHP के साथ एक बहुत सरल अद्यतन, इस तरह: $ nlk = $ lk + "1"; Mysql_query ("पोस्ट्स को अपडेट करें = '"। $ Nlk "" WHERE id =' "। $ Cid।" '") या मरने (mysql_error ()); $ lk एक फ़ील्ड जैसा से प्राप्त है, जो कि डिफ़ॉल्ट 0 है $ cid एक आईडी क्षेत्र से एक मान है, जो कि auto_increment पर है। मुझे यह त्रुटि मिलती है: आपके SQL सिंटैक्स में एक त्रुटि है; पास के 'जैसे =' 1 'WHERE id =' 45 '' पंक्ति 1 पर उपयोग करने के लिए सही सिंटैक्स के लिए आपके MySQL सर्वर संस्करण से संबंधित मैन्युअल की जांच करें यहां समस्या क्या है? इस का उपयोग करें (कॉलम नाम के आसपास जोड़ा गया टिक ( ` )): mysql_query ("अद्यतन पोस्ट्स सेट करें" = '"। $ Nlk।"' WHERE id = '"। $ Cid।"' ") या मर (mysql_error ()); बेहतर अभी तक, तालिका / स्तंभ नामों के रूप में उपयोग न करें।

c++ - set insert problem -

Why is the following program not working? How can I fix this? #include & lt; Iostream & gt; # Include & lt; Set & gt; using namespace std; Class K {Private: Long A; }; Int main () {Kashmir A; Set up & lt; K & gt; B; B.insert (a); Return 0; } A sort of elements are required; Can compare your elements. Either a operator for its class operator Add or add another template argument. Comparative determines the order between the two of examples for a set class. Overloading operator is straightforward: BULL operator & lt; (K const & x, K const & y) {return xa & lt; Y.a; } This would mean that an example of K is less than the other if only its member one is less than the other ?? ?? S

separate numbers by comma with asp.net mvc -

I am working on an MVC2 appication I have data encryption I use (both client side and server side) in my model there are several fields which allow only decimal values ​​as soon as a user types a decimal values, I want to convert it to a more readable format to be done. For example, 1200 should be formatted as 1,200, while the 500 should be in the form of it as it is. This is my model: Public Virtual Grossfi? Charge {receives; Set; } And here's how it works: %: HTML Textbox (Model = & gt; Model. Grease)% & gt; Any thoughts about this would be highly appreciated. Thank you! Instead Html.TextBoxFor you Html.EditorFor and respect the data annotation in this way: Model: (I do not know that grosephie? , But gives a decimal value of it) [DisplayFormat (DataFormatString = "{0: 0,0}")] Public Virtual Decimals? Charge {receives; Set; } See: Html.EditorFor (model => model.GrossFee) you too It is possible to zoom HtmlEncode ...

iphone - view controller hide problem -

Hi, I have created a built-in window-based tabbar application. I made 5 tab bar item, tab is a client of time before the customer tapping me as a tab bar and 3 scene controller select list of such customers customer and this .For invoice list I block Need to add controller and 3-segment controller button is used. I made a IBaction: - (IBAction) segmentedControlIndexChanged {switch (self.segmentedControl.selectedSegmentIndex) {case 0: CustomerListviewController * customerListViewController = [[CustomerListviewController alloc] Init]; [Self.view addubview: customerListViewController.view]; break; Case 1: SelectCustomerviewController * selectCustomerviewController = [[SelectCustomerviewController alloc] init]; [Self.view addubview: * selectCustomerviewControllerr.view]; break; Case 2: InvoiceListViewController * invoiceListViewController = [[InvoiceListViewController alloc] init]; [Self.view addubview: invoiceListViewController.view]; break; Default: Break; }} But when I tap a...

remove with deep recursion in lisp -

How can I apply the deletion function with a deep recycling? I know that shallow recursive, but it is difficult to turn it into a deep revision. (Merrywave '(1 2)' (1 ((2) 3) (4 (5 ((1 2) 5))))) - & gt; (1 (3) (4 (5 (5))) I think By "deep recurring" you are referring to a recursion on a tree instead of a recursive list? The more low-level answer is between the car and the CRD, just the CDR Instead, though I prefer to use higher order functions, in this case, MapperCar is repeatedly called: (Diffun Myevarave (item) () (Aum Tree) tree (Mupparkar (Lamborghite (sub-section) (Myremove item subtree) (Remove item tree: test # 'equivalent))) Edit: Here The low-level solution is: (defun maryrovemove (tree of the tree) (code tree) ((equivalent tree of tree) (marrow item (cdr tree)) ( 'Otherwise (Opposition (MyWarm Item (Car Tree)) (MyWarm Item (CDR Trees)))))

.net - EF4 LINQ - Adding Filtering on a Join -

मैं LINQ में एक JOIN TABLE .... में FILTER क्लाउड कैसे जोड़ूं? और t2.Public = 1 और t2.Color = 'Blue' SELECT t1.ID, t1.Name, ( Tbl2 t2 WHERE t2.ID = t1.ID और t2.Public = 1 और t2.Color = 'Blue') से SELECT COUNT (*) का चयन करें। MyCount FROM tbl1 t1 WHERE t1.State = 'CA' इसे कुछ ऐसा दिखना चाहिए। संदर्भ में t1 से .bl1 जहां t1.State = "CA" का चयन करें नया {t1.ID, t1.Name, MyCount = t1.tbl2s.Count (t2 = & gt; टी 2। सार्वजनिक & amp; amp; t2.Color == "ब्लू")} यह आपके सभी संदर्भों में संस्थाओं के नाम, एक दूसरे के साथ उनके रिश्ते, और उनके स्केलर मूल्यों के प्रकार के बारे में और अधिक जानने के बिना मुझे दे सकता है।

windows phone 7 - How to wrap text in list picker silverlight toolkit? -

यहां मेरा एक्सएएमएल है & amp; टूलकिट: ListPicker.FullModeItemTemplate & gt; & LT; DataTemplate & gt; & Lt; स्टैकपैनेल ओरिएंटेशन = "क्षैतिज" मार्जिन = "16 21 0 20" & gt; & Lt; आयत की चौड़ाई = "43" ऊंचाई = "43" / & gt; & Lt; TextBlock Text = "{बाइनिंग अकाउंट डिस्क्रिप्शन}" मार्जिन = "16 0 0 0" फ़ॉन्टसिज़्म = "43" फ़ॉन्टफ़ैमिली = "{स्टेटिक रिसोर्स फोनफ़ॉन्टफैमिली लाइट}" टेक्स्टवॉपिंग = "रैप" / & gt; & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; / टूलकिट: ListPicker.FullModeItemTemplate & gt; भले ही मैंने लिखा TextWrapping = "wrap" मेरा टेक्स्टब्लॉक लपेट नहीं करता है क्या मैं कुछ भूल रहा हूं? एक ग्रिड के साथ StackPanel को बदलने की कोशिश करें (मेरे पास कोई संकलक नहीं है, मेमोरी से टाइप करना, इसलिए कुछ हो सकता है टाइपो): & amp; टूलकिट: ListPicker.FullModeItemTemplate & gt; & LT; DataTe...

Simple Linked List C# AddAfter method -

I am working with simple linked lists in C # and I do not know how to add elements to the end of the list, callwood help to anyone? Namespace console application 1 class {1 public square node () {public integer data; Next to public node; } Private node FirstNode = Faucet; Public Zero AddBefore (int number) {node NewNode = new node (); NewNode.Next = FirstNode; NewNode.Data = Number; FirstNode = NewNode; } Public Zero AddAfter (int no) {if (FirstNode == zero) {AddBefore (number); } other { ??????????????? }} You need to repeat through your list until you get the last node , And then add it to the end something like this: Public Zero AddAfter (int no) {if (FirstNode == zero) {AddBefore (number); } Else {// Final node node finding CurrentNode = FirstNode; While currentNode.Next.Node! =) CurrentNode = currentNode.NextNode; // Create a new node node new node = new node (); NewNode.Data = Number; NewNode.Next = Faucet; // Adding the node to the existing node. Node.NextNode = newNo...