Posts

Showing posts from June, 2010

javascript - When developing OOJS, should I reference the protoype function, or the variables version? -

Specify the title (type), when I am prototyping in JS, and I refer to its second function Need to provide the object, can I use its protonal version, or local variable version? Are there any issues related to either (major) overhead or one? // start foo = function () {} Foo.prototype.ShowMessage = function (msg) {alert}; } // Method 1 Foo.prototype.Validate = function (msg) {// Some verification materials ... if (! Valid) {this.ShowMessage ("Please check your input, they are having problems with them." ); }} // Method 2 Foo.prototype.Validate = Function (msg) {// Some verification material ... if (valid!) {Foo.prototype.ShowMessage ("Please check your input, there is a problem in them. "); }} I would like method 1, purely because it's easy to type instead of fu.prototype, but is it a fair demonstration? Or am I just talking about this? You should definitely use it this.showMessage ( "message"); The second version will not work perf...

c++ - Code Style in eclipse -

What is the method to implement code style in Eclipse using the Eclipse plugin? I have created a code template. I want to apply it so that every time a user selects to save or save, the code template is checked against one I created. If it matches the file the user receives an error message. The problem I am facing is - How do I get the code style (templates) name at run time .. And where do I add it to the code to apply it ... Any point is appreciated. Preferences -> Java -> Editor -> Save Action -> Select selected actions to save - > Format Source Code

ruby on rails - Is it possible to bind an attribute to a forms_helper.select in a partial? -

In a rail view, I & lt; Select & gt; Trying to show a drop-down list for several string fields with restricted values. I'm trying to do this with partial (below), but the current value is & lt; Not being selected in select & gt; List. Is it possible to do partially? if so, how? Is there a better way? edit.html.erb: & lt;% form_for (@my_class) do | F | | & Gt%; & Lt;% = Render: Partial = & gt; "Select",: local => {: Attribute_name = & gt; : Blah, f => F}%> & Lt;% end% & gt; _select.html. ARB: & lt; P & gt; ... & lt;% = f.label feature_name% & gt; & Lt; Br / & gt; & Lt;% = f.select attribute_name, [: option_a,: option_b,: option_c], {: selected = & gt; Att__name}%> ... & lt; / P & gt; I believe that the selected option based on price check, not the name of the attribute . This may work for you, but I have not tested it:

iphone - change background color of a section header title (normal tableview) -

My app looks like the default address book app on the iPhone gray gradients for each alphabet in the background color in the address book (A, B.) has a section header. Is it possible to override this default color to another tint color? You can change section headers by applying the following method in UITableViewDelegate to a UITableView: - (UIView *) Table view: (UITableView *) table view viewForHeaderInSection: (NSInteger) section You will definitely display your new section view correctly To see the height method: - (CGFloat) TableView: (UITableView *) TableHigh heightException: (NSInteger) section section Head To change the color of the text, which create a UIView with a UIImageView, and a UILabel for the text section. APAI, you can not manipulate the tint of the section view.

Code-First Entity Framework - error creating SQL CE DB -

After the I am using CTT Guthrie and another Scott Hanselman as the outline of the unit with Code-First as CTP (Can not post link, but Google with "Simple Code First Unit Framework 4 - Magic Unicorn feature CTP4"). It's working perfectly for the main MVC application, but now I'm trying to add a test project, which uses a different SQL CE database. I've added the following to the App.Config file: & lt; Connection best & gt; & Lt; Add name = "mydata" connection string = "data source = d: \ myProject \ myDb.sdf;" Provider Name = "System.Data.SqlServerCe.4.0" /> & Lt; / ConnectionStrings & gt; However when I try to run this test thrown by trying to create the following error when creating the database: Test Method MyProjet.Tests.Administration.ModlelTests. Business The TestGate Business List threw an exception: the system. reflection. Target invocation exception: An exception has been thrown to the go...

php - How to use FTP with ajax? -

Suppose I am sending an AJAX request to PHP from FAP: $ Connection = ftp_connect ($ server); $ Login = ftp_login ($ connection, $ ftp_user_name, $ ftp_user_pass); After this request I want to upload a file: $ upload = ftp_put ($ connection, $ dest, $ source, $ mode) ; Is there a way to send an AJAX request without having to keep the FTP connection on the server side and restore the FTP connection on the server side? Thank you! Hmm .. The only way to get to the brain is to apply the PPP process, and But to be quite clear, you may want to reconsider your problem / however, some extra resources (file, shamme etc.) with AJAX process / tool combination here. It looks a bit like the old trash "If you've got a hammer, every problem looks like a nail". The main strength of PHP is that it is ready to clean all the resources claimed after handling a single request specifically handling the request. Other languages ​​/ platforms are more stable, and may be a...

google app engine - Best stack options for Video Chat server using GAE/Java and Flash -

We want to create a high-performance web-based chat server on the server side on Google App Engine using the client side and Flash on Java Are there. Consumer Pursuit: Therefore, we have Flash in customer favor. We may write some action script code to start using web cam and post it on a web server. Please correct me if I am wrong. Server side: Options: 1) Adobe Flash Media Server - I can not understand what this is and can it be integrated with Java code on GAE? 2) Wowza looks like a dead end for Google AppEngine. 3) Wowza for Azan - if we can integrate it with GAE app that is good Will happen. Any indicators, case study, advice will really be helpful. P> GAE is probably not a good fit for this application because you can not process long-running server. See similar to me like this Is chat between users only? Why not connect them directly to each other (how does Chatroulette work)?

c# - Applications manifest file causing problems on Win 7 environment -

My app has been upgraded from 1.1.4 to 3.5. On win 7 64 bit environment I manually delete the app.exe.manifest file because otherwise it crashes when it launches. I deployed a visual studio & amp; To set up, in the application settings of Setup Project Exe, I have tried all the options in my own dropdown, which is related to anything used to use a manifest file (the manifest is still ready) . Ideally I want to see and feel the office but in the worst case this full stop is working, okay with now or without Any help appreciated. Update: Manifsest file & lt; Assembly xmlns = "vase: schemas-microsoft-com: asm.v1" manifestVersion = "1.0" & gt; & Lt; Dependency & gt; & Lt; DependentAssembly & gt; & Lt; Assembly Identity type = "win32" name = "Microsoft.Windows.Common-Control" version = "6.0.0.0" Processor Architect = "x86" public keyToken = "6595b64144ccf1df" language = ...

iphone - UIImagePickerController source (Camera) when dismissed inside a UITabBarController shows blank screen -

