Posts

Showing posts from May, 2011

c++ - work with .hpp files -

The code in my main program is given below; Here I have inserted a file named test.dat and the data of this file in my structure so that I can use the square named mydata (http: // my_data.hpp). int main () {// cout & lt; & Lt; "This is my program" & lt; & Lt; Endl; // When removing this, the codes are not working exactly = true; MyData my_data ("test.dat", okay); If (OK == wrong) {cout For the calculation part, I used another class, acalakulation (a_calculation.hpp). Here I had indicated to speed up my program. Computation (MyData * my_data) {MYData :: iterator i; (I = my_data - & gt; Start (); i! = My_data -> End (); i ++) {If (i-> A ()> gt; Max) {max = I- & Gt; a (); }} Cout & lt; & Lt; One ???? My maximum value is: A ???? & Lt; & Lt; Max; My program does not show any errors, but when I run it, it does not show the result of my maximum value. But when I added a single ??? Coutâ ???? The code shows t...

user interface - Asking for advice for UI of multiplayer card game (Android) -

Image
OK, so 4-6 players can be what I want to put around a circular table (table is just a Background i think). My problem is because each player can have multiple cards (up to 10), I like that the user will always appear below with his card, and the remaining players will see it with a hidden card. Now, a player can join the table if he has room, then I need to adjust to sit accordingly, if any player clicks the top left join button, when he starts playing, then I He should look for himself. How can I do this? I think that is not the right way to keep static thoughts, I have attached a scratch image of my wish UI. The players' thoughts can be just their cards in the foreground of the screen. She sees the table from the first person. There will be 2 ideas for another approach, 1 will be with the observation of the table and one will be the second to see the card etc. Users who can switch between me privately I prefer first. To create the first I will make the layout horiz...

c# - Problem with grid when trying to use groupby in LINQ -

When you try to use GROUPBY, I get an error that states that the field 'date1' is selected Not found on the resource. var query = (Select from db.bt to db.Facts where a.Count_Key == b.Date_key new {a.Date1, a.Month, b.Fact_key} ); Var query2 = query.GroupBy (x => x.Month); Grid1.DataSource = query2; Grid1.DataBind (); Therefore, when I try to bind the query it works perfectly, but the query generates 2 errors field date1 Not found on the selected data source. How can I fix this? The group names different from the original selection by return column. You can do the following to see it for "educational purpose". Create a new grid 2 and use it with automatic columnmapping. Divide question 2 into this grid 2 and you will see the result.

What is the most efficient and robust way to program ASP.NET with javascript? -

I wanted to know what is the best way to program ASP.NET with JS? So far, I am trying to code with codebehind features. Add ("onclick," ....); Is there a better and better way to use JS with ASP.NET? Thank you Writing all your functions in a different JS file is more flexible Now what are you doing The problem may be the control ID in your JS file. Okay, there are many ways. Hardcoding Just look at the Source View and Identify Control which you want to use. It's easy, but if you want to change the control ID some time then the related function will not work something like that all in the ASPX file Announce a variable with client id that uses in JS file var MyControlIDs = {"Textbox1": "& lt;% = Textbox1.ClientID%>", " Label1 ":" & lt;% = Label1.ClentID%> "}; and in your JS file var mycontrol = window .MyControlIDs and anywhere you want var textbox = document .getElementById (mycontrol.T...

CouchDB Blog Application -

I have read many articles on "CouchDB - Definitive Guide" and on the Web I understood how the couch works, but Some questions are still in my mind. To work on a simple blog application: I want to show the post data and the author's data in the post page. So I think I have to give everything in the same document. Fine. If I need to show only the author's data in a page, then I can do it with a view okay. But if the author updates his data, then I need to update every document where the authors appear? Or am I wrong? I love to understand this argument. Thanks in advance. Some information can be left in the same document, and in most cases that will work just fine. {"title": "Blog Article Title", "Content": "... Blah Blah Blow ...", "Author": {"Name": "Some Guys" , "Email": "someguy@foo.bar"}, "type": "post"} The second time you create a li...

Preserving Ajax page state with URL hash -

On my site there is a page with two sets of tabs, each tab is linked to AJAX but it has proper href The matter is not Javascript enabled. I am using a plugin like implementing an AJAX 'back-button' solution, such as a jQuery address. My problem with this problem / confusion is that the default content of the first page of Javascript has still been loaded, parsing the hash and the chance to load the correct content, if I initially hide the content, Non-JavaScript users will never see anything. If I do not initially hide the content, then the user will see the wrong page before it gets updated (in addition to loading the wrong tab, except the overhead and then the right tab). If you use a hash , You'll always have the wrong content to avoid this, you have to use a server-side solution with the HTML5 History API. You can use: and present the tab with something like the on the server side (if $ _GET ['tab'] === '2 ') / / Render2

c# - convert ushort[] grayscale values to byte[] -

I have the value 0-65536 in the format uhort [] . But I need this grayscale values ​​in the byte form! How do I change my user values ​​in byte values? Thanks byte value = (byte) (array [index ]> 8);

javascript - get position from specific position to end window -

Hello how can I get the status (browser) dynamic to end the window with a specific status First of all, you can hook the mouseMove event to html. After that, you close the window when the position of the mouse in the specified range. Here is a simple example for you: windows are automatically close when the mouse moves to the limit of 100 & lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" & gt; & Lt; Title & gt; Close Windows & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function checkpost () {var s = 'X =' + window.event.clientX + 'Y =' + window Event.clientY; Document.getElementById ('divCoord'). InnerText = s; If (window.event.clientX & gt; 100 & amp; amp; amp; window; Event.CustomX & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp...

convert from unsigned char array to long c -

I read from a binary file in an unsigned four buffer using fread for a long time. Now I get a long time, how can I do it? Unsigned four buffer [sizeof (long)]; Fred (buffer, size (long), 1, my_file); Thanks! Definitely mean to you: long buffer; Fred (and buffer, size (long), 1, my_file);

matlab - Remove paper texture pattern from a photograph -

Image
I have scanned an old photo with a paper texture pattern and I would like to remove the possible texture as possible. Is there a way to use the image processing toolbox in MATLAB? I tried to use FFT, but I could not find any clear white spots for painting. Perhaps the pattern is not so regular for this method? You can see the sample below. If you need the full image, then I can upload it somewhere else. Unfortunately, you are stuck in very spatial domains, because the pattern is not really enough to use for foreior analysis. As told by @Janas and @michid, filtering will help you with this kind of problem. With filtering, you have to face trade-off between the amount of expansion that you want to keep and the amount of noise (or unwanted image components) that you want to remove, for example, to be used by @Jones The average filter paper completely removes the texture (even the round scratch near the bottom edge of the image) but it removes all the textures within the ey...

Shell Integrate in Windows for a Specific File Type With C# -

So I've discovered a guide to integrate my application with C # (Add it to the right click menu) , But I do not know how to do this that only for a specific file type. I know that this is possible because WinRar does this so how can I do this? There are usually two ways that you can apply it. Registry key - You can type keys and values ​​under HKEY_CLASSES_ROOT. If you look at that hive then you will see extensions on your PC. See this for details of keys and prices with your app. Myfile is something like easy to open the type of option here. Shell Extensions (Written in COM): Here you can do more complex stuff like they will call by Windows so that you can work as a color on the menu, or add custom actions when a file is right-click here More, you can also add asset sheets and custom tooltips. You will know about something that does not use .NET to write a shell handle on the net **. This applies only to older versions. NET This article will not suggest WHY...

Getting complete PATH of uploaded file - PHP -

I have a form (HTML, PHP) that uploads the file to update the end user database (MySQL) The record in the uploaded file (especially .csv) However, in phpscript, I can only get the file name and not the full path of the specific file. For this reason, FOPN () fails. Can anyone please tell me how can I find the complete path? HTML code: & lt; Html & gt; & Lt; Top & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form method = "POST" action = "upload.php" enactepe = "multipart / form-data" & gt; & Lt; P & gt; File to upload: & lt; Input type = "file" name = "UploadFileName" & gt; & Lt; / P & gt; & Lt; Br / & gt; & Lt; Input type = "submit" name = "submit" value = "press it to upload" & gt; & Lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt; PHP Script: name file name to client-side...

random - Bimodal distribution characterization algorithm? -

Hopefully the algorithm can be used to clearly mark the biomodel distribution, in which 2 different Are the distributions mixed well in different peaks an array of samples? There is something that estimates the meaning of 2, 2 standard deviation, and some kind of robustness, the desired result will be I am interested in an algorithm that is in any programming language (for embedded controller) Can not apply, existing C or Python library or state package. Would it be easy if I knew that the two modal is different from the ratio of approximately 3: 1 + - 50%, then the standard deviation is "small" relative to the peak separation, but The pair of peaks can be anywhere in the 100: 1 range? There are two different possibilities here one is that you have only one distribution that is valid The second is that you are viewing data from two different distributions. The general way to guess later is to say something that is surprisingly, A Use your approach maximum prob...

php - Not sure how to get mod_rewrite to write to a certain format -

I'm trying to understand how to properly use mod_rewrite. I have posts in my database which have a title and date. Right now I am using mysite.com/post.php?id=3 to recover my post data and am populating the page. I like this: mysite.com/2011/03/27/my-title-like-so/ I'm guessing that for anything other than ID, I have to ask my database, but I do not know. Can anyone help? Maybe I'm seeing something very simple so far I have shown it like this: mysite.com/post/2/, but it does not help too much: p Thanks! Including both ID and title / date in the URL is a common practice. This way it looks good for search engines and you can still recover it efficiently by ID. As an example, look at the URL for this stack overflow question. http://stackoverflow.com/questions/5451267/not-sure-how-to-get-mod-rewrite-to-write-to-a-certain-format Just an estimate, but if the number in the URL is probably a generated ID then you use the ID and just ignore the rest of the URL like:...

Terminal/SSH : How can i track how many people are accessing my site at the moment live? -

I want to connect to ssh and type in a command that will show me my updates such as their IP address form They enter my site in Is this possible? Just see on which page an IP address has been entered or only the IP of the person connected to the site. Live view I see that this list will be updated. tail- f /path/to/your/access.log Generally read logs is very useless.

SMTP Client Sending error in C# app -

Hey guys, I'm trying to set up an email sending application using a hotmail account. The code looks like this: MailMessage Mail = new mailmax (from, to); Mail.Subject = "problem email"; Mail.Attachments.Add (new attachment ("C: \\ Documents and Settings \\ Proba.txt")); SmtpClient Client = New SmtpClient (); Client.UseDefaultCredentials = false; Client.Port = 587; // 465 568 Client.host = "smtp.live.com"; Client.EnableSsl = true; Client.Credentials = New System.Net.NetworkCredential ("smg@hotmail.com", "password"); Client.SendCompleted + = New SendCompletedEventHandler (client_SendCompleted); Client.SendAsync (mail, "token"); By using , I have not really received any error, I also get a response that the message has been sent (event trigger) but the message never comes. If I use simple clients. Invalid zero, I get the following error: 5.3.4 The requested action was not taken; To continue sending messages, pleas...

Java: I get a class cast exception error pointing to class I didn't even import -

My problem is simple, I already have the code written to scale the image and then crop for the desired dimensions (By receiving Constant class). if (image! = Null) {Image originalImage = image.getImage (); Int width = stable. Wide; // Algorithm: Get the original width and divide it with the desired width int height = Original image. Gatehit (empty) / (Original image. Gatewath (empty) / width); Image scale image = Original image Gate Sensational Instance (width, height, JavaA.T. image. SCALE_SMOOTH); // Now to crop it to specified dimensions, BufferedImage imageToCrop = (BufferedImage) (java.awt.Image) scaledImage; Height = Stable height; ImageToCrop = imageToCrop.getSubimage (imageToCrop.getWidth () - width, imageToCrop.getHeight () - height, width, height); Image.setImage (imageToCrop); } When driving, I get an error: java.lang.ClassCastException: sun.awt.image.ToolkitImage not included in Java .awt.image.BufferedImage and this line corresponds to: BufferedImage ima...

Rails moving queries from view to controller -

देखने और नियंत्रक के लिए यह कोड मिला: # matches / show.html.haml % H3 खिलाड़ी-@clans.each करो | कबीले | % H4 = link_to clan.name, कबीले% ul -@players.find_all_by_clan_id (clan.id) .each do | खिलाड़ी | % Li% strong = link_to player.name, खिलाड़ी% h3-@rounds.each_with_index do | round, index | % H4 गोल = सूचकांक + 1-@clans.each करो | कबीले | % H4 = कबीले.नाव% ul-round.participations.includes (: खिलाड़ी, चैंपियन) .find_all_by_clan_id (clan.id) .each करो | भागीदारी | % Li = participat.player.name = participation.champion.name # matches_controller.rb क्लास MatchesController & lt; ApplicationController def अनुक्रमणिका @matches = Match.played.includes (: clans)। पेज (पाराम [: पेज]) अंत डीईफ़ शो @ मिल = मैचइनमें शामिल हैं (: राउंड,: क्लेशन) .फंड (पाराम [: आईडी]) @ Clans = @ match.clans @rounds = @ match.rounds @players = @ match.players अंत का अंत कैसे मैं सभी अनावश्यक डीबी प्रश्नों, तर्क आदि को नियंत्रक से देख सकता हूँ? हो सकता है कि यह किसी भी तरह से सरल हो? नियंत्रक को न...

ruby - Creating a reach definition -

My access definition is to check an array to see if it's every member in the array If not, they seem to be different, so each can be applied, it just seems to print the array ... it is actually using Ruby for the first time, so I need some help. My code is: remove square string The last class object df tests # on each response and if it prints it then returns to # object if it receives (x.respond_to? (: Each)) self.each { | X | Print x, "\ n"} and yield (self) self.each {| X | Print X, "\ n"} End and # Test (Delete before submitting) [4, 13, 18, "Fred", "Alice"] Each {| X | Print X, "\ n"} [4, 13, 18, "Fred", "Alice"]. Access {| X | Print x, "\ n"} [4, [13, 88], [19, "frad", "snark"], "alice"] Each {| X | Print x, "\ n"} [4, [13, 88], [19, "Fred", "snark"], "Alice"] {{X | X | I think my part is right, but my share if it is w...

android - Clickable words in a TextView -

I want to show some sort of "formatted" text in my activity. Some words within this textView (bold formatted for example) should be clickable A toast message should be displayed when the user clicks on them. Is there a possibility to do this in Android? Thank you I probably got a better and more flexible solution for me I can use webview, html and javascript functions within the call methods in my android application. Public Class Expands Menuscreen Activity Created Before * / @Override Public Zero OnCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); WebView webview = new webview (this); SetContentView (webview); String data = "test and lieutenant; u onclick = \" show Android test ('test') \ "& gt; this & lt; / u & gt;"; String js_data = "& lt; script type = \" text / javascript \ "& gt; function show androidtost (toast) {Android.showToast (toast);}} ; Webview.loadData...

