Posts

Showing posts from February, 2013

Disable iPhone vibrate with Setting Bundle [iPhone SDK] -

I am creating an app, now I am pushing the bundle while setting the bundle of iPhone and moving I want AudioServicesPlaySystemSound (kSystemSoundID_Vibrate); Setting bundle: Title: Vibration / / / / Key: dis_vib //// Type: PSToggleSwitchSpecifier Before calling vibration codes, check to see what NSUserDefaults are called. For example: if ([[NSUserDefaults StandardUserDefaults] boolForKey: @ "ShouldVibrate"]) {// Vibrate Code} Where settings should be "where should" is the bundle setting.

c# - How do I block access to files when using the System.Web.Routing.UrlRoutingModule? -

I system. I am using the web. Routing URLRotting module I am writing with: route Add (new route (@ "cart / add", new route handler ("~ / command / karted shakes"))); way. Add (new route (@ "cart / remove", new route handler ("~ / order / cartiite.shakes"))); ... And I also have a route: route. Add (new route (@ "{* url}", new route handler ("~ / error / PageNotFound.ashx"))); But if I direct on / Order / CartAdd.ashx I never enter routing. It goes straight to that handler In your root registration code, you can type something like this. Public static zero registrations (routes collection route) {routes.RouteExistingFiles = true; Routes.IgnoreRoute ("default.aspx"); [...] You should emphasize files through your routing rules.

python - How can I query objects with a date field, using a specific month and year? -

I need to create a GCL query against the set of some objects, in which there is a date field. I for Python and GAE I'm a bit strong on this because I'm looking into the documentation but I can not find what I'm looking for. Basically I have created the following class method Event.getEventsforMonth (CLS, month, year): So I was trying to query my object The month and year of the date field falls into a specified range. I have tried to create date objects and used it for comparison, but I have not found any happiness yet. dateto = str (year) + str (month + 1) + "01" date = string (year) + ARR (month) + "01" if month + 1 == 13: Datatio = ARR (year + 1) + "01" + "01" query = GQAQUYARY (Select "Event where date <= coding: date and date by lieutenant; =: dataeto", datatwo = data, datfom = Detofm) Return query This method looks terrible to me, because I'm not too much Core methods I have Python with GUL query

Insert text into WPF textbox at caret position -

How can I insert text in a WPF text box in the carat state? What am I missing? In Win32, you can use CEdit :: ReplaceSel (). This should work as the paste command () was implemented. But I want to avoid using the clipboard. To enter text in the bus status: textbox. Text = textbox.Text.Instert (text box; carat indices, "& lt; new text";); To replace the selected text with the new text: textbox.SelectedText = "& lt; New text & gt;"; To scroll the text box on the caret position: int lineIndex = textbox.GetLineIndexFromCharacterIndex (textBox.CaretIndex); TextBox.ScrollToLine (lineIndex);

How to Filter ADO.NET data using a Full Text Search (FTS) field? -

हम ADO.NET dataservices & amp; यूआरएल आधारित फिल्टर का निर्माण कर रहे हैं उदाहरण: / ग्राहक? फ़िल्टर = सिटी ईक 'लंदन' अब हमें एक पूर्ण टेक्स्ट 'टैग' फ़ील्ड पर फ़िल्टर करने की आवश्यकता है के लिए होस्टिंग हो रहा है: / ग्राहक? फ़िल्टर = 'मैत्रीपूर्ण' जैसा टैग करें समस्या: एडीओ। नेट में एक तरह की ऑपरेटर नहीं है। एडीओ। नेट FTS पसंद नहीं लगता (यह एक मैच नहीं खोज रहा है - क्योंकि यह सीएसवी के माध्यम से पार्स नहीं करता है) कोई भी विचार यह काम कैसे करें? THX एडीओ। नेट डेटा सर्विसेज "पसंद" प्रकार के ऑपरेटर का समर्थन करती है। इस तरह की प्रश्न: http: //localhost/EntitiesService.svc/CalEvents? $ Filter = indexof (विषय, 'एफओ') जीई 0 http: //localhost/EntitiesService.svc/ CalEvents? $ Filter = substringof ('लोमड़ी', विषय) सच है या LINQ संस्करण: var परिणाम = _context.CalEvents.Where (सीई = & Gt; सीई.Subject.Contains (searchTerm)) शायद आप क्या चाहते हैं। वे "LIKE" ऑपरेटर के साथ एक SQL क्वेरी उत्पन्न करते हैं

web services - ASP.NET: How often is WebService class instanciated? How to make a persistent object in it? -

A simple question, I could not find any answer in Google. How often is a web service class instanciated? Is it once a call to web service, is it once (uncontrolled period of time), is it something else once? Edit I was hoping that the class is very good but it seems that it is not so. The issue is, I have a resource that is used in the fulfillment of requests, and this resource is not launching every time an alternative (on the contrary, it would have been an option after loading And very good performance - and the other, and just 'wise'). (No, no one will be disturbed, the resource is not being blocked or nothing else.) So how do I have an object within the web service, an example in which I can fulfill all the requests Can i use Sorry if there is a clear answer to the question like "Use stable variable." Being an experienced programmer, I have not been presented properly for web programming and still have been struggling with some common concepts.

php - Dynamic Sliding Panel Using JQuery, based on values from a mySQL database -

I'm in the process of developing an academic toolkit for my university, the problem statement is given to the user, given a list of courses Will go. When one click on that particular name of the course, he should get a dynamic slide panel, in which the purpose of the course and other details of that course should be shown. All these values ​​will be present in a mysql database. Slide panels are a necessary requirement here. Please help me how to get the data dynamically from the MySQL database in the slide panel. Thanks in advance ... :) http://api.jquery.com/jQuery.ajax/ '> JQuery $. Ajax is your friend! Something like this should be done (it is not unwanted and is not optimized). Hopefully this will take you in the right direction. You should add a loading message, error handling and data caching too. & lt; Style & gt; . Course (boundary: solid 1px # 000; margin-bottom: 10px;} .title {display: block; border bottom: solid 1px # 000; background: #eee;

.net - Detect when users log out of an application in C# -

If I'm working on, there's a way to say that when users will press logout Button? I am familiar with the difference between the differences between WPF and Winforms, but never a line of WPF code It may not be applicable, but ... In WinForms, the method of completing it will be to create a method on C (if you can not modify a class, then by subclassing) and that The method will subscribe to the click event on the button during your load load handler.

Retrieving unique results in Django queryset based on column contents -

I'm not sure that the title has any meaning, but this is the question. References: I want to track the students entering the class, so at any time I can know who is inside the class. I also want to keep track, for example, how many times one The student has entered the class, this is a hypothetical example which is close to what I want to achieve. I have prepared the class and each entry has student (foreigner), verb (entry, departure) and date. My question is how to get the students coming in at present (i.e. their entries' date is after the date of their leave action, or the date of the leave), and how a specified date Edit : On better consideration, I should add that there are more than one class My first attempt was something like this: students_in = Classroom.objects.filter (class__ exact = 1, action__exact = '1') students_out = Classroom.objects.filter where the student has operations (class_anissimation = 1, verb_translation = '0').

Access SQL Server 2008 Change Tracking Info via Entity Framework -

Based on this, I think the date was inserted / date modified information "free" (without the need for triggers etc.) on can do. ) Just using SQL Server 2008 by enabling Change Tracking I am using unit framework to access data. My question is, how do I use date information modified / dated for Database Records through Entity Framework and LINQ? I am using VS2008 so I do not have the new EF v4 stuff yet (but if it could be done in the new EF please let me know). Thanks Oh, never. I put myself in each table and found it very easy to create the last modified column, set a default value for each, and create the updated trigger for LastModified. It looks like what people do, and change tracking looks like this is mainly set for sinking right?