Text after " I have the following hierarchy in my application: UINavigationController | __ UITabBarController | __UINavigationController | __ ViewProfilePhotoController (* presentModalViewController: Picker is here) problem I have is when I canceled my UIImagePickerController ViewProfilePhotoController I only dismiss the situation to get a blank screen with the bar Press opinion is that it seems to show inside ViewProfilePhotoController (actual picture). This behavior is really funny, because I've tried the same code by taking out UITabBarController your application hierarchy and the problem is not present, and serves everything required me All delegates have been properly configured in ViewProfilePhotoController and I believe the hours have tried to fix it. I have also checked all possible configurations within UIImagePickerController, by setting the correct parent view, and then nothing worked. Hierarchy failed viewWillDisappear down and then try Any insight ...

ruby on rails - Using Formtastic to select from a radio set and optionally create a new record -

I have started using Forsterstastic in the last two days and have come in my first head-scratcher. I am working with items that have some related accounts of each. In the question in the page, you will have to choose a payee account, this can be either an account we already know. ("Main contact") or a new account which you can create by filing short information. I'm trying to replicate this design: Using Formattic is very easy to display a form to enter information for a new account. is. & lt;% = form.inputs: street ,: city ,: = & gt; : Address% & gt; It is also very easy to create a radio selection list of available accounts. & lt;% = form.input: address ,: as = & gt; : Radio ,: collection = & gt; @ Address% & gt; As the picture above, I'm worried about the problem, how to do both - select an existing account or create a new one. Okay, the real question is how to do both beauty What I thought I think is adding t...

android - How can I construct the Contact application title bar -

In the Android 2.0 Contacts application, there is a 'frequently contacted' title bar under the 'Favorites' tab. Can you please tell me how can I build myself? I would like the size of the font, the color of the font, the background color they use. You can catch the source of contact APK and see that Android Dev created the UI How did.

domain driven design - DDD and storing complex Value Object in db using Hibernate -

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

php - balancing Server side and Client side code on a large website -

Let's say I'm programming Facebook (which I'm not) or any other site contains heavy traffic. Our default layout is: All CSS is in external file 99% of JS is in external file The back bone of the websites is generated by a PHP / MySQL backend. JS Functions that usually change, produce the DOM of those parts. Our server has an in-display API that returns JSON objects that are fed to our DOM Builders (JS Function), which takes a JSON object, a list of friends, then all HTML To display a list of used friends, or events etc. Question Is this fair? Is it normal practice that I mentioned in the DM? Are JS Functions dedicated to the creation of? Is this scalable? JS is very slow? (BTW, we use JQuery almost entirely) I know that it significantly reduces the bandwidth and server load, because the server is no longer through the list of friends Is running (of which it has been inquired for via MySQL) and instead of generating all the HTML, but creating a ...

c# - Number Formatting in Thousands -

उदाहरण के लिए, मैं 10562.3093 को 10,562 में कैसे बदलूं? सी # में? इसके अलावा, मैं यह कैसे सुनिश्चित करूं कि वही फ़ॉर्मेटर अन्य सभी नंबरों पर सही तरीके से लागू होगा? .... ... उदाहरण के लिए = "पाठ"> स्ट्रिंग फ़ॉर्मेट किया गया = मूल्य। टॉस्ट्रिंग ("N0"); यह आपकी संख्या को वर्तमान संस्कृति द्वारा निर्दिष्ट तरीके से विभाजित करता है ("एन-यूएस" के मामले में, यह 1000 के प्रति एक कॉमा है) और इसमें कोई भी दशमलव स्थान शामिल नहीं है। और यहां:

iis 7 - How to deploy COM object Microsoft.Office.Interop to IIS so that my C# WCF service reference will work? -

I am getting an error while trying to run my web application from IIS 7 on my local machine. Outlook is like the following ... Failed to retrieve a COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} due to the following error: 80070005 Access denied is. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) When I run this same web app from VS2010 and Cassini, then I have no problem. When I run the web app from IIS 7, I indicate my VS2010 on the IIS virtual directory. In fact I was also making the VS 2010 Virtual Directory. So I'm debugging with VS-2010 and I have gathered the error posted here. I went to Microsoft. Office. Inter.Outok.AL To read, write, modify and delete files and everyone. Just to exclude safety. What are the other ways when Microsoft.Office.Interop refers to DLL? I should configure something different about this, then switch back to running in Cassini and there is no problem. SharePoint is installed on my server a...

php - Any fast screenshot services available? -

I need one which does not have a large queue, so if it is not in its cache, it will generate and It will deliver very fast (1-4 seconds). I have a list of services, what I am asking if you have thanks EDIT: To clarify my intentions, let me About 200-300 any thumbnail of any website is required PX wide I need its intensity because it is displayed while calculating peripheral stuff in the background of my script (this is done and is working .) I for testing I am using a free service, but it has a large queue and most of the time the forward side redirects the result before the screenshot happens. My code usually takes 10 seconds before redirecting results) "post-text" itemprop = "text"> I think you should start an X server and "import" "You can do something in your own self by taking a screenshot using the command - I am pretty sure that it is getting faster than any external services.

java - Cosine Similarity of Vectors, with < O(n^2) complexity -

I found this site looking around for similar issues: and this: However, this run in O (n ^ 2) seems to be clustering some documents and found that this level of complexity was also not possible when dealing with small document sets for dot product, only we vector contained in both vectors Conditions are required, it is possible to put the vectors in a tree and In this way, calculate the dot product with N log n complexity, where N is the number of unique positions 1 of 2 documents Am I missing something? Is there a Java library that does this? Thanks If you store vector elements in a hashtable Do not just log in anyway, do not you? Loop on all the keys in small documents and see if they exist in large ..?

actionscript 3 - Making the points always visible in a flex line chart -

I'm trying to do something similar to this example (source code enabled): When you run on each data point, a board indicates that this is a point, how do I show those circles all the time? Edit: This example is not mine, but you can see the enabled source here: Umm, the case you show is an example of work, which is not giving any details about the code. Codes can be huge ways, for example - code can keep an event listener & amp; A mouse event is out ... so removing it makes the circles very high. But still I suggest that at least you are not doing anything, if you do not get some code.

iphone - could not locate an NSManagedObjectModel for entity name -