objective c - NSButton Inside NSTextField -

Image
I'm trying to create a NSTextField with a button on my right (similar to NSSearchView), but I'll know how to scroll 'NSTextField's text without going under NSButton. Here my code is as follows: rightButton = [[NSButton alloc] initWithFrame: rect]; [Right button set tag: self]; [[Right button cell] set Highlight By: NSNellLell Type]; [Right button set image: [nsimage image nominated: @ "right button"]]; [Right button set action: @ selector (action :)); [Right button is set: no]; Any ideas? EDIT: Here is a screenshot of the problem I think that's what you want. Basically adjusting the frame to fill the button inside the field you are doing.

php - Yet Another Notice: Undefined index Question -

मैं जारी रखता हूं नोटिस: अपरिभाषित सूचकांक: कार्रवाई जब मैं निम्नलिखित कोड का उपयोग करता हूँ मैं यह देखने के लिए उपयोग करता हूं कि कौन सा पृष्ठ आवश्यक है। वैसे भी यह सॉर्ट करने के लिए? मुझे पता है कि आपको बस यूजर इनपूट (पहले इन इनपुट को चेक किए बिना) की फाइलों को शामिल करना नहीं है, लेकिन यह स्विच स्टेटमेंट केवल तभी काम करता है अगर कार्रवाई देखने या ब्लाह पर सेट होती है, अन्यथा यह सिर्फ मुख्य पृष्ठ दिखाता है। ? Action = देखें या? कार्रवाई = ब्लाह स्विच ($ _GET ['कार्रवाई']) {case 'view': "हम दृश्य में हैं" गूंज; FORUM_ROOT की आवश्यकता है 'View2.php'; टूटना; मामले 'blah': गूंज "हम blah में हैं"; टूटना; डिफ़ॉल्ट: "यह डिफ़ॉल्ट है"; FORUM_ROOT की आवश्यकता है 'Main.php'; } इस तरह अपने कोड को फिर से लिखें: $ Action = isset ($ _GET ['कार्रवाई'])? $ _GET ['कार्रवाई']: शून्य; स्विच ($ क्रिया) {...}

