Posts

Showing posts from January, 2015

regex - mod_alias subdirectory replacement -

I'm using a remit match to redirect all traffic from subdirectory 1 to subdirect2, whereas all of the URLs Keeping the share equal For example, http://www.mydomain.com/subdir1/ will be redirected to Http://www.mydomain.com/subdir2/ I am using this rule: RedirectMatch 302 /subdir1/.* / Pre> but not for any page with more urls. Therefore it is not being matched with http://www.mydomain.com/subdir1/index.htm , which is redirected to Should be done http://www.mydomain.com/subdir2/index.htm If anyone has any ideas, then I I appreciate it. Does this thread really help?

silverlight - Adding an image to a button in XAML -

I'm trying to add an image to a button in my Silverlight 3 application but the image can not be found in the manifest is. I have named a folder, \ images, in my Silverlight Application folder and using a relative path in the source attribute of the image. What am i doing & lt; Button width = "200" height = "200" & gt; & Lt; Image source = "picture \ document.png" & gt; & Lt; / Image & gt; & Lt; / Button & gt; What's the easiest way to find out what's going on What is adding is the URL trying to use it You should probably try to use a forward slash instead of slash, but I'm not sure that this is the real issue.

Adding Link Column to ASP.NET GridView -

I want to produce a list of news that are clickable so far I have to print it a list of headlines Because I pulled the NewsHedline table in the VS 2010 in the Designer view. I think that should make the list elements clickable? I searched for a URL feature, but I did not see it. Do I have a & lt; An href? & lt; asp: gridview id = "gridview1" runat = "server" automatically generated columns = "false" Detasorsaidi = "Skyuelditassors 1" Khaleedeta text = "No data record to be displayed." & Gt; & Lt; Columns & gt; & Lt; ASP: BoundfieldDefined = "NewsHeadline" header text = "NewsHedline" sortExpress = "NewsHeadline" /> & Lt; / Column & gt; & Lt; / ASP: GridView & gt; & Lt; Asp: SqlDataSource id = "SqlDataSource1" runat = "server" connectionstring = "& lt;% $ connectionSettings: connectionServing1%>" Provider name = "...

html - double hyphen in script makes firefox render strangely -

