Posts

Showing posts from January, 2014

actionscript 3 - flex textflow dyniamic height -

Such scenerio me in my Flex application: child's parents Vbox-> Kanwas-> Pret-> Tekstflo < / P> The dynamic height of the text flow in this scenerio me now; Her parents here root parent parent I have an item of datagrid. I need the height of the rows to adjust it according to the content. I am currently importing the XML textflow, then the number of lines, the text height then the textflow & amp; According to the number of lines it is reconnected with measured height & amp; Height of the text. How do I delete it? Adding it again, coz is taking too much time in updating it? Thanks in advance The answer may be delayed but someone else can benefit. Insert textflow and sprite to create a creation on the canvas or object. round of. I do not know that this step is necessary, but it works for me. Add a label with text going into TextFlow (with the same font and fontSize), as well as create a whole audience of creation. Get height and width from

Convert ALPHA-2 to ALPHA-3 in C# ASP.net -

Did ALPHA-2 (GB) convert from ALPHA-3 (GBR) to C # without a quick To make an array of them all. Globalization; Field information info = new regional information ("GB"); String ISOAlpha3 = info.ThreeLetterISionegionName; // ISOAlpha3 == "GBR"

latex - Run pdflatex quietly -

I am calling pdflatex using the system () from my (C ++) program, saying that Not that all the trash pdflet screens are a bit upset in this case. So ... how do I encourage pdflatex to leave long output? If only errors will appear, then better ... To ignore all output, redirect Do pdflatex stdout to / dev / null: system ("pdflatex yourdocument" / dev / null "); If you want to add \ nonstopmode to the beginning of your document, you can direct tex to continue even when facing errors. Receive the error message, get pipe pdflatex output in your program and ! Search for errors around rows starting with , for example FILE * outputf = popen ("pdflatex yourdocument", "R"); // ... output output from outputf and analyze ... pclose (outputf);

tree - What algorithm can I apply to this DAG? -

I have a DAG representing the list of properties, these properties are such that if A> B, then a guided Edge b also is transitive, so if A> B and B> C, then there is a guided edge for C. However, the directional edge of A to C is very important because the directional edge for a directed edge B and B is C. How can I sort all these unnecessary edges? I was thinking of using the minimum Fannie tree algorithm, but I'm not sure what is the appropriate algorithm for applying in this situation I think I am deep in my node Do the first discovery and compare all its outgoing edges and if it can reach some nodes without using some edges, but it looks very inefficient and slow. Once the algorithm is complete, the output order will have a linear list of all the nodes which correspond to the graph, so if someone has three guided edges B, C, and D, B and C, each of which D's are guided edges, output can be either ABCD or ADBD. It is called. Speaking formally, you are

Error in MySQL update command. (in php) -

Good morning all, I use an update command in php to update data in mysql I am doing This is my code: $ sql = mysql_query ("Update Blobbutation SET Journalname = '$ _POST [Journal]', AcceptedDate = '$ _POST [Approved]', published data = ' $ _POST [published date] ', comment =' $ _POST [comment] 'where no job =' $ _POST [job] '';; if (! Mysql_query ($ sql, $ con)) {dead ('error:' . Mysql_error ();;) "Update Record" echo; This area updates, but, it gives me the following error and I can not understand that I have this errorYon has been found "error is an error in your SQL syntax; The manual that matches your MySQL server version to use the "1" on line 1 for the correct syntax for your syntax Can you help me in this Best Word Can you tell us that $ sql What is it? By the way, there is a large security hole that you want to query to avoid always $ journal = mysql_real_escape_stri

javascript - image.onload not firing twice in IE7 -

It works in IE 6 and Firefox; But not in IE7 for some reasons. Using ASP.NET on Page_Init, I populate a list of chapters which contain a link to the image in the book along with the JavaScript array that holds the page ID. ex. Chapter 1 -> href = "javascript: seePage (4);" Here is the real code I am using: var availablePages = ['1002_001', '1002_002', '1002_003', '1002_004', '1002_005 ']; View function page (index) {$ get ('imgSingle'). Src = 'graphics / loading.gif'; Var img = new image (); Img.src = 'get.jpg.aspx? Size = single and id = 'available page [index]; Img.onload = function () {var single = $ mill ('imgSingle'); Single src = img.src; }} When I click on Chapter 1, the image load is fine in the entire board (IE 6,7, FF) and clicking on the second chapter link also works is; However, (and only) clicked twice on the same chapter in IE7 (chap1, chap2, then chap1 again) the image

java - Java2C# translation: public methods in Interfaces in C# -

Another translation question, it can be more theoretical, but I'm eager to design options. SFNU: Why is not C # allowed to control access to methods in Java like Java? For example, in a C # interface: Public Zero Travel (Axiomatic Axiom); Thanks. In both C # and Java, all the methods of an interface are public. In Java, public keywords are allowed, which are likely to be saved on parsing rules. In C #, the public keyword was considered redundant and was completely removed from the interface announcements.

What is the most appropriate data type for storing an IP address in SQL server? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 10 उत्तर सबसे अधिक अनुशंसित होना चाहिए SQL सर्वर में एक IPv4 पते को संचित करने के लिए डेटाटाइप? या शायद किसी ने पहले से ही इसके लिए यूजर एसक्यूएल डाटा-टाइप (नेट विधानसभा) बनाया है? मुझे सॉर्टिंग की आवश्यकता नहीं है। एक (4) के रूप में एक IPv4 पता संग्रहीत करना वास्तव में क्या है यह प्रतिनिधित्व करता है, और आसानी से सबनेट मुखौटा-शैली पूछताछ के लिए अनुमति देता है। हालांकि, इसके लिए रूपांतरण की आवश्यकता होती है और यदि आप वास्तव में पाठ प्रतिनिधित्व के बाद होते हैं उस स्थिति में, आप स्ट्रिंग प्रारूप को पसंद कर सकते हैं। एक छोटे-से उपयोग किए जाने वाले SQL सर्वर फ़ंक्शन, जो कि स्ट्रिंग के रूप में संग्रहीत हैं, मदद कर सकते हैं। आईपी ​​पते के लिए डिज़ाइन नहीं किया गया है, लेकिन उनके लिए बिल्कुल अनुकूल है। नीचे दिया गया कॉल '14' लौटाएगा: SELECT PARSENAME ('123.234.23.14', 1) (संख्या सही है बाएं)। < / P>

Best practice to handle large WCF service -

I am working in WPF on a 4-player network game and learning WCF in the process. Up to now, to handle network communication, I have followed the advice from the game: I use a dualHttpBinding and send a message to customers with a CallbackContract interface I use. It works all too well. However, my service is getting very big, there are methods / callbacks to handle the game, but chat system, login / registration process, matchmaking, roster / player information, etc. both servers and clients It is difficult to maintain because everything has to be redirected to the client page for a single interface example, I have to callback the game page, the lobby page, etc., and I find it very tiresome. I want to be able to handle game callbacks on game pages, chat callbacks etc. on chat window So what's the best way to handle it? I have thought of many things, but it is not sure what is best: dividing the service into many people, having many "final points" on my service,

web services - Soap under Java 1.3 with Axis -

I am writing a Java web service for legacy SCO machines (which is only available in Java 1.3). I am able to get a recently integrated XML parsing work involving Xerces Jar on my classpath. Although java is screaming about not being able to find javax.xml.soap, even if I have received Axis 1.3 and explicitly claim to include the javaax.xml.soap (axis2-saaj-1.3.jar . *) However, it tells me that the package javax.xml.soap does not exist. I know that this was not in SDK under Java 1.3, but a consistent version is on my anger square! Can anyone tell me what's going on here? If you have download distribution then axis-2-decorate injar instead of 1.3.jar distributed .

Different bash prompt for different vi editing mode? -

When using WiFi mode (SET-OVI) with Bash, this is an indication that depends on the mode How do you find the editing mode currently (insert or command)? BTW, this is possible: Fresh bush 4.3 and readline 6.3 for you Something new .. Changelog: New Features in 4 Redline New User-Setable Variable, Show-Mode-In-Prompt, adds the letters at the beginning of the hint, pointing to the current editing mode . then set in / etc / inputrc or ~ set-mode-in-prompt / .inputrc (thx stooj) should affect all your readline-enabled programs;)

php - SVN Website Development and Deployment Solution -

Here's the situation: We have many developers with varying degree of command line experience and we have a deployment solution for our websites. Are keeping together. . Production Environment 2 SUSE Linux Boxes. Development environment is also a SUSE Linux box. Each developer has a copy of the SVN tree which is in its home directory for development and testing. The goal is to keep a release system which is easy to use and it is easy to return which will work with multiple production servers. It will be a bonus if a non-web developer (still web No coder in the world) It is easy to easily return any website. In an optimum world, a single command on the release website will be as easy to execute, which you will want to release, this command will update the production servers and behind it will leave the path of return in awareness. Our current deployment solution is a bit of clunky, which is hard to slow down and slow down. We currently check all files using SVN. Then a script

math - how to generate pseudo-random positive definite matrix with constraints on the off-diagonal elements? -

User binds a unique, non-trivial, upper / lower, in which the connection between the variables of each pair is related Var / covar matrix For example: I want a variant matrix in which all the variables are 0. Rho (x_i, x_j) | > 0.6, RO (x_i, x_j) variable is going to be relating between x_i and x_j. Thank you. Okay, something has been found in a quick and dirty solution, even if anyone knows another exact way to go there, its will welcome. I have lost my original login, so I am posting this question again, a new login semi is the correct term for random - Robert Gold < / P> * It is a good issue, but I think that means that it means pseudo-eclipse while talking about semi-pseudo-random (Computer Randomization: -P) - Fortran * With "correlation", do you mean "co-representative"? - Svente * No, I really mean correlation. I want to generate a positive definite matrix such that the comparison of all relations is more than a trivial boundar

documentation - What are the best practices for technical reports -

How do you, as a programmer , think that technical software should be reported on any software , In a way that can adapt the work of other programmers, takes it and can begin to feel connected to the code as soon as possible. I see the documentation on two levels: SourceCode documentation and design documentation Java code or equivalent style, then source code documentation is very useful. You can generate reference documentation automatically and use some IDE information well. Apart from this, it is thought that why things are happening or limit the comments of the source code on very difficult algorithms. Design documentation should include a bigger picture. How to fit all the pieces together, note how things flow through the system, give an example (use cases, etc.) how different classes and sub-systems determine the new methodology to plug in where Will be invaluable in doing. Most importantly, though, it is to document the system as of today's time, not how it

Equality with zero in Excel -

I'm using a spreadsheet, some probability for cell is getting empty, the number is zero or, having one Having a non zero number, or a string. If I want to test that the cell is zero but not empty, then I currently = IF (AND (B2 = 0, LEN (B2) & Gt; The function you are looking for is an ISBLANK () function. = IF (and (ISBLANK (A1) = FALSE, A1 = 0), "foo", "bar") Edit: Forgive Please, I recite your question again. You are forced to use two conditions because you are checking the two conditions. If you want to use a condition for any reason, then the way I can think is to remove a situation that you are looking for in a method and then call it. < P> Then, it becomes = IF (CheckCellIsOK (A1), "foo", "bar") The method still examines both conditions but you actually Are hidden in that fact.

<map> with <index-many-to-many> won't save in NHibernate -

मेरे पास निम्न मानचित्रण है: & lt;? Xml संस्करण = '1.0' एन्कोडिंग = 'utf-8' & gt; & Lt; हाइबरनेट-मैपिंग असेंबली = 'कोर' नेमस्पेस = 'कोर। मॉडेल्स' xmlns = 'कलश: नबिर्नेट-मैपिंग-2.2' & gt; & Lt; वर्ग का नाम = 'बास्केट' & gt; & Lt; id name = 'id' column = 'id' & gt; & Lt; जनरेटर वर्ग = 'मूल' / & gt; & Lt; / आईडी & gt; & Lt; संपत्ति नाम = "बाहरी आईडी" / & gt; & Lt; नक्शा नाम = "आइटम" सारणी = "बास्केटआईटीम्स" कैसकेड = "सेव-अपडेट" & gt; & Lt; प्रमुख स्तंभ = "बास्केटआईडी" / & gt; & Lt; सूचकांक-कई-से-कई वर्ग = "उत्पाद" स्तंभ = "उत्पाद आईडी" / & gt; & Lt; तत्व स्तंभ = "मात्रा" प्रकार = "System.Int32" / & gt; & Lt; / नक्शा & gt; & Lt; / वर्ग & gt; & Lt; / हाइबरनेट-मैपिंग & gt; आइटम संग्रह ऐसा दिखता है: सार्वजनिक व

.net - C# connection string in web.config file -

In the code behind my page, how can I use a connection string that is stored in my web.config file ? system. Web. Configuration. Web Configuration Manager. Connection String ["YouConnStringName"]. ConnectionString; The system for this. References of configuration dll and System.Web.dll are required.

javascript - Jquery Validation with Identical Form Names -

इस सवाल का पहले से ही एक उत्तर है: < / P> 12 उत्तरों मेरे पास एक ऐसा फ़ॉर्म है जो करता है 2 चीजें: PHP पर पहला नाम और ईमेल पता पास करें। एक क्लिक पर गतिशील रूप से नाम / ईमेल फ़ील्ड का एक नया समूह जोड़ें, यदि उपयोगकर्ता चाहता है एक से दो या अधिक डेटा सेट करें। चूंकि मुझे पता नहीं है कि प्रत्येक उपयोगकर्ता कैसे सबमिट करना चुन सकता है, मैं डेटा को PHP में एक सरणी में पास करता हूं (एक नाम [] द्वारा पीछा किया, इसलिए मैं एक foreach पाश का उपयोग कर सकते हैं और हमेशा प्रत्येक डेटा सेट प्राप्त करते हैं। बेहतर समझने के लिए यहां कुछ कोड है: & lt; form method = "post" action = "submit.php" id = "formID" & gt; & Lt; तालिका की चौड़ाई = "100%" सीमा = "0" सेलेक्शन = "0" सेलपैडिंग = "0" आईडी = "संपर्क" & gt; & LT; टीआर & gt; & Lt; td & gt; & lt; लेबल वर्ग = "नामेलैबेल" & gt; & lt; span & gt; मित्र का पहला नाम: & lt; / span & gt;

seo - SubDomains for blogs -

Am I making ribs for my site by creating subdoamins ... because Google domains consider subdomain as .. So, am I going to create / create rivals for my website .... I want to go to subdomain .. Please tell me the drawbacks as well as the benefits of having a subdomain Tell me ... Another question ... Most of the subfolders used to blogs Is ... but why WordPress, Blogspot, such as took subdomain I will none look like WordPress to create a blog ... so why took he subdomain .. ??? Am I making subdomains competitive for my site It does not matter if this is a subdomain or main domain, unless you have a great content and a good hit, you are not competing. But why WordPress, blogspot likes subdomain like I create any blog, then this will look like in WordPress ... So why has he taken all the domains ... ??? His method of implementing it BTW voted to stop it so programming is not realted.

drupal file sharing -

I am getting a Drupal module for sharing files between users, no one knows ??? I'm checking the same thing, and there are several options depending on your needs: < / P> You can use the node attachment described above. You can use which will allow better grains. You get more file-system-oriented approach to the module Or, you can go completely and integrate a document management system or I think I'm tilting towards FileField for simplicity, although I have thought of going to full DMS.

Example of a parallel acceleration anomaly -

What is an example of parallel acceleration discrepancy? To wit. A function that runs on P processor, results in more speed than P Consider a matrix algorithm that has been modified for the purposes of parallel in such a way that every A field of computing node matrix has been assigned and only works on this area. If this field is not fit in the cache with a node (because it is a complete matrix) and with multiple nodes it starts fitting in the cache (more nodes are small areas) Access data is very fast And it can happen in unusual acceleration (but not always will be).

.htaccess - htaccess: Why doesn't this work? -

I get a 404 error page when trying the following rule in htaccess: RewriteRule ^ test \? Service = (. *) Test.php? Foo = $ 1 [nc, l] How did it come? I know that it is better to use it instead, ^ test /(.*) test.php? Instead of Foo = $ 1 [nc, l] , but in this case I would love the way I said it. Thank you in advance. checks only but before the query (first ? before # section) is not part of the URL path. It can be checked with: rewrite% {QUERY_STRING} ^ service = (. *) Rewrite ^ test $ test.php? Foo =% 1 [NC, L]

date - Interpolating data points in Excel -

I'm sure this is the second problem that has been solved many times earlier. A group is going to measure people (home energy use to be accurate) they will do this at different time and different intervals. So whatever comes from each person is a set of {date, value} pairs, where the dates in the set are not there. / P> What do I need {{date, value} is a complete set of pairs, where the value is known for each date with a value (either measured or calculated). I hope that a simple linear interpolation for this project will be sufficient. If I think that it should be done in Excel, what is the best way for each other in such a dataset (so I have the value of each day)? Thank you. Note: When these datasets are completed, I will determine the slope (i.e. usage per day) and after that we can start comparing the home from home. Additional Information: After some suggestions first: I do not want to know manually that the holes are set in my measurement (set many incomp

javascript - Google Maps API and IE6 -

I was thinking that someone knows more about the internal functioning of Google Maps API, paired with Internet Explorer 6 . I want to know more about data privacy when using this weird couple What is actually sent to Google Servers? There is not much information about this (subject), in one of the few positions, it is explained that, for example, those browsers which send SNV or VML does not support Google send placemark / polygon / polyline information, Where the map will be provided and sent back. I have found that, in IE6, there is no support for SVG or VML and thus, it is not able to present information by itself. Does anyone know more about this? IE 6 has VML support, even IE 5.0 is also (see) Google Maps uses SVG on VML and others on IE browser.

File write in C confusion -

Hello I work on the window, but the text file on Linux will be attached at the bottom of the text file I use at the top Code is code should use only C FILE * fout; Fout = fopen ("dat.txt", "a"); Fprintf (prohibition, "& amp;";); Fclose (fout); Please help Thanks Errors returned from those system calls Check this - this code looks correct and also to check that you are not accidentally matching dat.txt anywhere in your code.

syntax - Spy++-like tool for OpenGL render trees -

Does anyone know like spy ++ - like an instrument I have an object of graphical elements in an open GL view Let the tree imagine? If possible (spy ++ lets you do this), it would be good if the device does not need support being created in the application. I am not familiar with OpenGL yet, in the view of OpenGL, there is a view on the render tree tree structure. Once geometry hit the OpenGL, it is just a big pile of triangle (most of the spectrum) You can get some luck by looking at the glue / popmatrix () views from the dump, but assuming this app is to handle that the transformation status is not maintained automatically.

Javascript -- Unix Time to Specific Time Zone -

I am working with a service which gives me broadcast time for television shows in Unix time (midnight From January 1, 1970, in Greenwich, England). I need to convert this to JavaScript in Eastern Standard Time (USA). I need an account for daylight saving time, and for the fact that the client's clock can be set to anything other than the Eastern Standard Time, I'm sure this code has been written before. Can anyone point me towards it? What you will find It is possible that a specific time zone, but unless your users are in the desired time zone Yes, this will work: var date = new date (); Date.SsetTime (Unixtime * 1000); The resulting date object will be displayed in the timezone of the computer running the browser: window.console.log (date.toString ()) The yield: "Thursday, June 25 2009 09:48:53 GMT-0400 (EDT)" Anyway For)

visual c++ - SetWindowPos() function not moving window? -

I have a dialog that I want to put on the main dialog in another control of any control and position. / P> Zero CspAceDlg :: DrawResultsArea () {CWnd * pTabCtl = GetDlgItem (IDC_BUILDTABS); CRect rectTabCtl; // Assign CRect to the control status pTabCtl-> GetWindowRect (& amp; rectTabCtl); Int resX = rectTabCtl.right + 15; Int resY = rectTabCtl.top; // Results Area Results Create (IDD_RESULTSDIALOG, this); result. Satvindo Paus (It, Rex, Razi, / * 608, 19, * / 175, 135, SWP_ShOWWINDOW); Results.ShowWindow (SW_SHOW); } My problem is that in my dialogue resource (IDD_REULTSDIALOG) there are properties named Xoss and Y POT which are seen by overriding my SetWindowPos (and small properties in Resource Editor). Tab wins' Leave me blank) If I set these properties to 0, then my dialog appears in the upper left corner of the main dialog. If I set them in any number, then I think that can guess and take place as far as I want, but after running the application on various pro

.net - How do you disallow DebuggerNonUserCodeAttribute from being placed on the code generated by the dataset designer? -

I want to step through a dataset designer code in an ASP.NET project, how can I ensure that: [Global:: System.Diagnostics.DebuggerNonUserCodeAttribute ()] is not included on this generated code? You can not stop it from happening, however, you can move through the properties, just These methods can simply disable my code in the manner tagged. Go to Tools - & gt; Select the option and debugger node should have a check box with the text "Enable Just My Code" on the right and uncheck that box and you will be able to step in your dataset code.

Flash - AJAX call -

I want to call a web page from Flash and use the returned data from it (either plain text Or in XML) I see with NetConnection that you can connect to a web service, but I just want to call a plain old web page. It seems that I was able to do this a while ago, but for my life, I can not find the answer on the web. Does anyone know that function / code is going to call a web page in the flash and get data back What about Thank you, You only need to use a URL loader. var urlRequest: URLRequest = new URLRequest ("http://example.com/page/"); _urlLoader = New URL loader (); _urlLoader.addEventListener (event.complete, onXMLDataLoaded, incorrect, 0, true); _urlLoader.load (URLRequest); XML dataloaded (EVT: event) on function: zero {var xml = new XML (_urlLoader.data); }

Fluent NHibernate: Prevent class from being mapped -

I'm sure it's a piece of cake, but I'm not able to use it Google need to remove I my current configuration: return Fluently.Configure () .Database (MsSqlConfiguration.MsSql2005.ConnectionString (c = & gt; c.Is ( "@ data source = PC \ SQLEXPRESS ... ... "))) .Mappings (M = & gt; m.AutoMappings.Add (AutoPersistenceModel.MapEntitiesFromAssemblyOf & LT; PERSON2 & gt; () .Where (T = & gt; t.Namespace == "ExampleData.HumansTest") .UseOverridesFromAssemblyOf & lt; PersonMappingOverrides & gt; (). Convention Discovery.AdframAssabank OFF; & lt; PersonMappingOverrides & gt; ()). Build Configuration (); Good works, yet ... but I have some classes that I do not want to map. pseudo code: there is something return Fluently.Configure () .Database (MsSqlConfiguration.MsSql2005.ConnectionString (c = & gt; c.Is (@ " ....... "))) .Mappings (M = & gt; m.AutoMappings.Add (AutoPersistenceModel.MapEntitiesFro

c# - How can I validate a string to only allow alphanumeric characters in it? -

How do I verify a string using regular expressions to allow letters in letters only? (I do not want to allow any spaces). Use the expression: ^ [a-zA- Z0- 9] * $ means: using the system. Lesson Regular expression; Regex r = New Reggae ("^ [A-GA-Z0-9] * $"); If (r.IsMatch (SomeString)) {...}

user interface - How do get a Grid column to Auto size to content but not clip the content if it gets too large? -

I have the embedded datagroup inside the first column of a grid. I want the grid column to be content in auto size, But when I do this and the data grid gets too much (when the column is added by the user) the datagrid is cleared by the column. I basically need to maintain the scrolling behavior of DataGrid, but the data Contracts D for the ingredients and can not be harvested at any time. & lt; UserControl xmlns = "http://schemas.microsoft.com/ Winfx / 2006 / xaml / Presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml" xmlns: data = "clr- Namespace: System.Windows.Controls; assembly = System.Windows Controls.Data "& gt; & Lt; Border x: name = "layout" background = "white" & gt; & Lt; Grid horizontal alignment = "statch" & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition Height = "Auto" /> & Lt; RowDefinition Height = "Auto" /> &a

Java to batch file -

How can I pass a parameter to a Java program in a batch file that I can get help Use same Java program. The following stub indicates the piece of code where I run the batch file runtime RT = runtime.gettime (); Rt.exec ("C: /test.bat"); I need to know if I can pass some parameters of test.bat which is used in the snippet above. You can use a string array as Runtime.getRuntime () in the form of AG. Exec () Public Process exec (string [] cmdarray throws IOException

php - Object Oriented Programming, extending properties -

OK This is not just a PHP question, but I have this problem in PHP so that I will post an example in PHP. Example: Example: I have three squares, say, data_ summary, person, and student, now I have an array of data related to each object. Class person reaches the DataAbet {Protected $ data; // name, gender, etc.} Classroom student protects {secure $ data; // student_id, etc} Now, those "data" properties are from database tables, for example, table_person, table_student. At the moment, we will parse the square Get_class () function to get the data from the name and their respective tables. class data_abstract {public function __construct () {$ name = get_class ($ this); $ Table = 'table_' $ name; $ The-> Data = DB-> Query ('SELECT * FROM'. $ Table); // Whatever DB is continuing, // I'm just trying to get all the lines of data from the corresponding table. }} OK, now the problem is, when I invest by $ student = new student (student);

methodology - What are the essential concepts all programmers should learn and use? -

I am currently learning to program, and I do not take CS classes, so I basically start from below I am here. I have been issuing codes together for many years, but in reality there was not a good understanding of the necessary concepts needed to work in big projects. Object Orientation is a clear, and I think I started to understand some concepts in there I am doing. Then there are so many discussions and methodologies, such as MVC, UML, Scram, Solid and so many and so many. I have seen many of these but I always stay stumped because some explanation is required about most explanations, other concepts I want to learn this stuff "correctly", so where do I start? What are the comprehensive structures I need to understand that enable me to understand all the basis of software architecture / design / development? What am I missing? Are there constructions and concepts, as long as I have not cleaned the foundation and what should we wait? Solid theories are probab

Pause/Resume Upload in C# -

I am looking for a way to stop or resume an upload process via C # WebClient. pseudocode: WebClient Client = new webclient (); Client.uploadfileSync (New Yuri ("http://mysite.com/receiver.php"), "Post", "C: \ MyFile .JPG"); Maybe something like that .. Customer.page (); Any ideas? WebClient does not have this type of functionality - even here That's not a bit-less HttpWebRequest , as far as I know you have to use an HTTP library that gives you more control over OK , when something happens (Which will definitely not include more code in it) The issue of WebClient is to provide a very simple API to use in very simple situations.

php - Mapping sessions to users -

When I login to a new session, then it is generated. How can I know later in which session was logged? I am getting the value of the session, but how will I know which session is for the user and redirect it to that page? You do not want to create a new session when you are entering the user. login.php and (); If ($ _POST ['user'] == 'John' & $ _POST ['PWD'] == 'password') {$ _SESSION ['login'] = true; $ _SESSION ['first name'] = 'John'; }? & Gt; admin.php & lt ;? Php session_start (); If (! Isset ($ _ session ['login']) || $ _ session ['login']) {header ('location: login.php'); Go out(); } 'Hello' echo $ _SESSION ['first name'] '!'; ? & Gt; A user visits admin.php session_start () creates a new session for all data ($ _SESSION ) A new cookie client-side is stored with the ID of the session stored on the server. The user is redire

regex - How to parse for tags with '+' in python -

When I try to compile it, I get the "Nothing to Repeat" error: search = re.compile (r '([^ a-zA-Z0- 9]) (% s) ([^ a-zA-Z0- 9])'% '+ test', re I) The problem is '+' How do I manage it? re.compile (r '([^ a-zA -Z0- 9]) (% S) ([^ a-zA-Z0-9]) '%' \ test ', re.I) "+" In the regular expression the quantifier "is less than Repeat at least once "It has to be followed by something repetitive, or if you want to match it with a literal" + "then it must be saved. Better, if you want to make your regex dynamically re.compile (r '([^ a-zA-Z0- 9]) (% s) ([^ a-zA-Z0- 9])'% re.escape ( '+ Test'), re.i)

linux - How to check if a file has been opened by another application in C++? -

I know that is_open () function in C ++, but I have a program Should check that no other application has opened the file or is there any way to use the standard library? Edit - The answer is obvious that it is for a Linux application. No, there is no such functionality in the standard library.

c# - Backgroundworker : exception during cancellation -

I have a background worker who can be canceled. In the middle of the normal flow only when the CancelPending variable is turned into true (UI which responds to the user interaction on the call worker.CancelAsynch ()), exception is thrown because of (that's Since the normal flow is interrupted, many Null Referee exceptions are thrown out) So when the worker returns, I threw the exception (to silently ignore them) that when the worker canceled Given has been thrown Want to be able to do when the worker was not canceled (to report them on the UI) My code is following (sorry for the c # / vb mix ...): Worker class: Public Class ClassBaseGetObjectsWorker Inherited System.ComponentModel.BackgroundWorker protected override sub-OnDoWork (as ByVal e System.ComponentModel.DoWorkEventArgs) While CPT's try & lt dim CPT int16 as 0 = try; 5. System.Threading.Thread.Sleep (1000) CPT = CPT +1 then CheckForCancellation () then discard exception to the exception to the new exc

WPF GridView: Changing the DateTime formatting for bound DataTable -

We have a WPF GridView dynamically from a DataTable (which is a direct result of a DB query in turn naturally ). It basically works fine and displays whatever DB query results are in a good table. The problem now is that some datetime column of results, and the date display US format and is not always user-defined date format. Is there an easy way to set formatting for datetime GridView display? We do not know in advance that the column will be the date time. Separately a number of tables are displayed The way we have thus filling gridview: MyListView.DataContext = data; MyListView.SetBinding (ListView.ItemsSourceProperty, New Compulsive ()); MyGridView.Columns.Clear (); Forex (DataColumn data calls. Column) {GridViewColumn gvcol = new GridViewColumn (); Gvcol.Header = col.ColumnName; Gvcol.DisplayMemberBinding = New binding (col.ColumnName); MyGridView.Columns.Add (gvcol); } It should be enough to put the current culture applucation startup /// & lt; Summar

recursion - Using Perl, how can I rename files in all subdirectories of a drive? -

itemprop = "text"> I can rename all the files on the drive with the .wma and .wmv extensions. In directory structure? The examples given in the documentation are very self-explanatory and you will find most of the methods there. When you have an attempt, update the question with more information. If this is a learning curve, then you will learn better before trying to do yourself. Update: Assuming that you have to do this and have a chance to keep in mind that various solutions were posted I am posting how I could have done this. Note that I choose to ignore files like ".wmv": My regeses need to come before the dot. #! Use / usr / bin / perl strict; Use warnings; File :: Use Search; Mine ($ dir) = @ARGV; Find (& amp; mc, $ dir); The Deputy wanted {until the return -f; Unless that / ^ (. +) \ .wm [av] $ / i; My $ new = "$ 1.txt"; Rename $ _ = & gt; $ New or alert "'$ _' = & gt; '$ new' failed: $! \ N&q

php - How do you center an image in a specified area, without resizing the image? -

I want to center an image without resizing it in any area ... I am using HTML. Example: I have an image & lt; Img src = 'img1.png' width = '64 'height =' 64 '& gt; - The image is actually 64x64, it is fully displayed. Now, I have another image & lt; Img src = 'img2.png' width = '64 'height =' 64 '& gt; However, this is not as big as it should be, its 32x32 - what happens here, it changes the image to 64x64 and it looks like $% ^ & amp; How do I make the images smaller, then the desired width and height can be centered without any resizing in the 'IMG' area? What you need is something like this: & lt; Div class = "box" & gt; & Lt; Img src = "size of the picture you want" /> & Lt; / Div & gt; For more styling (in external stylesheets, nuts) you will apply: prefix Solid; Height: 64px; Width: 64px; Background: # 444; Exhibit: Table-Cell; Vert

unicode - How can I specify a special character in PHP -

I am trying to output a sigma character (& sigma;) to the label in the Fusion Chart Graph How can I specify that character in a PHP string? I have the htmlentity & amp; Cigma; , but it has not been correctly interpreted by the graph. Is there any way to specify the character in PHP using any type of character code? You need to make sure that you are sending the correct header while output. & lt ;? Php header ('content-type: text / html; charset = UTF-8'); $ Char = utf8_encode (html_entity_decode ('and sigma;')); Copy $ char; This will give output to the character. Edit : If the characters in the graph are working, the software does not support UTF-8.

Using Mocks with multiple scenarios in NBehave -

I am using NBehave to write my stories and Rhino Max is used to write system (system). However, going from one scenario to another, there is a problem resetting the expected behavior in my fake dependency. I only want to claim that the method of saving on my repository was called in two situations: dependencyRepository.AssertWasCalled (ears => ears.sev (Arg & lt; IDependance & gt; .Is.Equal (dependency))) But it is being called in every scenario and fails in my second scenario because Rhino Mox It should be said only once, I do not want to be forced to use a clear expression But it sounds a bit like I have. Rhino Mox has some examples of Nibehave but I can not do many scenarios Cheers If you do not want to say that. Save (...) was called in each scenario, then do not set expectation for each scenario, set it only for scenarios where you call it. If this does not answer your question, please clarify your question with more information; It is not clear

sql server - How do you access the Context_Info() variable in SQL2005 Profiler? -

I am using the Context_Info () variable to keep a track of the user who executes a stored procedure and free-form SQL Has been doing. When every problem is solved on this server, I would like to be able to bring the context_info () variable and the value of the filter based on it. When you set context_info () to output the trace values, user_conceptible events sp_trace_generateevent (EventId) Of 82-91). Your choice is to either, or context_info () is to find out the statements that will set you will not be able to get the price in any other way unless you dump the output of sys.dm_exec_sessions in a lip When a trace is running: select session_id, cast (Context_info varchar (128)) as context_info from sys.dm_exec_sessions where session_id & gt; User session for SQL 2000 You can use sysprocesses: select spid, cast (reference_ology as varchar (128) ) From sysprocesses context_info where sid & gt; 50 - User Sessions

Adding components to CoverFlow in Flex -

I am working with it. The example is included, it gives some panels a CoverFlowContainer . In addition to this, there are other examples which make coverflows from an RSS feed on the above page, but do not include these sources: ( I will eventually retrieve data from a web service though the coverflow I am starting with this simple example: gt; & lt ;! [CDATA [import mx.controls. TextArea; Public category text: panel = new panel (); public priority textArea: textair = new textAraia); Private function init (): Zero {ArticlePanel.addChild (articleTextArea); ArticlePanel.title = "test tile" article TextArea.text = "article1" + "\ n" + "www.article.com +" \ "" Hello "This article is 1"; coverflow2.addChild (articlePanel);}] ] & Gt; & lt; / mx: script & gt; mx: vbox id = "box" verticalgag = "0" height = "306" width = "100%" maxWidth = "600" maxHeight = &

java - JVM -XX:+StringCache argument? -

I was recently reading about all JVM logic available in JRE 6 [] and saw it: -XX: + string cache: Enables caching of normal allocated wires. I was always under the impression that Java placed a pool of enters (true words) strings and when some string was not producing some new things like string containment Was, but they were pulled from this pool. Has anyone ever used this argument, or can explain why it will be needed? Edit: I tried to run a benchmark, to see if this argument had any effect and was unable to convert the Java version to the Sun GVM (TM) client VM (11.0-B16 build, mixed) mode, sharing) So I'm not sure this argument works at all. I believe when the -XX: + offensive option If it is used with, then this string object with string with the same text (though through new string , not at all). There is a profile stage where the cache is created, and after a point the cache is switched to read only, it receives high marks in some benchmarks.

ruby - How to run Rails console in the test environment and load test_helper.rb? -

Text after "itemprop =" text "> Background: I, Thoughtbot's" Factory Girl "gem is having some problem with objects to use in I want to go to the unit and other tests I want to go to the console and look at various factory girl calls to see what's going on. For example, I want to go there ... ... < / P> & gt; Factory (: user) .inspect I know that you You can run the console in different environments ... $ script / console RAILS_ENV = test But when I do this, the factory class is not available. test_helper.rb is not loading. I tried to do the different required one with absolute path of test_helper Including call .rb but they fail with it: $ script / console requires RAILS_ENV = test> gt; & gt; / Users / ethan / Project / contac Tdb / test / test_helper.rb 'errno :: ENOENT: Any such file or directory - /Users/ethan/project/contactdb/config/environments/RAILS_ENV=test.rb Grow Argh . For Rails & lt

javascript - Website Theme for IPhone - What are The Basic Ingredients? -

Has anyone made a website theme for the iPhone? Please tell me any suggestions or resources Here's my theory: How to prepare a website for the iPhone For desktop monitors Make a website designed 320px (iPhone screen resolution) Try not to make any element bigger Create 2 style sheets, for a desktop monitor and the other for iPhone by default, the desktop version of the style sheet is called. IPhone style sheets will display items in such a way that they fit within 320px resolution. Create a javascript file that detects the screen size. If the screen size is less than 321 px, the style sheet is replaced by the iPhone version style sheet. Liquid layouts work well when you portrait from Landscape And go back to the iPhone, text reflows

Is there a way I can send a NULL value to a SQL stored proc through XML? -

I'm thinking that in a way I can send a tap or dibbon to my C # data service. Proc through some configuration xml parameter In the proc, I want to draw some value of xml as a bit, but because the UI allows for the third position, the bit can come from the val xml in which case i have any I also want to ignore the SQL update. Excelment xml = new excelment ("XML"); Xml.Add (New XElement ("SomeConfigValue", NULL)); It seems that when I put zero in the XML from C #, it does not miss a node with a value. & lt; SomeConfigValue / & gt; When I catch the value from XML as a value in SQL, the value is interpreted as 0. Choose isnull (@configuration .value ('/ configuration [1] / some config value [1]', 'bit'), NULL) It's all right and good. It makes sense. I'm just curious if someone can suggest suggestions from which I want to do it, I can get it to work. Maybe I can not rely on the SQL bit type, but I'm current

c# - Is it possible to force an auto-property to use a readonly backing field? -

My project includes a large number of classes with those properties whose backing fields are marked as read only because they are only set to production. As a matter of style, I have an auto-property I like to use because it eliminates many boilerplate codes and encourages the use of a member of the asset instead of the banking field. However, when I use an auto-property, I lose the "readable" of my backing field. I understand that the compiler / runtime is able to take advantage of any performance improvement when the field is marked in this way, so I want to be able to mark my auto-property as read-only, something like this: < / P> [ReadOnly] Public String LastName {get; } instead of Private Readonly string _LastName; Public String LastName {get {return _LlastName; }} Is there a mechanism already available to do this? If not, is it really beneficial to actually be beneficial to read in the custom banking field? Uncovering the area as a public is another

java - JML Evaluation of \old(Expression[Id]) -

मैं यह जानना चाहूंगा कि फार्म का एक जेएमएल अभिव्यक्ति \ old (अभिव्यक्ति [आईडी]) मूल्यांकन किया जाता है, अर्थात यदि मेरे पास \ old (vector [value-1]) अभिव्यक्ति है, तो \ पुराना भी "मान" या " वेक्टर [value-1] का मान। अग्रिम धन्यवाद! अच्छी तरह से आपको उम्मीद है कि आप अपने प्रश्न का कहीं और जवाब देंगे, लेकिन यह पहला है: \ old (vector [value-1]) पुराना सदिश में \ old (value) -1 पर मूल्य है। >

performance - Use php's readfile() or redirect to display a image file? -

I have a directory with images, CSS and JavaScript outside Webtrust These files often change I can write a script that outlines the file, tells the mime type and outputs it in the browser. or I can copy the file, copy it to a web-accessible directory, and redirect the file using the header space. When the file is requested again, for the first time there will be an inquiry that the file has been modified, and then there will be a redirect. What will happen according to better performance? Each request is a readfile, or each request is a timestamp check and redirect (instead of 2 requests) display First rule of: Benchmark, do not speculate. I will break the first rule immediately and guess that the readfile will be sharp, because this network terminates the round-trip. How much performance do you need? The fastest way to do this is to set up a separate static content server under a subdomain on a different machine (for example), and then that web server has to hand

actionscript 3 - Setting the font name and size in AS3 List control (flash.controls.List) -

Using CS4, how can I set the list control font? I tried to do this: var myFormat: TextFormat = new TextFormat (); MyFormat.font = config.settings ["List Font Name"]; MyFormat.size = number (config.settings ["list font size"]); List.setStyle ("textFormat", myFormat); there is no dice At the level you can set styles. For the selection list (list, combo box, tilelist, etc.), you need to use instead of setstyle , because you set the style for each cell renderer / item , And not in the list, if it makes sense: list.setRendererStyle ('textFormat', myFormat); In addition to this you can use global styles. Make sure your fonts are first embedded, then try import fl.managers .StyleManager; Var myFormat: TextFormat = New TextFormat (config.settings ["List Font Name"], config.settings ["List Font Size"]); StyleManager.setStyle ('embedFonts', true); StyleManager.setStyle ('textFormat', myFormat);

in vim, how to combine ^] and arge, to follow a tag and also add it to the arg list? -

I can get under the cursor or words, and I could use to open the file I and ARG I can add to the list. For example, with a cursor on the name of a Java class, at line 45: : arge +45 mydirhere / & lt; Cword & gt; .java But I do not know how to pass in tag mechanism, so it will return the filename (and line number), which is arge I think my question is special: "How do you say tag mechanisms?" I expect something: string getFileAndLineforTag (string tag) You can use the tag list () function. From to: Tag list () (in VIM 7.1) to help the tag list: Tag list ({expr}) * tag list () * Regular expression Provides a list of matching tags {expr}. Each list item has at least one dictionary containing the following entries: Tag Name Name. Name of file name where file is defined It is in relation to the current directory or full path. Command to locate tag in Cmd Ex file. Type of type tag The value of this entry depends on the values ​​of the language

java - Given Name Formatting -

Anyone can help, thanks OK, so I have a customer list Which has a customer list. The problem I have is that I have found that all the entries for the customers first and last names are stored in all uppercase letters. And I want to know that anyone knows about some utility that I can use to change their names to the right cover. I just thought of making everything lowercase and creating uppercase uppercase, but it would not always be perfect in all instances. I would like to be able to do this in Java if possible. A quick up: Sam O Neil in English names , Jenny McCarthy, Beverly de Angelo, Leonardo DiCaprio, Don Alejandro de la Vega, Werner von Braun, etc. We have trouble when we try to capitalize them properly in software applications. The following java code helps in the situation where capitalization of names is necessary. After the code "D", "MC", or "MAC", or after any punctuation, makes the letter bigger, and "Macintosh", &

ajax - How to test a URL in jQuery -

I have a URL that I want to open in (or any other overlay-type pop-up). I do not already know that the URL is good, so I want to test it. If invalid - I will not attach the Fancybox plugin to that specific URL, it will be just a regular link How can I test a URL before attaching it to a plugin? Tried to do this: $ ("a.overlay"). Each (function () {var xhr = $ .get (this.href, function (data, position) {// was never executed in case of a failed request}}; if (excercity & amp; xhr. Status === 404)) {// no good, do not do anything} second {// can add plug-ins here}}); The problem is, xhr will not always be defined because JS does not wait for completion requests. Similarly, I can not use the callback function, because if this request fails (I can see it in firebug, but this is not very useful) does not execute. Thank you and good weekend everyone. You can do this, however I can ask the question that this is the request for each link < / P> $ (&qu

datetime - SQL: How to Group by Custom Year -

For simplicity sake, I will make a similar example to him: We say order order field in DB And there is a table of order with a company field. Then there is a table of companies and each record has a year-round figure (which indicates that year ends year that year, like 6/6). I need to add all the orders for each year I think it will have to do something like this, but I can not understand it: SELECT SUM (orderValue), case when order date & lt; = YearEndingDate then date date (year, order date) in case of order date & gt; Year end date, date of date (year, order date) + year 1 year from year to order by company.companyID = order by company company, company, year Even thoughts? Not sure which RDMS you are using, but this should do the trick. TCLL is special in Datapaptor and Dataid accessories but I believe that this kind of function will have access to all the platforms you are using. In the case where to determine which year value is determined. Answer: S

apache - My server intermittently won't serve pages to Safari 4... Need help! -

I have still upgraded my browser to Safari 4 and find that our website is something specific for that browser version There are major problems as I clicked through the pages on our site, one or two clicks before the window is empty when the window is empty, there is no source to look at and no problem Is that i How often do I try to reload or if I try to load other pages of the site, I still get a blank window. It seems that the server takes the request and just returns the blank page. If I wait 15 seconds and then refresh again, the page load is OK. It is not certain why it starts to work again ... maybe no issue of cash ??? This is a PHP site and I have tried to turn on error_reporting (E_ALL), but it is not giving any information. I also tried to insert an echo statement at the beginning of the index.php file and verified that the page is still empty without resenting that statement, so I'm thinking the problem is not php code specific. The Apache error log does not show

google maps - How to geocode non-standard business addresses -

I have small databases of business and their addresses are using I, I was probably to get 80% correctness is. If a business has a simple address on a road, Google usually does a good job, however, many businesses have strange addresses, which are presented differently depending on the database. Example: Royal Copenhagen Manly 1 Shop 2a, The Coro (Werf and) Manly NSW 2095 (02) 9977 1618 Find Google's GeoCoder Failure to get a good address for this place However, if I, I can easily find the address, and the pin is the right place: 2 Coro Manly New South Wales 2095, Australia (02) 9977 1618 Now, let me get my Geocoding program to find the best location. Inn is trying combinations. Note, on Google Maps, you return very good results, but GeoCoders return very different results. Does anyone have a programming geocoding database successfully like this? Personally I use to get long / axial information and I want to map data I use Google's API for I went to the sa

Calling inline functions C++ -

मेरे पास वर्ग MyClass int MyClass :: myInlineFunction () के अंतर्गत परिभाषित एक इनलाइन सदस्य कार्य है; यह फ़ंक्शन मेरे कोड में कई स्थानों से कहा जाता है। इस फ़ंक्शन को कॉल करने के दो तरीके हैं प्रकरण 1: फ़ंक्शन को हर बार उपयोग करते हुए इसका उपयोग किया जाता है। मोबाइल-> मेरी इनलाइन फंक्शन (); प्रकरण 2: इस फ़ंक्शन के परिणाम को एक चर में निर्दिष्ट करें और बाद में पहुंच के लिए इसका उपयोग करें var = mobj-> myInlineFunction (); कौन सा पसंदीदा होना चाहिए ?? केस 2 आपको बहुत कुछ दे सकता है प्रदर्शन का, यदि फ़ंक्शन कुछ करता है जो कुछ समय लेता है। इसे चुनें यदि आपको फ़ंक्शन के दुष्प्रभावों की आवश्यकता नहीं है फ़ंक्शन हमेशा उस संदर्भ में उसी परिणाम को वापस करेगा

moq - How can I generate ASP.NET MVC URLs inside a unit test project? -

How can I generate URLs related to Controller, Action, and Parameters (for a given ASP.NET MVC project) Am I another project (class library used for testing)? I have yet found HtmlHelper.GenerateRouteLink , but still the correct request context and route archive. Try it out: var routes = new route controls () ; MvcApplication.RegisterRoutes (routes); Var reference = new fake & lt; HttpContextBase & gt; (); Var urlHelper = New UrlHelper (new requestcontent (reference object, new root data ()), route); Var url = urlHelper.Action ("action", "controller", new {id = ...}); to

reporting - Cognos reports showing no data from url -

I can run all my reports properly from the report studio, so there is no question of query or data or even the specs report Does. When I tell them to the URL then I do not find any data in the report. Clearly the data should be We should call just 8.2 to 8.3 And this is not all the reports ... only a few are selected This is a serious problem because our users can no longer run these reports. Please help. -k By reproducing the reports from scratch on this screen, Using the clipboard was working by copying all the contents and saving it to the old one. There should be something wrong with our reports and Seo upgrade engine. This fixes 90% of our reports, we still have something that does not behave properly

Windows Network adaptor disable enable via Powershell -

My network card is garbage and unless I get a new one, I need a Quickfix I thought My router program needs to be pinged and when ping fails 3 or 4 times, it will reset the network adapter for my wifi card, although I do not know the command line command to do this! I found the following in a stack overflow question: $ adapter = Get-WmiObject -Class Win32_NetworkAdapter | Where-object {$ _. Name-like "* wireless *"} $ editor. Disable () $ adapter Enable () Although it needs to run under the script to run, admin privilege and I do not know that without the powers of manually launching the script to execute This post shows that the PowerShell script has been accessed by the administrator How to be increased: To do this, you have a Make the completed work (a scheduled schedule), and set it to run high. After that, give your users the right to perform that task. In this blog post, this process is described in more detail: Additionally, there is a blog post

security - Best way to store password in database -

I am working on a project that has authentication (user name / pass) this Also connects to a database, so I thought I would store the username and password there, but it seems that the table sitting on DB should not have a password as a text field, there is no such good idea. > Using C # and by 2008 Express Server Ekt Does anyone get the idea (possibly the best way of many examples) to store this type of data? (I am open to the idea that this information is not stored in DB if a good reason can be provided) You are right that accumulating a password in a plain-text field is an awesome idea, however, as long as it stays , in most cases you (and I honestly can not think of any counter-example) in a passport in the representation database The proper job is to represent I mean that you want to have a password (which should be different for each user) and use a secure 1-way algorithm to heath the password and that After you want to throw away the original password, w

.NET to Java Tutorials -

I have been asked to create a simple database web app using Java. I'm a C # .net programmer and I have not actually created a Java web app in the past. Do you know about any good books / online tutorials that can help catch me on the work of Java web apps? I get a lot of time getting up to speed, so any deeper examples will help a lot. I think this blog can help you with some locations Like to make web applications together, you can see here a step by step tutorial http: // static.springframework.org/docs / Spring-MVC step-by-step and let me know about Microsoft One book from the know that it is "Java to C #" or "C # for Java Developers", I do not remember the name of the book Qin maybe it can help you too, unfortunately this is not an online book. Hope this helps

c# - Gracefully closing multithreading application? -

I have an app that has two threads The first (the main thread) that captures data and datatiles by using the data socket The second includes the data tables in the database. This application works fine, but when it stops, the main thread ends up reading the data and calls the abort method in the second thread, which can be included in the database And gets inconsistent data from it. Currently I am using the following solution to overcome the "aborted during the entry" Edit: Powerful answer I changed the code < Pre> void MainThread () {while read ()) {// read data via socket {// wait mute x1 // update tables} {// release mute x1}} _isrunning = false ; _secondThread.Join (); } Void SecondThread () {while (_isrunning) {try {// wait Mute x1 // Insert tables using transactions in the database} Finally {// release right x1}}} "Call aborted method" means to terminate the thread using the thread. . There are several cleaner ways to do this with