How to represent my Matlab matrix values in the following lattice-tree form? -

Image
My mesh fiber has my values ​​as shown in fig 1: Finish 1: Format the values, as currently displayed in Matlab for my code Now I would like to express these values ​​as a lattice tree, as shown in Fig. 2 (note 2 figures are not equal in nature , And fig 2 are for demonstration purpose only). How can I modify my code in matlab so that the result looks as if the tree format shown in figure 2?: fig 2: the format of values, as I would like to display in my Matlab result My code is: BLOV_general (S0, K, sigma, r, t, nColumn) %% static parameter del_T = T. / nColumn; % Where n is the number of columns = exp (sigma. * Sqrt (del_T)); D = 1. / u; P = (sum (r * del_T) -d.) ./ (u-d); A = exp (-r * del_T.); Starting %% Latinos string = zero (encoded + 1, NCom + 1); BLOV_lattice = Zero (nColumn + 1, nColumn +1); Development of lattice for %% i = 0: n column for j = 0: i string (j + 1, i + 1) = s. * (U.J.) * (D. ^ (I-J)); End end n column BLOV_lattice (i + 1, nColumn + 1) = maxim...

How to intercept touchscreen events in Android OpenGL ES? -

How exactly does the touchscreen events in OpenGL ES games prevent Android? Also, if the game is 3D, how do you know that the user touched an object in the background? Thank you. See the overlayed glossaurs view in the broken event E in your class. @ Override Public Boolean On Touch Event (Motion Adventure E) {Float X = EX (); Float y = eta yi (); Switch (e.getAction ()) {case MotionEvent.ACTION_MOVE: float dx = x - mPreviousX; Float DI = y - Muppires; MRenderer.mAngleX + = dx * TOUCH_SCALE_FACTOR; MRenderer.mAngleY ​​+ = dy * TOUCH_SCALE_FACTOR; RequestRender (); } MPreviousX = x; MPreviousY = y; Back true; } And the user should compare the Touch Event coordinates with the object coordinates to know the object touch.

sudo - sudoers syntax to run shell script as php user? -

मैं चलाना चाहता हूं एक शैल स्क्रिप्ट restore स्क्रिप्ट में कोड की कुछ पंक्तियां होंगी, जैसे कुछ dropdb & lt; डेटाबेस का नाम & gt; Psql -c "एन्कोडिंग 'यूनिकोड' के साथ डेटाबेस & lt; डेटाबेस नाम & gt; बनाएँ;" -यू edutemplate1 psql -d & lt; डेटाबेस नाम & gt; -f edu.hourly.sql स्क्रिप्ट को चलाने के लिए सुडो कमांड सिंटैक्स क्या होगा पुनर्स्थापित करें php प्रयोक्ता को को पुनर्स्थापित स्क्रिप्ट को पोस्टग्रेस उपयोगकर्ता के रूप में चलाने के लिए अनुमति देने के लिए sudoers syntax क्या होगा? कमांड बिल्कुल वैसी ही है जैसा आप कंसोल में करते हैं: सूडो - यू db1inst1 /path/to/script.sh या यहां तक ​​कि: सिस्टम ('सुडो -यू डीबी 1 इंस्ट 1 / पाथ / टू / एसक्रिप्ट.श' ); या `sudo -u db1inst1 / path / to / script.sh`

javascript - why the blur() can't work? -

& lt; html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; शीर्ष & gt; & Lt; मेटा http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = यूटीएफ -8" / & gt; & Lt; title & gt; परीक्षण & lt; / title & gt; & Lt; script type = "text / javascript" src = "js / jquery.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ ('# लक्ष्य')। धुंधला (कार्य () {सतर्क ('स्वागत, लड़का');}) & lt; / script & gt; & Lt; / head & gt; & LT; बॉडी & gt; & LT; प्रपत्र & gt; & Lt; input id = "target" type = "text" value = "फ़ील्ड 1" / & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" मान = "फ़ील्ड 2" / & gt; & Lt; / प्रपत्र & gt; & Lt; div id = "अन्य" & gt; हेन्डलर ट्रिगर करें & lt; / div & gt; & Lt; /...