& lt;! - & lt; script type = "text / javascript" & gt; / * & lt;! [ เคธीเคกीเคเคŸीเค [* / c--; //]] & gt; & lt; / เคธ्เค•्เคฐिเคช्เคŸ & gt; - & gt; เคœเคฌ เคฎेเคฐे เคชाเคธ & lt; head & gt; เคเค• เคธाเคฆा เคเคšเคŸीเคเคฎเคเคฒ เคชृเคท्เค  เค•ा เคนिเคธ्เคธा, เคซ़ाเคฏเคฐเคซ़ॉเค•्เคธ 3.5.5 เคฎें เค…เคจुเค•्เคฐเคฎिเคค - & gt; เคชाเค  เค•े เคฐूเคช เคฎें เค…เค—เคฐ เคฎैं c-- เค•ो เคฌเคฆเคฒเคคा เคนूं- เคฏเคน เคจเคนीं เคนै। เค•ोเคˆ เคญी เคตिเคšाเคฐ เคœो เคฏเคนाँ เคชเคฐ เคนो เคฐเคนा เคนै? เคฎुเคे เค…เคชเคจे เคชृเคท्เค ों เคชเคฐ เคเค• เคฌเคนुเคค เคฌเคก़ी เคฒिเคชि เค•ी เคตเคœเคน เคธे เคเค• เค•ृเคค्เคฐिเคฎ เคฐूเคช เคฎिเคฒ เคฐเคนा เคนै เคœो เค•ुเคšเคฒा เค—เคฏा เคนै। เคฎैं เค•เคฅเคจ เค•ो เคธी- = 1 เคฎें เคฌเคฆเคฒ เคธเค•เคคा เคนूं เค”เคฐ เค‡เคธ เคธเคฎเคธ्เคฏा เคธे เคฌเคšเคจे เค•ी เค•ोเคถिเคถ เค•เคฐ เคฐเคนा เคนूं เคฒेเค•िเคจ .... เคฎुเคे เคฏเคน เคœाเคจเคจा เคนै เค•ि เคฌिเคŸ / เคฌाเค‡เคŸ เค•्เคฏा เคฎेเคฐे $ $ เค•ाเคŸ เคฐเคนी เคนै। เคฏเคน เคซ़ाเคฏเคฐเคซ़ॉเค•्เคธ เค•ाเคฐ्เคฏाเคจ्เคตเคฏเคจ เคเคธเคœीเคเคฎเคเคฒ (เคœिเคธ เคชเคฐ HTML เค†เคงाเคฐिเคค เคฅा) เค•เคก़ाเคˆ เคธे เคŸिเคช्เคชเคฃिเคฏाँ เค•े เค•ाเคฐเคฃ เคนै। เคฏเคน เค•ेเคตเคฒ เคคเคญी เคนोเค—ा เคœเคฌ เคฆเคธ्เคคाเคตेเคœ़ เคฎाเคจเค• เคฎोเคก เคฎें เคฒोเคก เค•िเคฏा เคœाเคคा เคนै (เคฏाเคจी เค•ोเคˆ DOCTYPE เคนै)। เคชเคนเคฒा & lt;! เคเค• เคŸिเคช्เคชเคฃी เคถुเคฐू เค•เคฐเคคा เคนै เคชเคนเคฒा - เคเค• เค…เคจुเคญाเค— เคฎें เคช्เคฐเคตेเคถ เค•เคฐเคคा เคนै เคœिเคธเคฎें & gt; เคตเคฐ्เคฃों เค•ी เค…เคจुเคฎเคคि เคนै เคฆूเคธเคฐा - (เค†เคชเค•ी เคธ्เค•्เคฐिเคช्เคŸ เคฎें) เค‰เคธ เค…เคจुเคญाเค— เค•ो เค›ोเคก़ เคฆेเคคा เคนै เคœिเคธเคฎें & gt; เคตเคฐ्...

java - BlackBerry OAuth Alternative -

I think there are no Oath libraries that I can use with Blackberry mobile devices. The only possibility that I have found is the following, which I have not yet seen in detail: So, I have a question (there is no other library in it), What is this a work around for? Is it possible that my application should use an embedded browser, and authenticate via JavaScript or PHP or something else, and then find a way to pass authenticated tokens in my application? I want my app to be the original Java application on BlackBerry, I do not want to convert it into a full web application that just shows in an embedded browser. Any ideas? You may and or This is a

c# - Compare the textual content of websites -

I am using a little experiment with text comparison / original literary theft, and website-to-website But I want to try it base However, I am searching in a proper way to process the text. How will you process the content of two websites for plagiarism and compare them? I'm thinking of something like this pseudo code: // Websites to remove the text foreach website crawls website's stores, so pages are only all Scanned from the pages on the removal of text blocks - this is in the store list // compare in website1.textlist foreach text website 2. compare with all the text in the textlist I know That this solution can collect a lot of data, so it's only It is with very small websites possible. I have not yet decided on the actual text comparison algorithm, but I am still more interested in working the actual process algorithm first. I 'I am thinking that it would be a good idea to remove all text in different text pieces (paragraphs, tables, headers and s...

merge - If a branch in SVN was created against the wrong revision in trunk should I just created the branch? -

If I create a branch in SVN off trunk rev 10, then I realized what I want 9 9 I just do this branch Can create a new review from the ditch and 9 or, what is the way to "rebase" the Riv 9? The problem is that what I know now is a long / big change to return some changes to my code and then to make a branch since the trunk is already using the old code code I had to upgrade, even though at the beginning, my incomplete new feature my branch needs to close RX X-1 as my branch was on X + 1 so the easiest way to get it in X-1 Or is it? Just remove the branch and recreate it ... This is the least expensive in the repository.

sql server - FirstName, LastName in SQL, too complex? -

This SQL looks complicated, is there an easy way to get the first name when one or both fields can be taped ? SELECT COALESCE (last name, '') + case when last name + is not the first name then ',' end + COALESCE (first name, '') AS person by name About SELECT COALESCE (LastName + ') If the first name or last name is not complete, then complete the first name, '+ FirstName, LastName, FirstName' Expression ( , ) becomes redundant, compelling the collages to check, second, last name alone, and If Last Name is zero, finally, firstname alone.

How to bind a query on the datagridview in vb.net? -

I am planning to create a program that will bind the search results in the datagrid view in vb.net. For example, a list of students with the same course in Datagrid Witch. This shoudl helps you And

sql - Select from hundreds of tables at once (.mdb) -

We have an .mdb file with hundreds of tables: Lesson 1, Lesson 2, Lesson 3, Lesson 4, etc. All tables have the same structure: text Will the SQL statement generate such a result? : | Table_name | Slide_id | Name | | ----------------------- | ------------------------- ------ | | Lesson 1 | 1 | Name for slide 1 of Lesson 1. | Lesson 1 | 2 | Name for Slide 2 of Lesson 1. | Lesson 2 | 1 | Name for Slide 1 of Lesson 2 | | Lesson 2 | 2 | Whatever. | Lesson 2 | 3 | Again | etc. There are hundreds of tables If the table names are known , you can create such a query: Selecton 'Lesson2', Slide_ID, Name, ... from Lesson2 union, 'Lesson3', 'slide_id, name', for everyone, selected as' SELECT 'Lesson1' as table_name, slide_ID, name, ... from Lesson 1. Lesson 3 from 'Lesson4', Slide_ID, Name, ... Lesson 5 from all Lesson 5, slide_id, Name, ... to Subm 5 Cursor Only Then Shyk If the number of tables is in constant flux, if n...

.net - Hiding user control properties from IntelliSense -

How can I hide user control properties from IntelliSense in Visual Studio? Apply. However, the developer has been able to send these hidden members to VS It is still possible to show through the option dialog.

iphone - Problem with transparent text background in UITableView -

I have a nervous problem in my tableview, in getting color-changing cells (blue / white / blue / ...) Was able, but now I am troubled with my text, in which there is a white background on blue cells. I 'tried to test the background color to be set in red: // Try to set the background color of the text ?? ? Cell.textLabel.text.backgroundColor = [UIColor redColor]; that does not work; Hmph. Please take a look at my code below; Can anyone tell me what is wrong and how can I solve my problem by giving a transparent background to the text? // Customize the look of the table visual cells - (UITableViewCell *) TableView: (UITableView *) Table View CellForOutPath: (NSIndexPath *) Index Pathway {Fixed NSString * CellIdentifier = @ "Cell"; UITableViewCell * cell = [tableview] dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[[UTitleViews alloc] initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: cell identifier] autorelease];...

c++ - Play RTP video stream using Qt? -

I want to create a QT widget that can run incoming RTP streams where the video is encoded as H 264 There is no audio and no audio. / P> My basic plan for implementation is: Create a Phone On Object (stream type). Connect it to a sub-class that provides data Get either video data: Client library Plugin This is a deposit of the plug-in package and decoding the video. It may be that improves the chances that Phonon will recognize the data. My environment: Ubuntu 9.10 QT 4.6 My question: Is my attitude good? Maybe I'm looking at a more clear or simple solution? I am currently experiencing this problem: When the video stream is trying to run, ErrorType with ErrorType FatalError gets in the position of MediaObject, can someone tell me what I do Am I Edit I found that a solution is using libVLC in combination with QT, which I have learned about this. Here's one for interest. I'm still looking for Phonon based solution. Ideally I just nee...

javascript - setInterval is not working -

เคฎाเคจ เคฒीเคœिเค เคฎेเคฐे เคชाเคธ เคซ़ंเค•्เคถเคจ เคนै: เคซ़ंเค•्เคถเคจ chk () {alert ("Welcome" ); } Window.onload = chk (); เคธेเคŸ เค‡เคจ्เคŸเคฐเคตाเคฒ ("chk ();", 5000); เคฒेเค•िเคจ เคฏเคน เค•ाเคฎ เคจเคนीं เค•เคฐ เคฐเคนा เคนै เคฒेเค•िเคจ เคœเคฌ เคฎैं เคชृเคท्เค  เค•ो เคฐीเคซ्เคฐेเคถ เค•เคฐเคคा เคนूं เคคो เคฏเคน เคฎेเคฐे เคฒिเค เค•ाเคฎ เค•เคฐเคคा เคนै เคฎैं เค‡เคธे เค•ैเคธे เค ीเค• เค•เคฐ เคธเค•เคคा เคนूं? เคฏเคน เค•ेเคตเคฒ เคฎेเคฐे เคฒिเค เค ीเค• เค•ाเคฎ เค•เคฐเคคा เคนै เคซंเค•्เคถเคจ เค•ो เค•ॉเคฒ เค•เคฐเคจे เค”เคฐ เคฐिเคŸเคฐ्เคจ เคตैเคฒ्เคฏू เคจिเคฐ्เคฆिเคท्เคŸ เค•เคฐเคจे เค•े เคฌเคœाเคฏ เคซ़ंเค•्เคถเคจ เคธंเคฆเคฐ्เคญ เค•े เค‰เคชเคฏोเค— เคชเคฐ เคง्เคฏाเคจ เคฆें। SetInterval เค•ो เคธ्เคŸ्เคฐिंเค— เค•ा เค‰เคชเคฏोเค— เค•เคฐเคจे เค•ी เค†เคตเคถ्เคฏเค•เคคा เคจเคนीं เคนै - เคœो เคคเคฐ्เค• เค•े eval เค•ो เคฎเคœเคฌूเคฐ เค•เคฐเคคा เคนै। เค†เคช เคซ़ंเค•्เคถเคจ เคธंเคฆเคฐ्เคญ (เคฏा เคเค• เค…เคจाเคฎ เคซ़ंเค•्เคถเคจ) เค•ा เค‰เคชเคฏोเค— เคคเคฐ्เค• เค•े เคฐूเคช เคฎें เคญी เค•เคฐ เคธเค•เคคे เคนैं। เคซ़ंเค•्เคถเคจ chk () {เคšेเคคाเคตเคจी ('เคšेเค•िंเค—'); } Window.onload = chk; setInterval (เคœเคš, 5000);

php - Best way to write an or is equal statement -

Hello $ for the most influential people. I have a quick silly question; What is the best way to write this: if ($ curpageurl == "www.mysite.com/this" || "www.mysite.com/this/") {echo ' This is this page '; } And if it is not, then I need to call while (isset ($ somevariable) {echo '$ somevariable';} And if that variable is not set and we are not on this page, then else we are not on this page and set the variable ';} I know that I am not far from the correct answer, and it actually works, but only if I remove it / this is my first statement What is a better way to write if ($ curpageurl) == "www.mysite.com/this" || $ curpageurl == "www.mysite.com/this/")

SQL Server locks - avoid insertion of duplicate entries -

After reading so many articles and many answers from the above topic, I am still wondering how the SQL Server database engine works In the following example: Suppose we have a table named T3: make table T3 (an integer, BIT); Create an index test on T3 (A); and follow as a query: Select T3 is not present in -86, -86, where it is not present ( Selection 1 to T3 where t3.a = - 86); After verifying that the row does not already exist based on the query "t", the table contains a row in t3. Many articles and replies indicate that there is no way to use the above query that a line will be inserted twice The above query For the execution of, I think the database engine follows: The subkey is executed first. The database engine sets a shared lock on one share Data is read. Shared lock has been issued. According to MSDN, a shared lock is released such as data is read. If a row is not present, then it contains a new row in the table. The new line is ...

MongoDB nested sets -

Is MongoDB the best practices for storing nested sets (comments trees)? I mean, every comment can have a parental comment and children-comments (answers). Store them in this way: {title: "hello", body: "Please comment.", Comment: [[Author: "Peter" Text: "Hi there", Answer: [[Author: "Peter", lesson: "Hi there", Answer: [[Author: "Ivan", lesson: "Hi there"}, {author: "Nicholas", lesson : "Hi there"}}, {author: "Ivan", text: "Hi there"}, {author: "Nicholas", text: hello "},]}, {author:" Ivan ", lesson: Hi there "}, {author:" nicholas ", text:" hi there "},]} is not good because we can not, for example , "All posts, which are commented by Peter" without the map / less. me It seems that there is no correct solution - depending on which operations are more important for your app. I believe that ...

regex - Replacing a string inside a string in PHP -

I have a string in my application that users can send via a form, and they are optionally with replacement They can also replace the words in that string they also specify, for example, if one of my users has entered this string: I am a user string and I need to be parse is. and and should be replaced with foo , which should result in a string: I A user string foo requires me to be parsed. I I need to change the position of any kind, change what they want to change, replace it with the word and then Tie together. Can someone write it above or at least provide an algorithm? My PHP skills are not really at work: ( Thanks.): preg_replace ('/ \ band \ b / i', 'foo', $ subject); will get all the events of and where it has its own words and replace it with foo \ b ensures that there is a word limit before and after and .

Getting the last argument passed to a shell script -

$ 1 is the first argument. $ @ is all of them How can I find the last argument in a shell script? This is a bit of hack: for the last; True; This is a very portable (again, should work with bash, ksh and sh) and does not change the arguments, which can be good is. It uses the fact that for the the logic actually has a rigidity if you do not tell it what the loop is, and the fact is that for loop variables Not scotched: They are the last value they set.

c# - Windows Forms App, output text? -

How do you output to a window form app? I have a list: list & lt; Float & gt; List; There are several numbers in it ... I want to output them to a column. Can you output them to a rich textbox or text box? You can use a text box, or a list box, or just about anything else .

What is MySQL Collation, how to use it in practice? -

Let's say I want to create search engines in some strange languages ​​in 4 languages: English Swedish Hebrew Arabic How do I set up the collation in MySQL? Coalition determines how MySQL compares strings. A list of all the character sets and collisions can be found in this way: Show pigment set; Show COLLATION; To change the collation for table use: optional table `my_table` Default character set UTF8 COLLATE utf8_unicode_ci

What new Widgets in Rebol 3 Vid? -

Rebol 2 VID had a dropdown dropdown list and lack of previews, I did a search on Google at Rebol 3 but Would not the Rebol 3 VID be included as new widgets, except for a discussion? The drop-down list is already available in R2. I was also looking for that to check the car's blog about submitting the form using CGI.

c# - How to compare object's type with a generics type, irrelevant to generic argument? -

The best way to illustrate my question is the example code: class items {} Square container & lt; T & gt; {} Class program {static zero} some object (commodity object) {if (type of (object) == some. Gatetype ()) {System.Console.WriteLine ("item"); } And if (typef (container The following line will not work: else if (containof >) == something.GetType ()) Is this explicitly the container & lt; & Gt; In the container & lt; Int & gt; Is there a way to work without changing ? I want to know that the object is of type 'container' and I am not really interested in container & lt; Int & gt; or container & lt; String & gt; Any sign except dozens of line reflections? Try : (container & lt; Gt;) == Some GetType (). GetGenericTypeDefinition () Note that this will only be true if the original type container . It does not work for derivative types, for example, it will return false for the following:...

php - Where can i get good resources to start learning the zikula framework? -

A customer asked me to develop a site for my company only, and that particular use of the Zikula PHP framework Requests. / P> I do not want to propose a few different reasons because I think I can pull it. I have two major concerns. How do I create a template on Zikula? How can I customize it? I could be more than happy, I could get a link about where I could read about it. thank you in advanced. For zikula postnuke there is an abundance of resources out there for the development of the posts A quick search for your help should get lots of content.

xml - Parse Delphi Project File on C# -

This may sound like a strange question, but for that I have my own reasons! I am trying to parse the Delphi 200 project file (.dprg), which is the XML representation of the project. I can load the document in an XmlDocument, but when I try and get the units used in this project, the selection nodes give me an empty list. An example of this project is below: & lt; Project xmlns = "http://schemas.microsoft.com/developer/msbuild/2003" & gt; ... ... & lt; Item group & gt; & Lt; Include Delphi Compiling = "Package.dpk" & gt; & Lt; Mainsource & gt; Mainsource & lt; / Mainsource & gt; & Lt; / DelphiCompile & gt; & Lt; In the context of the DCC include = "vcl.dcp" /> & Lt; Include in the context of DCC = "Unit 1 piece" / & gt; & Lt; In the context of the DCC = Include = "Unit 2." / & Gt; & Lt; In the context of DCC include = "Unit 3." / & Gt; &...

python - Defining PYTHONPATH for http requests on a shared server -

I am installing Django on Bluehost and one step to install it was to install a flop on my server. I did this and everything works great when I am logged in through SSH. However, when I actually hit the page in my browser, it did not get a flop. I get this error in the server log: Error: No module is floppy. Unable to load the flop package, to run the degeneration as the FastCGI application, you will need to get a flop if you have already installed the flop, make sure that you have it in your pithonpath Since it is in SSH when I recognize the flop, then my best estimate is that there is some other Bash file, which gives me the right place for the Python Path. While by the need to change the HTTP request. But since it is a shared server, I do not have a lot of privilege outside my home directory. Any thoughts? If you can identify which module actually contains the import flop , You can prepaid the import with the sys.path.append of the path on which you have installed...

multithreading - How to pause execution of a program until a button is clicked in Java Swing -

I have a program with a GUI that needs to open a separate window and choose the user and wait for the option, then Continue. I think I should do this with waiting () and inform () the way, but I'm still trying to use them to actually find out a complex fact that the other thing is different When the second window is executed () in the method, it needs to be done. Here's how I feel that it should be done here, apparently it is not quite right ... With this button pressed the button Make a window, the button button should be pressed, another window should be created with one button, and when that button is pressed, the program "End". Import java.awt.Dimension; Import java.awt.event.ActionEvent; Import java.awt.event.ActionListener; Import javax.swing *; Public class WtfExample {public static zero main (string [] args) {JFrame jf = new JFrame (); Pocket button = new pocket ("button"); But.Edition Listener (new executiveist) {Public Zero ActionPerfect...

Audio libraries for digital signal processing in C# -

My problem is: I am developing a fairly small application (which should be enabled To grow in the future, but for now, limited functionality will be enough) which receives audio (16bit mono @ 44.1kHz) and performer conversion and filtering on data. In my experience with all areas you can think that it is limited, but I have recently been doing a fair bit research and I understand something. My funding is limited, and I am unable to use any libraries under the GPL or similar license (I should be able to distract this app). I have settled on the mathnet libraries for signal processing, and it seems that it can control the bulk of processing (and I'll write the required filter). The real problem is finding the library to use - I was expecting something in C #, and when it seemed straight, the sound was the best option, I used to use it I'm reluctant, Microsoft has left it too much (the company I work for will upgrade its gear in near future, I just want to increase the max...

c# - Programmatically Replacing Last Child in a WPF DockPanel with LastChildFill true -

เคœเคฌ เคเค• DockPanel เค•ी เค…ंเคคिเคฎ เคšाเค‡เคฒ्เคกเคซ़िเคฒ เคธंเคชเคค्เคคि เคธเคค्เคฏ เคธेเคŸ เคนोเคคी เคนै , เค†เค–िเคฐी เคฌเคš्เคšा เคจे เคชूเคฐे เค…เคช्เคฐเคฏुเค•्เคค เคธ्เคฅाเคจ เคชเคฐ เค•เคฌ्เคœा เค•เคฐ เคฒिเคฏा เคนै เคฏเคน เค…เคš्เค›ी เคคเคฐเคน เคธे เค•ाเคฎ เค•เคฐเคคा เคนै, เคœเคฌ เคคเค• เคฎैं เคช्เคฐोเค—्เคฐाเคฎ เค•ो เค…ंเคคिเคฎ เคฐूเคช เคธे เคฌเคฆเคฒเคจा เคจเคนीं เคšाเคนเคคा เคฅा: UIElementCollection children = myDockPanel.Children; เคฏूเค†เคˆเคˆเคฒेเคฎेंเคŸ เคฏूเค†เคˆ = เคจเคฏा เคฎेเคฐा เคฌैเคธ्เคŸ เค•ंเคŸ्เคฐोเคฒ (); เคฌเคš्เคšों। เคจिเค•ाเคฒें (เคฌเคš्เคšों। เคธंเค–्เคฏा 1); children.Add (UIE); เค…เคฌ, เคจเค เคœोเคก़े เค—เค เคจिเคฏंเคค्เคฐเคฃ เค…เคฌ เค…ंเคคเคฐिเค•्เคท เค•ो เคญเคฐ เคจเคนीं เคธเค•เคคे เคนैं। เคฎुเคे เคธเคฎเคธ्เคฏा เค•ो เค•ैเคธे เค ीเค• เค•เคฐเคจा เคšाเคนिเค? เคฏเคน เคฎेเคฐे เคฒिเค เค‡เคธ xaml เค•े เคธाเคฅ เค•ाเคฎ เค•เคฐเคคा เคนै & lt; เคกॉเค•เคชैเคจेเคฒ เคเค•्เคธ: เคจाเคฎ = "เคฎाเคฏเคกाเค•" เค…ंเคคिเคฎ เคšाเค‡เคฒ्เคกเคซिเคฒ = "เคธเคค्เคฏ" & gt; & Lt; TextBlock DockPanel.Dock = "Left" MouseDown = "TextBlock_MouseDown" & gt; เคฌाเคฒ 1 & lt; / TextBlock & gt; & Lt; TextBlock DockPanel.Dock = "Left" & gt; เคฌाเคฒ 2 & lt; / TextBlock & gt; & Lt; เคŸेเค•्เคธ्เคŸเคฌ्เคฒॉเค• & gt; เคฌाเคฒ 3 & lt; / TextBlock & gt; & Lt; / DockPanel & gt; เค”เคฐ เค‡เคธเค•े เคชीเค›े เค‡เคธ เค•ोเคก เคจिเคœी เคถूเคจ...

spring - ANT replace task - not picking up modified value from properties file -

เคฎैं เคธ्เคช्เคฐिंเค— เค”เคฐ เคธ्เคŸ्เคฐเคŸ्เคธ เค•ा เค‰เคชเคฏोเค— เค•เคฐ เคฐเคนा เคนूं เค”เคฐ 'C: / source / webapp / WebContent / META-INF เคฎें เคจिเคฎ्เคจ เคช्เคฐเคตिเคท्เคŸि เคนै /context.xml 'เคœैเคธे เคŸॉเค—เคจ เค•े เคธाเคฅ' jdbc.username, jdbc.pwd, jdbc.server, jdbc.port เค”เคฐ jdbc.databasename '। & lt; เค•เคจ्เคŸेเค•्เคŸ เค•ैเคถिंเค—เค…เคฒ्เคตाเคœ्เคก = "เค—เคฒเคค" เค•ा เค‰เคชเคฏोเค— เค•เคฐें เคเคšเคŸीเคŸीเคชी = "เคธเคš" & gt; & Lt; เคธंเคธाเคงเคจ เคจाเคฎ = "jdbc / xxx" auth = "เค•ंเคŸेเคจเคฐ" เคช्เคฐเค•ाเคฐ = "javax.sql.DataSource" เค•ाเคฐเค–ाเคจा = "org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" เค…เคงिเค•เคคเคฎเค…เค•्เคŸिเคต = "100" เคฎैเค•्เคธเค†เคˆเคกेเคฒ = "30" เคฎैเค•्เคธเคตाเค‡เคŸ = "10000" เค‰เคชเคฏोเค—เค•เคฐ्เคคा เคจाเคฎ = "jdbc.username" เคชाเคธเคตเคฐ्เคก = "jdbc.pwd" driverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver" url = "jdbc: sqlserver: //jdbc.server: jdbc.port; เคกेเคŸाเคฌेเคธเคจाเคฎ = jdbc.databasename, "/ & gt; & Lt; / เคช्เคฐเคธंเค— & gt; เคฎेเคฐे เคชाเคธ เคชเคฐिเคจिเคฏोเคœเคจ เคจिเคฐ्เคฆेเคถिเค•ा เคนै - 'เคธी: / เคชเคฐिเคจिเคฏोเคœเคจ' เค”เคฐ เคเคเคจเคŸी เค•ा เคช्เคฐเคฏोเค— เค•เคฐเค•े เคฎैं ...

IntelliSense doesn't work in VS 2008 -

Does anyone help me to understand why IntelliSense does not work in VS 2008? I think there is something wrong with establishing your visual studio - best for more information The thing is that we can restore the IDE. The only thing I can think is that intellisense has been disabled - try to re-enable it like this: Tools & gt; Options & gt; Text editor & gt; C # & gt; IntelliSense Check the box "Show completion list ..."

Open Files from current directory using a wildcard C++ -

Is it possible to open files from directories given in C / C ++ by using wildcard characters? Meaning, if I want to eliminate "to (node_id)" files from the current directory in my program. Example: I have to open the files whose files names end with "to4". Desired Output: It will open all the files in the current directory with the filenames ending with "to4". If files 0 to 4, 1 to 4, to 2 to 4 and amp; 3 to 4 of the current directory are present, they should be opened. If it is not possible in C / C ++, is there any other programming language that allows it? not in standard C ++; You will need to Boost like OS-specific function calls or Boost file system. file system. In any case, you can get a list of files in a given directory and can iterate on the list and open it only matches your parameters.

php - Signup with email authentication, only 30% are activated? -

I am using php and mysql and my site is in flash (full flash site) I have a website that allows users to sign up. Registration process, including sending "Activation Email", click the link to activate the account. The first two weeks were fine. In about 2000 users, 1800 users are active After that, active users are dropped by about 30%. Example: 1000 user signups were active only 300. First of all, I got this problem because the email could not reach Yamail, MSN and Gmail users. (Most of my members are Yemel (Yahoo), Hotmail / MSN (Live) and Gmail (Gmail)). I tried signing up to use ymail and hotmail, but I did not get any activation email. I contacted Yahoo and MSN, eventually my email can go. However, my signup statistics are still showing, the active users are only 30%, which makes me very confused. I contact my hosting company, ask them in your IP whitelist. And they did this. I need your advice / help on the following questions: How to check that the pro...

multithreading - Multi-threaded access of components in Delphi -

Can you suggest an approach when design-time components are given to the general code (VCL or others) and myself Threads? The problem is that when I have complete control over my sources, then I know that when I should use Mutex. In the case of design time elements, I have no control over the code related to the least VCL. One variant has to wrap the handle message in the Mute X access code. The idea behind this is that all the things related to VCL are from the message processing code (exception is straight sendase handling), but seeing the sources, I did not find any "official" way to handle messages in any kind of code piece. Do not try to go there too. For Google to "Global Interpreter Lock" (Python-specific) to see that a bad habit is such a hurdle. If you need access to the data, try to minimize lock access as much as possible, and lock you do not need any higher in the call range. If you have objects used with many threads, then synchronize them wi...

How do I fetch files with HTTP using Progress ABL? -

Progress without external dependencies is an easy way to bring the file using a HTTP url with AB10 10.1b? If so, what is the most beautiful way to do this? I tried documenting, but I do not see anything like this. I could not link via it, but you can use sockets for it on the doctor Have a look.

javascript - jquery executes declared function without me clicking -

I do not know why the browser has clicked on the link without clicking on the "clicked links". This displays it whenever I refresh the page. & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {function login () {alert ("logged in")}} $ ("# click here"). Click (login);}); & Lt; / Script & gt; I want to display it while clicking on the link. What is the problem? You must remove () after entering the JQuerys click () function. & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {function login () {alert ("logged in");} $ ("# click here"). Click (login);}); & Lt; / Script & gt;

javascript - jQuery - If none of 3 id's have content hide this -

I have drawing content of 3 div in the database in the database: If there is no data from these three divs, can I add some jQuery to hide another device? Thanks, Jack I think it's better on server side Will be handled, because you probably would like it to work for people who have javascript disabled are okay. If it should be in jQuery, then you can do something like this: $ (function () {if ($ ("# one"). Html ( ) == "" & amp; $ ("# 2"). Html () == "" & amp; $ ("#three"). Html () == "") {$ ("#someOtherDiv"). Hide ();}}

javascript - How to use fadeIn/fadeOut when link pseudo classes change? -

เคฎेเคฐे เคชाเคธ เคเค• & lt; a href = "" & gt; & lt; / a & gt; เคนै เคเค• เคธीเคเคธเคเคธ เคชृเคท्เค เคญूเคฎि เค›เคตि เคธीเคเคธเคเคธ เคฎें, เคฎेเคฐे เคชाเคธ เคนै: เค›เคฆ्เคฎ เคตเคฐ्เค— เค•ो เคชृเคท्เค เคญूเคฎि เค•ी เคธ्เคฅिเคคि เคฎें เคฌเคฆเคฒเคจे เค•े เคฒिเค। เคฎुเคे fadeIn เค”เคฐ fadeOut เค•ो เคฆो เค…เคฒเค—-เค…เคฒเค— เคชृเคท्เค เคญूเคฎि เค•े เคธाเคฅ เค•เคฐเคจा เคนोเค—ा jQuery। เคฎैं เคชृเคท्เค เคญूเคฎि เค•ी เคธ्เคฅिเคคि เค•ो เคšेเคคเคจ เคจเคนीं เค•เคฐเคจा เคšाเคนเคคा, เคฒेเค•िเคจ fadeIn เค”เคฐ fadeOut เคฆो เค…เคฒเค— เคธीเคเคธเคเคธ เคตเคฐ्เค—ों। เค•्เคฏा เคฏเคน เคธंเคญเคต เคนै? เคฏा เคซिเคฐ เคฎुเคे เคเค• เค”เคฐ เคคเคฐीเค•ा เคšाเคนिเค? เคฏเคน jQuery เคฎें เคธंเคญเคตเคคः เคธंเคญเคต เคจเคนीं เคนै। เคนाเคฒांเค•ि, เค†เคช เค‡เคธ เค‰เคฆ्เคฆेเคถ्เคฏ เค•े เคฒिเค jQuery เค•े เคฏूเค†เคˆ เคชเคฐ เคเค• เคจเคœ़เคฐ เคกाเคฒ เคธเค•เคคे เคนैं (เคธुเคจिเคถ्เคšिเคค เคจเคนीं เคนै เค•ि เคฏเคน เคญी เค•ाเคฎ เค•เคฐเคคा เคนै)। เคฆेเค–ें เคเค• เค”เคฐ เคธเคฎाเคงाเคจ เคนै, เคœैเคธा เค•ि เคฆूเคธเคฐे เค‰เคค्เคคเคฐ เค•เคนเคคे เคนैं, เคฆो เค“เคตเคฐเคฒे Divs เค”เคฐ เค…เคธ्เคชเคท्เคŸเคคा เคšेเคคเคจ।

c++ - .c_str() weirdness? Data changes without rhyme or reason? -

เคฎेเคฐे เคชाเคธ เคฏเคน เคธाเคงाเคฐเคฃ เค•ाเคฐ्เคฏ เคนै: const wchar_t * เคธ्เคŸ्เคฐिंเค— เคฎैเคจेเคœเคฐ :: GetWCharTStar (int stringId ) {Std :: wstring เคฎूเคฒ เคธ्เคŸ्เคฐिंเค— = เคธ्เคŸ्เคฐिंเค— เคฎैเคจेเคœเคฐ :: GetString (stringId); Const wchar_t * retStr = originalString.c_str (); เคตाเคชเคธी retStr; } เค‰เคธ เคซ़ंเค•्เคถเคจ เค•े เคฆूเคธเคฐी เคชंเค•्เคคि เคฎें, เคฎेเคฐे เคชाเคธ เคธเคนी wchar_t * เคนै เคนाเคฒांเค•ि, เคœเคฌ เคฎैं เคตाเคชเคธ เคœाเคจा เคนोเคคा เคนूं, เคคो เคกेเคŸा เค•ूเคก़ा เคกेเคŸा เคชเคฐ เคธ्เคตिเคš เคนोเคคा เคนै। เคฌीเคš เคฎें เค•ोเคˆ เคซ़ंเค•्เคถเคจ เคจเคนीं เคนै เค•्เคฏा เคฆेเคคा เคนै?! เคฎूเคฒ เคธ्เคŸ्เคฐिंเค— เค•ो เคธ्เคŸैเค• เคชเคฐ เค†เคตंเคŸिเคค เค•िเคฏा เค—เคฏा เคนै। .c_str () เคตिเคงि เคธिเคฐ्เคซ wstring เค‘เคฌ्เคœेเค•्เคŸ เค•े เค•ुเค› เคจिเค•เคŸเคคเคฎ เค†ंเคคเคฐिเค• เคฎेเคฎोเคฐी เคฎें เคเค• เคธूเคšเค• เคฆेเคคा เคนै। เคœเคฌ เคซ़ंเค•्เคถเคจ เคฆेเคคा เคนै, เคฎूเคฒ เคธ्เคŸ्เคฐिंเค— เค—ुंเคœाเค‡เคถ เคธे เคฌाเคนเคฐ เคจिเค•เคฒ เคœाเคคी เคนै เค”เคฐ เคจเคท्เคŸ เคนो เคœाเคคी เคนै, เค‡เคธเคฒिเค เคชॉเค‡ंเคŸเคฐ เคตैเคฒ्เคฏू เค†เคชเค•ो เคนเคŸाเคˆ เค—เคˆ เคฎेเคฎोเคฐी เค•े เคฒिเค เคชॉเค‡ंเคŸ เคฎूเคต เคฆेเคคी เคนै। เคฏเคฆि เค†เคชเค•ो เคฏเคน เค•เคฐเคจे เค•ी เค†เคตเคถ्เคฏเค•เคคा เคนै, เคคो เค†เคชเค•ो เคกेเคŸा เค•ी เคช्เคฐเคคिเคฒिเคชि เคฎेเคฎोเคฐी เคฎें เค•เคฐเคจा เคšाเคนिเค เคจเค เคฏा เคฎॉเคฒोเค• () เค•े เคธाเคฅ เค†เคตंเคŸिเคค เค•เคฐें, เค”เคฐ เคซिเคฐ เค•ॉเคฒเคฐ เค•ो เค‰เคธ เคฎेเคฎोเคฐी เค•ो เคนเคŸाเคจा / เคฎुเค•्เคค เค•เคฐเคจा เคนोเค—ा।

Why does git show "dev/null" in status after interactive add of renamed file? -

เคฎुเคे interactively เคœोเคก़เคจे เค•े เคฌाเคฆ เคฎेเคฐे git เคธ्เคฅिเคคि เค†เค‰เคŸเคชुเคŸ เคฎें "dev / null" เค•ा เค…เคช्เคฐเคค्เคฏाเคถिเคค เคฐूเคช เคช्เคฐाเคช्เคค เคนो เคฐเคนा เคนै เคเค• เคซ़ाเค‡เคฒ เค•े เคฒिเค เคเค• เคชैเคš เคœिเคธเค•ा เคจाเคฎ เคฌเคฆเคฒ เคฆिเคฏा เค—เคฏा เคฅा เคฎैं เคธोเคš เคฐเคนा เคนूं เค•ि เคฏเคน เค‰เคฎ्เคฎीเคฆ เค•ी เคœाเคคी เคนै เค”เคฐ เค‡เคธ เคต्เคฏเคตเคนाเคฐ เค•े เคฒिเค เค•ुเค› เค…เคš्เค›े เค•ाเคฐเคฃ เคนैं, เคฏा เคฏเคฆि เคฏเคน เคเค• เคฌเค— เคนो เคธเค•เคคा เคนै। เคจीเคšे เค‡เคธ เค•ा เคชुเคจ: เค‰เคค्เคชเคจ्เคจ เค•เคฐเคจे เค•ा เคเค• เคธเคฐเคฒ เค‰เคฆाเคนเคฐเคฃ เคนै เคฎेเคฐे เค…เคธเคฒी-เคตिเคถ्เคต เคชเคฐिเคฆृเคถ्เคฏ เคฎें, เคฏเคน เคฅोเคก़ा เค”เคฐ เค…เคงिเค• เคœเคŸिเคฒ เคนै เค”เคฐ เค‡เคธเค•ा เคเค• เค…เคš्เค›ा เค•ाเคฐเคฃ เคนै เค•ि เคฎैं git add -p เค•ा เค‰เคชเคฏोเค— เค•เคฐ เคฐเคนा เคนूं, เคฒेเค•िเคจ เคฎैं เค‡เคธे เค‡เคธ เคจ्เคฏूเคจเคคเคฎ เค‰เคฆाเคนเคฐเคฃ เคคเค• เค‰เคฌाเคฒเคจे เคฎें เคธเค•्เคทเคฎ เคฅा: $ git init test /local_disk/tmp/test/.git/ $ cd test $ เค—ूंเคœเคคी "foo"> foo $ git foo $ git commit -m 'foo เคœोเคก़ें' [เคฎाเคธ्เคŸเคฐ (เคฐूเคŸ) เคฎें เคฐिเค•्เคค เค—िเคŸ เคญंเคกाเคฐ เคช्เคฐाเคฐंเคญ เค•िเคฏा เค—เคฏा -commit) 3643b5d] foo 1 เคซ़ाเค‡เคฒें เคฌเคฆเคฒ เค—เคˆ, 1 เคช्เคฐเคตिเคท्เคŸि (+), 0 เคตिเคฒोเคชเคจ (-) เคฌเคจाเค“ เคฎोเคก 100644 เคซू $ mv foo เคฌाเคฐ $ git add -p diff --git a / foo b / foo เค…เคจुเค•्เคฐเคฎเคฃिเค•ा 257cc56..0000000 --- a / foo +++ / dev / null @@ -1 +0,0 @@ -foo เค‡เคธ เคนंเค• เคšเคฐเคฃ [y, n, q, a, d, /, e,?]? Y $ git เคธ्เคฅिเคคि # เคถाเค–ा เคฎाเคธ्เคŸเคฐ เคชเคฐ # เคชเคฐिเคตเคฐ्เคคเคจ เค•เคฐเคจे...

django - how to allow RSS aggregators to use feeds available only for logged-in users? -

I have to feed RSS in my own app, which should only be seen by the logged in user. I want to allow users to add these RSS feeds to all aggregators, so I'll need something that works like this: for example supply feed URL with token: so that the token feed is user form It will be logged in to be seen. Is there a library in Django that will provide such functionality? Try to create a hash of some unique asset of the user ... like something md5 ("% s!% S"% (SECRET_KEY, user.username)) Hexdigest () PS - I did not test this code but you get the idea

Why do C++ class definitions on Windows often have a macro token after 'class'? -

I am trying to understand an open source project, where I came in a declaration of the following category: Class STATE_API AttributeSubject: Public Attribution Group, Public Subject {Public: Attribute Subject (const char *); Virtual ~ feature theme (); Virtual Zero SelectAll () = 0; Virtual const std :: string TypeName () console; Virtual Zero Notification (); Virtual Attributes * CreateComedContact (Const Strude :: String and Shouldst); Virtual Attributes * New instance (Bull copy) Const {Return 0; }; Virtual Bull VarChangeRequetReset (Zero) {return false; }; }; What does STATE_API indicate before the class name AttributeSubject? Is this some kind of macro? This is probably __declspec (dllimport) or __declspec (dllexport) Neil is right , This is a macro. This usually looks like this: #FIDF INDSIDE_DLL # define STATE_API __declspec STATE_API __declsped (dllimport) #endif You define INSIDE_DLL only in your DLL and export all sections declared with STATE_API macr...

WCF Security Transport Security Questions -

I am writing a set of WCF services that rely on transport security with Windows authentication using the trusted security mechanism . However, I want to execute the authorization on the basis of the original client user who started the request (user by user / password with user) The client sends the message and after that I am planning to get it by adding the original user's credentials to the title before using the credentials supplied to authorize the service user. Therefore, I have a few questions about this implementation: 1) Using Transportation Security with Windows Ath, I need to worry about encrypting passed passwords again to ensure validity. No ... WCF automatically takes care of this - is that right? 2) How this implementation prevents a malicious service, which is running under some windows account within the domain, which is to send messages tagged with spoofed credentials. For example, a malicious service to replace some credentials with an administrator to do...

windows - Safe/Allowed filename cleaner for .NET -

Whether to take an arbitrary string in .NET in a standardized / librid / tested way and to confuse it in such a way that Does it represent a valid filename? It is easy to roll your own four-replacement function, but I should make a little more strong and revive. This problem is not as simple as you think it is. Not only are these that are eligible in path.GetInvalidFileNameChars , there are many filenames, such as "PRN" and "Conn", which are reserved by Windows and can not be made. Any name that is "." Besides, there is also illegal in Windows, there are different length limitations. Read the complete list. If that is not enough, different file systems have different limitations, for example the ISO9660 filename can not start with "-", but it may be included.

C pointers vs. Objective-C pointers -

I am coming from Objective-C background and trying to increase my knowledge in C. One thing has confused me, though, and this is the difference between pointers in C and OBJ-C as you can see in the examples given below, things behave differently between the two languages, and I Wondering why you can explain this? C code works fine: myFunction zero () {int x, * pointerX; PointerX = & amp; X; * Pointerx = 5; // print: "x5" printf ("x is:% i", x); } Obj-C code failed: - (zero) myMethod {NSString * string = @ "caramel coffee" , * String pointer; String pointer = & string; // Alert: Assign with incompatible indicator type * string pointers = @ "chocolate milkshake"; // Exception: The incompatible NSLog incompatible type (@ "string:% @", string); } Question: Why can not I put the string pointer in the string's memory address ( stringPointer = & amp; string; ), and I * pointerX = 5; Why am I able to, but ...

wpf - Using ItemsControl on a multi-leveled TreeView -

My co-worker threatened to put me on The Daily WTF today because of my property I wrote that Treeview with a 3-tiered ItemsControl I bear you footprint. ObservableCollection & LT; KeyValuePair & LT; String, ObservableCollection & LT; KeyValuePair & LT; String, ObservableCollection & LT; MyType & gt; & Gt; & Gt; & Gt; & Gt ;; My goal was to create an ItemsControl that would use the key as the header, and value as the item source for 3 levels: & lt; Style x: key = "filtertrusty" target type = "item control" & gt; & Lt; Setter property = "item template" & gt; & Lt; Setter.Value & gt; & Lt; DataTemplate & gt; & Lt; Control: Tree View ITemand = "True" & gt; & Lt; Control: TreeViewItem.Header & gt; & Lt; Control toolkit: triviumcombback content = "{binding key}" /> & Lt; / Control: TreeViewItem.Header & gt; & Lt; ItemsCont...

Automatically fill in form fields in Rails? -

Let's say you have a simple form of creating a new article object in your application. @writing for & lt;% form_ F | & Gt%; & Lt; P & gt; Name: & lt; Br / & gt; & Lt;% = f.text_field: name% & gt; & Lt; / P & gt; & Lt; P & gt; Link: & lt; Br / & gt; & Lt;% = f.text_field: link% & gt; & Lt; / P & gt; & Lt; P & gt; & Lt;% = submit_tag% & gt; & Lt; / P & gt; I am using RSS feeds parser feedtals to get article names, but I do not automatically fill in the form fields with data that is accessible elsewhere . It is said that the name of the article is accessible through counseling [: name]. How can Paramaster get the name of that article from [: name] (or parameter [: link]) without the form field in which to write it? I do not want to automatically create an article object because either the user might want to modify a little name. "post-text" itemprop = "text"...

How to make console screen (Turbo C editor) full screen in MS-windows vista -

I create a program in Turbo C c / c ++ but I'm facing the problem that I have it in windows vista I'm not able to create full screen in. Please tell me how to do this? Why are you still living in the Turbo era? Switch to something better compiler. GCC and MSVC ++ Professional Edition are better. DevCpp or Code :: Blocks, both support IDG on Windows, MinGw Port GCC.

C#, Is there a map structure? -

Is there a structure like c ++ maps in C #? I have a group of numbers like this: 1.234 1 5.789 0 3.445 1 ... Where to sort data based on me The requirement is the smallest number in the column, but in each column I need a number of columns to be with each respected number. After sorting it will look like this: 1.234 1 3.445 1 5.789 0 ... Any ideas? sorted options & lt; Double, int & gt;

iphone - What about this custom uialertview? -

เคฏเคน เคฎैंเคจे เค…เคชเคจा เค•ोเคก เคฒिเคฏा เคนै ..... - (เคถूเคจ्เคฏ ) เคนोเค—ाเคช्เคฐเคฆเคฐ्เคถिเคค เค•เคฐेंเคเคฒ्เคšเคฐเคต्เคฏू: (UIAlertView *) เคšेเคคाเคตเคจी เคฆृเคถ्เคฏ {[[[เคธเคคเคฐ्เค• เคฆृเคถ्เคฏ เคธเคฌเคต्เคฏूเคœ] เค‘เคฌ्เคœेเค•्เคŸเคเคŸเค‡ंเคกเคเค•्เคธ: 2] เคธेเคŸเคฌैเค•เค—्เคฐाเคฎ เคฐंเค—: [UIColor colorWithRed: 0.5 เคนเคฐा: 0.0f เคจीเคฒा: 0.0f เค…เคฒ्เคซा: 1.0 เคเคซ]]; } - (เคถूเคจ्เคฏ) เคตเคฐ्เคคเคฎाเคจ เคถीเคŸ {UIAlertView * baseAlert = [[UIAlertView alloc] initWithTitle: @ "เค…เคฒเคฐ्เคŸ" เคธंเคฆेเคถ: @ "เคฏเคน เคšेเคคाเคตเคจी เค‰เคชเคฏोเค—เค•เคฐ्เคคा เค•ो 'เคธुเคฐเค•्เคทिเคค' เค”เคฐ 'เค˜ाเคคเค•' เคตिเค•เคฒ्เคช เค•े เคฌीเคš เคšเคฏเคจ เค•เคฐเคจे เค•ी เค…เคจुเคฎเคคि เคฆेเคคा เคนै, เคœो เคฌเคŸเคจ เคฐंเค— เคฆ्เคตाเคฐा เค‡ंเค—िเคค เค•िเคฏा เค—เคฏा เคนै। \ N \ n \ n \ n "เคช्เคฐเคคिเคจिเคงि: เคธ्เคตเคฏं เคฐเคฆ्เคฆ เค•เคฐेंเคŸ्เคฏूเคŸเคจ เคถीเคฐ्เคทเค•: เคถूเคจ्เคฏ เค…เคจ्เคฏ เคฌเคŸเคจ เคŸाเค‡เคŸเคฒ: @" เค˜ाเคคเค•! ", @" เคธुเคฐเค•्เคทिเคค ", เคถूเคจ्เคฏ]; UITextField * txtFld = [[UITextField alloc] initWithFrame: CGRectMake (60,10,240,31)]; [TxtFld เคธेเคŸ เคกिเคฒीเคเค—ेเคŸ: เคธ्เคต]; [TxtFld เคธेเคŸเคฌैเค•เค—्เคฐाเคฎ เคฐंเค—: [UIColor clearColor]]; [เคฌेเคธเค…เคฒाเคฐ्เคŸ เคเคก เคเคธ्เคฏूเคฌ เคฆृเคถ्เคฏ: txtFld]; [TxtFld เคฐिเคฒीเคœ़]; [เคฌेเคธเคเคฒ्เคฐ्เคŸ เคถो]; } เคฎेเคฐा เคช्เคฐเคถ्เคจ เคฏเคน เคนै เค•ि เค…เค—เคฐ เคธेเคฌ เค•े เคช्เคฐเคฆाเคจ เค•ी เค—เคˆ เคฏूเค†เคˆเคธीเค“เคจ्เคŸोเคฒเคฒ्เคธ เค•ी เคฎूเคฒ เคฐूเคช เค”เคฐ เค…เคจुเคญเคต เค•ो เคฌเคฆเคฒเคจे เค•ी เค…เคจुเคฎเคคि เคฆी เค—เคˆ เคนै, เค•्เคฏोंเค•ि เคฎुเค...

How might you implement design-by-contract in Clojure specifically or functional languages in general? -

I like the examples in Lisp type (Bonus points for the closure or scheme), because I am the most (defn foo [action options] (when- no (no (and (: (- (- ("-" ("no" (Behind (invalid execution exception "unknown action")) Speed ​​Options (): (): (throwing) "alternate" "turn-behind" "turn-by-turn"} (throwing) (Invalid argument exception "invalid speed"))); We get the logic of logic. I do not like about this implementation that the contract argument obscures the main methodology; the correct purpose of the function in the conditional investigation is lost. This is the same issue which I have picked up in a compulsory language like Java, I can embed antenna or metadata / attributes in the document, which means the contract is implemented. . Is anyone planning to add an agreement to the metadata in the closure? How will the high-order function be used? What are the other options? Closer are already support...

c# - Use OleDbDataAdapter to insert into an Access db -

เคฎैं เค•ुเค› เคกाเคŸा เค•ो เคเค•्เคธेเคธ เคกाเคŸाเคฌेเคธ เคฎें เคกाเคฒเคจा เคšाเคนूंเค—ा। DataTable dt = new เคตिเคตเคฐเคฃ เคธाเคฐเคฃी(); เคธ्เคŸ्เคฐिंเค— sql = string.Format ("SELECT * FROM {0} เคœเคนां 1 = 0;", tmap.SqlTableName); เคธ्เคŸ्เคฐिंเค— con = string.Format (conn, accesspath); OleDbDataAdapter da = เคจเคฏा OleDbDataAdapter (sql, con); OleDbCommandBuilder cmdBuilder = เคจเคฏा OleDbCommandBuilder (da); Da.InsertCommand = cmdbuilder.GetInsertCommand (เคธเคš); // เคฐिเคŸเคฐ्เคจ "INSERT เคชเคฐीเค•्เคทा (int, bdate, amt, text, bit) VALUES (?,?,?,?,?)" Da.Fill (dt); // DateTable เค•े เคฒिเค เคกेเคŸा เคœोเคก़ें (int i = 0; i & lt; rowCount; i ++) {DataRow dr = dt.NewRow (); // .... dt.Rows.Add (dr); } Da.Update (dt); // เคฏเคน เคตเคน เคœเค—เคน เคนै เคœเคนां เคšीเคœें เคฆเค•्เคทिเคฃ เคšเคฒเคคी เคนै System.Data.OleDb.OleDbException เคธंเคฆेเคถ: เคจिเคทेเคง เคฌเคฏाเคจ เคฎें เคธिंเคŸैเค•्เคธ เคค्เคฐुเคŸि। เคธ्เคฐोเคค: เคฎाเค‡เค•्เคฐोเคธॉเคซ्เคŸ เคœेเคŸ เคกाเคŸाเคฌेเคธ เค‡ंเคœिเคจ। เค…เค—เคฐ เคฎैं เคฌเคฆเคฒ เคœाเคคा เคนूं Insert command: da.InsertCommand = new OleDbCommand ("INSERT เคชเคฐीเค•्เคทเคฃ ([เคชाเค ]) เคฎूเคฒ्เคฏों (?)"); เค”เคฐ เค‡เคจเค•เคฎिंเค— เคกेเคŸा เค•ो เค•ेเคตเคฒ เคเค• เคŸेเค•्เคธ्เคŸ เคตैเคฒ्เคฏू เคฎें เคฌเคฆเคฒเคจे เค•े เคฒिเค เคœो เคฎुเค...

events - Fire keydown in Javascript -

Using Mootools, but a normal answer is OK. I enter 'Enter' key in a web application. When they press 'Enter', then it should react as if 'shift-enter' is pressed. I just stop the entry, and use exec.insert HTML I think I can fire an important incident, as if I am a Click or fire another event: Click: $ ('myElement') fireEvent ('click', arg1); KeyEye: $ ('myElement'). FireEvent ('keydown' ???); But I do not know how. I do not know what you are actually looking for, but when pressing the login key If it goes, the following change organizes the 'shifter'. Note that you have to manually specify the 'shifter' incident itself. $ ('element'). AddEvent ('keydown', function (e) {new event (e). Stop (); if (ek == 'ant') {this.fireEvent ('shiftenter');}});

Which Python language rule allows the descriptor to be found first? -

I was clashing the previous night and I'm still telling about the loss: Square Foo (object): @ Property Def Dave (self): Wars (own) ['Dave'] = 1 Return 2F = Fu (print) f.dave print f.dave Runs this code: 2 2 Why is the question? My understanding of attribute access is that the dictionary of the dictionary is checked before the class dictionary, and in the dictionary of any base, although the dictionary seen in the dictionary as a dictionary is not checked before being described in the class dictionary Used to be. My understanding of attribute access is that the example dictionary is checked before the class dictionary, and the dictionary of any basis is the exception of the data descriptor: For example, binding depends on the predecessor of the descriptor orientation, which specification is defined. Typically, the data descriptor defines both __get_ () and __set __ () , whereas non-data descriptors only get __ () method Data descriptors always ove...

JavaScript function declaration -

Is the JavaScript code snippet function being declared? If no one, then they can give an overview of what they are? some_func = function (value) {// some code here} and show: function (value ) {// some code here} The first one is just making an anonymous function And specifying it on a code . Then call the function using some_func () . The second object should be part of the node var obj = {show: function (value) {// some code here}}; Then, the obj.show () will call the function In both cases, you are creating an anonymous function. But in the first case, you are specifying it in only one variable. In the second case, while you are designating it as a member of an object (potentially many others).

NSIS scripts-Changing header text. Also using same variable in both installer and uninstaller section -

I am writing an installer using NSIS. Want to know how to change or write a description (text on white headers) on a custom page? For example: I want to put a customized page after the directory page and the details remain the same.Eninstall the location ... but I want to change it according to the need of my page. How should I change this text? Also, I want to use a variable in the Uninstaller section, which is set in the installer section with some strings. Please help me on this ... OK, you have two questions .. maybe most Well to post them separately :) To set the title of the customized page, just use the following macro (by calling me my nsDialogs :: Create ) Previously placed) ! Insertmacro MUI_HEADER_TEXT $ (MY_CUSTOM_TITLE) $ (MY_CUSTOM_SUBTITLE) Where MY_CUSTOM_TITLE and MY_CUSTOM_SUBTITLE variables are set elsewhere.

ruby on rails - Showing error messages in a redirected request -

I am using Authlogic to do some simple signup and log-in stuff. In my WellController I have to create a signup and login form on the same page 'index', which is done with form actions set on its own separate controllers, user controller and user control controller, respectively. These controllers redirect the user to the protected profile page within the site on a successful signup / login error, I need to redirect back to the WelcomeController # Index and display their errors. Upon a redirect, this information is lost and I can not use a render because it is a different controller. What is the right way to handle this behavior? Maybe I could store error messages in flash hash. It seems like the easiest solution. Recently I have stumbled this problem in another application, in which I was writing, where I had to present summary pages from the researcher, submitted the RFP form to the Peer Review Controller. It looks like a case that now it will be used properly to use t...

c# - Is fxcop a valuable/effective tool for improving code quality? -

I have a high quality C # framework codebase that I still want to try to improve. Is FXPP an effective tool to improve Net Framework? I know that Microsoft uses the device internally, but how do external users search for it? meaningful? I already have crude lines and a well established style of code, can it be customized to our style and still provide good guidance is? Roughly, how long will it take to establish it? Hours, days, weeks? Can I learn something useful early? Yes to improve Net Code Base, FxCop One Very effective tool. In addition to searching for many different types of bugs (globalization, pinovok, security, performance), it will also warn you about various style issues that violate the conventions. And sometimes point to spelling error. FxCop is highly customizable, for example you can turn off all style recommendations and enable only bug checking. This will give you instant benefits without changing your style. It really depends on how much FxC...

oop - Is it possible to descend from Silverlight's System.Windows.Controls.Page? -

I want to create a descendant of the page class of the Silverlight Navigation Framework, so I can execute all my normal navigation code, but I can not understand how to do this. How do I refine my XML files when I create a lineage? It currently has the "Navigation: Pages" tag, so why should I change it with "MyPage" instead? Example: I currently have the following: & lt; Navigation: Page x: Class = "See approximately" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/ 2006 / xaml "Xmlns: d =" http://schemas.microsoft.com/expression/blend/2008 "xmlns: MC =" http://schemas.openxmlformats.org/markup-compatibility/2006 "xmlns: Navigation = "Clr- namespace: System.Windows.Controls; Assembly = System.Windows.Controls.Navigation" mc: Ignorable = "d" d: DesignWidth = "640" d: DesignHeight = "480" title = ...

jpa - JPQL: InnerSelect causes PersistenceException (HibernateException: Errors in named queries) -

I try to use an internal selection, but only get the exception "Hibernate exception: Errors in named query" Both the institutions: Public class A implementation serializable {@Id @Column (nullable = false) @ Generated Values ​​(strategy = generation type.INNNTTIT) Private Long ID ; } Public Class B Serializable {@Id @GeneratedValue (strategy = GenerationType.IDENTITY) Private Long Id; @JoinColumn (name = "FK_A_ID", nullable = true) @ManyToOne Private AA; } causes the exception in this query: Choose one from where no.id (select from BB to B) but there is no exception: Select one from one where no AIDs (1, 2, 3) Any idea what is wrong? Thank you very much ... The reason was appearing on the other output: QuerySyntaxException: "Tablename is not a map" This error was logged and is not available in exception.

c# - Can I use XMLReader to create objects representing elements in the document? -

I have a need to use a very large XML files so I XMLReader is the need to parse me this file There is a large number of elements of second level, which contains the information that I am interested in eg: & lt; TopLevelElement & gt; & Lt; SecondLevelElement & gt; & Lt; Information1 & gt; Blah & lt; / Information1 & gt; & Lt; Info 2 & gt; Blah & lt; / Information 2 & gt; & Lt; Information3 & gt; Blah & lt; / Information3 & gt; & Lt; / SecondLevelElement & gt; & Lt; SecondLevelElement & gt; .... & lt; / TopLevelElement & gt; person other level elements are not very big, I'll be glad to personally every load as an object and based on the schema of the file structure of my reader code I would like to parse that I am trying to parse I have used xsd.exe to create objects from my schema and tried this:. while (lReader.Read ()) {if (lReader.Name == "SecondLevelElement") {MyXml.S...

javascript - Firebug: "event is not defined" -

เคฎेเคฐे เคชाเคธ เค‡เคจ เคตिเคงिเคฏों เค•े เคธाเคฅ เคเค• เค•เคจ्เคธ्เคŸ्เคฐเค•्เคŸเคฐ เคนै: function getMouseXY (เคˆเคตेंเคŸ) {var x = event ClientX - this.offsetLeft; Var y = event.clientY - this.offsetTop; เคตाเคชเคธी [เคเค•्เคธ, เคตाเคˆ]; } เคซ़ंเค•्เคถเคจ เคšेเคคाเคตเคจी () {var c = this.getMouseXY (เคˆเคตेंเคŸ); เคšेเคคाเคตเคจी (เค— [0]); } เคเคšเคŸीเคเคฎเคเคฒ เค•ोเคก เคฎें เคฎैं เคเค• เคเคšเคŸीเคเคฎเคเคฒ 5 เค•ैเคจเคตाเคธ 'เค‡เคตेंเคŸ เคฎाเค‰เคธเค…เคช เคฎें เค…เคฒเคฐ्เคŸเคเค•्เคธ เคซ़ंเค•्เคถเคจ เค•ो เค…เคธाเค‡เคจ เค•เคฐเคคा เคนूं: document.getElementById (' เค•ेเคฌैเค—เค—्เคฐाเค‰ंเคก ')। AddEventListener (' mouseup ', object.alertx , เค…เคธเคค्เคฏ); เค…เคชेเค•्เคทिเคค เคชเคฐिเคฃाเคฎ เค•्เคฏा เคนै? เค•ैเคจเคตाเคธ เคชเคฐ เค•्เคฒिเค• เค•เคฐเคจे เคธे เคฏเคน เคฎाเค‰เคธ เค•ी เคเค•्เคธ เคธ्เคฅिเคคि เค•ो เคฆเคฐ्เคถाเคคा เคนै, เค‡เคธเค•े เคฌเคœाเคฏ เคฎुเคे เค•ुเค› เคญी เคจเคนीं เคฎिเคฒा। เคซाเคฏเคฐเคฌเค— เค•े เคธाเคฅ เค†เค—े เค•ी เค…เคจ्เคตेเคทเคฃ เคฎुเคे "เค˜เคŸเคจा เคชเคฐिเคญाเคทिเคค เคจเคนीं เคนै" เคค्เคฐुเคŸि เคฎिเคฒเคคी เคนै เคฎुเคे เคจเคนीं เคชเคคा เค•ि เค‡เคธเคธे เค•ैเคธे เคฌเคšें! เค•ोเคˆ เคธुเคाเคต? เคงเคจ्เคฏเคตाเคฆ! เค•ुเค› เคฎुเคฆ्เคฆे เคฆेเค–ें: เค•ोเคก> เค…เคฒเคฐ्เคŸเคเค•्เคธ () เคเค• เคˆเคตेंเคŸ เคคเคฐ्เค• เคช्เคฐाเคช्เคค เคจเคนीं เค•เคฐเคคा เคนै। เค‰เคธ เคซ़ंเค•्เคถเคจ เคฎें เค†เคช getMouseXY เค•ो เค•ा เค‰เคชเคฏोเค— เค•เคฐ เค•ॉเคฒ เค•เคฐ เคฐเคนे เคนैं । เค‰เคธ เคธเคฎเคฏ เค•े เค‡เคธ เค–ोเคœเคถเคฌ्เคฆ, เค‰เคธ เคคเคค्เคต เค•ो เคฆेเค–ेंเค—े เคœो เคˆเคตेंเคŸ เค•ो เคŸ्เคฐिเค—เคฐ เค•เคฐेเค—ा। เค†เคช เคˆเคตेंเคŸ เคนैंเคกเคฒเคฐ เค•ो เค…เคœ्เคžाเคค เคตเคธ्เคคु เคšเคฐ เคฎें เคฌाเคง...

asp.net - Can an individual RadGrid row be selectable based upon a condition? -

I have a RadGrid that contains a GridClientEntellect column. I have the AllowRowSelection setting set to True. Is not it the way that I can conditionally set whether there is a personal scramble in the selection? I have to select some lines on client-side, but not others. Thank you! How to implement a conditional client-side line selection with ASP.NET AJAX for RadGrid See me on this topic to know about I hope this is helpful.

Associationg vim syntax with file extension -

How can I tell to use a certain syntax definition with a new file extension? Suppose I have files that are some kind of XML, but there is a separate extension, how do I tell Vim that it should use syntax = xml by default for the new type? Any help appreciated.

jQuery reversing my array of elements (or so it appears) -

My goal: Find a div, slide all its child divs, then all of them Afterwards are the above, show one of those children through the slideshow. jQuery snippet: $ ('. ToggleTriggersWrapper .toggleTrigger'). Click (function () {var $ TogglePanesWrapper = $ (this) .clostest ('. ToggleTriggersWrapper'). Next ('. TogglePanesWrapper'). Eq (0); var idtoShow = '#' + this.className.match ( / Toggle \ - + + ($ (id: show). (": Hidden")) {$ togglePanesWrapper.children ('TogglePan'). SlideUp ('slow', function) (console.log ($ ( This)); if ($ (this) .is (": last-child")) (If there is last child, then we've closed them all, and now a new $ / $ Toggles PanesWrapper.children (IDtoShow ) .slideDown ('slow');}}}}}}}}} problem: What do I think Pen is that every Times when i I click on one of the Ni '.toggleTrigger' elements, then it finds the children of my $ Toggle Pence Vapor and then, one slides up for e...

java - How to paint a gridline as a background on JPanel -

I have a problem I used gridbaghlayout in my JFrame is a component JPanel. I wanted to draw a gridline in the form of a background for my zenith, for example, in the program given below, it wants to create 3 vertical and 3 horizontal lines, although it is only 2 vertical and 2 Displays the horizontal line. The last line was not shown. Another problem was that, it seems that the size of the zippell was bigger than I had decided. I saw it from the length of the line which is the least white background. Public class droplet JComponent {public dimension getPreferredSize () (new dimension (600, 600)) increases; } Public int getY () {Return 0; } Public int getX () {return 0; } @ Override Public Love Paint Coment (Graphics G) {g.setPaint (Color.GRAY); For (int i = 0; i & lt; = getSize (). Width; i + = 300) {g2.drawline (i, 0, i, getSize () height); } (Int i = 0; i & lt; = getSize (). Height; i + = 300) {g2.drawline (0, i, getSize (). Width, i); }}} Edit: The first pr...

nvidia - How do I see the commands that are run by GNU make? -

I am trying to debug a complex Makefile how you can get GNU to print all the commands Are you I could not find the answer in the man page (it does not print using the D-flag). (This is not the necessary information to answer my question, but if you are thinking again: I am having trouble compiling a project made on NVIDIA's CUDA Library. I can compile myself but using their makefile results is being done in a filthy compiler error. I have provided them with easy packaging to Makefile, and other packages which are already available. Thanks Execution of commands in which no command is executed That is, although the commands that are executed are printed. If your makefile is recursive, however, it will not help much.

c# - What are Some OpenID Alternatives -

I am trying to integrate OpenID into my website, but I am still searching for the OpenID website. The car is there. Does anyone know a good option? CAS, Shibobleth, LDAP ...

MySQL - How to select data by string length -

SELECT SELECT ORDER เคฆ्เคตाเคฐा string_length (เค•ॉเคฒเคฎ); เค•्เคฏा เคเคธा เค•เคฐเคจे เค•े เคฒिเค เคเค• MySQL เคซ़ंเค•्เคถเคจ เคนै ( string_length เค•े เคฌเคœाเคฏ)? เค†เคช เคธ्เคŸ्เคฐिंเค— เคฎें เคตเคฐ्เคฃों เค•ी เคธंเค–्เคฏा เคช्เคฐाเคช्เคค เค•เคฐเคจे เค•ी เคคเคฒाเคถ เคฎें เคนैं। เคฌเคนु-เคฌाเค‡เคŸ เคตเคฐ्เคฃเคธेเคŸ เค•े เคฒिเค เค†เคชเค•ो เคธ्เคŸ्เคฐिंเค— เคชเคฐ เคฌाเค‡เคŸ्เคธ เค•ी เคธंเค–्เคฏा เคฆी เคœाเคเค—ी, เคœเคฌเค•ि CHAR_LENGTH () เค…เค•्เคทเคฐों เค•ी เคธंเค–्เคฏा เคตाเคชเคธ เค•เคฐ เคฆेเค—ा।

Objective-c Runtime Interface Documentation -

Routine interfaces for purpose-oriented programs (like __objc_exec_class ()) are specified / document anywhere, or they Compiler -) Define implementation? The closest thing to which I have found is the GCC header, but I want to know that there is no reference document. There is a reference to the Apple Runtime interface, note that this objective-2.0 describes the runtime , Which is used in cocoa for oak x and iPhone, but no, say, gn usuppe

filter - filtering user input in php -

I'm thinking that combining trim (), strip_tags () and addslashes (), to filter values ​​of variables from $ Is enough for _GET and $ _POST It depends on what type of verification you want to verify. Here are some basic examples: If the data is being used in MySQL queries, use mysql_real_escape_query () on data instead of addlashes () Be sure to do If there are file paths in it, make sure to remove the "../" parts and block access to the sensitive filename. If you are going to display data on a web page, be sure to use htmlspecialchars (). But the most important verification is accepting only the values ​​that you are expecting, in other words: Allow only numeric values ​​while expecting numbers etc.

content management system - Definition of Java's CMS GC log lines? -

Examining a Java Runtime with CMS (Concurrent-Mark-Sweep) GC enabled, What is the definition of cms place in the log below? Do I think this is a permanent place? I see the following lines of a small GC event 23.481: [G.C. 23.481: [DNFE: 1051 k-> 128 k (1152 k, 0.0029912 sec) 11925 K- > 11027 (13600k), 0.0031697 secs [time: user = 0.00 sys = 0.00, actual = 0.00 sec] 23.492: [Full GC 23.492: [CMS: 108 99K-> 9379K (12448K), 0.2675281 sec ] 11182 of-> 9379 (13600K), [CMS permit: 16383K-> 16359] (16384), 0.2686291 seconds] [time: user = 0.25 sys = 0.00, actual = 0.27 seconds] 23.956: [GC 23.956: [DnFAN: 4224K-> 49 4736K) , 0.0027654 seconds] 13603K-> 9428K (20372k), 0.0029230 secs [time: user = 0.00 sys = 0.01, actual = 0.02 sec] especially [CMS] : 108 99 -K- & gt; Events of 9379 (12448), 0.2675281 seconds] on 23.492 . Does it show the tenured space labeled as CMS? Is CMS done only on sustainable? (Disclaimer: not a JVM memory expert;) If I ...