mysql compare tables -

I am stuck with some tables in mysql How to include information from three tables does not really know very grateful if someone Thanks can help me It's what I have: Table1.Users + ---- + ------ - + -------------- + | ID | Name | Last name | + ---- + -------- + -------------- + | 1 | Peter | Elk | | 2 | Amy | Lee. | 3 | James | Ride | | 4 | Andrea | Thompson | + ---- + -------- + -------------- + Table 2. Project + ----- + ------------- + | ID | Name | + ----- + ------------- + | 13. Lmental | | 26 | Comunica | | 28 | Exabyior | | 49 | PuPPunient + ----- + ------------- + table 3.suser_profix + --- - ------ + ------------- + | ID_User | Id_project | + ---------- + ------------- + | 1 | 13. | 1 | 28 | | 2 | 13. | 2 | 28 | | 2 | 49 | | 3 | 28 | | 3 | 49 | | 4 | 49 | + ---------- + ------------- + And I would like to print something like this: + -------- + -------------- + ------------------ ---------------- + | Name | Last name | Project | + -------- + --

.net - What should we have in a Business Logic Layer (BLL) -

I know this is a very basic question but I really can not understand what we should do in BLL . Give me an example. Give us a login Consider Espace web page, which is used to make user login easier. In this case, Login.aspx will have two text boxes and a login button. (Presentation layer). The function near the Data Access Layer will check whether the username and password are correct or not. I do not think I need anything more in this page. So what will happen to me in BLL? If you want to add some functionality which comes in BLL, please add. You want something like this: UI call BL.SaveUsernameAndPassword ( String user, string pass); BL.SaveUsernameAndPassword must validate the string, and then call DAL.SaveUsernameAndPassword (string user, string pass); DAL.SaveUsernameAndPassword should place these parameters in your SQL query and execute it is assumption that the data is valid

ios - IPhone SDK_A table view inside of a table view -

I want to create a table view inside the table view. I mean, how can I make an app that goes to the second list of cells to click to go to the sub-orbit to click a cell? The memory leak occurs in response to the convolution, the appropriate code should look like this: MySecondViewController * secondController = [[MySecondViewController alloc] initWithNibName: @ "SecondView Controller" bundle: zero]; If (second Controller! = Zero) {[Self-Control Push ViewController: Second Controller Animated: Yes]; [Second controller release]; } Release is required otherwise you leak memory.

c# - How can I efficiently process a delimited text file? -

I just file against a specific file. Try reading all Linux , and for every line, | . I have to use regex on this one This code does not work below, but you will see what I'm trying to do: string [] Content = file. Read all files (filename); String [] splitlines = Regex.Split (content, '|'); Fresh (string split in split lines) {// Regex line = content Split ('|'); //content.Split ('|'); String prefix = prefix = regesx. Match (line, @ "(\ S +) (\ d +)"). Group [0]. Guails; File. Appendical text (Working format 2 + "configuration.txt", prefix + "\ r \ n"); } It is not completely clear what you are trying to do , But there are many errors in your code. I have guessed what you are doing, but if this is not what you want, then please tell what you prefer preferably with some examples: String inputfile = "input" txt; String outputfile = "output.txt"; ({StreamReader streamReader = File.OpenText (i

Javascript and CSS, using dashes -

I am starting to learn some javascript and understand that dash is not allowed when giving the identifier name, although the ID in the CSS And it is common to use dashes for classes. Does the use of dashes in CSS interfere with JavaScript interaction in any way? For example, if I wanted to use getElementByID ("css-dash-name") I have tried to use getElementByID with some examples as a name for a devi ID and getElementByID, but it worked I'm not sure that this is the case in all other references. In the id (or the name of the class, if there is a dash and underscores), there will be no negative effect, So it is safe to use it, you can just not do something like this: var element = document.getElementByID ('css-dash-name'); The error mentioned above is causing the error because the variable in that variable is specifying the element from which you are specifying. The following will be okay though because there is no dash in the variable: var s

android - ContentURI cannot be resolved to a type -

मैं ग्रहण और android ट्यूटोरियल < कोड> आईबीएम । ट्यूटोरियल से स्रोत कोड मुझे एक त्रुटि दे रहा है जो कहता है कि ContentURI को एक प्रकार से हल नहीं किया जा सकता है .. यहां स्रोत कोड पंक्ति है .. ContentURI theContact = नया ContentURI (android.provider.Contacts.ContactMethods.CONTENT_URI.toURI ()); ग्रहण मुझे एक वर्ग को एक इंटरफ़ेस बनाकर या इसे ContentUris में बदल कर इसे ठीक करने के लिए चाहता था, मैंने पिछले एक w / कोई भी भाग्य कुछ सलाह की तलाश में नहीं था। ContentURI को वापस बदल दिया गया था एंड्रॉइड 0.9, लगभग 18 महीने पहले अपने ट्यूटोरियल की आयु की जांच करें - यह शायद 2008 की गर्मियों से है और अब पुराना है।

response - ASP.net memory usage during download -