Using Stripes MVC for developing REST service -

Is it possible to expose the streaks MVC controller as a REST service? Yes, you can build from the RAST services URL is responsible for (Strips MVC Controller just sends url ?? for correct action beans?).

java - cancelling and restarting CountDownTimer issue -

Hello I'm having trouble with the countdown timer function First I want to stop counting it down I'm Counter.cancel (); So I store the unilifiable value in the counter in the countercurrent. Then I restart the timer using that stored counterwork value. It all works well but when I try to cancel the second time, it can never stop the timer. Just works once, am I forgetting something? Here is my code: Thank you: // Main code: Mikount counter = new mount (59000, 1000); Counter.start (); // Start timer 59 seconds /// button 1.setOnClickListener (New View.OnClickListener () {public void onClick (see v) {counter.cancel (); // - & gt; Cancel timer works here, Clock closes OK // // Rest of code snipped button2.setOnClickListener (New View.OnClickListener () {public void onClick (see v) {MyCount counter = new MyCount (countcur, 1000); // countcur final counter price When the last canceled is Counter.start (); // This resume timer is okay, when the button 1 is canceled aga...

c# - Comprehensive sorting/paging/filtering service layer interface method -

I am trying to write a service level method which will take all necessary parameters that will allow me to get data on how to The webform grid will work. The repository return IQueryable & lt; T & gt; . I came up with a model like this: Public Class PagedModel & lt; T & gt; {Public GridSortOptions GridSortOptions {get; Set; } // ANCT for ANC and DESC Public ILIST & gt; T & gt; Item {get; Set; } {Get full public page}; Set; } Public int PageSize {get; Set; }} Method: Page_Document & lt; Users & gt; GetUsers (expression & lt; Func & lt; T, bool & gt; built, int page, int pageisms, gridstort option sorting); Question: What are the parameters I am missing from this method? Is the project unavailable from PagedModel? How do I apply the method? What do I need: paging sorting filtering I always like to create a "criterion" class is different from the list of all the items in which you Are searchi...

memory - How can I make a Perl variable reference another variable by its integer reference -

I believe my title may be a bit confusing, but here's what I'm trying to do I am I know that this is not "the right way" to do this, I'm probably curious if this is possible. Say that I have a script: #! Strict use of USR / Bin / Pearl; Use warnings; My $ foo = "bar"; My $ foo_location = int (\ $ foo); Print $ foo_location; This kind of output will be something like 136167064 How can I get that integer ($ foo in memory), and make another variable $ A reference to Foo, using that integer. So what I want to do is something like this: my $ foo_reference = some_magical_function_call ($ foo_location); The deviation of $ foo_reference will be allowed to modify, which will modify the value of $ foo, so whatever magic it allows to work, $$ foo_reference eq $ foo Evaluate the truth I want to say that I thought it a few years ago, but maybe I'm crazy Ho. Ah, oops I got the answer. I should have probably had to wait before pos...

where is the source code for the standard library in ocaml? -

Looking at the Okmol's standard library, I want to see the source code for the tasks described, where can I find the code for? This link shows the standard library for the list, where can I find the code used for each of these? Just type in your shell like this: $ cd `Ocamlc-where` and you can see * .mli files, which have the documentation.

MySQL asked during installation to Win7 whether I wanted TCP-IP connection -

I installed MySQL 7 years ago, and do not remember that if this happens, then I do not remember my response. However, I did not say today, because you have to open the harbor, okay? But I'm a resin-web. XML is what it wants to fill: & lt; Url & gt; Jdbc: mysql: // localhost: 3306 / '' dbname '' & lt; / Url & gt; & Lt; Users & gt; '' Username '' & lt; / User & gt; & Lt; Password & gt; '' Password '' & lt; / Password & gt; My first question is: If I port 3306 (I guess it is estimated by creating an allowed program entry in Windows 7 firewall), is it risky? Is not it the way to do it and still gets MySQL on the shared machine? Thanks for any help. No, you have to open it, especially to connect far, just try locking it down Make sure that this is only accessible from the local subnet, and make sure that your Windows machine is behind any kind of router to prevent the evil...

ExpandableListView with Drag and Drop of List Items in Android -

I'm looking for an expandable listview that drags the drag and drop of the list into Android, or there is a good tutorial or example How can I apply drag and drop for Expandable LISTView? I get some good tutorials for applying drag and drop for listing settings. But I have not found any good links for ExpandableListView. Please help me on this. Thank you. Yes, you can apply Drag and drop into list view. Drag it into list here And there are samples for the drop .. .. Download the zip file of this part from this page - (You can find the project here.)

if statement - How to use excel functions: If, Mod, and Floor -

Hi, I'm trying to rank those rounds where I should use the given functions, if, mod, and floor . $ 5.50 or $ 12.19 or the price of any price, if it expires in .00 to 0.49, then it should be fourth.49 and if compared to 49 it should be at 0.95, then it should be 0.95 I do not know how this is going to go thanks These are very simple, and if you do that Click on the Fx button, select the function above the topbar at the top and list how it walks you. = IF (B1> 10,1,0) IF (COND, TRUE_VAL, FALSE_VAL) = Flower (4.3, 1) Flower (Val, 1 for signals) = MOD ( 11.3) MOD (Val, Divisor) Your point, with some examples = IF (MOD (B1, 1) and LT ; = 0.49, Flow (B1, 1) +0.49, Flow (B1, 1 +0.95) 0 - & gt; .49 1.8 - & gt; 1.95 3.1 - & gt; 3.4 9

Grails domain class creation from database -

I would like to create grails domain class from an existing database, generally I was making database from domain classes Need help if there are any commands available with existing database schema. I'm on the same problem and I've got this Grails plugin. It works perfectly: it inspects the existing database and prepares the domain classes, all of which are ready to go. Just follow the steps shown in the example and you have done it.

linux - How to use CMake to update library path? -

I am writing a shared library for GNU / Linux, which will now be installed with "Sado Mac Install". I have cementate dishes for creating files and setting them in '/ usr / local / lib / app', and the libraries and links have been created correctly. But the library path has not been updated and I should run "Sudo ldconfig / usr / local / lib / app 'to provide the library manually. Many on my system Other packages have their own libraries in a specific folder under / usr / local / lib, so I suppose that's fair. Then how to update the library path for the limiter system Make the file and install them? What is the right way to do this I also have to complete the library path update system restart. Thanks, bcw I must also complete that a library path update is restarting a system. I have a limiter-specific Although you do not know about the feature, you should add the rule like the following rules to make continuous changes. echo ...

asp.net - How to define a property instead of public variable in C# -

सार्वजनिक स्थैतिक स्ट्रिंग SEARCH_STRING = "searchkey"; स्ट्रिंग कुंजी = अनुरोध .QueryString.Get (SEARCH_STRING); SEARCH_STRING को सार्वजनिक वैरिएबल के बजाय एक संपत्ति (प्राप्त करें; सेट;) का उपयोग करने के लिए उपरोक्त कोड को कैसे बदलना है यदि यह चर परिवर्तित नहीं किया जाएगा, तो निरंतर उपयोग करने के लिए बेहतर है सार्वजनिक const स्ट्रिंग SEARCH_STRING = "searchkey"; और यहां बताया गया है कि आप इसे संपत्ति कैसे बना सकते हैं निजी स्थिर स्ट्रिंग _searchString = "searchkey"; सार्वजनिक स्थिर स्ट्रिंग SEARCH_STRING {वापस {return_searchString; } निजी सेट {_searchString = value; }}

joomla - jomsocial module facebook connect not working on other pages -

I can login through the FB website to see if im jomsocial on the home page, But when I'm on the pages of the website, if I want to try to use that button, then Facebook's popup window is not able to login. Please Thanks in advance Dave This usually happens when another extension is also trying to load Facebook Libraries in addition to JomSocial Find the HTML of your page for AppId. It should be the Facebook application id you use in jammamsogic , And it should come only once in the page such as: APID: '12345' If it comes twice or specially both of them Separately, then likely time confusion when communicating on Facebook. See also for any example of "featureloader.js.php". This is the old library of Facebook, which is incompatible with the new (all.js). If it is there, then this is another extension that you have to remove. Finally, if you are using an extension like JFBCNext, which has extra Facebook feature and functionality, then you ...

php - cURL sometimes returning blank string for a valid URL -

मैं रोलिंग-कर्ल [https://github.com/LionsAd/rolling-curl] पुस्तकालय को एसिंक्रोनस से उपयोग कर रहा हूं एक निर्धारित कार्य के हिस्से के रूप में बड़ी मात्रा में वेब संसाधनों से सामग्री को पुनः प्राप्त करें लाइब्रेरी आपको अधिकतम संख्या में समवर्ती कर्ल कनेक्शन सेट करने की अनुमति देती है, और मुझे 20 में शुरू हुआ, लेकिन बाद में गति में वृद्धि करने के लिए बाद में 50 तक पहुंचा। ऐसा लगता है कि हर बार मैं इसे चलाता हूं, मनमाने ढंग से यूआरएल कई हजारों संसाधित किया जा रहा है बस विफल और रिक्त स्ट्रिंग वापस आती है। ऐसा लगता है कि मेरे पास अधिक समवर्ती कनेक्शन हैं, और मुझे मिल रहे अधिक असफल अनुरोध हैं। एक ही url जो एक समय में विफल हो सकता है अगली बार जब मैं फ़ंक्शन को चलाने का प्रयास करता हूं। इसका कारण क्या हो सकता है, और मैं इससे कैसे बच सकता हूं? सामान्य तौर पर आप मानते हैं कि यह नहीं होना चाहिए होता है। बाहरी सर्वर तक पहुंचने के मामले में जो मामला नहीं है। आपका कोड सर्वर के बारे में पूरी तरह अवगत होना चाहिए, जो जवाब नहीं दे सकते, समय पर प्रतिक्रिया न दें या गलत जवाब दें यह HTTP प्रक्...

glib - Using g_array_sort function -

मुझे फ़ंक्शन g_array_sort (GArray * array, GCompareFunc * func) का उपयोग करने की आवश्यकता है, लेकिन मैं करता हूं दूसरा पैरामीटर नहीं समझते कृपया मुझे बताएं कि इसे कैसे बुलाया जाना चाहिए और यदि संभव हो तो कृपया नमूना उदाहरण दें। यह एक खुला स्रोत पुस्तकालय है, इसलिए आप g_array_sort () के कोड पर एक नज़र डाल सकते हैं बस में g_array_sort टाइप करें और आपको कोड मिलेगा। वहां आप देख सकते हैं कि यह फ़ंक्शन वास्तव में libc के qsort (3) को कॉल करता है और उस फ़ंक्शन को पास करता है जिसे आप qsort में अपरिवर्तित में रुचि रखते हैं। अब, लिनक्स का qsort उपयोग का एक अच्छा उदाहरण है।

cakephp 1.3 disabled htmlspecialchar in textarea -

कैसे अक्षम htmlspecialchar? पाठ अब ऐसा दिखता है: नाम: 1e & amp; lt; br / & gt; उपयोगकर्ता नाम: 2 & amp; lt; br / & gt; आयु: 3 कैसे सामान्य पाठ ( नाम: 1 & lt; br / & gt; उपयोगकर्ता नाम: 2 & lt; br & gt; आयु: 3 )? echo $ form- & gt; इनपुट ('spec_info', सरणी ('लेबल' = & gt; गलत, 'प्रकार' = & gt; 'टेक्स्टरेआ', 'बच' = & Gt; गलत));? & Gt; धन्यवाद आपको 'बच' = & gt; गलत विकल्प। $ echo-> gt; फॉर्म- & gt; इनपुट ('नोट्स', अरै ('प्रकार' = & gt; 'textarea', 'escape' = & gt; गलत);

How to obtain CD information (burning speed, burning application etc.) in C# -

I have received a C # application and I want to apply some functionality of the Nero Information Tool. It shows lots of information about the CD, but I really only need two properties: the application used for the CD and the burning speed. I get suggestions for using CD Burn Libers and using SPTI I'm looking for a simple solution. Thanks Hope that helps:)

vb.net - JavaScript Serialize Array to JSON -

I have a "form designer" web application, in which I need to post the control of the new form of ASP.Net page. To put in DB, every time I create a form control, I push it into a two-dimensional array, when the user saves the click, this array will be serialized and sent to the server page using AJAX. The array follows the string after the array: {"Id": "cont_menu_tb1"}, {"name": "cont_menu_tb1"}, {"zindex "" "", "" "," "", "" "," "", "" "", "" "," "" "," "", "" "", "" "128"}, {"left": "214"}, I used JSON.stringify (objCF_JSON) to use it. Now how to de-serialize the array into two-dimensional arrays in Newton in VB.Net? This is not a two dimensional array, it is a dimension array with 2 objects. list & lt...

php - Need help generate PDF using ATK framework -

Can anyone use PDF file for those who have knowledge of the ATK framework? Any answer would be helpful thanks Perhaps you have seen? Suggest that you post your ATK framework on the ATK Framework Forum because there are solutions - e.g.

c# - LINQ: return items in a List that matches any Names (string) in another list? -

I have 2 lists 1 is a collection of products and the other is a collection of products in a shop. If all products match names, then I should be able to return all the store products. I have this but it does not seem to work any thoughts? Choose var product = shopProducts.Where (P => p.Name.Any (listOfProducts. (L = & gt; l.Name) .toList ())). ToList (); I really need to say that give me all the shops, where the name is present in another list. Any help really appreciated thanks var product = shopProducts.Where (p => listOfProducts.Any (l = & gt; p; name == l.Name)) .Oolist (); For LINQ-to-object, if there are many items in listOfProducts you can probably get a better performance if you A hashaseet & lt; T & gt; contains all required names and then use it in your query HashSet & lt; T & gt; Compared to O (n) for O (1) in , an arbitrary IEnumerable & lt; T & gt; . var name = new hashset & lt; String & gt;...

iphone - Binary search warning in CFArrayBSearchValues -

Image
मैं CFArrayBSearchValues ​​ का उपयोग कर रहा हूं। [एम_लोकेशन्स गिनती]), डेटा, पीजीपीएलएसडाटा कॉम्पैर, शून्य); CFArrayBSearch पहले पैरामीटर के रूप में एक CFArrayRef की अपेक्षा करें। मेरा m_Locations एक NSMutableArray है। इस चेतावनी को कैसे हल करें? मुझे NSMutableArray को CFArrayRef करने के लिए कोई कलाकार करने की आवश्यकता है? धन्यवाद। हाँ । बस NSMutableArray को CFArrayRef में डालें। CFIndex indexResult = CFArrayBSearchValues ​​(CFArrayRef) m_Locations, CFRangeMake (0, [m_Locations count]), डेटा, PGPlaceDataCompare, NULL); आईओएस 4.0 या बाद में आप इसका इस्तेमाल कर सकते हैं। एनएसयूइन्टेजर इंडेक्स रिजल्ट = [एम_लाइजेशन इंडेक्सऑफ़ ऑब्जेक्ट: डेटा क्रमबद्ध रेंज: एनएसएमकेआरेंज (0, M_Location count]] विकल्प: 0 कंपापारर का उपयोग कर: ^ (id a, id b) {...}];

