Posts

Showing posts from September, 2010

ip - What does the following mean in PHP? -

निम्न उदाहरण में बृहदान्त्र का मतलब php में है। :: if if ($ Host == "$ ip ==" :: 1 ") < पी> मुझे लगता है कि आप आईपीवी 6 के पते की बात कर रहे हैं। :: 1 एक 0: 0: 0: 0: 0: 0 के लिए "शॉर्टकट" है : 0: 1 , जो कि आईपीवी 4 में 127.0.0.1 का आईपीवी 6 संस्करण है। शायद विज्ञापन $ _ server ['REMOTE_ADDR'] से आता है ।

What options are there for a quick embedded DB in .NET? -

I am creating this small utility program (Windows Form) and it needs to save a small amount of data in the disk. In DB's words it will be a table, compared to approximately two thousand rows, each row decreases to 1KB in size. What would you use? Added: forgot to say - it would be really clear if the whole program would only be an .EXE file (plus the data file, absolutely). In this way I like the thing that has been made in .NET. . It is small and is for it. met.

Scraping single table from HTML using JavaScript -

Here's my problem: An internal issue is the tracking system that has a good summary page (number of open problems broken by the developer , Etc.) However, the compact summary table is surrounded by boilerplate craft (navigational menu, search box, etc.), I want to embed the summary table on the page of our team, but not the near-cruelty. A & lt; Iframe & gt; The tag will be a minor solution, if it is not for cruelty around the table, then I am interested in it. Fortunately, the HTML table in question is well illustrated: it has been defined regularly; Table & gt; The tag and it also has a unique ID that has been assigned to it. I was wondering if there is a simple JavaScript move that includes a DOM manipulation, which I can use to remove the table that is interested in IFrame. In this way, the report will always be updated whenever a person checks on our team's homepage. If you use JQuery, you can drag the table code very easily Now if the script in the ta

content management system - Is it possible to create a SharePoint internet site? -

I want to use a CMS that can be accessed by its customers through the Internet. I have seen all SharePoint use is for intranet sites only what I am going to do: Landing page for all customers with general information. Customers login with client specific portal page client specific information. can not be accessible through the Internet or SharePoint client. General and client specific wiki. I will not host it myself I will also be looking for a hosting provider. I am also using DotNetNuke, which has lower cost of entry. I am open to other CMS suggestions, but my skills have been built around C # and ASP.net. Before going down the SharePoint path, I wanted to make sure that these things were possible. Thank you! Update: Thanks to all those who gave me some points to consider. In short, I have decided to do this (according to my current skill set): SharePoint can be used for my needs (my initial question). Many great example sites. Dotnet Net as my CMS I

c# - Optimized ReaderWriterLock Read Access -

So it is my understanding that to read both the reader Wernerlock (or more specifically ReaderWriterLockSlim), both need to read and write Lock a Mute X. I would like to optimize the reading reach of the lock, such that if no one is left unpiled, no lock will be required. (And I'm ready to abandon the writing performance, read some obstacles, read slow and second fast, etc. And, if necessary, read as fast as possible.) So, how will it, or better than that, whether there is a framework or "standard" implementation can one point me? (Or if I have been misunderstood and it is already supported, great!) So for my piece: It appears that if someone has a counter for the number of readers / writers (The increase protected by the interlock), it would be enough to read whether the author's count was non-zero, and only got the lock (and increment within the acquired lock). Writers always get increment, lock, reader count goes up to 0 (readers are always ready to accep

asp.net - Visual Studio Server-Explorer Window -

I am using the VS 2008 Web Developers Express edition. And I'm developing a small application in which I want to use display counters. So I was reading some articles, and I found it. However in Figure 1, it shows a window that I do not have. I've reset all the windows in web developers, and I searched in the View and Window menus ... but I did not find that menu! Is that window also in the VS Web Developer 2008 Express Edition? And how do I get it? No, the VS 2008 Web Developers Express Edition does not have Server Explorer instead it has a database explorer window instead. Which is more limited to server explorer. This is deliberately the IDE limit. In addition, the IDE will only work with local data sources and read-only remote connections. You have some options, such as Use SQL Express on your local machine Purchase a copy of Visual Studio 2008 Manually get your database access code, TDE support but it will work just fine.

Incremental Publishing in Eclipse for Static Web Project -

I have a static web project that has been added to Apache server. Whenever I make any changes in this project, no matter how small a change occurs, the whole file is republished instead of the individual file. I had the impression that the publication process was kept as delta and turning in delta The files that were marked should be republished. I have no problem that the project was small, but this is a big project (200+ MB) and the server I am publishing is slightly slow I Does anyone know that setting up my eclipse is working as expected? Environmental Specification: Eclipse Galileo Aptana Studio Plug-in 1.5.1 Perhaps you've got a bug, try rsync instead. There was one, but now it should be decided. And from other Eclipse projects, I think they have added a test case for this, so it should not be done again. But it may be that a new bug is triggered in your circumstances. Are you manually changing files or do you use some scripts out of Eclipse? Anyth

objective c - Can't get NSAlert to continually bounce dock icon -

I think that the exact opposite problem is I also hate to constantly write a doc icon, but in this case if the user does not realize that my app can not launch, then perhaps he can track the statistics of many times. This is my code that I have inserted in App Delegant application. WillFinishLaunching: Method. if (! AXAPIEnabled ()) {// I see that accessibility is running on NSAlert * Warning = [[NSLert Elok] Init]; [Alert Set Alertstyle: NScric Leststyle]; [Warning Settings Lesson: @ "Can not Go Missing."]; [Warning addButtonWithTitle: @ "Open Accessibility Prefs ...]]; [Warning addButtonWithTitle:" Leave "]; [Warning Set InformativeText: @" Requires Loops "to enable access to the" Enable user access "system preferences "] [NSAP activation blocking other exceptions: Yes]; int focusrequest = [NSAP request requester note: NSCRTical request]; NSInteger returnValue = [Warning run model]; .... [Cancel NSAPUser Pay attention : Med

java - Rhino Javascript: How to convert Object to a Javascript primitive? -

I am using javax.scripting with Rhino in this project. I have a Java method that gives a Java object (double, long, figure, etc.). I want to call that method from javascript and reference the result as javascript primitive type. However, javacript recognizes the return type as an object. How do I apply it to convert to a JavaScript primitive? This question is very similar How do I get the context of reference and rapfactry with that problem? Sample code: public class data {double value = 1.0d; Get public number () {return value; }} Public static zero main (string [] args) {ScriptEngine engine = new scriptEngineManager (). GetEngineByName ("rhino"); Data data = new data (); {Engine.eval ("Function Test (Data) {Return Data. GetD ('value1') + 5;};"); System.out.println ("Result:" + ((Incognitive engine). Invoch function ("test", data)); } Hold (exception e) {e.printStackTrace (); }} Output: Results: 15 try the follow

Palindrome Recursion Program -

सार्वजनिक स्थिर बूलीयन palindrome (स्ट्रिंग इनपुट, इंट आई, इंट जे) {if (i & gt; = j) वापस सच; अगर (input.charAt (i) == इनपुट.चार्ट (j)) {i ++; j--; पैलंड्रोम (इनपुट, आई, जे); } और अगर (input.charAt (i)! = Input.charAt (j)) गलत लौटा; } मेरा जावा प्लेटफ़ॉर्म (ग्रहण) इस कोड को काम के रूप में स्वीकार नहीं करेगा, "वापसी प्रकार की कमी" के कारण। अब मुझे उचित कोडिंग एडिक्टिव में पता है, केवल एक रिटर्न मान का उपयोग करना बेहतर है, लेकिन जब पुनरावर्तन की बात आती है, तो यह मेरे लिए कुछ नया होता है मैं ऐसा कैसे कर सकता हूं? यदि मैं इस विधि के शीर्ष पर एक बूलियन प्रकार को इन्स्तांत करता हूं, तो यह उस चर का एक नया उदाहरण बना रहा है (और उसे निरर्थक या इसे जो भी सेट किया गया है I इसे सेट किया जाता है) हर बार विधि चलाता है, लेकिन अगर मैं इसे मेरे निर्माता से ऊपर रखता हूं, तो मेरा विधि इसके लिए कोई मान नहीं देगी / इसे वापस नहीं लौटा सकती है। असल में, मैं अपने कोड को संशोधित करने के बारे में एक सिंगल रिटर्न वैल्यू को कैसे बदलूं जो हमेशा निष्पादित होने पर ग्रहण स्वीकार करेंगे? मैं इ

php - changed object after storage or object-state used -

उदाहरण: वर्ग UserStorage {सार्वजनिक फ़ंक्शन addUser (उपयोगकर्ता $ उपयोगकर्ता) {// Db को बचाता है}} वर्ग उपयोगकर्ता {सार्वजनिक फ़ंक्शन सेटनाम ($ name); } क्या होगा अगर मैं उपयोगकर्ता को उपयोगकर्ता भंडारण में जोड़ता हूं और बाद में उपयोगकर्ता ऑब्जेक्ट बदल सकता हूँ? इस मामले में आप तर्क दे सकते हैं कि उपयोगकर्ता ऑब्जेक्ट केवल __destruct पर संग्रहीत किए जाने चाहिए। लेकिन कभी-कभी यह एक विकल्प नहीं है (उदाहरण के लिए उपयोगकर्ता को प्रदर्शित किया जाता है और बाद में अपडेट किया जाता है)। I पीटर से सहमत हूं, उपरोक्त मॉडल मुझे थोड़ा विचित्र लगता है और मैं डेटास्टोर को बचाने के लिए अनुशंसा करता हूं। इसके अतिरिक्त, उपयोग करने के लिए एक पैटर्न कुछ ऐसा है: वर्ग यूज़रस्टॉरेज {$ _user; फ़ंक्शन addUser (उपयोगकर्ता उपयोगकर्ता, प्रतिबद्ध = सच) {if (commit) {// save to db} else {// अपने आंतरिक उदाहरण $ _user = user populate; }}} इसलिए यदि आपके पास आपके PHP अनुप्रयोग के निष्पादन में उपयोगकर्ता ऑब्जेक्ट के कई अपडेट हैं, तो आप addUser (उपयोगकर्ता, झूठे) का उपयोग कर सकते हैं। ) सभी प

.net - C# - Windows Service installer fails in custom action -

हम यहाँ वर्णित अनुसार कस्टम क्रिया से एक विंडो सेवा स्थापित करते हैं: हर बार, अनइंस्टॉल करते समय हमारे आवेदन, यह ठीक से सेवा की स्थापना रद्द नहीं करता है इसके बजाय यह "हटाने के लिए सेवा को चिह्नित करता है"। आप अपने निष्पादन योग्य पर installutil.exe / u चलाकर यह संदेश देख सकते हैं, जब इसे अनुमान लगाया गया है। क्या किसी ने इस मुद्दे को देखा है या एक वैकल्पिक हल पता है? यदि किसी सेवा को हमारे नाम के समान नाम से स्थापित किया गया है, तो हम इसे बदलना चाहते हैं। इसके बजाय एमएसआई सेटअप विफल रहता है, यह कहकर संदेश देता है कि हमारी सेवा पहले से ही स्थापित है। क्या कोई कस्टम ऐप्पल किए बिना ऐसा करने का एक तरीका है कि पहले कस्टमस्ट स्थापित करने से पहले हमारे सेवा के नाम के किसी मौजूदा इंस्टॉलेशन की स्थापना रद्द करें कार्रवाई? क्या आप अनइंस्टॉल करते समय सर्विस कंट्रोल पैनल (services.msc) खोलते हैं? यह आपकी सेवा से रोकता है। अगर कुछ भी मदद नहीं करता है तो रिबूट की आवश्यकता हो सकती है (हालांकि मूल रूप से .NET 1.1 के लिए आवेदन करना है)।

oracle - Is an Index Organized Table appropriate here? -

I was recently reading about Oracle Index Organized Tables (IOT), but I'm not sure they used When I am quite understandable. So I have a small table: create table categories (ID VARCHAR2 (36), group VARCHAR2 (100), category VARCHAR2 (100) create unique index (group, category, id) COMPRESS 2; ID column is a foreign key entries from another table and my usual query is: Select e.id, e.time, from e.title entries, categories C where e.id = c.id and for example =? And c.category =? E.time ORDER by code> The table is properly indexed. There are millions of rows in this table (currently 16 m) and the query is currently really smelling (note: I put it on a single page to query I have only wrapped 20 already, but I have been given up for simplicity). Since I basically index entire table, does this table IOT Edit : Create table entries (ID VARCHAR2 (36), TIMESTEMP time by popular demand , Group VARCHAR2 (100), title VARCHAR2 (500), ....) Create index (group, ti

Data structure for quick time interval look up -

I have a set of time interval in = (a, bn) I have a lot of lookups Need to run where I T is given at one time and the need to quickly return those gaps in which t , such as those intervals like A & lt; = T & lt; = Bn . What is a good data structure or algorithm for this? If it matters, in my case a and BN are integers. There is one for what you are looking for (which is of one type). These are logarithmic lookup times such as other tree structures (e.g., RB trees), so you should see comparable performance to use something like JavaTrinmark or a STL map. From MIT There is one. One here

svn - Does "svnadmin dump" lock the repository? -

... अगर कोई एक svnadmin dump REPOS_PATH इसके बारे में कुछ भी नहीं कहता। एक समवर्ती चल रहा svnadmin डंप नए कमानों के साथ हस्तक्षेप नहीं करेगा परिणामस्वरूप डंप फ़ाइल, हालांकि, केवल उन संशोधनों को शामिल करेगा जो कि जब आप svnadmin डंप को शुरू करते हैं तो रिपॉजिटरी में मौजूद थे। आरंभिक डंप दूसरे डंप के साथ चल रहा है, जबकि आपको किए गए कमानों को प्राप्त करने की आवश्यकता होगी। अन्य विकल्प जिनके आप में रुचि हो सकती है: Svnadmin hotcopy एक डंप फ़ाइल के विपरीत, इसमें conf और हुक शामिल होंगे। svnsync एक मौजूदा रिपॉजिटरी के केवल-पढ़ने के क्लोन को बनाए रखने के लिए तीनों में, मैं svnsync का सबसे अधिक उपयोग करता हूं यह मुझे एक अलग मशीन पर हमारे खजाने की दूसरी प्रति रखने की अनुमति देता है, जो मेरे करीब है यह एक अच्छा बैकअप के लिए बनाता है, और साथ ही तेज चेकआउट के लिए भी। (यदि svnsync क्लोन और मूल में एक ही UUID है, तो आप svn सह svn: // the-clone और फिर svn स्विच --relocate svn: // the-clone https: // मूल-मूल )

c++ - http client blocks on recv() -

I need some help writing an HTTP client trouble comes when I try to get data from a website Recv () call block program. Any better direction would be very useful, I would post my code below: if (argc! = 2) {cerr & lt; & Lt; "Use:" & lt; & Lt; Argv [0]; Serie Lieutenant; & Lt; "& Lt; URI & gt;" & Lt; & Lt; Endl; Return 1; } And {uri_string = argv [1]; } // Create a URI object and parse it URI_STRING URI * YURY = URI: Pars (Yuri_String); If (Yuri == tap) {cerr & lt; & Lt; "Error: URI can not be parsed." & Lt; & Lt; Endl; Return 2; } // Check the specified port number, if you do not use a port 80 unsigned ports = 80; If (uri-> Is_port_defined ()) {port = uri- & gt; Gate_port (); } // Create a TCP socket and connect to the server int tcp_sock = socket (AF_INET, SOCK_STREAM, 0); If (tcp_sock & lt; 0) {cerr & lt; & Lt; "Unable to create TCP socket." & Lt; & Lt; Endl;

Three UpdatePanel objects in a ASP.Net page ok? -

I have a web page and I want that three updated panel objects work, in different segments several different- Based on the events coming from a different button Is this possible on the page? The buttons / links are not inside the panel. I do not want the nesting panel, or is there any other object in the Ajax Control Toolkit to do this? You can define each UpdatePanel for a word of caution, the last updated Penile Postback wins. You can not have async postbacks at the same time.

browser - How do I suppress flicker from the webbrowser control in .Net, when it is resized? -

Not all pages do this, but a good example would be youtube.com. Most of the time, if you are enlarging the window, its resistance is small. There is a lot of content flicker in this case. I have stopped some posts on pure efforts to claim the type of double buffering, but I have not yet seen any examples of proper implementation thanks. Take care of the resize event of the webbrowser control form. Force the form (and hair control) to update itself in this event. It is a bit unreliable but it reduces my application to a great extent. Private Zero Form 1_Resize (Object Sender, EventAgent E) {this.Update (); }

algorithm - What is the complexity of creating a lexicographic tree -

एक शब्दकोषीय वृक्ष बनाने की जटिलता क्या है? यदि आप अपने इनपुट का एक आउट बनाते हैं, तो आप इस क्वेरी को निरंतर समय में कर सकते हैं। संपादित करें क्वेरी खोज स्ट्रिंग की लंबाई में रैखिक है। मेरा मतलब है कि यह शब्द सूची के आकार के संबंध में निरंतर था।

asp.net - Get public string in codebehind into LayoutTemplate of ListView -

एएसपी। नेट (वीबी) में एक संदेह मेरे पास कोड-पीछे एक सार्वजनिक चर है ( ASPX.VB) सार्वजनिक _ सरणी के रूप में स्ट्रिंग = "हैलो वर्ल्ड" एएसपीएक्स में, मैं इनलाइन का उपयोग करना चाहता हूं। यह भी एक ListView और asp: ListView runat = "server" आईडी = "listView_OrderReplies" DataKeyNames = "ProductID" DataSourceID = "sdsProducts" & gt के लेआउटटेम्पलेट के अंदर; & LT; LayoutTemplate & gt; आदेश कोड के लिए & lt; h1 & gt; आदेश उत्तरों = & lt;% # _orderCode% & gt; & lt; / h1 & gt; & Lt; asp: प्लेस होल्डर आईडी = "आइटम प्लेसहोल्डर" रन = "सर्वर" & gt; & lt; / asp: प्लेस होल्डर & gt; & Lt; / LayoutTemplate & gt; & LT; ItemTemplate & gt; & Lt; b & gt; नाम & lt; / b & gt ;: & lt;% # Eval ("उत्पादनाम")% & gt; & lt; br / & gt; & Lt; b & gt; स्टॉक & lt; / b & gt ;: & lt;% # Eval ("यूनिट्स इनस्ट

java - Loading Spring Context Dynamically at Run-time in a Web Application -

I am converting a standard Java application that uses the Spring Framework in the web app. This application loads new spring references based on run-time parameters, which was done using the ClassPathXmlApplicationContext / FileSystemXmlApplicationContext . So my question is how to do this in a web application that I already have on my web XM is configured and added to the Spring listeners: & lt; Listener & gt; & Lt; Audience category & gt; Org.springframework.web.context.ContextLoaderListener & lt; / Listener Category & gt; & Lt; / Listener & gt; Another problem, my deployment environment is at Tomek 5.5, where I am not able to see any logging during spring reference shipment which is wrong. If you actually want to load a configuration reference when your weblink is started You can configure your web.xml with the property placeholder for the reference name. & lt; Context-absolute & gt; & Lt; Ultimate Name & gt; ContextC

c# - Calculating RMS with overlapping windows -

I have a 1-dimensional float array, each computed with a single window length. Now say that RMS = {0, 0.01, 0.4, ...} Now the RMS for a larger window, Can be shown in the range of the original windows, as RMS of "participating" RMS from RMS [i] to RMS [i + len] May be. Here is the length of the big window divided by the length of the lane original window. I want to create a rolling window. I want RMS from RMS [0] = 0 to lane ... rollingRMS [n] = lms to n + ln + n As calculated as efficiently as possible, I know that cracking is not very difficult, but has anyone prepared the code prepared for it? Edit: I asked the sample code, so I think it would be nice to provide something below based on the answer to Pierce and written in C #. This is slightly different from my original question because I realized that it would be good to be similar to the original size of the resulting array and to be the window end on each element. // RMS data to be analy

c# - Handling temporary calculation in Linq -

एक साक्षात्कार प्रश्न हल करते समय प्रश्न छह अंक संख्या को ऐसे तरीके से प्राप्त करने की आवश्यकता होती है जब यह 2 और 9 के बीच के पूर्णांक से गुणा किया जाता है, तो यह मूल छह अंक संख्या देता है जब उसके अंक उलट हो जाते हैं। उदाहरण: मान लीजिए कि मैं 219978 * 4 को बढ़ाता हूं, मुझे 879912 मिलता है, जब रिवर्स 879912 मुझे 219978 वापस मिलेंगे। मैंने इसे के लिए (लंबा एल = 100000; एल <99 99 99; l ++) का उपयोग करके हल किया {var num = l.ToString (); (इंट आई = 3; आई & lt; 9; i ++) के लिए {var mul = l * i; स्ट्रिंग str = mul.ToString (); चार [] splitDigits = str.ToCharArray (); स्ट्रिंग रिवर्सडगिट = नई स्ट्रिंग (स्प्लिटडिगिट। आरवर ()। ToArray ()); अगर (रिवर्सड डिगिट.कंपारेटो (num) == 0) {Console.WriteLine ("{0} * {1} = {2}, जब गुणा किया गया {3}", संख्या, आई, मुल, उलट); मूल कार्य यह था कि यह linq का उपयोग करके हल किया जाए। उदाहरण के लिए अस्थायी गणनाओं को संभालने में मुझे थोड़ा भ्रम है जब मैं var = from l में एन्यूमेरिबल.रेंज (100000999999) i में एन्यूमेरिबल

regex - How to find last occurrence of a number in a string using Ruby? -

रूबी का उपयोग ... निम्न स्ट्रिंग दिया है: x = "blah_blah.do .dah [4543] जंक_जंक " अंतिम संख्या / अंक के बाद मैं सभी पाठ कैसे निकालूं? मैंने सोचा था कि ऐसा करने का सबसे आसान तरीका खोज के द्वारा हो सकता है आखिरी घटना का सूचकांक और उसके बाद उस सूचकांक के बाद सब कुछ निकालना हालांकि, मुझे यह पता नहीं लग सकता है कि उस इंडेक्स को कैसे प्राप्त किया जाए। Regex का उपयोग करने पर मेरे सभी प्रयास विफल हुए हैं। उत्तर हैं कि आपको क्या करना है इसके अलावा संख्या का पिछला मौका ढूंढने के लिए: x = 'blah_blah.do.dah [4543] जंक_जंक' x.rindex (/ \ d /)

c# - How do I MOQ the System.IO.FileInfo class... or any other class without an interface? -

I am writing several unit tests for a logger class created and I want to simulate the file class. I can not find the interface that I use to make the MOQ ... how can you successfully MOQ a class without an interface? This is also not clear to me how I can use dependency injection if no interface is available: Private FileInfo _logFile; Public LogEventProcessorTextFile (FileInfo Logfile) {_logFile = logFile; } When I really want to do something like this (note IFileInfo instead of FileInfo): Private IFileInfo _logFile; Public LogEventProcessorTextFile (IFileInfo Logfile) {_logFile = logFile; } Use a library that has several NAT classes for interfaces and fake rappers Provides classes that themselves do not apply the interface.

c - Linux Tool to read values of the stack -

I would like to know what is a Linux tool that allows you to read the values ​​of the program stack ?? For example, when running a binary program on a line: foo (parameter); The parameter will be placed on the stack, and I would like to know that there is no device to use it. Thank you. Thank you. Since you tag it as a security tag, Want to suppress the stack for fun and gain ":

edit text file using Python -

Whenever my IP address changes, then the text file needs to be updated, and then something from the shell Run the commands. Convertible LustCan == 212.171.135.53 "We have an IP address when writing this script. Obtain the current IP This will change on a daily basis. Create the variable for the new IP. CURRENT. Compare (stars If they are equal, then exit () If they are different, If different, then copy the old test file (/etc/ipf.conf) in the previous text in A. / TMP B. . "Change the LASTKNOWN with the CURRENT in the /tmp/ipf.conf file. Using the C subprocess" mv / tmp / Ipf.conf /etc/ipf.conf ". Using subproduction execution, use the" Ipf -fa -f /etc/ipf.conf "E. Using subproduction execution," ipnat -CF -f / etc / Ipnat.conf " Quit ( ) I know how to do steps 1 through 6, "file editing" part, A -> C. I can not tell which module to use Or should I edit the file in place? There are many ways to

objective c - NSToolbarItem image scaling -

Image
यह क्यों हो रहा है: जैसा कि आप देख सकते हैं," अनुमत टूलबार आइटम "में छवि" पीएचपी "उपकरण पट्टी वस्तु के लिए ठीक दिखती है, और जब वास्तव में टूलबार में यह तराजू होती है अजीब तरह से। धन्यवाद यह दस्तावेज में मिला: एक छवि वस्तु का प्रदर्शित संकल्प उपकरण पट्टी के आकार मोड पर निर्भर है। आपको आईसीएनएस या झगड़े जैसे कई छवि अभ्यावेदनों का समर्थन करने वाली एक छवि में डिफ़ॉल्ट, नियमित और छोटे आकार के मोड के लिए विशिष्ट छवि प्रतिचित्रण देना चाहिए उपकरण पट्टी के वर्तमान आकार मोड के लिए उचित चित्र प्रस्तुति स्वचालित रूप से प्रदर्शित की जाती है। यदि कोई उचित प्रतिनिधित्व उपलब्ध नहीं है, तो टूलबार प्रदर्शन और उपस्थिति की कीमत पर वर्तमान मोड के लिए उचित आकार के प्रतिनिधित्व को तराजू देता है। चित्र नहीं हैं जो फिट नहीं होते हैं छवि आइटम की छवि को भी छोटा किया जाता है और छवि आइटम के अतिप्रवाह मेनू आइटम में उपयोग किया जाता है। (ज़ोरदार जोड़ा गया है) ऐसा लगता है कि आप NSToolbarItem के minSize और maxSize गुण।

bash - awk/sed: How to do a recursive find/replace of a string? -

मैं कैसे की हर घटना को ढूंढ और बदलूंगा: subdomainA.example.com < / home / www के अंतर्गत प्रत्येक पाठ फ़ाइल में / code> उपडोमेन B.example.com के साथ / डायरेक्टरी ट्री (रिकर्सिव ढूंढें / प्रतिस्थापित)। ध्यान दें : इस कमांड को जीआईटी रेपो सहित .git में बदलकर, अपने जीआईटी इंडेक्स को भ्रष्ट कर सकता है, पर इस कमांड को न चलाएं। find / home / www -type f -print0 | Xargs -0 sed -i 's / सबडोमेन ए \ .example \ .com / subdomainB.example.com / g' से आदमी खोज : -print0 (जीएनयू केवल खोजने के लिए) पादनाम नाम के बीच आउटपुट सीमांकक के रूप में रिक्त स्थान के बजाय रिक्त वर्ण (\ 0) का उपयोग करने के लिए कहता है यह एक सुरक्षित विकल्प है यदि आप फ़ाइलों में खाली या अन्य विशेष वर्ण शामिल कर सकते हैं यह -print0 तर्क का उपयोग करने के लिए सिफारिश की जाती है यदि आप -exec कमांड या एक्सरग्राज का इस्तेमाल करते हैं (xargs में -0 तर्क की आवश्यकता है।)।

XML/MySQL: Storing complete XML in MySQL and performing CRUD operations -

Is it possible to store the whole XML file in MySQL DB and to conduct CRUED on the XML data contained in MySQL? Scenario: I am getting an XML file that contains product related information such as product_id, product_spec, product_price and many more I have to store all this details in the MySQL database and whenever a user enters, that particular The product list will select for the product and their selection is populated based on the shopping cart, i.e., the user's choice is to obtain relevant data for the product based on the shopping cart. For, MySQL is read operation on the DB, as a separate XML file which I get from 3rd party is huge because there are millions of products with all relevant details. If it is possible, what are the ways of doing this? I appreciate the guidance for very large XML files, I think what you want is a streaming parser, as it is based on a DOM.

Is it good practice to set all database columns as NOT NULL? -

Normally it is good to set all the database columns as tapes or not? Justify your answer. No good idea to define the column NULL where appropriate

big o - A homework about growth rate of function -

कृपया विकास दर के अनुसार कार्य belows करें n ^ 1.5 n ^ 0.5 + log एनएन लॉग ^ 2 एनएन लॉग (एन ^ 2) एन लॉग लॉग nn ^ 2 + लॉग एनएन लॉग एनएन पीएस: विकास दर से क्रम मतलब है, क्योंकि एन बड़ा और बड़ा हो जाता है, जो कि कार्य करता है अंत में अन्य की तुलना में मूल्य में अधिक होगा। ps2 मैं ज्यादातर कार्यों का आदेश दिया है: n, n लॉग लॉग n, n लॉग n, n लॉग ^ 2 n, n लॉग (n ^ 2), एन ^ 1.5 मुझे यह नहीं पता कि कैसे आदेश: n ^ 2 + लॉग n, n ^ 0.5 + लॉग n, ये 2 मान क्या कोई मुझे मदद कर सकता है? धन्यवाद आप आप फ़ंक्शन रेखांकन करके और जो लोग बड़ा हो सकते हैं एक ग्राफ़िंग कैलकुलेटर, चेक आउट करें, या फ़ंक्शन पर ग्राफिंग करने का प्रयास करें)। या, या बेशक, आप n के कुछ बड़े मूल्य को चुनते हैं और विभिन्न कार्यों की तुलना करते हैं, लेकिन ग्राफ़ थोड़ा बेहतर चित्र दे सकते हैं।

What Design Patterns do you implement in common Delphi programming? -

What design patterns do you apply to Common Delphi Programming ? Which patterns are easy to optimize in Delphi programming? (Each language is excellent in different areas, so what pattern is likely to be a very strong structure while using Delphi?) I would be happy if you had any changes in the design pattern You can tell about Delphi 2009/2010 (since those support generic and RTTI in 2010). There are many articles in the wild Internet, but they do not discuss everyday applicability patterns. (Most of them discuss only language attributes, architecture changes) Only a minority of Delphi developers knows that every Delphi developer is a (delphi.about.com) Uses, but then virtualize is implemented using Constructors. Therefore: Time to put some light at that time: -) Virtual constellants are like a series of virtual methods, such as object insents. The full idea of ​​the factory pattern is that you can double the argument, which determines how (in this case "clas

c# - can you query contact info from gmail programatically from csharp -

I have an asp.net mvc webpage that asks for SQL Server database for contact information. I've now migrated all of this contact information to Gmail. Anyway, can I ask the model section of the asp.net mvc site for my Gmail contact information? Is there an example code to use this through some APIs? Gmail has a contact API in various languages ​​including dot nets. Here's a link to their example code to recover all of your contacts.

ruby on rails - can I have a controller associated with a partial? -

In the rail, the page templates have its own controller, which is said before a page is provided (I think? ). Similarly, can I partially hold a controller, which is said before partial payment? I know that you can pass the local variable partially, but I want to run a few nice lines of code to assign those local variables, which I do not partially use It was, I put in the controller. The code that you want to run must be in a helper that can be called by the controller Is, or partially by itself

Agile web development with rails - Ajax -

Using IR Rail 2.3.3 and web browser Firefox has added AJAX and Javascript and it works a lot But everytime I reload the page, when I press Add to Cart button to show item option in the side bar, then it is not visible without reloading. Please help me anybody how can this show item additions in the side bar, by reloading the page, press Add to Cart button? If you have not done so, install Firefox for Firefox, for these reasons: This will tell you that you have a JavaScript error. If your Ajax request is being received, it will show you and its contents. You can see the elements of your page such as the car, whether it will be shown whether the ID is correct, etc. There is a faster way than browsing through the source. More (CSS, etc.) More If you can not understand it by looking at Firebug C onsole, and since you are following a tutorial, why do not you download the source source code and see it Compare yourself to what you are doing wrong. If you have a book,

semantic markup - Use of profile attribute in HTML head tag -

HTML & lt; head & gt; टैग में प्रोफाइल विशेषताओं का क्या उपयोग है? मुझे इसके बारे में यहां पढ़ना पड़ा:। मैं यह (या तो) समझ नहीं सका, क्योंकि यह बहुत तकनीकी है (मेरे लिए)। मैने इसे कभी इस्तेमाल नहीं किया है। यूआरआई प्रोफ़ाइल विशेषता में यूआरआई को मेटाडेटा के बारे में जानकारी रखने वाले दस्तावेज़ को इंगित करता है? HTML मेटा टैग और HTML लिंक टैग द्वारा किया जा सकता है। प्रोफाइल के लिए कोई निर्धारित प्रारूप नहीं है प्रोफ़ाइल विशेषता अब HTML 5 में समर्थित नहीं है।

multithreading - When are lock free data structures less performant than mutual exclusion (mutexes)? -

I read somewhere (can not find the page now) that locking the free data structure is more efficient for "some workloads" It seems that sometimes they are really slow or the benefits of them can be zero in some situations. To do a nuclear session, a lock instruction seems to hit ~ 100 cycles, go to sleep and take back the process. I have a lot to wait for the scheduler It seems to me that, in which case a lock-free data structure would be better than the old-fashioned mutes if 99% of the lock time is available and the process is not going to sleep, is it Is there a mute fast? Is there a good rule of thumb to go by which way to go, assuming to be a suitable lock-free data structure? A common way to implement lock-free data structure is to have an unstable reference to an irreversible thing , And whatever you want to change to grab the structure, create a new version of the object with the appropriate changes applied to it, and then compare the index to reference the ob

ruby on rails - order by foreign key in activerecord -

मेरे पास तालिकाओं Foo और बार है। फ़ू में एक बार है। जब मैं Foo क्वेरी करता हूं, तो मैं इसे बार तालिका में दिनांक कॉलम से कैसे आदेश कर सकता / सकती हूं? धन्यवाद < P> Foo.find (: सभी,: joins = & gt;: boo,: order = & gt; bars.created_at DESC)

networking - C# -calculate download/upload time using network bandwidth -

As a feature I'm developing in this application, I need to show the estimated total time / server . How can the client get the speed of download / upload on the server from the machine I think if I can be able to get the speed, then I can calculate the time. For - --- 200 MB file = 200 (1024 kb) = 204800 for KB and divide it to 204800 Mb / speed Kb / s = "x" seconds P> < / Blockquote> Try something like this: int chunkSize = 1024; Int sent = 0 Intel total = Reader Long; Date time started = Date time.Now; While (Reader.position & lt; reader.Length) {byte [buffer = new byte [Math. Min (chunk size, reader. Length - reader. Composition)]; ReadBytes = reader.Read (buffer, 0, buffer, lang); // Send sent data packet + = readBytes; Timespane Elapsed Time = DateTime.Now - Started; Estimated Time of TimeSpain = TimeSpain.FormsCand ((Total - Sent) / ((Double) Sent / Expired Time All Sessions)); }

c# - Select error in Linq -

जब मैंने कोड की कोशिश की अभिनेता [] अधिनियम = नया अभिनेता [] {नया अभिनेता {नाम = "जैकी", आईडी = "जे जेड01", फिल्म लिस्ट = {नई फ़िल्म} शीर्षक = "ट्विन ब्रदर्स", पीरियड = कन्वर्ट.ToDateTime ("01 / नवंबर / 1993")}, नई फिल्म {शीर्षक = "पुलिस स्टोरी ", पीरियड = कन्वर्ट.ToDateTime (" 05 / अगस्त / 1989 "}}}}, नए अभिनेता {नाम =" टॉम क्रूज़ ", आईडी =" जे जेड 0 9 ", फिल्म लिस्ट = {नई फिल्म} शीर्षक =" मिशन असंभव मैं " , अवधि = कन्वर्ट.ToDateTime ("01 / जून / 1998"}}, नई फिल्म {शीर्षक = "मिशन असंभव द्वितीय", अवधि = कन्वर्ट.ToDateTime ("05 / अगस्त / 2001")}}}}} क्लास एक्टर [स्ट्रिंग का नाम; स्ट्रिंग आईडी; सूची के & lt; फिल्म & gt; Flm = नई सूची & lt; फिल्म & gt; (); सार्वजनिक स्ट्रिंग नाम {get {return name; } सेट {name = value; }} सार्वजनिक स्ट्रिंग आईडी {get {return id; } सेट {id = value; }} सार्वजनिक सूची & lt; फिल्म & gt; फिल्म लिस्ट {get {return

problems with encoding (php) -

मेरी साइट में यूटीएफ -8 एन्कोडिंग (ड्रुपल) है। मैं शामिल < तृतीय पक्ष सेवा के साथ मेरे पृष्ठ को एकीकृत करने के लिए / strong> फ़ंक्शन लेकिन यह एक खराब परिणाम देता है - पृष्ठ का हिस्सा शामिल करने के लिए खराब एन्कोडिंग। मैं इसे करने की कोशिश करता हूं, लेकिन यह कोई परिणाम नहीं देता: iconv ("ASCII" , "यूटीएफ -8", शामिल हैं ("http://new.velo-travel.ru/themes/themex/spectrum_view.php?$QUERY_STRING")) इससे पहले मैं इसका उपयोग करता हूं एन्कोडिंग जानने के लिए mb_detect_encoding यह शामिल फ़ाइल है: $ url = 'http: // young spectrum.ru/cgi-bin/programs_form.pl '; $ Params = $ _GET; अगर ($ params) {$ url। = '?'; विदेशी मुद्रा ($ कुंजी = & gt; $ मान के रूप में $ params) $ url। = '& Amp; । $ कुंजी '=' urlencode ($ मूल्य); # $ Content = file_get_contents ($ url); गूंज आइकनव ("cp-1251", "utf-8", $ url); शामिल करें फ़ंक्शन स्ट्रिंग वापस नहीं करता ( जब तक आप वास्तव में वापसी को शामि

asp.net - Convert linq query with having -

I fail to convert this SQL to linq ... Hope Anybody do that. Thank you, from the TestLatable Group by Celayx Max ([PersonalNumber] +1) Calor Hoying Calyur = year (now ()). Click here -> TestTable in a group in CalYear From CalYear = in the year (now ())

latex - How to get one component of a tikz/PGF coordinate? -

I am trying to draw a horizontal line in my diagram. Y coordinate of the line should be between halfway between one and B (A below B). The left and right end points of the line are on the bounding box of tikzpicture using the intersection operator, how am I doing now: \ coordin (h0) ($ (a.north)! 0.5 ! (B.south) $); \ Draw (h0 - | Current Bounding Box. West) - (h0 - | Current Bounding Box.Ast); It kills me as an intersection, whatever I want to do, it meets the coordinates of HK (HK) and X coordinates of east and west edges of the bounding box, and write the coordinates themselves I do this But this syntax is not supported: \ coordinates (h0) ($ (a.north)! 0.5! (B.south) $); \ Draw (current bounding box.wexx, hl) - (current bounding box. East.x, h0i); Is there a way to refer to the individual components of the coordinate I 'M' is missing? You can get inside the let operation in the components. Look for work in PGF manual, but by memory: \ draw \ p1 = ($ (a

How do I prevent the loading of duplicate rows in to an Oracle table? -

I have some large tables (millions of rows). I constantly get new rows of files to add to those tables - up to 50 million rows per day. Almost the lines I get are 0.1% of the lines I have already loaded (or are duplicates within the files) I would like to stop those lines from loading in the table. I am currently using SQL loader to perform enough to deal with my large data volume. If I take a clear step and add a unique index to the column that is a duplicate of a line, the SQL loader will start to fail the whole file in which there is a duplicate row - while I only stop it I want to duplicate the line itself being loaded. I know that in SQL Server and Sybase I can create a unique index with the 'undiscovered duplicate' property and if I use the BPP duplicate rows index) simply will not be loaded. Is there any way to achieve the same effect in Oracle? I do not want to delete duplicate rows once it loads - it is important for me to never load in the first place.

Firefox does not preserve custom headers during Ajax request redirect: an ASP.NET MVC solution -

I use ajaxform with jj, and there is a problem with firefox - for some reasons this x -requested - Custom header (used to detect IsAjaxRequest () ). Returns IsAjasxRequest () after redirection. This bug is only in Firefox, for example it works fine in Chrome. You can see the mention of this bug. A very old post, I wonder why it still happens to me (I use Firefox 3.5.3) Anyway, here's my solution - in my Base Controller class: Protected Override Zero Onset Exposing (Action Expating Contact Filter Contrax) {var ajaxRequestBeforeRedirect = TempData ["__ isajaxrequest"] in the form of a string; If requested (ajaxRequestBeforeRedirect! = Null) Header. Add ("Ex-Requested", ajaxRequestBeforeRedirect); } Private Bull IRDADRR Results (Action Result Results) {Return Results Gate type () Name. TOOLAV () This includes ("redire"); } Protected Override Zero On-Off Acne (Actioned Contact Filter Filter) {base.OnActionAxecuted (filterContext); If (IRDER

jdbc - Db2 connection problem with java -

I'm having trouble with DB2. I have just installed DB2 as DB2 Admin and when I try to connect to the database with password, this success is complete and I get an error: - DB2 SQL Error: SQLCODE = -204, SQLSTATE = 42704, SQLERRMC = DB2ADMIN.LOGIN, Driver = 3.57.82 I have a database named Iop and it has a table called 'Login', which contains two field usernames and There is a table called 'Login' with the password. I'm going Choose from * Login; Gives me an error DB2 SQL error: SQLCODE = -204, SQLSTATE = 42704, SQLERRMC = DB2ADMIN.LOGIN, driver = 3.57.82 Choose from system.login; Gives me an error: - (// is the system schema name) DB2 SQL error: SQLCODE = -551, SQLSTATE = 42501, SQLERRMC = DB2ADMIN; SELECT; SYSTEM.LOGIN, driver = 3.57 .82 I have tried all the resources on the net and are completely tired. Please help me I do not know much about DB2, but seeing the error code Are .. The first error is because you have not specified a

logging - Is there a way to get the line number where an exception was thrown? -

I am working on a pl-sql script, in which I have approximately 10 TO_CHAR conversions. One is throwing one of them ORA-06502: PL / SQL: numerical or value error: character string buffer is too small Exceptions. Currently, logging messages with this part of this code exceptions while others are then DBMS_OUTPUT.put_line ('exception message' || SQLERRM (sqlcode) )); ROLLBACK; I would like to add the line (for most debugging purposes) where the exception is thrown, so to get the message ORA-066502: PL / SQL: Numeric or Value Error: Character string buffer is too small (on line x) Is there an easy way to do this? You need 10g to use DBMS_OUTPUT.put_line (' Error '' $$ plsql_unit || 'et' '$$ plsql_line); Also looks at using DBMS_UTILITY.format_error_backtrace An article in Oracle Magazine '05 Steven Fürstin from April: Cheers, Nils

google maps - getting latitude and longitute information from a web visitor -

To use Google Maps, you seem to be latitude and lengthy to plot a map for a visitor needed. Is there any free library that will give you this information through IP address? Here's one: Of course, you only thick is going to get ideas where the user is probably if you think that the kind of accuracy you check, you will unfortunately disappoint. :)

sql server - Disposing the Sql Connection -

Just wondering, can SQL Connection be dipped / stopped when this method is completed? Or do I have to explicitly call the closing method in the end? Using (SqlCommand cmd = new SqlCommand (sql, GetConnection ())) {SqlDataReader reader = cmd.ExecuteReader (); While (reader.Read ()) {}} SqlConnection GetConnetion () {New SqlConnection ("connectionstring"); } I know that I can do something like this: SqlConnection conn = GetConnetion (); SqlCommand CMD = New SQL Commands (Esquilla, Con); // something conn.Close () cmd.Dispose () But just curious how to use block will work in this case. Cheers No, the connection object will not be automatically removed in your example. The Usage block only applies to the SqlCommand object, not the connection. To make sure that the connection has been resolved, make sure that block in its own using the SqlConnection object: Using p> (using SqlConnection conn = GetConnection ()) (SqlCommand cmd = new SqlCommand

In ASP.NET, can an HTTPHandler skip the Global.asax.cs Application_BeginRequest Handler? -

I'm running under IIS 6. I have found a http handler which requests a specific file extension (let's call detail. Foo). My Application_BeginRequest handler in Global.asax.cs performs an operation that I want to be in response to No .foo requests. I know that within the Application_BeginRequest handler, I can execute a conditional operation based on HttpContext.Current.Path (or something like that), but I would not want to be dirty describing Global.asax.cs The logic of the file, he should not need to know about it. The HttpHandler of the .foo file is always preferred to leave the application / BeginRequest handler. Thank you! I do not think this is possible. Before the IIS, the application_ BeginRequest event is removed, it also knows that HTTPHandler is going to take action on the request. Global.XX creation is out of the small amount that you are essentially getting is similar to the custom HTML module ... and by definition, all the requests passed th

c# - .NET generic types - finding most specific type -

Is there a good algorithm for determining "best" type to complete a request? For example, say I have the following classes: Public interface ISOMTIP & lt; T & gt; {} Public Square SomeTypeImpl & lt; T & gt;: ISometype & lt; T & gt; {} Public class is a special type of IPLP & lt; T & gt;: ISometype & lt; T & gt; Where T: ISpecificSpecifier {} Public Interface ISpecificSpecifier {} Suppose a caller wants the best implementation type for this interface, I can apply this kind of special method: / P> Public Type GetBestImplementationType (type genericParam) {try {return typeof (SomeSpecificTypeImpl & lt;>) MakeGenericType (genericParam); } Hold (Logic Expression) {} Return Type (Some TypeImpl <> MakeGenericType (General Param); } This implementation will work for this particular case, but I am more concerned about generalization where more than one possible specific implementation and many generic parameters

Visual Studio 2010 beta 2 known issues list? -

Does any Visual Studio 2010 manage to find a list of known issues for Beta 2? Readme redirects me to the Beta 1 list in the installation folder. I can assume that since the general public the release of beta 2 is Wednesday, and since beta 1 The doctor was available at the MS Download Center, probably Beta 2 redeme will not be available until Wednesday. But I'm just guessing; If I get more information, then update it. Edit Ah!

Safely casting long to int in Java -

What is the most idiomatic method in Java to ensure that is long to int Do not lose any information? This is my current implementation: Public Static Int Safe Longtoint (long) {int i = (int) l; If ((long) I! = L) {Setting new invalid records exception (L + "can not be inserted without changing its value."); } Came back; A new method was added with Java 8 To do this import static java.lang.Math.toIntExact; Long afu = 10 l; Int bar = toIntExact (foo); In case of overflow, an arithmetic will throw exceptions. See: Some other overflow safe methods have been added to Java 8. They end with exact . Example: Math.incrementExact (long) math. SubtractExact (tall, long) Math. TransitionXact (long) Math AngateAccact (long), Math. SubtractExact (int, int)

audio - More customizable flash mp3 player for website? -

I have noticed that the only MP3 Flash Player is the Google Audio widget which is limited in its presence. For my WordPress, I like players, I use 1 pixel out, which is great: < P> Anyway, I can use it without too much coding on a regular, non-wordpress, php page? In the three-step process you can add it to any webpage you like; There is not too much coding in my book. It's really great to do this, the tutorial can be found here: I hope it will be helpful.

actionscript 3 - Flash Event not being triggered on server -

I thought this problem could be due to some strange path issue; However, in this case the path is not relative. I have an AS3 based RSS aggregator. When I test movie clips, it works in Flash; However, when I put it on the server it does not work anymore ... I have "taLog.htmlText =" Start ";" And to test the same string where it stops, I think that the RSS loaded event is never called, which means that the feed is not loading, which is strange because it works fine, where? ... var rssLoader: URLLoader = new URLLoader (); Var rssURL: URLRequest = new URLRequest ("http://www.rssfeedblahblah.com"); RssLoader.addEventListener (Event.Complete, RSSloaded); RssLoader.load (rssURL); TaLog.htmlText = "Start"; Var rssXML: XML = new XML (); RssXML.ignoreWhitespace = True; Festival RSS Loaded (EVT: Event): Zero {taLog.htmlText = "Loaded"; RssXML = XML (rssLoader.data); TaLog.htmlText = rssXML; (Var item: string in rssxml.channel.itm) {li

c# - High, Fluctuating '% Time in JIT' on Precompiled ASP.NET Website -

एक 150 * .dll ASP.NET वेबसाइट के साथ precompiled (updatable), कुछ क्या हैं आवेदन के गर्म होने के बाद लंबे समय तक (सभी कार्यक्षमता तक पहुंचे) और ' % JIT में समय ' के कारण संभवतः बहुत अधिक (> 60%) और अस्थिरता और संभवतः बिना ऐप पुनरारंभ या फ़ाइल परिवर्तनों के कारण नए विधानसभाएं उत्पन्न हो सकती हैं? एक उम्मीद करेगा कि सभी असेंबलियों के लिए उत्पन्न मशीन कोड को उस ऐप-डोमेन की अवधि के लिए फिर से इस्तेमाल किया जाएगा । क्या कैश की गई मशीन-कोड की मात्रा के लिए एक सीमित आकार है? उसी परिदृश्यों में उसी विधानसभा को एक ही ऐप डोमेन में फिर से जेआईटी के लिए क्या करना होगा? या क्या यह जरूरी है कि नए विधानसभाएं पैदा हो रही हैं? क्या इस दबाव को प्रभावित करने वाले मेमोरी दबाव के प्रभाव जैसे कारकों को करना चाहिए? संदर्भ : < P> यह ऐसा कोई भी हो सकता है जो विधानसभा का उत्सर्जन करता है लिनक एक्सप्रेशंस कंपाइल या रेगुलर एक्सप्रेशन, जिन्हें सही ढंग से कैश नहीं किया जा रहा है।

Jquery Image Rotator with iPhone-like Page dots -

I need a jQuery image rotator that rotates 4 images (every 5 seconds or more fade fixes), but this IPhone page dots which are currently shown () How would you do this? Any help would be appreciated. To scroll the jQuery tool, see: You can use the container To set up only one image to show one time instead of five, and use the Navy plugin. Or make your own roll, what you really should do, that matches the indicator of the image shown in the list list and assign the "active" class ....

ruby - how to remove all [d+] except the last [d+]? -

मेरे पास एक स्ट्रिंग है जैसे / root / children [2] / header [1 ] / कुछ / कुछ [4] / टेबल / ट्र [1] / लिंक / ए / बी और / मूल / बच्चों [2] / हेडडर [1] / कुछ / कुछ [4] / टेबल / ट्र [2] मैं स्ट्रिंग कैसे पुन: उत्पन्न कर सकता हूं ताकि सभी / \ [\ d + \] / [ ? को छोड़कर / को हटा दिया जाता है, इसलिए मुझे इसका अंत होना चाहिए। / रूट / बच्चों / हेडर / कुछ / कुछ / टेबल / ट्र [1] / लिंक / ए / बी और / मूल / बच्चों / हेडर / कुछ / कुछ / टेबल / ट्र [2] आपके लिए कोई छोर नहीं है । एक लेटरहाइड अटेटिशन (? = ...) का प्रयोग करें: s.gsub (/ \ [\ d + \] (? =। * \ [) /, "") बहुत उपयोगी लुकअराउंड ऑपरेटरों का एक उचित स्पष्टीकरण है

animation - Animate grass with CoreAnimation (on the iPhone) -

How can I change the blades of grass, which waving in the air? Stephen This is probably not the answer you were looking for, but You can make a port on quartz 2d.

c# - How to execute a WiX custom action DLL file with dependencies -

I would like to create a customaction C # DLL file that relies on a third-party DLL (in this specific case, This is MySql.Data.dll ). I have the C # custom action DLL file that works with the YX slice below. I'm just trying to explain how to add dependency safely to a custom verb. Note: For this application running I do not really need this third-party DLL file file. & lt; Binary ID = "MyCustomAction.dll" SourceFile = "MyCustomAction.CA.dll" / & gt; & Lt; Custom Action ID = "FixedUp Configisfarm" returns = "Check" /> & Lt; InstallExecuteSequence & gt; & Lt; Custom action = 'fix up configoformic' = 'InstallFiles' & gt; Not installed & lt; / Custom & gt; & Lt; / InstallExecuteSequence & gt; Do I need to install a third-party DLL file ( MySql.Data.dll ) to run a custom action? Can I just add another binary tag with the third party DLL file? A custom action assembly in

iphone - resignFirstResponder when tapping UITableView? -

I have a UITableView with two custom cells and each one of them has a UTitisfield inside it I tried to add the UIButton at the top of the UITableView and on the first rear pointer to conform it to it means that you tap anywhere Not to go - not even on UITextFields to enter text. How do I create it, if I tap outside those two UITextFields , then I can call resignFirstResponder, then the user can go back to other cells? thanks I asked a similar and what I posted actually you hitTest : WithEvent can override: In your custom UITableViewCell which lets you find out that when you have a touch in your cell or in another cell that is in the table view, I have provided an example HitTest: Method which Duplicate the functionality of the original hitTest: and you can add it that you need it Is there. You can add your resignation first responder within the hit test function like I did or forwarded it.

Why should I use Apache C++ Standard Library rather than any other STL implementation along with Boost? -

What benefit do I get from this that I do not get the STL implementation coming from compiler and boost libraries? The most typical feature of this implementation of the C ++ standard library is its portability for a large number of C ++ compilers, operating systems and hardware architectures. Looks like if you value extreme portability, then it is for you if you do not do it, most everyone is the default for the default implementation of their compiler, therefore If you ever have trouble, the community will be bigger if you do not run in the implementation issues then I do not know why there should be a lot of difference in it. I am usually waved for this opinion, but I like the idea of ​​being a company that I can do to fix problems, dip and bugs in my developer (and I) interns. Not enough to fix (or time is not)

java - Eclipse classpath does not update changes in Project Properties -

मैं ईक्लीपस 3.4.1 बिल्ड एम 20080 9 11-1700 का उपयोग कर रहा हूं मैंने क्लासपाथ डाइरेक्टरीज़ को बदलने की कोशिश की है जार और प्रोजेक्ट गुण -> जावा बिल्ड पथ -> पुस्तकालय टैब या स्रोत टैब का प्रयोग करके स्रोत निर्देशिका के लिए जब मैं ओके बटन पर क्लिक करता हूं और फिर गुण पृष्ठ पर लौटता हूं, तो मेरे परिवर्तन लागू नहीं होते थे। मुझे मैन्युअल रूप से ग्रहण ".classpath" प्रोजेक्ट सेटिंग्स फ़ाइल बदलकर आसपास के काम पर सहारा लेना होगा। कोई भी विचार? स्रोत नियंत्रण में क्लासपैथ फ़ाइल की जाँच की जा रही है? यदि आपने इसे चेक आउट नहीं किया है तो आप इसे बदल नहीं पाएंगे।

c# - Complex class declaration confusing forms designer? -

मेरे पास एक वर्ग को घोषित किया गया है: सार्वजनिक वर्ग फू & lt; T & gt; : पैनल जहां टी: नियंत्रण, IFooNode, new () {...} मैंने इसे परीक्षण करने के लिए हाथ से जोड़ा, लेकिन मुझे अंततः कुछ ऐसी चीज की आवश्यकता होगी जो कि फॉर्म में प्रदर्शित हो सकती है डिजाइनर। फॉर्म डिज़ाइनर को यह पसंद नहीं है, यह कहते हैं: प्रकार 'FooTestNameSpace.Foo' नहीं मिला कृपया सुनिश्चित करें कि इस प्रकार के असेंबली को संदर्भित किया गया है। यदि यह प्रकार आपके विकास परियोजना का एक हिस्सा है, तो सुनिश्चित करें कि परियोजना सफलतापूर्वक बनाया गया है। दिलचस्प है, मैं भी एक चेतावनी मिलती है जो समान होती है, लेकिन सामान्य प्रकार से मैं अपने चर की घोषणा में उपयोग किया। चेतावनी है: प्रकार 'FooTestNameSpace.Foo & lt; FooTestNameSpace.FooNodeType & gt;' नहीं मिल सका। कृपया सुनिश्चित करें कि इस प्रकार के असेंबली को संदर्भित किया गया है। यदि यह प्रकार आपके विकास परियोजना का एक हिस्सा है, तो सुनिश्चित करें कि प्रोजेक्ट को सफलतापूर्वक बनाया गया है। मेरे सरल फॉर्म 1 वर्ग में घोषणा है

VB.NET - Load a List of Values from a Text File -

मेरे पास एक पाठ फ़ाइल है जो निम्न की तरह है: [group1] value1 value2 value3 [group2] value1 value2 [group3] value3 value 4 आदि मैं क्या करने में सक्षम होना चाहता हूँ, लोड हो रहा है समूह मूल्य में पारित किए जाने के आधार पर एक सरणी (या सूची?) में मान जैसे। यदि मैं "समूह 2" में उत्तीर्ण हूं, तो वह "मान 1" और "मान 2" की एक सूची वापस कर देगा। इसके अलावा ये मान अक्सर (आमतौर पर हर 6 महीने या तो) बदलते नहीं हैं, इसलिए आपकी मदद के लिए धन्यवाद। Leddo Div> यह घर का काम प्रश्न है? फ़ाइल को पढ़ने के लिए स्ट्रीम रीडर वर्ग का उपयोग करें (आपको इसकी आवश्यकता होगी शायद ओन्डऑफस्ट्रीम और रीडलाइन ()) का उपयोग करें और स्ट्रिंग हेरफेर के लिए स्ट्रिंग क्लास का उपयोग करें (शायद .स्ट्राट्स विथ (), एसबस्ट्रिंग () और .स्पलिट ()। उन्हें स्टोर करने का बेहतर तरीका आपके पास कितने समूह होंगे, कितने मूल्य होंगे, कितनी बार डेटा का उपयोग किया जा सकता है, आदि। संभव है कि प्रश्न का मूल शब्द हमें सुनने के बाद क्या किया गया था, इसके बारे में हमें बेहतर सुराग

c# - Storing MemoryStream in Cache -

I have come across this code in one of my code, in which a static function to return a memorystream from a file , Which is then stored in the cache. Now there is a constructor in the same class that allows MemoryStream to be stored and used later in a private variable. So it looks like this: Private MemoryStream Memorystream; Public domain (memorystream ms) {memoryStream = ms; } Public stable memorystream filematometer (string filepath) {memorystream memorystream = new memorystream (); ReadFileTememoryStream (file path, memorystream); Return memorystream; } Usage: context.cache.indert ("test", countrylookup.fileToMemory (Configuration Settings. AppSettings ["test"]), New Cash Dependency (SomeFileName)); and then: country area cl = new country content ((memory memorandum) cache. Get ("test"))); So I was wondering who smashstream should be settled and when? Ideally CountryLookup should implement IDisposable. Should I also take care of

android - Can't receive broadcasts for PACKAGE intents -

I am trying to register a broadcast receiver to receive broadcast events for package events. The code in the manifest file and my receiver is low. The log statement is never made, but I can clearly see the same broadcast flight for "homeloaders" (launcher) debug statement. What am I missing? Public class intent listener broadcasts Broadcast receivers {@ Override Public Records on Recieve (Context Reference, Intent of Intent) {// Tudo Auto-Generated Method, Stub Log.i ("Int. Listener: ", Intent.getAction ()); }} & Lt; Receiver Android: name = "IntentListener" Android: enabled = "true" android: exported = "true" & gt; & Lt; Intent-Filter & gt; & Lt; Data Android: scheme = "package" & gt; & Lt; / Data & gt; & Lt; Action Android: name = "android.intent.action.PACKAGE_ADDED" & gt; & Lt; / Action> & Lt; Action Android: name = "android.intent.action.PACKAGE_ADDE

sql - Opposite of INTERSECT in Oracle -

I have two choices and I want to add them in such a way that unique rows can be changed in both the selections. is. I know that I can do something like this: (Selection 1 union selection 2) minute (selection 1 intersection selection 2) East > But I would like to avoid it. Both the select1 and select2 have 20 lines, so this method will be really vague and difficult to maintain. Post text "itemprop =" text "> If you do not return any duplicate on both select1 and select2 Can: SELECT * FROM (select1 UNION ALL select2) a.col1, a.col2, by a group ... Howing count (*) = 1

How to convert Unicode NCR form to its original form in PHP? -

To avoid "monster characters", I want to store Unicode NCR form in non-English letters in the database (MySQL) Choose for However, the PDF plugin I use (FPDF) does not accept the Unicode NCR form as the correct format; It directly displays the data: and # 36889; & Amp; # 20491; & Amp; # 19968; & # 20491; & Amp; # 20363; & Amp; # 23376; But I want to show it: 這個 一個 例子 Is there any way to convert Unicode NCR form to its original form? ? ps is the meaning of the sentence "This is an example" in traditional Chinese. p.s I know the NCR destroys the farm's storage space, but it is the safest way to store non-English letters. correct me if I am wrong. Thank you. PHP is a simple solution using the mbstring extension. convert any decimal NCR to Unicode characters string = "& # 36889; & # 20491; & # 19968; & amp; # 20491; & amp; ; # 20363; & # 23,376; "; $ Output = preg_replace_callback ('/