On the ASP.NET site, at the place of my work, the following part of the code is responsible for handling file downloads (Note: Private Zero DownloadFile (stream stream) {int bytesRead; Int chuck size = 1048576; // 1MB byte [] readBuffer = new byte [chunk size]; While ((bytesRead = stream.Read (readBuffer, 0, readBuffer.Length)) = 0) {If (! Response.IsClientConnected) break; Byte [] part = new byte [bytes] read; Array.Copy (readBuffer, 0, part, 0, bytesRead); Response.BinaryWrite (part); Response.Flush (); } Stream. Stop it (); } Our users often download multi-hundred MB files, which can make server memory much faster. My impression is that this reaction is due to buffering. Does this make sense? I have read about the 'buffer' property of the reaction object now, if I set it to false, then it prevents the reaction. Burnerwit () By buffering data in call memory? In general, what is a good way to limit memory usage in this situation? Maybe I should stream into a temporar

c# - How do I extract the thumbnail of a File into an image file in .NET? -

I am trying to create a content list program that is used to browse the file. I want to show thumbnails of files like in Explorer windows. How can I use C # to remove the thumbnails from Windows Explorer to the system? Drawing Image shows in an example? I want to use something that I need to use it or IExtractImage However, when I come to do something with COM, Pinwok, Interop etc. I am very happy. Take a look at the answer accepted in this stack overflow question: You have linked the code to vbaccelerator site 2003 and have demonstrated many memory management problems.

c# - wcf deserialize enum as string -

I am trying to use a free web service using WCF I have no control over the format of the web service No, so I have to do some work here and there. This is my code (obviously the name has changed): and this is the data that deserialization fails: {"id": 123456, "name": "John doe", Finally, the exception was thrown: There was an error deserializing the type of service. Fu value 'bar' can not be parsed as 'int64' type. / P> I do not want to switch to using XMLSlizer, because of its many other deficiencies, it edit : I Properties of string values How do I behave in a form? How can I do WCF (or, well, data contrastistilizer)? It seems impossible, and behavior is the way that is designed by Microsoft, To not give us options, take the support of hacks. The way in which it describes the Somori is the only way to get string anonym with JSON and WCF. This is a silly Hole can be questioned. If you [DataMember (name

Inline parsing in BeautifulSoup in Python -

I am writing an HTML document with BeautifulSoup, and I do not want it to split inline text (such as & lt; p & gt; tag) The issue I get is that & lt; P & gt; A & lt; Span & gt; B & lt; / Span & gt; C & lt; / P & gt; Prettify with gives me the output & lt; P & gt; A & lt; Period & gt; B & lt; / Span & gt; C & lt; / P & gt; And now HTML displays A, B, C, which I do not want to spaces between. How do I avoid it? how not using prettify ? Beautiful Sunderusup ('<'> a c & gt; RenderContents () Outputs basic HTML without additional space You can use Firebug to make 'attractive' on creation time after looking closer to the structure of the document is not needed.

iphone sdk: pausing NSURLConnection? -

In my app I give the user the ability to download files from the server. For this I use NSURLConnection, I want to give the user the ability to stop and resume downloads by tapping a button. Apart from calling the cancellation method and then creating a new NSURL connection I could not find any way to do this. So what is a great way to stop NSURLConnection? Thanks This is the only method I know about if your server " Range: "Header supports, you can make a new connection and it can be picked where the second one is omitted.

java - downloaded STS, how to import/open petcare? -

The spring website says: This sample presentation also includes a pet sample application Could the spring specimens reach in the SVN store. This sample app is directly importable & amp; Running with the SpringSource Tool Suite I downloaded the Spring Equipment Suite, can not find any import mechanism? Import

javascript - Why the value inside the loop and using the [i] is undefined? -

When using the Mozilla JetPack, when I do the following code .. I think the link is undefined! Why ? Or how to fix it? var link = doc.querySelectorAll ('# curriculum_manu> gt; ul & gt; li & gt; a'); Var linkz = links [1] .href.split ("?"); Var i = 0; (I = 0; i & lt; = 4; i ++) for {var linking = links [i]; } Jetpack.notifications.show ("" + linking); Because it exits scope when the loop is over. So you should be var linking; For (i = 0; i & lt; = 4; i ++) {linking = links [i]; } But apart from that, what are you trying to do here? Do you overwrite the link four times Do you want to display all the links? If so, you can add them to: var linking = ""; {Linking = linking + links [i] + "" for I (i = 0; i Edit: Commenters are right; I forgot that there is no block scrap in javascript. Does it fix your code? I can not imagine that it did it. The only other thing I can think of is that the link [4]

sql - Selecting the items associated with a tag along with the tags associated with these items -

2 तालिकाओं: आइटम (item_id, ...) टैग (टैग_id, item_id) < Br <> मैं आइटम ("आइटम" तालिका से) का चयन कैसे कर सकता हूं, जिसमें इन वस्तुओं से संबंधित सभी टैग के साथ उनके साथ एक विशेष टैग ("टैग" तालिका में) है? उपयोग करें: SELECT i। *, T.tag_id FROM ITEMS मैं टी पर टाइप कर रहा हूँ t.item_id = i.item_id जहां i.item_id IN (SELECT x.item_id से टैग x जहां x.tag_id =?)

winapi - Not receiving WM_QUERYENDSESSION when minimized to system tray -

I'm trying to capture WM_QUERYENDSESSION to save some data in the app but it seems I get this message Not being logged on user lockoff / system restart, when the app is reduced to the system tray, how can I catch it? Thank you. The relevant code (there is no magic in it, hopefully :)): ON_WM_QUERYENDSESSION () BOOL CMainFrame :: OnQueryEndSession () {AfxMessageBox (L "We kill it Are you? "); return false; } I'm using a third party Lib (codejock) for the tray icon, which I probably can not post here, but generally, to process these messages Makes a hidden window, but the main window is only needed when ShowWindow (SW_HIDE) is needed that I have to stop that message in that hidden window and pass it, I need to do it Will be. This is basically eaten by a third-party class, which I have to fix.

php - How do I save the values of checkboxes in a form into a single MySQL field? -

I have a form where I have many musical genres, an artist can sing in many styles. I have put styles in the checkbox, now I need to store the checkbox values ​​in a field. Can anyone help me with some code snippets because I'm new to programming? In general, you should not have to do this, your database will not be, and this should be the question It would be difficult to create. If you have a table named artists , then it would be better to have a table named Styles . Then you can define the relationship between the artists and the styles of any other table, artist_gent , in the table in which any artist_id and a genre_id Will hold. You may still be able to have many styles for the same artist. For example, consider the table structure defined below: table artist ------ ------- artist_id name surname 1 alicia keyes 2 maria cherry ... table Genres ------------ Genior_ID Name 1 R & B2 Pop 3 Hip Hop 4 Dance ... Table Artists_genres ------------------- In th

Synchronizing two Sql Server 2008 databases in same instance -

I want to synchronize the two databases (DB1 and DB2) present in the same example. We can say Savitha / P> / Div> some options ... replication log shipping triggers Depends on the requirements.

java - Solr paging performance -

I have read (): FWIW: Number of rows that are requested per Limiting 50, but does not matter to limit the beginning - the same thing is required to handle start = 0 and rows = 5050 and start = 5000 and rows = 50. The more it fulfills: There are fewer usage cases to allow people to run all the rows again. Is that correct? Is this true for the result of truth? How many pages of 10 rows do you recommend that you repeat the user? Does Solar 1.4 have the same limit? Yes, it is true, even for Solr 1.4. Such a no means that there is only one display as start = 0 and rows = 5050 as start = 5000 and rows = 50 Is because back to 5050 documents back, while only 50. Less data to transfer -> Faster Solar has no way of getting all the results in the same page as it does not get much sense. As a comparison, you can not bring the entire Google index to a single query. Nobody really needs to do this. The page size of your application should be user-defined (i.e., t

asp.net - PNG, Why is visual studio making me download PNG files? -

I write and loads my page. When I click on the link instead of showing the image on the screen, then why does I give prompts to download it? How do I display it in a browser? Both GIF and JPG are displayed in the browser. -Edit- I'm using Firefox 3.5 There is no code in it that works, its only a link and file exists in my folder. The link is like http: // localhost: 1737 / a / b / file.png . IE 8 displays png w / o for downloading me I have tried with other browsers, but of course I click on the direct PNG link on my site in Firefox (in VS) should do the same thing. If you are receiving it from HTTP, then there is a service of a web server. Look at the MIME-type, when it came back, is it properly set? Telnet to host local at port 1737 (Not sure that syntax on Windows, but try the IIRC Telnet localhost 1737 ) and type: < Ex> two / one / b / file / HTTP / 1.0 after two returns. Look at the content-type: field in the header. If there is nothing like this, t

c# - How do I implement interfaces in python? -

सार्वजनिक इंटरफ़ेस IInterface {void show (); } पब्लिक क्लास मायक्लास: IInterface {#region IInterface सदस्य सार्वजनिक शून्य शो () {Console.WriteLine ("हैलो वर्ल्ड!"); } # सी # कोड मैं इस सी # कोड के पायथन समतुल्य को कैसे लागू कर सकता हूं? वर्ग IInterface (ऑब्जेक्ट): def __init __ (self): pass def शो (आत्म): अपवाद उठाना ("नॉटिइम्प्लेटेड एक्सपैशन") वर्ग MyClass (IInterface): def __init __ (स्वयं): IInterface .__ init __ (स्वयं) def शो (स्वयं): प्रिंट 'हैलो वर्ल्ड!' क्या यह एक अच्छा विचार है ?? कृपया अपने उत्तर में उदाहरण दें। जैसा कि यहां पर अन्य के द्वारा उल्लिखित है: इंटरफेस पायथन में आवश्यक नहीं है इसका कारण यह है कि पायथन में कई बहुमुखी विरासत हैं, और डिकटीपिंग भी है, जिसका मतलब है कि वे जगहें जहां आप चाहिए में जावा में इंटरफेस है, आपको उन्हें पायथन में रखना नहीं है। उस ने कहा, इंटरफेस के अभी भी कई उपयोग हैं इनमें से कुछ पायथन एब्बट बेस क्लासेस द्वारा कवर किए गए हैं, जो पायथन 2.6 में पेश किए गए हैं। यह उपयोगी है यदि आप बेसक्लासेस बन

Visual Studio 2008 (C#) with SQL Compact Edition database error: 26 -

एसक्यूएल सर्वर से कनेक्शन स्थापित करते समय एक नेटवर्क से संबंधित या इंस्टेंस-विशिष्ट त्रुटि उत्पन्न हुई। सर्वर नहीं मिला था या पहुंच योग्य नहीं था। सत्यापित करें कि उदाहरण का नाम सही है और SQL सर्वर को दूरस्थ कनेक्शन की अनुमति के लिए कॉन्फ़िगर किया गया है। (प्रदाता: एसक्यूएल नेटवर्क इंटरफेसेस, त्रुटि: 26 - सर्वर / इंस्टेंस निर्दिष्ट करने में त्रुटि) मैंने एक एसक्यूएल कॉम्पैक्ट डेटाबेस बनाया है, इसे मेरे आवेदन में शामिल किया है, और डेटाबेस से कनेक्ट कर सकता है अन्य डेटाबेस संपादकों से ठीक है, लेकिन मेरे अनुप्रयोग में मैं कोशिश कर रहा हूँ का उपयोग कर (SqlConnection con = new SqlConnection (properties.Settings.Default.DatabaseConnection)) {con.Open (); } कनेक्शन स्ट्रिंग डेटा स्रोत = | डेटाडाइरेक्टरी | \ डेटाबेस.sdf मैं हूं स्टम्प्ड, कोई अंतर्दृष्टि? आप गलत प्रकार के कनेक्शन ऑब्जेक्ट का उपयोग कर रहे हैं एसक्यूएल कनेक्शन का विकास एसक्यूएल सर्वर के लिए है, एसक्यूएल सर्वर कॉम्पैक्ट के लिए नहीं। कनेक्शन स्ट्रिंग्स की आवश्यकता है कनेक्शन ऑब्जेक्ट के लिए मेरा मानना ​​

ASP.NET MVC Session State -

Is there any way to tell whether a visitor is new to a site or once again to a hit counter an objective? Sessions are not actually present in MVC, so I know that I can not really use them ... Is there any way to tell whether a visitor is new to a site, or to the hit counter again and again? The stateless nature of the web is not a 100% reliable way, but for the purposes of a counter, setting a cookie and checking whether it is or not, in most cases Is enough for Sessions are not actually present in MVC, so I know that I can not really use them ... This is not true . You can also use session in ASP.NET MVC. However, in general you should avoid server-side state as much as possible to reduce scalability.

Debugging QList<double> in Visual Studio with Qt integration -

When I debug my program, the displayed values ​​for the floating point number are completely incorrect. Double A = 1.0; QList & LT; Double & gt; List; List & lt; & Lt; a; With this example, debugger shows that there is an item in a in 1.0 that list But its display value is garbage (it seems that it has not been read in the right place) - If I display it in my program UI then its actual value is justified in any way. And how does it know how to solve it? Have you added the type of QT knowledge in Visual Studio? If not, see information about it at on

Log4j Maximum String Length OR Java String Concatenation Error? -

Running on Solaris 10, when I press an LOG.debug statement using an Apache log 4j logger. The original scenario is displayed in the following code block: public class MyClass {Personal Static Last Logger LOG = Logger.getLogger (MyClass.class.getName ()); Private LinkedHash & lt; String, string & gt; MyMap = New LinkedHash & lt; String, string & gt; (); Public static zero main (string [] args) {// a very long string, but definitely not more than 2 ^ 31 - 1 character / string / string in fact actually string = "actually, in fact, really .. Tall string "; String key = "kettle long string"; // When this line is executed, Solaris logs me instantly and completely / the system is adding LOG.debug ("MyMap [" + key + "]:" + really long string); }} Any ideas? If you have any type of process boundaries, you may be running in that string consensation By, you will use at least (reallyLongString.length () + key.length ()) * 2

autoboxing - Java = operator -

पूर्णांक n = 5; System.out.println (n) // 5! कैसे मैं अपने वर्ग में इस व्यवहार को पुन: उत्पन्न कर सकता हूं? आप नहीं कर सकते इसे Autoboxing कहा जाता है, और जावा में कुछ वर्गों की एक विशेष सुविधा है, जो वर्गों के साथ काम करने में आसानी होती है, जो कि आदिम प्रकार जैसे int का प्रतिनिधित्व करते हैं।

c# - How should I update an iCal RRULE when moving an appointment? -

I'm switching my application's calendar from the teleic scheduler to the jQuery full calendar. I am accumulating recurring events in DB using iCal RRULEs. The question is, when someone leaves a new event on a new date, how can I update RRULE so that every subsequent incident can be hit at the same time? I have seen DDay.iCal and I see the method Repetition pattern. Incident date (ref iCalDateTime dt, int interval) Any suggestions? > Repetition Pattern. Incident debt is not actually used outside of the library itself. Maybe I will try to make it protected / private (if it can be done without breaking the overall functionality). Generally, whatever you should do is set (we say for 1 day, for example), and every repetition in that event will also be replaced by that amount. If you do not want the whole event to be changed by the delta, but only one specific event, then there are other ways to handle it. Can you possibly illustrate with an exam

svn - Is Unfuddle reliable? -

I need an online project management tool that includes SVN hosting because my team of developer is all remote. I am unfadeal Stumbled on the site and has read good reviews so far. I am very protective of my code and want to make sure that I keep it safe from any unwanted eyes. Has anyone used this device and is there a better option for my startup? Thanks in advance! I used Unfuddle for two different projects I found that it worked very well Does and without significant problem. If you are very worried about Unfuddle, then there is an automatic backup in it which can either backup or keep it on Amazon S3, which means that you do not like the service, The repository can be restored elsewhere.

Switch or If statement quicker in PHP, and why -

A switch or if the statement is quick to execute, where there are at least 10-20 terms < P> Thank you Dave It was benchmarked and came to the conclusion that "if / was slightly better. " Includes codes and standards. concluded that they are almost equal.

c++ - How to refrain from CS2512 correctly -

Please help me with the following problem: I have the following classes: class chemical element {private: std :: string _name; Zero Init (const std :: string and name); Public: Chemical Element (Const Stroot :: String and Name); Chemical Element (Conic Chemical Element & CE); }; Class combination rule {private: chemical element _ c1; Chemical Element _ C2; Zero Init (const chemical allment and CE1, conic chemical element and CE2); Public: Combination Rule (Conic Chemical Element and CE1, Conic Chemical Element and C2); Combination rule (combination combination rule and rule); }; The implementation is clear I wanted to initialize the combination rule by using the init method to reduce the code repetition. Hi, if I do not use the "member initialization list" of each manufacturer, then the compiler "complains with the error C2512: 'Chemical Element: No proper default constructor is available". Is a default constructor or member a great way to solve

sql - Cursor in While loop -

My cursor and output Anosiatti set @ Vender_aidi Int @ Vender_nam Nvrekr (50 ) DECLARE @subvendor_id int, @subvendor_name nvarchar (50) print -------- vendor product report -------- to "choose Open from the cursor * MYSEQ for cursor vend_cursor vend_cursor forward FETCH In @Vendor_id, @vendor_name WHILE @@ FETCH_STATUS = 0 Print '' - Announce an internal cursor - on the basis of the seller with an external cursor. Select the cursor selector * Open MYSEQ from product_cursor FETCH next product_cursor @ subvendor_id, @ subvendor_name WHILE @@ FETCH_STATUS = 0 if IF (@subvendor_id & gt; 3) MYSEQ from SELECT * where Skyuelaidi = @ subvendor_id FETCH next product_cursor get @ Subvendor_id, @ subvendor_name and close product_cursor DEALLOCATE product_cursor - next vendor quiz question I find the answers to many line values ​​I 4 text4 5 text5 (besides this there should not be duplicate records) Edit: Val Sampling Query I need to do several situations, this

Convert XML to CSV in PHP -

Can an XML file be converted to CSV using PHP? "post-text" itemprop = "text"> Use search engines to code samples like PHP 5.0 It is very easy to create a CSV file from XML, we just have to write a few lines We will use the simple XML extension coming from PHP 5.0. Simple XML reads a whole XML in an object that we can repeat through its properties. To write the CSV output file we will use fputcsv fputcsv forms one line as CSV and writes it in the file. Suppose we are doing this XML with cars.xml: First, let us read our XML using simplexml_load_file to pass the file name and give an object with all properties and values ​​of CSV: < Code> $ Xml = simplexml_load_file ($ filexml); After reading this, we should be repeated through all the hair nodes of cars and should be written in the output file so that the object, delimiter and enclosure can be specified. For the first time, we should change the object in the array to write the ob

Is there timezone offset bug in ruby on rails? -

मैं कोरिया में हूं। रेल संस्करण 2.3.5 है मेरे पर्यावरण में, config.time_zone = 'सोल' config.active_record.default_timezone = 'सोल' बनाया गया_आइट और अद्यतन_ट मान स्थानीय समय के साथ डाला जाता है डेटाबेस में। लेकिन, जब मैं मॉडल .created_at या model.updated_at का उपयोग करता हूं, मान यूटीसी + 9: 00 के साथ समझ रहा है: 00 इसलिए, मैं डेटाबेस को मॉडल डालें और प्राप्त करें मान, और तुरंत दोनों मूल्यों की जांच करें, यह अलग है: & gt; & gt; टाइम.now.to_datetime = & gt; रवि, ​​24 जनवरी 2010 21:28:03 +0 9 00 # नवा उत्पाद सम्मिलित करें और समय की जांच करें। अब और उत्पाद .created_at तुरंत। & Gt; & gt; उत्पाद .last.created_at.to_datetime = & gt; सोम, 25 जनवरी 2010 06:12:51 +0 9 00 क्या यह रेल का एक बग है? रेल में एक ज्ञात बग है: रेलज़ टाइमज़ोन गोटो: ActiveRecord :: Base.find समय ऑब्जेक्ट्स को यूटीसी में परिवर्तित नहीं करता

ssl certificate - How do I extract web wiki pages, which are password protected? -

I want to get some web pages and sub-links that are password protected. I have a username and password. And access them from the normal browser UI. But as I would like to save these pages later in my local drive for reference, I'm using WGET to get them: wget --http-user = USER --http-password = PASS http: //mywiki.mydomain.com/myproject but the above is not working, because it asks for password again to do so There is no better way of stuck with the system, again asking for the password without any special p What is the best option to get all the links and sub-links on the page and store them in a folder? Update: The actual page I am trying to access is behind an HTTPS gateway, and the certificate is not received for it. G verified What is there any way to get through this medium? mysystem-dsktp ~ $ wget --http-user = USER --http-password = PASS https://secure.site.mydomain.com / login? Url = http: // Mywiki.mydomain.com% 2fsite% 2fmyproject% 2f - -2010-01-24 18: 09

asp.net mvc - Changing the default MVC project template -

I want to change the default project structure for a new MVC project. I have seen a webcast where Scott Guthrie does this but it can not be found. Did you know this? You can find ASP.NET MVC project templates below: < Blockquote> % VSPath% \ Common7 \ IDE \ ProjectTemplates \ CSharp \ Web \ 1033 \ MvcWebApplicationProjectTemplatev2.0.cs.zip

c++ - GDB doesn't work with -D_FILE_OFFSET_BITS=64 -

मैं हिम तेंदुए पर एक i386 C ++ एप्लिकेशन संकलित कर रहा हूं। जब मैं- D_FILE_OFFSET_BITS = 64 मैं gdb के साथ बाइनरी का उपयोग नहीं कर सकता मुझे निम्न त्रुटि संदेश मिलता है: चेतावनी: ऑब्जेक्ट फ़ाइल "/var/folders/kw/kwmH332LGwCIh3GrRgck+++TI/-Tmp-//ccZfMAM5.o" नहीं मिल सका - कोई डीबग जानकारी उपलब्ध नहीं है "Test.cpp"। इस के पास -D_FILE_OFFSET_BITS = 64 । जब आप मैक ओएस पर संकलित करते हैं, तो डीबग की जानकारी निष्पादन योग्य नहीं होती है, लेकिन ऑब्जेक्ट फाइल में रहता है, और डिबगर इसके लिए वहां दिखता है। आपकी चेतावनी संदेश से ऐसा प्रतीत होता है कि आपने किया था: जी ++ -D_FILE_OFFSET_BITS = 64-जी test.cpp यह एक अस्थायी बनाता है ऑब्जेक्ट फ़ाइल (जैसे ccZfMAM5.o नाम के साथ), निष्पादन योग्य में उस ऑब्जेक्ट फ़ाइल को लिंक करता है, और फिर ऑब्जेक्ट फ़ाइल हटाता है चूंकि डिबगर डीबग जानकारी को वर्तमान ऑब्जेक्ट फाइल से नहीं पढ़ सकता है, इसलिए आपको चेतावनी मिलती है। इसके बजाय, इसे करें: g ++ -g -c -D_FILE_OFFSET_BITS = 64 test.cpp g ++ -g test.o यह tes

c# - How to implement a Progress Bar with multiple instances of application? -

I added a key to the registry that when I right click on a JPG file, then I have a new "Transform" option Appears to actually run my application. I want to apply the progress bar to see the progress of all the JPG changes. The problem is that when I select NJPG and "Transform" applies to them, my application runs n times (each time with a selected GPG). In this way, in my application, I can only know about the progress of a change. Can you recommend an alternative solution to implement the progress bar? (Maybe to create some temporary files, or something like that ...?) Thanks! My suggestion for you will not be to run your application more than once, but your application To open several windows, which will only communicate with each other. Why try to communicate through files, which are the problems, when you can create a new window within your current application and avoid it. Alternatively, you can see in cross-process communication, which is very pos

variables - what kind of datatype should i use for this 600851475143 in c++? -

I am using c ++, even though I declare long int, there is an error like that. .... long int number = 600851475143; WARNING: The integer for the 'long' type is very long continuous, in which case what datatype should be used? It depends on a lot of platforms and compilers that you are using. If you are on an x64 platform, then a long datatype should work in C ++. 9223,372,036,854,775,808 to 9,223,372,036,854,775,807 with a long-signed category on the other hand an unsigned long time between 0 to +18,446,744,073,70 9,551,615 Apart from this, there are some other datatypes based on the compiler and platform, which are effectively the same thing (doubleword, landed, long long, quad, quadword, int64). C (not C ++) supports long long data types. Say if you are on Fedora 10 x32, then GCC 4.3.0 supports long datatype, but you should put the URL after the big word.

Ruby Print Inject Do Syntax -

ऐसा क्यों है कि निम्न कोड ठीक चलाता है p (1..1000) .inject (0) {| sum, i | Sum + i} लेकिन, निम्न कोड एक त्रुटि देता है p (1..1000)। इंजेक्ट (0) करें | sum, i | Sum + i अंत चेतावनी: फिक्स नं को 'इंजेक्ट' में चिन्ह के रूप में न प्रयोग करें: 0 कोई प्रतीक नहीं है (आर्गमेंट एरर) क्या वह बराबर नहीं होना चाहिए? घुंघराले ब्रेसिज़ का इस्तेमाल करते हुए ब्लॉक इंजेक्शन विधि से जोड़ता है, जो कि आपका इरादा है, और यह ठीक काम करेगा। हालांकि, ब्लॉक जो कि / अंत ब्लॉक में समझाया गया है, वह पी-पद्धति से जुड़ जाएगा। इसके कारण, इंजेक्ट कॉल में एक संबद्ध ब्लॉक नहीं है। इस मामले में, इंजेक्ट तर्क की व्याख्या करेगा, इस मामले में 0, हर वस्तु पर कॉल करने के लिए एक विधि नाम के रूप में। Bacuase 0 एक प्रतीक नहीं है जिसे एक विधि कॉल में बदला जा सकता है, यह एक चेतावनी उत्पन्न करेगा।

multithreading - API Design for Task/Parallelization Library -

I have just completed an important revision of my task pool / paralysis library for D programming language. I am interested in critics It is, especially by those who are not regular D of regular users, but want to know the decent amount about the use of such a library I would like to save from the group's ink which is only for the sake of its vote. Yogkrtaon will be made by asking relatively small community opinion. Do you think the API is not engineered at the right level, that is, ridiculously more or futile? Do you think the documentation is quite clear that anyone who is not already a D master, use it? Do you think there are any major missing features that should be added or the useless features should be removed? Do you think this is a good design? Disclaimer: maybe staying around with D 2.0 for 10 days (Tick "Do not use D regularly") I consider it an opportunity to learn something about D. Regarding 1 and 2: Easy to read and understand

javascript - JQUERY, Calling a Dialog that I created? Not finding it -

I am using the following code to create a dialog box using JQUERY / UI: < Pre> var $ dialog2 = $ ('div id = "sharerdialog2"> ;). HTML ('& lt; p & gt; Loading ... & lt; / p & gt;') .dialog ({autoOpen: false, title: 'image stuffer', status: ['center', 150 (Function () {$ dialog.dialog ('off');});}, open: function (event) , UI) {$ ("# sharerdialog2"). Load ("MyURL.com");}}); I'm trying to call the dialog to open it, but JQUERY is not using the following: $ dialog2. Dialog ('open'); Strangely, if I add the following after the above, then it works on a BIND: $ ('# ttttt') . () {$ Dialog2.dialog ('Open');}); Any ideas why this is? How can I communicate to open in another function? Thank you You should wrap your code in a domain event handler: $ (document) .ready (function () {$ dialog2.dialog ('open');});

Encryption without super access -

I have to create a form for users on a website where messages are encrypted, so that hosting company or super administrator They can read people in a single team, read messages, but the messages are still hosted on the server. How to do this You can encrypt the client side with javascript. Look for some tips. However, you are still susceptible to javascript editing to interfere with malicious administrators. I can not really see any way around it; You can not count on the code running on an untrusted server.

javascript - how to detect which level on the dom is selected -

मेरे पास निम्न चयनकर्ता है $ ('# navigation ul li a')। क्लिक करें (फ़ंक्शन (ईवीटी) {} इस तत्व को मुझे ज़रूरत है, परन्तु बाल तत्वों का भी पुन: प्रयास किया जाता है। यानी मुझे यह भी उतना ही मिलता है # नेविगेशन उल् ली ली एक एक / अतिरिक्त li बस मैं क्या चयन कर रहा हूँ डोमेन के स्तर का पता लगाने का सबसे अच्छा तरीका सोच रहा हूँ। आप > का उपयोग कर सकते हैं जो कि पैरेंट & gt; बाल चयनकर्ता है .. आप $ ('# नेविगेशन & gt; ul & gt; li & gt; a')

If an HTML form has two <input type="submit"> buttons, how do I know which got clicked? -

मान लीजिए मेरे पास निम्न HTML फ़ॉर्म है: & lt; form & gt; ... & lt; इनपुट प्रकार = "सबमिट करें" name = "queue" value = "Queue item" & gt; & Lt; इनपुट प्रकार = "सबमिट करें" नाम = "सबमिट करें" मान = "आइटम सबमिट करें" & gt; & Lt; / प्रपत्र & gt; मुझे कैसे पता चलेगा कि उपयोगकर्ता किस बटन पर क्लिक किया था (जावास्क्रिप्ट का उपयोग किए बिना)? मैंने प्रस्तुत डेटा को देखा और ऐसा लगता है कि जब "कतार मद" क्लिक किया जाता है तो "queue" = "कतार मद" को सर्वर पर भेजा जाता है और जब "आइटम सबमिट करें" क्लिक किया जाता है तो "सबमिट करें" = "आइटम सबमिट करें" सेट भेजे जाते हैं। क्या मैं इस व्यवहार पर भरोसा कर सकता हूँ? क्या यह कहीं HTML रूपों पर मानक में प्रलेखित है? आप लोग कैसे करते हैं? हां, आप इस पर भरोसा कर सकते हैं; यह पूरी तरह से प्रलेखित है विशिष्ट प्रासंगिक लाइनों का कहना है: जब कोई प्रसंस्करण के लिए प्रस्तुत किया जाता है,

ASP.NET - getting a form's fields to line up with CSS -

Image
I'm trying to learn how to raise the fields of a form using CSS instead of the table. I have a hard time coming up with a checkbox control code here: & lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & lt; Label = "checkbox 1" & gt; Checkbox & lt; / Label & gt; & Lt; ASP: checkbox ID = "checkbox 1" runat = "server" /> & Lt; Br / & gt; & Lt; Label = "textbox1" & gt; Text box & lt; / Label & gt; & Lt; ASP: Text Box ID = "Text Box 1" Runat = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; / Form & gt; Here's the CSS: body {} label {width: 300px; Swim left; } I think that looks like this: check box [] [checkbox 1] text box [] Why is the [checkbox 1] on the next line? Here's a picture: Also, what to do Is there a better way? ASP.NET has

generics - Java: Subclassing a genericised class -

I have a generalized class that I want to subcategory: public class SomeTable & Lt; Tee BaseTable Entry & gt; BaseTable extension & lt; T & gt; {PUBLIC SATTABLE (int rows, ant cols) {super (lines, colonels, fewteenth enterter classes); // is not compiled: // symbol can not be found: Constructor baseTable (int, int, java.lange class < P> ... where is the generalized superclass: public square base table & lt; Tee BaseTable Entry & gt; {Public BaseTable (int rows, ant cols, class & lieutenant; T & gt; clays) {...} ...} I understand the compiler error, but an alternative Unable to find the solution, Any suggestions? Thanks It compiles: < Code> Public Class Expands SomeTable BaseTable & lt; SomeTableEntry & gt; {PUBLIC SATTABLE (int rows, ant cols) {super (lines, colonels, fewteenth enterter classes); }} It works with an artist: Public square SomeTable & lt; Tee BaseTable Entry & gt; BaseTable extens

php - proc_open() path problem -

I am using Linux and PHP 5.2.12 I have a problem executing proc_open If I use proc_open ('php script.php', $ descriptorspec, $ pipes); This will show me the error sh: / php: Any such file or directory If I do not use Does proc_open ('/ usr / bin / php script.php', $ descriptorspec, $ pipe); or proc_open ('php script.php', $ descriptorspec, $ pipe, '/ usr / bin /'); It still shows me the same error. I do not know why it always engages the slash in front of the order. Any help please? if you do not want to turn off Safe Mode By the way, just set it in your php.ini file safe_mode_exec_dir = "/ usr / bin"

css - Text is scaling on IE6 even without % and em from View > Text resize function of IE6? see example? -

The text is scaling on IE 6, without the view of AM and AM> ISE's text size change function? But nothing on this page is specified in% and M but scaling with text - see> resizing the text of IE 6 Why? IE6 support text resizing? It is considered to be a big applicability and acceptance bug in IE6 - it has long been Px was not recommended because most users will not be able to change it. Fortunately, Microsoft has fixed this issue in new versions of IE. The mention page does not contain % or em (or ex , or whatnot), but IEEE some Helps to resize the text. For example, the page is using it: & lt; Font size = "5" & gt; President Clinton: "Y2K We Can All Enjoy" & lt; / Font & gt; Which is today. Another common text size supported by IE6 using CSS Font-size: Medium; / * Or small, xx-large, etc * / Finally, IE 6 will also resize the text with no fixed text size at all . The default text is resizeable.

Does using bonjour on the iphone enable bluetooth automatically? -

I am planning for a colleague that I can use the unique app for the iPhone. No WiFi will be available and therefore depends on Bluetooth. I know that Wi-Fi's eviction works as well as services based on bluetooth. My question is, when I start a good service or try to discovery, will Bluetooth be automatically enabled on the phone? If not, how do I enable Bluetooth - I can not get a public API in the SDK? Regards, HB Not to choose the network connectivity option in the user settings app Is responsible. If they have not enabled Bluetooth, then you can not turn it on for them. -t

PHP: How do I check the contents of an array for my string? -

I have a string which is coming from my database table, say $ needle. If the needle is not in my array, then I want to add it to my array. If it is in my array, it is only in two times, even if I want to add it to my array (it will be three times maximum) To see it Is the $ needle in my $ gear array, do I need a loop through the array with the strokes (or is there a quick method)? The table has many needles, so I'm starting looping through the selection result. This is the schematic of what I am trying to do ... $ haystack = array (); While ($ line = mysql_fetch_assoc ($ result)) {$ needle = $ line ['data']; $ Num = no $ $ in needle $ hejstack $ / $ haystack is an array if ($ num <3) {$$ haystack [] = $ needle; // hope that it connects the needle}} // end time Get the next needle? Do anyone know how I should do this: $ num = no $ needle $ hansstack Thank you You first use the value for each value to build the map , And after that only the value

php - How to post Source Code inside a Wordpress blog post -

I just started coding related WordPress blogs to discuss topics and store code snippets. I have installed a code syntax highlighter plugin but it is a problem I tried to post related blog post to my first code and WordPress shows only after posting some of my code and then did not show anything in it. As if some of these are filtered, though I'm wrapping it in a tag like this. Some of my codes work and some are filtered in some way. I know this is possible because many WordPress coding sites show source code do I need to modify it to work in WordPress? UPDATE I've confirmed that it filters out all of my code while trying to print it to the screen So, when I go to edit the post and preserve the text box with all the source code Have you read this? You can use WordPress to highlight code.

java - How can I keep track of original character positions in a string across transformations? -

I am working on an anti-literary program for my CS class. It involves detecting plagiarism in computer science courses (programming assignment) Basically, I am taking a group of programming work. Explains that one of the assignments looks like this: Public class Myclass {public static zero main (string [] args) {// some variables some somear = 0; }} It needs to be run through a front-end, lexical analysis section, which is to break the features of code that we do not want. In this example, I want to change the name of all identifier name for continuous "V" and strip all comments from the code. To do this, we will use the existing grammar to use the appropriate languages ​​for different languages. The end result is: public class V {public static zero V (string [] v) {int v = 0; }} Print all the spaces to get us again: publicclassV {publicstaticvoidV (string [] v) {intV = 0;} } This string then breaks down in the pre-sized KGram. For example, K =

Are there any good Java thread migration packages? -

There has been a lot of research on migrating Java threads between different machines on different machines, but there are some publicly available, maintained, real implementations that everyone uses? If there is not a good implementation, but there are many people, then whom do you recommend and why? (Note: I am not talking about database migration, I look for handpumps, RMI, artists, or any other way of computing distributed, especially for threads of Java Information on migration is not required, not scala [yes, I am aware of continuity in bleeding edges] or something else that can sit on JVM.) Not sure that you are, but ... I need to know something and users as well as some projects project used to migrate between the JVM is, however, to see the end of the release. And contributors who work for this are tough, but perhaps try to have some restrictions / overheads in comparison to Jvm-native migrations. You may also want to keep an eye on this.

c - How to force gcc use int for system calls, not sysenter? -

Is it possible for GCC to implement int instructions for all system calls, but Sysenter ? This question might look strange, but I have to compile some projects like Python and Firefox in this way. Summary Thanks for jbcreix, I've downloaded glibc 2.9 source code, and #undef I386_USE_SYSENTER by sysenter To disable usage, modify the lines in sysdeps / unix / sysv / linux / i386 / sysdep.h, and it works. After converting to int 80 in , compile your C library again and div> > Syscall.s and link again. This compiler is not a generated code, which means that you are lucky. The original source of the original syscall is here, as the OP says: And as I suspected it was actually a syscall. It is just That glibc sources are a labyrinth. So I think she got it right, Eskiqui.

rubygems - chronic gives me error after installation (ruby) -

मैं रूबी 1.8.6 (2008-08-11 पैचलीवल 287) [i386-mswin32] मुझे रूबी गम्स का उन्नयन करना था, इसलिए मैं 1.3.5 चलाता हूं फिर मैं पुरानी (0.2.3) पुरानी है लेकिन मुझे केवल प्राप्त होता है । / पुरानी। आरबी: 3: ईनिर्धारित निरंतर क्रोनिक (नेम एरर) ई से: /प्रोग / आरबीआई / लिब / आरयूबी / साइट_आरबीआई / 1.8 / रुबैगम्स / कस्टम_रेक्वायर। आरबी: 31: में `gem_original_require 'में से ई: /prog/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31: में 'पुरानी' से पुरानी.आरबी: 1 यदि मैं इस कोड को चलाता हूं < / P> की आवश्यकता होती है क्रोनिक। पीरसे ("कल") डालता है "कल = # {क्रॉनिक। पीआरएस (कल '')}" डालता है "आज = ​​# {क्रोनिक। 2 दिन पहले = # {क्रोनिक पेजर ('2 दिन पहले')} "डालता है" 2 महीने पहले = # {क्रॉनिक। पार्स ('2 महीने पहले')} " क्या फ़ाइल है जिसमें आपकी परीक्षा है कॉड ई नामित क्रोनिक.आरबी या क्या chronic.rb नामक वर्तमान निर्देशिका में एक और फाइल है? यदि ऐसा है, तो उसका नाम बदलने का प्रयास

php - Netbeans macro command for /* */ comment block -

I am using Netbeans 6.8 and trying to create custom PHP comment code block macro with / * * / style I am not and the usual double slash. By now googling and asking PHPUGPH, I found this macro code (Tools-> Options-> Editor-> Macros): copy-before you code The shortcut key combination should be highlighted and to make a comment block. P> My problem is now that I do not know the macro code to cancel a PHP block. I got some code but I can not work it I know this is older than more than a year), but I'm looking for useful macros for netbeans It was found while doing and it was still unanswered. If you are still interested, then I have found a solution. I know that I am using it from now on, thanks for the idea :) select-forwarded selection-forward copy-to-clipboard delete-line paste-to-clipboard delete -Edit the last: BTW, I'm using 7.0.1, but I believe it will still work in 6.8

c++ - recv() with errno=107:(transport endpoint connected) -

Well .. I use a specific model of Impl + Multithread to handle mass sockets. I mean, I called a bag called Apolloversetrude, use epoll_wait to handle I / O sockets, whereas EPOLLIN is an event, recv () will work and I will be able to return immediately to the noblocking mode Use. And recv () is actually in a time (true) loop, everything is fine in the initial time (maybe a few hours or maybe minutes or if I am a lucky day), then I can get the information but after some time, recv () With an error, it is said with emphasis to return -1 with ENOTCONN. The second partner of transport has been written in AS3, which ensures that the socket is connected. So I'm confused by recv () behavior thanks in advance and any comments are appreciated! Error 107 means that the socket is not connected (and more) . There are several reasons why this might happen. Assume that you are right and the connection claims that the socket is still open, an intermediate router / switch may have left t

mdx - Howto: Display a parameter on a SQL Server Report? -

I am making some reports out of our SQL Analysis Server 2008, in Visual Studio BIDS. The report works fine, and uses an MDX query with parameters, so far, very good. The problem is that I would like to display the parameters on the report. For example, I would like to display the 'month' of the date parameter, but it appears on this type of report: [date]. [Month]. [2010-2011-01-100: 00: 00] No matter what I want, how can I show this as 'Jan'? I am not getting any work that does this Does anyone have experience with it? I decided to add it to the required value in the selection-field.

javascript - How to change li position using Jquery -

I want to create a function which is the first time the function is called the first one on the top The last example would be the last one so that thanks $ ('li: before ') .appendTo (' ul '); Example of work (click anywhere):

eclipse - Where's the font setting for folders in the Package Explorer? -

I'm talking about Eclipse (3.5 = galileo), which is running under Kubantu 9.10 and I have Subversive plugin is I have been transferred from Gnom-Ubuntu to Kubuntu, and the effect on one side was that reading some fonts is too small In the Explorer there is a decent size of file name, But folders are shown in very small fonts, and after adjusting all the fonts in general; Appearance | Maybe I'm just blind I appreciate it if someone can talk to me how can I adjust the font for folders in Package Explorer This will use the default GTK + font settings, because eclipse is a GTK application. You may have to install the Gnome presence preference applet to get a GUI to replace.

javascript - how to make the parent window blank during the onload? -

When I type URLs in the browser, login.jsp is evaluated and with a hair window (Dynamic Toolbar) ) Is opened and the parent window closes. I want to do that when I type urls in the browser and click and I do not want to display any info on the login.jsp page to be void in the parent window. I I have no idea of ​​using another jsp ... Someone can help me understand codes or ideas .... Login. Js file function focus () {/ p> window.onload = ifocus (); Document.LoginFB.strUserid.value = ""; Document.LoginFB.strPassword.value = ""; Document.LoginFB.strUserid.focus (); } Function ifocus () {if (Window.opener) {window.opener = 'top'; Window.close (); Window.open ('http: // localhost: 8080 / jsp / login.jsp', 'tr', 'width = 1250 height = 700, toolbar = no, location = not, directory = not, condition = no, menubar = No, hbar = yes, scrollbar = yes, copyHostry = no, scrolling = yes, resizable = yes'); } And {return; } Lo

Change isRequired star position in Struts 1 -

I am using String 1 on a form and need to mark some input as needed. The thing is that The red color (* *) showing the required fields when it marks them with isRequired = "true" , then the original text is displayed immediately after the box: < / P> Is there a way to change the status of the star to the left before "Input"? If necessary, its code is now: & lt; Layout: Text Property = "Input" key = "form.input" styleClass = "FormInput" mode = "E, E, I" isRequired = "true" /> You have to type your own custom tag which basically increases the layout : Text tags but overrides the output (i.e. wire is generated only if there is an error in the field). Start here: You can probably go to the "Examples" page, but it is also good to know other stuff.

CSS-Redundancy when using LESS and its @import -

I really like the idea and the concept. Nevertheless, I stumbled upon a bug, which I told the author a long time ago. Was but had not received any response so maybe it is only me who is doing something wrong My application.less - The file that looks like this: @import "reset"; @import "config"; @import "header"; @import "forms"; [...] I like to use the @import rule to split my files to better observe my CSS announcements. I still need to import config.less-file again for every imported file to be able to use the mixer and variable. I Only bet I'm running on redundancy, find out about: config every time Less is imported, its "output" is part of the application.css About 200 lines of my config-file code Since I divided my CSS into about 5 files (depending on my controller names) which need to be imported again So, I generate a CSS code of about 1000 lines which is 100% redundant The only solution I can come u

c - Any systematic way to avoid "reentry" problem? (embedded system) -

We are using C to create a system on the ARM core (i.e. an embedded system). The question is how can we avoid the problem of re-establishment in a formal way so that we are confident that all retrieval bugs have been removed. This is not a practical desire, but certainly important for any system, I think. Just to discuss, I think that the UML diagram is to be painted or the whole state machine will be good starting (but how did it develop after the whole system?). Any suggestions about using state machine / UML diagram for analysis? I am not at all sure about the problem you want to solve but I Let's make an educated guess. The first point is to identify the tasks that can be problematic. A recent is either by a recursive call, which can go to multiple nested calls and can also be hidden by the callback / dependency injection or the function used within several threads. You can draw a guided call graph. Say the function is a call B and C, function B call D, E and F,

iphone - UINavigationController and adding a badge to rightBarButtonItem -

How can I add a numerical badge to BarButton ITM to the right of a UI navigation controller? You can also see this in a few shopping cart apps thanks in advance It must be done manually (i.e., create a scene that attracts the badge and number) There is no API to set the badge value on UINavigationBar.

java - Using apache commons email library getting error must issue a starttls command first. Please help -

ईमेल ईमेल = नया SimpleEmail (); स्ट्रिंग लेखक = "...... @ gmail.com"; स्ट्रिंग authpwd = "*******"; // बहुत महत्वपूर्ण, ईमेल का उपयोग न करें .setAuthentication () email.setSmtpPort (587); Email.setAuthenticator (नया DefaultAuthenticator (authuser, authpwd)); email.setDebug (सही); // यदि आप ई-मेल .setHostName ("smtp.gmail.com") डीबग करना चाहते हैं तो / Email.getMailSession ()। GetProperties ()। डाल ("mail.smtp.auth", "true"); Email.getMailSession ()। GetProperties ()। डाल ("mail.debug", "true"); Email.getMailSession ()। GetProperties ()। Put ("mail.smtp.port", "587"); Email.getMailSession ()। GetProperties ()। डाल ("mail.smtp.socketFactory.port", "587"); Email.getMailSession ()। GetProperties ()। डाल ("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory"); Email.getMailSession ()। GetProperties ()। डाल ("mail.smtp.socketFactory.fallback&

c# - Reflecting over all properties of an interface, including inherited ones? -

I have an example of System.Type that represents an interface, and I have a list of all the properties on it Getting the interface - inherited from those base interfaces. I basically want to do the same behavior with such interfaces which are available for classes. For example, this hierarchy has been given: Public interface IBase {public string basePorFT {get; }} Public Interface ISUB: IBIS {public string subproperty {Received; }} Public Class base: ibiz {public string baseforfo {return {return "base"; }}} Public class sub: base, ISUub {public string subproperty {return {return "sub"; }}} If I call GetProperties at class - typeof (sub) .GetProperties () - So I get both the BaseProperty and SubProperty I interface I want to do the same thing, but when I try - typeof (ISub) .GetProperties () - Everything comes back to subproperty I tried passing the binding flag.Instance | Binding Flags. Public | Backing flags.Flaton Hieraki for GetProperties, becau

equality - When would JavaScript == make more sense than ===? -

As they indicate they are basically the same ' === ' evenly And therefore ' == ' can be converted to type in Douglas Crockford's Javascript: The Good Parts , always' == 'However, I am thinking that what was the basic idea of ​​designing two sets of equality operators. Have you noticed that using ' == ' is actually more suitable than ' === '? When you compare numbers or strings: (4 === 4) {// true} but if (4 == "4") {// true} and if (4 === "4") {// false} with these objects -with applies also to the array. In the above cases, you must make wise choices to use == or ===