Read whole text file word by word with sorted words with bash -

1 फ़ाइलें है कहो test.txt सामग्री के साथ: lorem ipsum गाजर, पारिस्थितिक टमाटर का सूप। सीएनएन कुछ दर्शनीय स्थलों, फुटबॉल टेलीविजन चल गाजर स्नातक की उपाधि प्राप्त कहा। था कर्मचारी lectus, venenatis ultricies AMET बैठते हैं, एंड्रॉयड Eget मैग्ना। 1 की जरूरत है, यह शब्द-दर-शब्द पढ़ने के लिए पूरी फ़ाइल है ... लेकिन हल कर शब्दों के साथ। तो: नवीनतम नवीनतम consectertur ने कहा ... कोई भी विचार टीआर '' '\ n' & lt; test.txt | क्रमबद्ध -u निकालें -u आप डुप्लिकेट चाहते हैं

obtain the result of voice recognition in android -

I want to get results of service voice recognition I mean what the user says he wants to receive I try a code list = String & gt; Matches = Data .getStringArrayListExtra (RecognizerIntent.EXTRA_RESULTS); If (matches.gate (i) amails ("fakir monkey")) {toast. Make Text (this, "Excelent!", 2000). Show (); But I can not understand this line if (matches.get (i) .equals ("Fakir Monkey")) can you help me understand this line Or other solution thx This row checks the string in the i-th place matches ( matches.get (i) ) is similar to string "crazy mocaki" ( equal to monkey ") )

vb.net - Getting List of Items not in Parent List using LINQ -

I am writing an app in vb.net I have two variables And with the list of the other I have a list of RoomTypes. We have RoomRates and RoomTypes that are connected to RoomTypeInfo variables, including RoomRate. So how do I find RoomTypes that are not defined in the roomrest? The My sample code: Class Rumtaip property RoomTypeInfo RoomTypeInfo as integer property titles classroom Rumets property UIN UIN as string as integer property as the double-end as the category myRoomRateList = RoomRates.GetData () list of 'Rumrets myRoomTypeList = RoomTypes.GetData ()' RoomTypes myRoomTypesWithNoRate = ??? The list of Try something like this: myRoomTypewithNoRate = MyRoomTypeList. there RT as (_ function (Rutrtaip) My back does not return. list (_ function) (RR as Rurrets returns Ararkrumtaifkinfokuaian = RT. UIN) _) _ ) Note: This test has not been done (or compiled too), but it should be considered.

c++ - Removing the border from an owner-drawn listbox -

I have created a master-drawn list with CListBox, but I do not want it to be a border. Instead, the boundary will be portrayed in the background of the parents' dialogue, so my list-box will show that it has a custom limit how can I remove the limit? Is there a flag or function to override in my derived class? You WS_BORDER window style.

c++ - Generating function pointers in LLVM -

I am writing my first LLVM sample. I am trying to create a small LLMV module that takes the name of the function and gives an indicator for it. The problem is that I do not know how to generate Function Points in LLVM. I got a function object by calling getDeclaration (...) . Is there any way that I can get an indication for it? The function is a globalValue, so this is the pointer by itself, in the meantime, you can use the LVVM's C ++ Use backend to generate C + + API calls, which will reconstruct the IR, which you are feeding in LL. For example, feed the following code in the following: zero foo (int (* times) (int)); Int factor (int x); Int main (int argc, char ** argv) {foo (factorial); } Ensure that you have the "Show LLVM C + API code" checkbox selected and you will see related LLVM IR and C + + API calls, which will redo it.

iphone - OpenGL ES : Revealing underneath view -

I am working on a sample in which I have put two textures on each other. What do I want, whenever the user moves his finger on the screen, he should know after appearing in the form below. I am looking at wiping the front view to reveal the front view. I want to know some ideas / ideas to implement this feature using OpenGL ES. This related pointer will be highly appreciated. Sound execution - Not so intense code can trivial complex tune operation. You do not have to use OpenGL. You can just front-and-reverse just two images along with the support supporting Alpha channel. Every time you hit or take a hit, you explain a circular patch, the effect is for certain radius or so. And then Qi pulls up a Radra Redro two bitmaps, first back to the first. If possible, try to line up a redraw for the area where you have updated the front from the last draw.

jquery - localscroll: How to fire event after scroll -

Hi, I am using LocalCosols and use the first parameter on it to fire the function before scrolling There is a choice of one for animation after the one does not find anyone know how can you do this? You also have the same, this ScrollTo plugin settings object is passed to that plugin, Therefore all its settings can also be used, note that the received logic is different.

java - send json array as post parameter from android -

I need to send the json array as a parameter through the post method from Android ... and the form of feedback Get jsonarray in .. What should be the conversion of the referenced request mentioned in Java? .. ?? curl-H "X-Opansarf Service: Opanil. Search" --deta 'Osrf-msg = [ "Thredtres": 0, "payload": { "__ C": " Osarf method "," __ P ": {" Params ":" 30007004981493 "," method ":" open- Ils.search.biblio.find_by_barcode "}}," type ":" REQUEST "," locale ":" en I have done it like this: Pre> HTTPPRAMPPRs = new basic HTTPPARM (); HTTP Client Client = New Default HTTP Client (HPPARM); HttpPost httpost = New HTTP Post ("http: //" + Hostname + "/ OSRF-HP-Translator"); // httpost.setHeader ("Accept", "App / JS"); // httpost.setHeader ("content-type", "app / jsan"); Httpost.setHe...

c# - Crystal Report Database Fields doesn't display classes from a referenced project -

I have created a website and a class library project. The website has a reference to the class library. I added a new crystal report item to the website ( CrystalReport.rpt ), and on the Database Expert screen, the Database Fields section called me square library Need to choose a member of the classes in the project). Thank you.

