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 में बदल सकता हूं और इस समस्या से बचने की कोशिश कर रहा हूं लेकिन .... मुझे यह जानना है कि बिट / बाइट क्या मेरे $ $ काट रही है। < Div class = "post-text" itemprop = "text"> यह फ़ायरफ़ॉक्स कार्यान्वयन एसजीएमएल (जिस पर HTML आधारित था) कड़ाई से टिप्पणियाँ के कारण है। यह केवल तभी होगा जब दस्तावेज़ मानक मोड में लोड किया जाता है (यानी कोई DOCTYPE है)। पहला & lt;! एक टिप्पणी शुरू करता है पहला - एक अनुभाग में प्रवेश करता है जिसमें & 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 < / P>

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 < N & gt; ---------------- Description of Slide_ID name Created Status / updated by data_ updated_by 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 < P> 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

.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 < / Code> 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; <$ Code = $ echo $ last 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 <) == some. Gatetype ()) {System.Console.WriteLine ("container <";); }} Fixed Zero main (string [] Args) {Haveings (new item ()); DoSomething (new container & lt; int & gt; ()); }} 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;) == Som

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: < Code> & 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; &

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 () अक्षरों की संख्या वापस कर देगा। < / html>

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 << strong> 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 memo