This is the toggle-type code for the project, the core data code is almost identical as found in Apple's CoreDetBooks sample, but When I click on the link to add app accidents with entityForName: one for the entity name 'project' on the line starting with newProjectController.project Could not find NSManagedObjectModel. - (IBAction) toggleAddProject {NewProjectViewController * newProjectController = [[NewProject Visual Controller Alok] initWithStyle: UITableViewStyleGrouped] autorelease]; // Create a new managed object context for the new project - set its consistent store coordinator to the same order as the faked result is from the context of the controller NSManagedObjectContext * to connectcontent = [[NSManagedObjectContext alloc] init]; Self.addingManagedObjectContext = add syntax; [Managed Object Contact Set Setsstantstore Coordinator: [[Proportional Results Controller Managed Object Contains] Continuous Store Coordinator]]; NewProjectController.project = (P...

php - Converting a time string to UNIX timestamp -

How can I change the string of a time like this: 30/7 / 2010 A UNIX timestamp? I tried strtotime () but I got an empty string: ( PHP> = 5.3: $ var = date time :: createFromFormat ('j / n / y', '30 / 7/2010 ') - & gt; GetTimestamp ();

qt - Add a define to qmake WITH a value? -

How do I define a value with a quake: For example, it does not work (Like I expected) my In Pro File: Definitions == WINVER 0x0500 and Definitions + = "WINVER 0x0500" How do I define the wayver as 0x0500 before starting any compilation, its definition is not affected by any compilation or order inclusion in any way? Definitions = "WINVER = 0x0500" works for me. In this way, -DWINVER = 0x0500 is added to the command line of the compiler, which is expected for syntax GCC / Amingav with command line preprocessor definitions (see for details) .

c# 4.0 - XML navigation and reading using C# 4.0 dynamic? -

Is there a DLR-enabled XML navigation and reading class available in .NET 4.0? For example, I have this XML: & lt; Foo & gt; & Lt; Bars & gt; Fobar is here & lt; / Bar & gt; & Lt; Bars & gt; Fobar is also here & lt; / Bar & gt; & Lt; Baz & gt; Fobar is not here & lt; / Bar & gt; & Lt; / Foo & gt; There is an easy way to navigate through this XML like this: someDlrEnabledParser.Parse (xmlString); Foreach (var node in doc.foo.bar) {if (node ​​== "fobers is here") DoSomething (); Else DoSomethingElse (); } I can see many reasons, from the point of viewpoint, beyond the point of view, including namespace, versus elements, difference collection versus single elements, text versus encoding XML, etc. Responsible. But XML is much more simple about handling and read only, and I have the specialty of working with "bracket and bid soup" that is simple XML to avoid in exchange The sensible default ...

.net - I wish to have a route named 'properties', but receive 404 error (Detects folder exists on disk) -

I will try and summarize, when trying to create a custom route with the name and url Yes property is that my ASP.NET MVC app is not able to get 404 files while applying the route. Because of the fact of this fact, I have a folder on disk called Properties which is definitely a common ASP.NET folder that is automatically created it happens. I have had to meet someone else, but it seems that there is no resolution, only to separate my path! Surely this is an inspection, or should there be an alternate solution? Obviously there are many common directories you may need in the form of routes and / or folders, some of which we already know like Properties can not possibly be removed! I also understand that we need to honor the real folders as URL, but I think routing should be given priority before viewing folders on disk. If anyone has any thoughts about this, then it would be greatly appreciated. Looking at the .NET reference source code, it does not look like properties ...

postgresql - How to prevent a user from being able to see other databases and the tables from other databases? -

I want to create a postgradge user who can access only one database on the postgres server. Currently my flow is: create database database 1; Create user user 1 with password 'pass'; Provide all privilege on database database 1 for user; But user1 can still see a list of DBS, users, tables etc. Is there any way to stop that user from seeing that information? The user needs to be able to write and read from that DB. Thank you very much. Each user can see other databases and roles listed, but never see tables in other databases Should not be able to. If you have canceled all privileged privileges on a database except allocated, then the user will not be able to access the content of other databases. Roles and databases are global, and are not easily blockable You can try the Frank Hyacons suggestion of selective iterations on system tables, but you take risks to do so. Postgresqual developers on Usenet mailing lists have tampered with access to the system c...

mysql - Hibernate, how to model this relationship -

Image
मेरे पास निम्न टेबल हैं। टेबल लॉजिकल_आईडी_सेक बनाएं (लॉजिकल_आईड इंट ऑटो_इन्रिमेंट, प्राथमिक कुंजी (तार्किक_आईडी)); तालिका mytable बनाएँ (physical_id int auto_increment, तार्किक_id int नल संदर्भ माता पिता (तार्किक_आईडी), डेटा varchar (20), प्राथमिक कुंजी (physical_id)); दूसरी तालिका स्वतः मूल्य के रूप में पहले तालिका स्वत: -निरित मान का उपयोग करती है। मुझे यकीन नहीं है कि यह कैसे सीतनिद्रा में होना चाहिए। मैंने पढ़ा है, लेकिन मुझे समझ नहीं आता। यह वास्तव में है कहना मुश्किल है, मुझे नहीं पता कि आप ऑब्जेक्ट स्तर पर क्या प्रतिनिधित्व करना चाहते हैं: क्या यह एक-से-एक विदेशी कुंजी संघ है? एक बहुत-से-एक संघ? क्या द्वि-दिशात्मक संघ है? ORM का उपयोग करने का अर्थ है टेबल से अधिक वस्तुओं का अर्थ और यह आम तौर पर ऑब्जेक्ट मॉडल प्रदान करने में मदद करता है। मुझे लगता है यह एक से एक विदेशी कुंजी संघ है यह है कि सीतनिद्रा में होना जावा के साथ दृढ़ता की सिफारिश की गई है: 7.1.2 एक-से-एक-एक-एक-एक-विदेशी कुंजी संघों एक प्राथमिक कुंजी साझा करने के बजाय , दो पंक्तियों में एक विदेशी...

Is it possible to make a DataTable as a AutoCompleteSource in a TextBox? (C#) -

क्या एक TextBox में एक DataTable को स्वत: पूर्ण स्रोत के रूप में संभव है? (सी #) जारेड सही है - आप कुछ हेरफेर किए बिना सीधे बाँध नहीं सकते हैं फ़ील्ड को स्वत: पूर्ण स्रोत के रूप में पुनर्प्राप्त करने के लिए यहां LINQ DataSet एक्सटेंशन का उपयोग करने का एक उदाहरण है: DataTable dtPosts = New DataTable (); (SqlConnection conn = new SqlConnection (कॉन्फ़िगरेशन प्रबंधक। कनेक्शन का उपयोग ["स्टैक ओवरफ्लो"]। ConnectionString)) {conn.Open (); (SqlDataAdapter अनुकूलन = नया SqlDataAdapter ("टॉप 100 आईडी का चयन करें, शीर्षक, बॉडी, पदों से निर्माण तिथि जहां शीर्षक आईडी से नहीं है, ') conn))। अनुकूलन। चयन कॉमांड। कॉमांडटाईमआउट = 120; adapt.Fill (dtPosts); }} // शीर्षक फ़ील्ड को डीटी से एक स्ट्रिंग सरणी में खींचने के लिए LINQ विधि सिंटैक्स का उपयोग करें ... स्ट्रिंग [] postSource = dtPosts। एएनएनमेरेबल ()। चयन करें & lt; System.Data.DataRow, स्ट्रिंग & gt; (x = & gt; x .फ़िल्ड & lt; स्ट्रिंग & gt; ("शीर्षक")) .ओएरे (); Var स्रोत = नया ऑटो कॉम्प...

c++ - General formula to generate a cubic bezier elliptical arc? -

How can I start an easy way to generate 2 missing control points for an oval ar in C? I do not need fancy error estimation, just some others who can take points A and D and can produce control points B and C for oval arc, where I can use the cubic beijier interpolation algorithm to generate the curve I am Something like zero GetArcControlPoints (point one, point & amp; B, point & c, point D) {..... B = .. C = ....} thanks its There are some flaws in mathematics behind your question: Badgeer curves unit interval [0; 1] There are polynomial functions of a parameter T. The oval shapes are defined using trigonometric functions, which are reciprocal, thus, not algebraic, thus, not a polynomial. You can not generate an elliptical arc by using a bejier loan (neither cubic nor any degree n). But suppose you want to estimate only one oval arc. Since you have not specified how well the approximation will be, there is no way to ensure the "oval enough" for t...

facebook - FQL: Order photos by likes -

Is retrieving photos based on the number of likes in faql? Please note: I have never played with FQL before, but I need this exact solution tomorrow , so I let it go! Try adding the references to "like_info" in the first line in the previous answer (maybe it's new because you have asked this?): $ fql = "SELECT like_info, Object_id, src_small, photo WHERE help = '2389563453799923709' from link 'created by like_info DESC; $ param = array (' method '= & gt;' fql.query ',' query '= & gt; $ Fql, 'callback' = & gt; ''); $ Photos = $ facebook-> API ($ Ultimate); This allows you to get the most out of Answers will get answers. At least, this is for me Worked! :)

Prolog Or(;) Rule Return Multiple Result -

I have defined a rule with the operator but it returns many truths or false ones. isloanaccept (name, guarantor, loanType, loanAmount, LoanTenure): - Customer (name, bank (_), customertype (_), citizen (CI), age (age), credit ( C), Income (I), Property (_), Bank Worker (_), CI == 'Malaysian, Age & gt; = 18, C & gt; 500, i & gt; (Loan Amount / Loan Trencher) / 12, Recycler (Guarantor, Name), ISAperserial (Loan Type, Loan Amount, Loan Tenture); Ishouseloan (LoanType, LoanAmount, LoanTenure); Isbusinessloan (LoanType, LoanAmount, LoanTenure); Iscarloan (LoanType, LoanAmount, LoanTenure). Actually, I have to see that the loan type meets the requirement of special loan or combines with the general rule. In other words, I have to define the above rule in this way. CI == 'Malaysian', Age & gt; = 18, C & gt; 500, i & gt; (LoanAmount / LoanTenure) / 12, isguarantor (guarantor, name) or (ispersonalloan (with LoanType, LoanAmount, LoanTenure); ishou...

javascript - How To Breadcrumb Menus -

Someone expects how to add a breadcrumbs menu to my website. I basically have a sidebar menu with submenus, which I want to set up as a breadcrumb menu. How does it appreciate some help to gain? Any "how" URL will be great thanks Here is an article on things about breadcrumbs Here is a search result for breadcrumbs

c# - MySqlDataReader stops reading after about 4 minutes and returns -

मेरे पास एक साधारण क्वेरी है जो 25,026 पंक्तियां देता है: MySqlCommand cmd = new MySqlCommand ( "लोगों से चयन आईडी", डीबी); MySqlDataReader रीडर = cmd.ExecuteReader (); ( आईडी एक int है।) अगर मैं बस ऐसा करता हूं: int i = 0; जबकि (reader.Read ()) i ++; i 25026 के बराबर होगा। हालांकि, मुझे अपने लूप में प्रत्येक आईडी पर कुछ प्रोसेसिंग करने की आवश्यकता है; प्रत्येक चलना सैकड़ों मिलीसेकंडों में कहीं ले जाती है। int i = 0; MySqlCommand Updater = नया MySqlCommand ("अन्य में शामिल करें (...)", एक और कनेक्शन); updater.Prepare (); जबकि (reader.Read ()) {int id = reader.getInt32 (0); // do सामान, फिर updater.ExecuteNonQuery (); i ++; } हालांकि, प्रसंस्करण के बारे में 4:15 के बाद, reader.Read () बस झूठी वापसी करता है। मेरे अधिकांश परीक्षण में, i 14896 बराबर होता है, लेकिन यह कभी-कभी 11920 पर बंद हो जाता है। रिकॉर्ड की इसी संख्या के बाद DataReader छोड़ना संदेहास्पद है, और यह समय बंद हो जाता है दूसरी पंक्तियों के बाद भी अजनबी लगता है। क्यों re...

ruby on rails - Will replacing mongrel with Thin or Passenger improve scalability -

I want to improve the scalability of my rail app. Currently it runs on the Apache / Mars (actually the Mongol cluster) . Will it improve my app's scalability with slim or passenger? Thanks, Shivkumar no. The overhead in your app is almost guaranteed in your app, and not in the relatively lightweight hosting container As always: Assess Test. You can only address specific issues.

Codeigniter white page -

Strange issue: Last night I changed the order and CNA for my site's CI site. Now that the changes have been promoted and the site has been shut down for a new server, domain.com just gives an empty page. There is nothing in the CI log (set to level 3) even in a CI root index.php a 'die' ('test') is not visible. However, the domain.com/index.php homepage looks just fine and all other pages are still fine on those pages, the index.php URL is not recalculated My HTACAC (doubt this is the problem) rewrite / rewrite the rewrite engine at %% {REQUEST_FILENAME}! -R Revoked code% {REQUEST_FILENAME}! -d Recovery code $ 1! \. (Gif | jp? G | png) $ [nc] rewriteual ^ (. *) $ / Index.fp ?? 1 [L] Can this be a type of DNS problem? When I ping domain.com, I get 100% packet loss. --- domain.com Ping Statistics --- 10 packet transmit, 0 packets received, 100% packet loss Fixed - The problem was caused by a blank index.html file in the root. Hope this will help in ...

will there be a jsMath-like library or plugins in jQuery? -

I am interested in developing a math web forum. I have tried JSMath; This is a great JavaScript library for rendering latex commands on the client side. The rendered output is also beautiful because the tex fonts can be installed on the client computer. However, I am thinking of its security, so I like to use such a feature as well as using jQuery's library. Is there a plan for developing a library like jsMath in jQuery? Thank you in advance. You should be able to use both in one page / app and jsMath to jQuery extension There is no need to change as. What do you expect to come up with JsMath for security issues? There is a possibility of security issues with any JavaScript library, but it depends very much on your implementation.

sql server - MS SQL SSRS. I have Page Setup button in BIDS designer but users dont have it in the Reports Manager -

There are a few buttons in BIDS (VS 2008) when I preview a report, but what the user sees in the Report Manager Can only export button. I need at least the page setup button so that the user can manage the export. For example, I want to export PDF to landscape A3 - what should I do? P. s. SSRS and DB MS SQL 2008 Security is a big problem because I have to request every small thing through managers and then it has to walk for hours with the administrator. reporting services (2000/2005/2008/2008 R2) on the basis of expression Provides a way to modify pageges and margin sizes, which will be a requirement for you to achieve the functionality you use. Export the feature Print Button allows users to modify orientation and margins, But nothing more You can create a separate render extension that changes the orientation. I have never tried it, but it looks promising.

php - regular expression: Find url from anchor tag -

I have a problem I want to find the url form acnchor tag containing the "title" tag in the anchor tag. Example: & lt; A href = "http://www.test.com" title = "Xyz" & gt; This test is & lt; / A & gt; How can I match the string and get the url using regular expressions. Thanks & lt; A \ s + ([^ & gt;] *) href = "(https :: \ / \ / ([^" * *)) "\ s + ([^ & gt;] *) Title =" xyz " (. *?) & Gt; (. *?) & Lt; / a & gt; You can partial match $ 2 , you can try it

tinymce - how to create an element inside a tiny mce editor? -

I want to create a node like paragraphs, H1, H2 etc. inside a small MCE editor. No reference was found in the document. :( I have tried the following code. It works right in FF but not in IE. Please help. tinyMCE.activeEditor.selection.setNode (tinyMCE.activeEditor.dom. Create ('p', {Id: 'paraId'}, 'new paragraph created'); thanks You should make a new element on the iframes document. Also try using different HTML tags to check that there is a problem inserting small P-tags. Or not. (Document.getElementById ("iframe_id") contentWindow) {var new_elem = document.createElement ("span"); new_elem.id = 'paraId'; tinyMCE.activeEditor.selection.setNode (new_elem);}

How can I read specific data columns from a file in c -

Good day all, I am beginning to debut in C programming. I have this problem and My problem is as follows: I have a series of files with an extension (.msr) in which they are decimal, which is time, time, The numerical values ​​of temperature, pressure, .... which are different from the cm colon, to more, are measured. Examples of data values ​​are shown below. 2010-03-03 15:55:06; 8.01; 24.9; 14.52; 0.09; 84; 12.47; 2010-03-03 15:55:10; 31.81; 24.9; 14.51; 0.08; 82; 12.40; 2010-03-03 15:55:14; 45.19; 24.9; 14.52; 0.08; 86; 12.32; 2010-03-03 15:55:17; 63.09; 24.9; 14.51; 0.07; 84; 12.24; Each file is named as a name REG_2010-03-03, REG_2010-03-04, REG_2010-03-05, ... and they all are contained in one file. I want to remove date information from each file which in this case 2010-03-03, column 3 and column 6 Find statistical means of each column of 3 and 6. Then store the results in a new file, which contains only the date, and for the further analysis, the cal...

wpf - MVVM DESIGN PATTERN -

This MVVM design is very new to the pattern. In this method, doing a small project I have a button in my project, if I click on that button it will create a new button at run time and we can create multiple buttons there Are there. Creating multiple buttons is working, and now I control the runtime, where ever we want in the same window. I have implemented some methods and now the controls are moving from my mouse point as I want but now what is the problem: If a button has become Then the second button is going well .. Then it is connected to the first button, now both the buttons are running together and the third and so on. Can I understand what is happening there? Anyone can help me plz ?? Thanks in advance I do not know if someone gives me your mail id, then how do I post the code here, then I will send the entire project You can understand in Laurent Bugnesian "Model-View-View Model Pattern" session on MIX10

c# - rss in windows forms -

I am developing an application with windows as C #, and I'1d let me know that I How Can I Use Toolkit Windows Form Application? I have referenced in my solution but when I compile the app, this error is not correct. Is there any easy way to read RSS feeds in the Windows form? > If you If you are using .NET 3.5 SP1, then it is already in the case of syndication: XmlReader Reader = XmlReader.Create ("http: // localhost / feeds / serializedFeed XML" ); Syndication feed = syndication feed Load (reader);

mix generic type variables to implement a type-safe map function in Java -

I want to type in a type-safe map method in Java that gives the same archive logic Type in the form of logic (i.e. Arrayist, Linkedist, Treceet, etc.), but with another normal type (between the Anglaise bracket), the other parameters set by the generic type (as a result of the usual mapping function) is done. / P> will be used as a code: Public Interface transformfactory & lt; S, R & gt; {Public R applicable (S source object); } Transformfactory i2s = New Transform Factor & lt; Integer, string & gt; () {String applied (integer i) {return i.toString ();}; ArrayList & LT; Integer & gt; Ali = New Arrestist & lt; Integer & gt; (Arrays.asList (1, 2, 3, 4)); ArrayList & LT; String & gt; Als = map (ali, i2s); TreeSet & LT; Integer & gt; Tsi = new tree set & lt; Integer & gt; (Arrays.asList (1, 2, 3, 4)); TreeSet & LT; String & gt; Tss = map (TSI, I2S); This idea will be something like this: public stable ) coll...

algorithm - how to create a collection with O(1) complexity -

I would like to create a data structure or collection, in which there is no problem adding, removing and computing the O (1) complexity Will be. How should I start with elements? I have thought of a solution: I will use a hashtable and every key / value will be inserted for the pair, I will have only one hash code, that is: my hash code algorithm every time Will generate a unique hash value, so the index to which the value will be stored will be unique (i.e. no collision). Will this give me o (1) complexity? Yes, this will work, but as you mentioned, your hashing function should be 100% unique Should you use any kind of dispute resolution as a result of any duplicate. I would recommend linear chaining Edit: allows for Hashmap size () o (1) access Edit 2 : Answer to the negligence of illusion is the reason for this: = P Yes, Hashing is (K) where Kashmir is the Keyeline. Everyone can agree on it, however, if you do not have a complete hash, then you can not only get ...

iphone - How to create a method to return UIAlertViews? -

I have a question about showing a warning on the screen. The thing is that: I have an app with 20 to 30 different screens (nib) and in every nibb I do some checks whether the user has inserted the text in text edit or not. And some warning messages are similar to the others. As in 3 instructions, the user has a text field to enter his age, and a warning that shows that he leaves it blank What I want to do to make a method to show these alerts, so I There is no need for a single alert on different nibs. Rather than calling a watchful scene in every nibb, I call the method and what kind of caution I call to pop up. What would be the best way to implement this method? TIA You can always assign a new UIAlertView like always, Remember to pass. This is my method: - (UIAlertView *) getUIAlertViewWithDelegate: (ID) Representative Title: Cancel Title (NSString *) Title: (NSString *) Cancel { Return [[[UIAlertView alloc] initWithTitle: Title Representative: Representative Cancel ...

dom - How to insert a piece of code programmatically using jQuery? -

I am learning jQuery and I would like to use it to solve the old problem I have a piece of HTML code program I want to use jQuery to add. What I need to do: To create a jQuery function, all elements / objects are inside "code"> "When my function gets the img object, then I would like to put img inside another div . To clarify things, assume that my work code : lt; img height = "200" width = "300" src = "image -2.jpg "title =" my image 1 "class =" alignonone Car-media wp-image-25 "> em> This is my image! ; p> Advertising Ready for Advertising In addition to this, Lt; / p & gt; & lt; img height = "400" width = "250" src = "image-2.jpg" title = "My image 2" class = " Alignment size-medium WP-image-25 "> em> This is another image! I would like to write a jQuery function that changes it to : This is my image! & Lt; / Em...

When creating a trigger in MySQL, are there any alternatives to FOR EACH ROW? -

I would like to create an update after triggering that runs only once, even if multiple rows have been updated. In MySQL 5.0, all triggers are for each line - that is, However, see the following. Trigger is active for each row, which has been inserted, updated or deleted.

asp.net mvc 2 - How would I configure the global.config to allow for root path to actionMethod in MVC2? -

विशेष रूप से, डिफ़ॉल्ट निर्देशिका नामकरण संरचना [नियंत्रक] / [ActionMethod] जिसके परिणामस्वरूप www.mysite.com / Home / actionMethodName। क्या होगा अगर मैं बस नियंत्रक (इस उदाहरण में, 'घर') को इंगित करना चाहता हूं ताकि मैं उस url को प्राप्त कर सकूं जो इस तरह दिखता है: www.mysite.com/actionMethodName मैंने इस प्रकार की कॉन्फ़िगरेशन के लिए कई अनुरोध नहीं देखे हैं मैं देख सकता हूँ कि यह कैसे सम्मेलन को तोड़ता है, लेकिन मैं सोचता हूं कि बहुत सारे लोग हैं, जिन्हें रूट पथ की आवश्यकता है। "post-text" itemprop = "text"> क्योंकि आप यूआरएल के {नियंत्रक} तत्व को निकालने की योजना बना रहे हैं, आपको अपने अन्य यूआरएल के साथ थोड़ा अधिक विशिष्ट होना चाहिए, जैसे: routes.MapRoute ("MyOtherControllerRoute" , "खाता / {कार्रवाई}", नया {नियंत्रक = "खाता", कार्रवाई = "सूचकांक"}); Routes.MapRoute ("MyDefaultRoute", "{action}", नया {नियंत्रक = "होम", एक्शन = "इंडेक्स"}); जब मार्ग तालिका...

java - What is the best approach to use JasperReports? -

Here we are talking about three main products: JasperReports : which only generate reports To do is have a library and fill it with iReport : A GUI tool for developing the template used by the above library JasperServer : Users' permissions and other features Full application with web interface to manage reports with The documentation is not really good, I want to integrate the JasperReports with my application ( spring / ) Hibernate ), please advise what is the best way to do this, 1- Using the embedded SQL Generator, using, and make it separately from my project, I hierarch or spring inside iReport , but I had to face a lot of problems and there was no clear document for this part No 2- Attach it to my supporter Ject, the same hibernate to use the configuration, the organizations already created 3 - Try using JasperServer , which looks complex, and then reports as a web server. Bring it out Or any other better, guaranteed approach, I know that it d...

jQuery ready() in asp.net mvc2 only fires on first visit -

& lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ (दस्तावेज़) .ready (फ़ंक्शन () {चेतावनी ("हैलो jQuery।");}); & Lt; / स्क्रिप्ट & gt; यह पहली बार काम करता है जब मैं / होम / इंडेक्स का अनुरोध करता हूं, लेकिन अगर मैं उदाहरण के लिए / खाता / लॉगिन पर जाएं तो वापस / होम / इंडेक्स यह काम नहीं करता है एक वेबफॉर्म प्रोजेक्ट का उपयोग करके एक ही बात करना हर समय काम करता है मैं क्या खो रहा हूँ? धन्यवाद। यह जवाब नहीं है। कोशिश करें: & lt; div id = "test-ready" & gt; & lt; / div & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ ("# टेस्ट-तैयार")। ऐप ("& lt; span & gt; पूर्व तैयार & lt; / span & gt; & lt; br / & gt;"); $ (दस्तावेज़) .ready (फ़ंक्शन () {$ ("# टेस्ट-तैयार")। अनुलग्नक ("& lt; span & gt; तैयार (हैलो jQuery में) & lt; / span & gt; & lt; br / & gt;"); // चेतावनी ("हैलो jQu...

java - Upload to CXF restful web service -

I am trying to implement Apache Commons fileupload in my cxf cool web service. For some reason, ServletFileUpload.isMultipartContent (...) always returns false returns; I have checked the content type through: httpServletRequest.getContentType () and it returns the multipartual / form-data as expected. Anyone know what the reason is that the maliport content method returned incorrectly for? Below is my code: @POST @ path ("/ images") @ Consum (MediaType.MULTIPART_FORM_DATA) Public Response Upload Images (@contact javax.servlet.http.HttpServletRequest httpRequest) {list Item = null; Boolean is Multipart = servlet file upload.ImultiPart Content (httpRequest); If (isMultipart) {... ...} else {return Response.status (Status.BAD_REQUEST) .build (); }

mySQL: how to update table and fields dependent on values in other tables? -

I have a database with hinky data in it. Fortunately it is constantly hinky so let me run some good sql on it and it Must be able to clean. This is the story: table 'uc_products': nid Model 1 asdf 2 qwer 3 ghjk 'uc_product_stock' table: nid sku 1 asdf 22 qwer 34 ghjk You can see that model = sku, and nid = nid in table uc_products all have correct data, and uc_product_stock is with bad data (nid that sku does not match). I want to see through uc_product_stock and each entry in comparison to uc_product: Model == sku & amp; Nid == Nid: Yes! Data is good! Model == sku & amp; Needless! = Nidh: Boo! Bad data, therefore uc_product.nid should be updated to match the value in uc_product.nid [I think the method of another cruel force to do this is SKU / The model will match each row and reset each uc_product_stock.nid to match uc_product.nid - The principal is that the wrong people will be corrected and the correct person will be reset to the same val...

c# - How do I access the controls in a WPF DataGrid -

itemprop = "text"> Good old (well!) Datagram row in WinForms days is used as real control and you Can access DataItem All its flip and datagrid in WPF. ITEMS is the only source data. I am probably doing this wrongly round like as a bit of WPF, I can repeat through lines of my gridview to get values ​​from some labels, text boxes, etc. Am I Yes, you are doing it wrongly, what should you do through the objects in your data source Want to walk - this is where all the values ​​are after all. It is possible to repeat through WPF objects, but it is not trivial and if you try, then there is a big problem that you will run in. You can use the VisualTreeHelper class to search for the visual tree and find the descendants of DataGrid . If you play this for a long time, in the end you can find out how to find the particular controls you are looking for. But DataGrid (in fact, virtualizing stackpayel in your control template) virtualizes your view children. If a...

jQuery: $j('body').append(...) doesn't work? -

फ़ंक्शन फ़्लैटइमसेज (संदेश) {if (! $ J ('। Floatymessage')) {$ j (' शरीर ') .एंडेंड ("& lt; div class =' ​​floatymessage '& gt; हैरो & lt; / div & gt;"); } $ J ("। Floatymessage")। Html (संदेश) $ j ("fleatymessage")। सीएसएस ('प्रदर्शन', 'ब्लॉक')} निम्न निष्पादित होने पर (अलर्ट ('हाय') के साथ परीक्षण किया गया) मुझे वेबकिट के इंस्पेक्टर में निचले हिस्से में नहीं दिख रहा है ... मुझे टेक्स्ट 'हेरो' या तो = मैंने कुछ गलत नहीं किया ? इसे बजाय $ j ('। Floatymessage') की कोशिश करें। लंबाई == 0 फ़ंक्शन फ़्लैटइमसेज (संदेश) {if ($ j ('। Floatymessage')। लंबाई == 0) {$ j ('body')। Append ("& lt; div class = 'floatymessage' & gt; HERRO & lt; / div & gt; "); } $ J ("। Floatymessage")। Html (संदेश) $ j ("fleatymessage")। सीएसएस ('प्रदर्शन', 'ब्लॉक')} लेखन ! $ J ('। Floatymessage...

java - Where can I find JSFUnit real-life example? -

I am trying to use JSFUnit framework, but do not understand how to assign projects / files . How many projects / sub-projects should I have, and whether it is only one project, as it usually happens with the genutite and similar frameworks would be nice to see some examples. I still can not understand that I need to create a separate Maven project for test purposes (as I say) or I can work in my main project ... . How many projects / sub-projects should I have, and whether it is only one project, as it usually happens with the genutite and similar frameworks would be nice to see some examples. There are several examples in the JSFUnit project (as we can see) and I suggest getting them (checkout complete). I still can not understand that I need to create a separate Maven project for testing purposes (as this page indicates) or I can work in my main project ... JSFUnit tests are container tests and need to be packaged and deployed as a war. But you do not want to expli...

user interface - With QT, is there a way to specify different UI layouts for different UI styles? -

I have found the cross platform QT ​​app, and no matter how I zoom the UI, it always Some platforms feel good about the difference between UI styles due to others. For example, margins begin to be universal sets, even if the underlying elements dramatically change from one platform to another. Perhaps the safest way to start with should be the most basic UI for. Personally, I use the QT's CSS type style. Also, make sure that when you sub-class your widgets, you properly override the event methods (i.e. resizeEvent (...), turn off the parameters in a superclass if appropriate. .) The basic recommendations from the QT docs should do the following. Another note on the layouts, make sure you are using: enum QSizePolicy :: policy appropriate and your layout flow well Instead of using varies from etc. fixed position ...

SQL Server Merge and Indexing Speed -

I have a merge statement that needs to be comparing multiple columns. The source table has 26,000 rows There are several million lines in the Destination table, Desintation table has a typical primary key index on only one int-type column. I have made some selections with the group to count the number of unique values ​​in the source. Part of the merge test at #temptable (desttable.ColumnA = # temptable.ColumnA and desttable.ColumnB = # temptable.ColumnB and desttable.ColumnC = # temptable Using value .ColumnC and desttable.ColumnD = # temptable.ColumnD and desttable.ColumnE = # temptable.ColumnE and desttable.ColumnF = # temptable.ColumnF) Enter the value when it is not matched (.......) - Column A: 167 Unique values ​​#temptable - In ColumnB: 1 unique value in #temptable - Column C: # Unique values ​​in # real values ​​- Column: 89 # Exclusive value in criteria # - column: 550 # Unique value in criteria - Column F : 487 untold Values ​​are #temptable - Column A: 3690 uniqu...

PHP - CSV file overwriting based on UID -

I know I know what I have to do, a database with this would be better idea, but I do not want this database And the hassle of dealing with learning materials. I have a CSV which is something like / 07/27 13: 26: 29, which is TestUser, 2010-07-27 13: 26: 0.0011,0,06,0.06 Testuser, 2010-07-27 14: 22: 12,2010 / 07/27 14: 22: 24,0.0033,0.0027.0.27 TestUser, 2010/07/7 14: 22: 41,2010 / 07/27 14: 22: 53,0.0033,0.0028,0.28 TestUser, 2010-07-27 14: 25: 26,2010 / 07/27 14: 25: 33,0.0019,0.0015, 0.30 The second is the column which I am using as a unique id, so it will never happen in CSV. The PHP code used for writing in CSV is: $ myFile = "data.csv"; $ FH = FOPAN ($ myfile, 'a') or die ("can not open file"); $ String_data = $ _POST ["name"]. ",". $ _ POST ["Flight"]. ",". $ _ POST ["Date"] ".", ". $ _ POST [" Totalhour "].", "... $ _ Post [" Hour "]", ...

asp.net - How do I retrieve HTML dynamically generated from an aspx page? -

To be specific, this is what I'm doing, and that's what I'm trying to do : I am coding an asp.net page, in which the VB code is behind. When the user clicks on a button on the user page, I send them an email with information and instructions. Rather than sending a plain text email, I send a nice, beautiful, HTML-formatted one. Right now, I am doing it in such a way that I know it will be difficult to maintain. That is, I'm writing all the HTML directly I.e. Markup + = "& lt; fieldet>" Markup + = "legend"; Markup + = "Required Doc" markup + = "& lt; / legend & gt;" ... and so on. Is there a way to create an ASPX page (back to VB code), and send that html in that part of the email to that page? Information is dynamic, so for this pseudo-page to correctly format HTML, logic will be required on the on-load event. Thank you! webclient client = new webclient (); String html = client DownloadString (...

C# - How to initialize complex property when creating new object? -

Say I have an employee class and it has a property type department in my GUI, I want to make a new employee And I want to instantiate it. I have a collection through the combo box of objects so that the end users can select one department for each employee My question is, when I instantiate this employee And I want to define the department at some value, say "finance" which is for the department. Code Property How can I do this? I tried, but it does not look like when saved: this.Employee = Employee.CreateEmployee ("-1", date time.Now, "active", ...); this. Staff. Department = new department {code = "finance"}; Any advice would be greatly appreciated. Generally classes are built with constructors; I.e. public square section {string _code = ""; Public Department () {} Public Department (string code) {_code = code; }} So when your program creates a new department object, you can do this: Department Finance = ...

visual sourcesafe - Merge a Branch in VSS: You cannot perform a merge on a binary file, or a file that stores latest version -

Maybe I'm dumb, or just stupid. But I'm stuck on the site of an enterprise where VSS is 'option'. So I had to list my code, which was logically easy However, when it came time to merge back into the main line in VSS, things got worse. First of all, I could not merge with the project, or even from the folder, but only file-B-files. Then I tried the suggested command line: ss merge $ / root / project / project / folder / . The following error: "You can not merge a binary file, or a file that stores the latest version N." This error message generates a lot of information about searching CVS, Demolition and GIT. This is because the words in that sentence are used in the text of those other posts. Does anyone think that this error is two 'modes' that will work in VSS? I mean, does a difference in lock-ferriv-unlock and copy-merge? Whenever I try to merge, I can also use a diff utility and then check the changes from one branch t...

javascript - How to move HTML element -

How to take HTML element into another element I note, I do not mean that the element is increasing Consider this HTML code: & lt; Div id = "target" & gt; & Lt; / Div & gt; & Lt; Span id = "to_be_moved" & gt; & Lt; / Span & gt; I want to move "to_be_moved" to "target" so that the "target" child can be "to_be_moved". Then the result should be like this: & lt; Div id = "target" & gt; & Lt; Span id = "to_be_moved" & gt; & Lt; / Span & gt; & Lt; / Div & gt; I searched in Google (especially the prototype framework), but the situation of everyone is growing as much as I want. First Thanks document. GetElementById ('target'). AppendChild (document.getElementById ('To_be_moved'))

asp.net - How to always show the first and the last AxisX Label with Microsoft Chart Controls? -

After I am developing a stock development chart with Microsoft Chart Control and I show the initial And the last dates on the axis label but I can not do this I liked Google and found several solution properties set: Chart1.ChartAreas [0] .AxisX.Minimum = InitialDate.ToOADate (); Chart 1 Chart Carous [0]. Axisx Max = end date Toodet (); Chart1.ChartAreas [0] .AxisX.LabelStyle.IsEndLabelVisible = true Nothing creates the same difference. I need a help others dates! The initial date was 26, 2007 and the last July 26, 2010, on the sample given below, this is what I need to show on the chart label, do not matter and should be shown at any interval Could. "text" itemprop = "text"> LCharts (iChart) .Chart.ChartAreas (0) .AxisX.Minimum = MinDate.ToOADate LCharts (iChart) .Chart.ChartAreas (0) .AxisX.Maximum = MaxDate.ToOADate LCharts (iChart) .Chart.ChartAreas (0). AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount 'LCharts (iChart). Chart...

php - what mysqli functions to use instead of mysql? -

This would probably sound too dumb. I have a mysql function in which the following is ... prefix @ mysql_connect () @ mysql_select_db ($ database name, $ link); Mysql_query ($ sql, $ link); Mysql_error ($ results, MYSQL_ASSOC) mysql_num_rows ($ Result) Can I do just one bench after mysql like this ... @ mysqli_connect mysqli_query ($ link, $ sql); Mysqli_error ($ link) "]". Mysqli_fetch_array ($ result, MYSQLI_ASSOC)) mysqli_num_rows ($ result); I know that the first two are fine, but what about others? I'm not sure that these works actually exist as swaps mysqli versions directly. More information about them can not be found. What will be my equity there? Can I use mysqli_connect and mysqli_query, but can use the old mysql function for others? Do they work together Here is the "book" area of ​​the PHP manual that will show you each mascile The available function is very correct in your assumption; Naming is applicable to adding a lot of '...

Perl Regex syntax -

I want to use Perl to take the previously generated SPSS syntax file and format it for use in any R environment. Want to do This is probably a very easy task for people familiar with Pearl and regex, but I'm stumbling. As a step I have placed them for this Perl script: Read in SPSS file Find the appropriate amount of SPSS Returns a syntax on the command line or from a priority file. SPSS value labels are the basic form of syntax: ... I do not care about a bunch of crap. .. ... Value Label / Gender 1 "M" 2 "F" / Objective 1 "Execution" 2 "Holiday" 3 "tiddlywinks" executed. ... resume nonsense ... and the desired syntax I look like this: gender & lt; - as.factor (gender, level = c (1,2), labels = c ("m", "f") ... Here is the Perl script which I just Is written up to I have successfully read each line in the appropriate array. I have a general flow of what I want for the final print...