code generation - Generate C# from proto files and vice versa interpreting custom options -

I am using, and I am trying: C # class Generate a .proto file from the C # class It is very easy to use this sequentially: Protogen.exe device the serializer & lt; T & gt; The GETProto () method But the thing is that I do not think it is as simple as supporting me as a proto buffer. Explain to me: From a custom option with a custom option applied to messages and fields, I want to generate a C # class decorated with .NET custom attributes. With a C # class decorated by custom attributes, I would like to generate a proto file where custom options apply to messages and fields. / Li> Actually, given: message person {option (my_message_option) = true; Alternate string first name = 1 [(my_field_option) = 42]; Alternate string last name = 2 [(my_field_option) = 12]; Optional int age = 3; } I want to generate: [ProtoContract, MyMessageOption (true)] public class person {[ProtoMember (1), Myfield Operation (42 )] Public string firstname; [Proto...

asp.net - DropDownListFor a collection not selecting value -

I am using a strictly typed view with a custom realm. This view-model is a collection of books. Public ILIST & lt; Books & gt; Books {receive; Private set; } I am also passing a selection list to see. Although the dropdown listfor assistant class does not automatically select the default value of the book. @ Html.DropDownListFor (m => Model.books [i] .AuthorID, Model.Author as SelectList) Everything else Works, eg this selected value passes back to the controller. I found a workaround by creating a selection list in the view-list: @ html.DropDownListFor (m => Model.Books [i] .AuthorID, New SelectList (Model.AuthorList, "Value", "Text", @ Model.Books [i] .AuthorID.ToString ())) Although I do not want to implement this solution Is there a simpler solution, is such a way that the view can handle the value from the collection? you should pass the list of authors as part of your model As you have in your solution, you can ge...

wpf - How to resolve view using Mef container in a view model -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मेरे पास एक दृश्य मॉडल है एक आदेश जहां मैं अपने शेल मेनरेगियन (एक टैब नियंत्रण) के लिए एक नया दृश्य जोड़ना चाहता हूं। ऐसा लगता है कि मुझे खोज के बजाय दृश्य इंजेक्शन का उपयोग करना चाहिए जो कि ठीक है। यानी प्रिज्म दस्तावेज़ से IRegionManager regionManager = ...; IRegion mainRegion = regionManager.Regions ["मेनरेगियन"]; न्यूव्यू दृश्य = यह.container.Resolve & lt; NewView & gt; (); mainRegion.Add (देखें); P> यह प्रभावी रूप से आपके जैसा ही है।

actionscript - i need to implement some mouse/flash animation object interactivity, can anyone please help? -

Sorry, if it's a bit long I need to model some 3D objects in a different 3D application, then Animate them, import these animations into Flash CS3 and then trigger these animations with the mouse. Therefore, for example, a box object will open when the mouse goes over it (the animation will be triggered by the mouse). In addition, more complexity, I need another object to rotate in that direction on which the mouse is swiped. I thought I would make about 16 different looping animations in 3D application, and it would speed up the special animation based on the cursor on the object on which the flash moves. As you possibly can tell, I am an animator and there is no clue about any advice, if anyone has any advice, I would appreciate it very much. Thank you. OK, I'm not sure if this question has a shortcut, then I think that you look up Mouse events and function calls I'm not sure how much you know about actionscript 3, but for part of the click you will need s...

javascript - jQuery — Variable not recognised but manual input of exact same value is? -

सर्वश्रेष्ठ कोड के साथ समझाया गया: $ ("। MyParent। MyChild: nth-child (3n) ") सीएसएस ( 'बॉर्डर-शीर्ष-रंग', '# FFFFFF')। एक ???? वर्क्स myVar = "3n"; $ ("। MyParent। Mychild: nth-child (myVar)")। सीएसएस ('सीमा-शीर्ष-रंग', '# एफएफएफएफएफ'); एक्स काम नहीं करता यह स्पष्ट रूप से jQuery का प्रोग्रामिंग 101 है ... लेकिन गंभीरता से, क्यों पृथ्वी यह काम नहीं करेगा ?! मैं वही चीज़ से गुजर रहा हूँ! मैंने इसे & gt; MyVar = 3n (कोई स्ट्रिंग नहीं), जाहिर है कि यह काम नहीं करना चाहिए और यह नहीं किया। आप को को संमिलित करना है var myVar = "3n"; $ ("। MyParent। Mychild: nth-child (" + myVar + ")")। सीएसएस ('सीमा-शीर्ष-रंग', '# एफएफएफएफएफ');

html - Why is the attribute size of h:selectManyListbox redefined in Google chrome? -

मुझे JSF & lt; h: selectManyListbox & gt; और Google Chrome का उपयोग करने में कुछ समस्या है। जब मेरा पृष्ठ एक त्रुटि लोड कर रहा है "एट्रिब्यूट साइज़ रीफिफाईड" दिखाई देता है। मैं सिर्फ मेरी सूची बॉक्स में केवल 5 आइटम देखना चाहता हूं: & lt; h: selectManyListbox id = "usersManyListbox" value = "# {pingResultBean.selectedUsers}" आकार = "5" शैली = "चौड़ाई: 168px;" & gt; & Lt; f: चयनआइटम मान = "# {pingResultBean.userItems}" / & gt; & Lt; / h: selectManyListbox & gt; अन्य ब्राउज़रों में सब कुछ ठीक है। इस त्रुटि का मतलब है कि उत्पन्न विशेषता HTML HTML स्रोत में दो बार प्रकट हुई अपने ब्राउज़र में पेज को राइट क्लिक करें और & lt; h: selectManyListbox & gt; द्वारा उत्पन्न एचटीएमएल का पता लगाएं। यह दिखना चाहिए & lt; चयन करें नाम = "formId: usersManyListbox" एकाधिक = "एकाधिक" आकार = "5" & gt; इसमें केवल एक आकार विशेषता होना चाहिए यदि यह...

ruby - error in installing authlogic in rails 3.1 -

Hello I want to use authlogic with Rail 3.1 I have pasted the following code in the gem file "Gem 'authlogic' ,: Git = & gt; 'Git: //github.com/odorcicd/authlogic.git' ,: Branch => 'rails3' #http: //techoctave.com/c7/posts/ 37-authlogic-and-rail -3-0-solution "and then trying to set up the bundle but getting an error like this " Git is being brought: //github.com An error occurred in /odorcicd/authlogic.git Git when running git clone "git: //github.com/ odorcicd / authlogic.git" "c: /jruby-1.6.0.RC2/lib/ruby/ Ge Ms / 1.8 / cache / bundler / git / authlogic -6baa44cd7023e0828fc87e150aa82c0caeeb7c3d "--bare --no-hardlinks can not be. It's bundling comple." I have tried the command "gem authlogic Installed "and its successfully installed gem, but still set the same mistake in the bundle to face Can anyone help me? Thank you. After gem 'authlogic' will be enough in your Gemfil...

windows - how to download apk files from android market to pc? -

What is Android from the Android Market? Is it possible to download the APK application in our PC? Maybe it will help you. Once you get access to the emulator in the Android market, you can probably obtain an APC from DDS

Delphi: Upgrade 2009 to XE? -

Should I upgrade from Delphi 2009 to Delphi XE? As I did not use all the techniques, like mobile, cloud computing, profiling, 64 bit, new database drivers, I do not have to change to the new XE? Will my mind change? Does the new Delphi IDE help me write less code? Is Package Management Better? Do you think the IDE gives more automation? And is it worth upgrading? Does the new Delphi IDE help me write less code? Is Package Management Better? Do you think the IDE gives more automation? There is no real change which I think. The area with the most noticeable difference probably is generic if you use generics in general, you should upgrade. There are very few bugs and wrinkles in the later versions of the implementation of Generics in 2009.

Exec Command doesnt seem to be executing properly in java -

I have a Java project that I want to run with some other Java program. But when I call it using the exec command, it does not execute immediately, but waits for the current program to end. If I add a statement for a wait, the program hangs because the main program waits for the process and the process is waiting for the main program. Does anyone know how I can solve it? Or why is it behaving? I need this jar file that can be executed before any other. RuntimeGetRime (). Exec ("Java-class \" JavaProject1 / dist / JavaProject1.jar \ ""); Println ("hello"); P.waitFor (); The location of the jar file is fine and it prints hello. In the thread, I want to run the main square for jar file In addition to other things, you can use STDOUT and STDERR must be kept by reading the processes, otherwise it will be blocked. For example, see

javascript - Animating Canvas Stroke -

I am looking for a path to live the diagram of a stroke with the HTML canvas. Is there anything pre-defined that allows you to do so? I do not know any pre-defined solutions. Maybe in a LIB like But if you know your stroke (pixels X, Y-position). You can set the position of X and Y in the array and you can use ARAY for the animation to paint the stroke ...

c++ - Quickly enter command-line parameters for Visual Studio debugging? -

After I want to change my command line argument and then debug my execution. Studio UI with default view, it takes me many deceptive mouse and keyboard functions: Project ... Right click ... Configuration Properties .. Debugging ... Command Arguments ... Type Args ... Enter ... F5 Does this common action work for other common tasks The way to make it easy, for example, goes to search for all the files for a pattern: CNTL + SHIFT + F ... type lost Pattern ... the ENTER For example, a way to create a custom edit box to the debug command line allowing quick access to arguments? Or is a simple "debug dialog" a way to pop up a key binding where RG can be recorded and debugging starts directly? Like ALT + F5 ... args type ... ENTER using I and C ++ Visual Studio 2010 Express Thanks! macro should help the bottom Open "Tools-> Makrojh-> Macro Explorer", the new module Create, edit it, and copy-paste code below. It is not necessary co...

Validate uniqueness of user_id, friend_id, event_id in Rails 3 -

When a user sees an event in my app, then I compare a list of attendees to the user's Facebook friends. And store any intersections I search in an event friday table. I need to verify the specification in 3 columns in the table because a user can have a friend who is participating in more than one event. Any thoughts? user.rb has_many: event_users accepts __ nested_attributes_for: event_users,: Allow_destroy = & gt; ; True is mine: events, through => : Event_Uceres ,: Order = & gt; 'Start' has_many: event_friends accepts_nested_attributes_for: event_friends ,: allow_destroy = & gt; True event.rb is_im: event_users, dependent => : Destroys accepts_nested_attributes_for: event_users ,: allow_destroy = & gt; True: Medium: Users, By: = & gt; : Event_users have_many: event_friends,: Dependent => : Destroys accepts_nested_attributes_for: event_friends ,: allow_destroy = & gt; True event_user.rb related_ to: event is_t...

Non Square Matrix Multiplication in CUDA -

The code used to multiply the matrix in CUDA increases the class and non-square matrix, however, Both width and height are necessary for multiples of blocks. Therefore, for example, I can increase [3] [6] * [6] [3] (using BlockIij = 3), but I can not raise [3] [2] * [2]] [3]. Does anyone know how to do this? This is my kernel: #include & lt; Stdio.h & gt; # Include & lt; Limits.h & gt; # Include & lt; Stdlib.h & gt; #define blockize 3 # Define defined HM (1 * blockies) # Define WM (2 * blocksax) # Define WN (1 * blockage) # HNW # define WP WN # HP HM # define PTH WM #define PTW HM __global__ zero Nonsquare (Float * M, Float * N, Float * P, Int UWM, Int UWN) {__shared__ Float MS [Blongiz] [Blocks]; __shared__ float ns [blocksize] [blocks]; Int tx = threadIdx.x, ty = threadIdx.y, bx = blockIdx.x, = blockIdx.y; By int by rowm = ty *; Int colN = tx + bx * blocks; Float pv = 0; (MS [Type] [Tx] = M [RMM * UWM + (M * Bloxise + Tx]]; (Int M = 0; M & LT; U...

How to replace ~ (tilde) in vim -

मेरे पास इसमें एक स्ट्रिंग है और अभिव्यक्ति का उपयोग उदाहरण: hi ~ आप कैसे हैं:% s / ~ / / g यह किसी भी विचार को काम नहीं करता? प्रतीक ~ पिछले विकल्प स्ट्रिंग से मेल खाता है ( : help / ~ देखें) , इसलिए आपको इसे बैकस्लैश के साथ प्रीफ़िक्स करना होगा: :% s / \ ~ / / g

c# - Problems with IronPython memory leaks in web application -

Is the Ironpath running successfully without any problems in any web environment? I am running on some issues. The first issue, I'm not really running any IronPython-specific scripts, I'm implementing the library so that I can get server side syntax highlighting. The library is approximately 20+ files. In addition to the fact that the latest Ironpathion release can not be compiled in the DLL (due to), I am successfully running it by copying all the files and dependencies in my bin folder. The problem is, I saw how my w3wp.exe process is doing while highlighting and have seen some shortstart problems: Even here Under Cassini, in a completely original, blank web site, select the code from the select * table. Every time I execute it using SQL lexer (refreshes the page) ... I'm explicitly shutting down the engine and in a function call Lightweight scope . It starts about 30 MB and with 150 refresh it is 150 MB or more. In my real web application, my app pool...

viewing events in winforms -

How can I choose which event I will show when I double click on a control in the format designer of the win Am I For example, when I click on a text box twice, "text-span" shows the event winning form if I wanted to show this "GotFocus" event, How could I guess I assure the text box and set some assets, but I can not find that property Change the [DefaultEvent] attribute by inheriting the control: using the system; Using System.ComponentModel; Using System.Windows.Forms; [DefaultEvent ("GotFocus")] Category MyTextBox: Textbox {}