Posts

Showing posts from June, 2010

jsf - Netbeans, jsp:include -

I am using JSF in NetBusiness I just want to add one page to another page. But whichever I tried, and when I run the main page, I do not get any errors, but I can not see my included page in a main page. Why? My main page is: & lt; Jsp: root version = "2.1" xmlns: f = "http://java.sun.com/jsf / core" xmlns: h = "http://java.sun.com/jsf/html" xmlns: jsp = "Http://java.sun.com/JSP/Page" xmlns: webuijsf = "http: // www.sun.com/webui/webuijsf"> & Lt; Jsp: directive.page contentType = "text / html; charset = UTF-8" page encoding = "UTF-8" /> & Lt; F: View & gt; & Lt; Webuijsf: page id = "page 1" & gt; & Lt; Webuijsf: html id = "html1" & gt; & Lt; Webuijsf: head id = "head1" & gt; & Lt; Webuijsf: link id = "link1" url = "/ css / front.css" /> & Lt; Webuijsf: script id = "script1" url = "/ scrip

html - FF displaying unwanted border -

I have a div element that looks fine in Chrome but Firefox has a limit to its surroundings for some reason Have decided. Share CSS here: #cpanel {width: 320px; Height: 75px; Status: Completed; // left: 28%; // Top: 32%; Z-index: 9996; // visibility: hidden; display none; } .box {z-index: 9997; // range: 1px solid # 000; Width: 75px; Height: 75px; Swim left; Margin-left: 2px ;; / * Display: Block; * / Background-color: # 000; -Moziness: 0.7; Opacity: .70; Filters: alpha (opacity = 70); } .box .text {width: 75px; Text align: center; White color; Status: Completed; // Top: 40%; Z-index: 99 9 8 9; } #Cpanel.on {visibility: visible; } The cpanel is the outermost div. The box divs are small boxes inside the cpanel div and these boxes are 1px white boundaries in any way that are not present in chrome. Thank you for removing those limits. Use the firebug plugin to view CSS and see where the limit is coming from.

How can I programmatically open and save a PowerPoint presentation as HTML/JPEG in C# or Perl? -

I'm looking for a code snippet that just does this, primarily in C # or Perl. I hope that this is not a big thing;) In the following C: \ presentation1 will open I PPT and slide the slide to C: \ presentation1 \ slide1.jpg etc. If you have an interop assembly If you need to get it, then it is available under 'Tools' in the office install program, or you can download it from it if you have a new version of Office, Should be able to find links for other versions. Using Microsoft.Office.Core; Using PowerPoint = Microsoft.Office.Interop.PowerPoint; Namespace PPInterop {class program {static zero main (string [] ARG) {var app = new PowerPoint.Application (); Var pres = app.Presentations; Var file = pres.Open (@ "C: \ Presentation 1.ppt", MsoTriState.MsoTrue, MsoTriState.MsoTrue, MsoTriState.msoFalse); File.SaveCopyAs (@ "C: \ presentation1.jpg", Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType.ppSaveAsJPG, MsoTriState.msoTrue); Edit}

2D non-polynomial function fitting from the command line -

I have just written a simple Unix command line utility which can be implemented very efficiently. I can measure its performance by running it on several inputs and measuring it while taking it. This will generate a set of pairs of numbers, where S is the size of the input and the processing time. In order to determine the performance characteristics of my utility, I have to fit the function through these data points. I can do it manually, but I like to be lazy and give me a facility. Is such a facility present? Its input is the sequence of pairs of numbers. Its output is a formula that indicates that the second number depends on the first one as a function, and additionally an error solution. One step on the way is for a polynomial which only does for polynomials. This, but it did not produce a ready-made solution. The next step is to expand the utility to try non-polynomial terms: negative-degree polynomial (as in y = 1 / x) and logarithmic conditions (as in y = x log x )

SQL - Check table for new rows? -

मेरे पास दो टेबल हैं, उदाहरण के लिए: तालिका A तालिका बी ==== === ======= नाम | रंग का नाम | रंग ---------------------- ---------------------- मिकी माउस | लाल मिकी माउस | लाल डोनाल्ड डक | हरी डोनाल्ड डक | ब्लू डोनाल्ड डक | नीली मिन्नी | लाल नासमझ | ब्लैक मिन्नी | लाल तालिका ए मेरी स्रोत तालिका है और बी गंतव्य तालिका है अब मुझे एक क्वेरी की आवश्यकता है जो तालिका में सभी अलग-अलग (अतिरिक्त) पंक्तियों को पाता है। अ सार तालिका B उन पंक्तियों के साथ अद्यतन किया जा सकता है। इसलिए मुझे एक क्वेरी की आवश्यकता है जो मुझे तालिका ए से निम्न पंक्तियां पाती है: नाम | रंग ---------------------- डोनाल्ड डक | ग्रीन नासमझ | काला ऐसी एक क्वेरी के लिए एक अच्छा तरीका क्या है? यह जितना संभव हो उतना कुशल होना चाहिए (बहुत से जुड़ने से बचें) किसी भी मदद के लिए धन्यवाद! मैं किसी मौजूदा संरचना का उपयोग नहीं करूंगा। < कोड> सेलेक्ट नाम, रंग से जहां किसी तालिका में मौजूद नहीं है (जहां से टेबलबैक का चयन करें TableA.Name = TableB.Name और TableA.Color = TableB.Color)

asp.net mvc - Populating Html.Dropdownlist -

I am trying to pass in the array in this dropdown list in my partial view: & lt;% Html.DropDownList (Model.Name, Model.Options); & Gt%; The options are separate courses from commas. It is expected of an IEnumerable so I'm not sure what is missing here is not accepting the array. You can try this: & lt;% Html.DropDownList (Model.Name, New SelectList (Model.Options)); & Gt%;

asp classic - What is the function of the "With" keyword -

Considering the code given below, what does the "with" keyword do? I am not very familiar about this, and I am not sure of its purpose. This is a short story ... anything together ... with the block will be something As if something has been attached in front of it. Ex: with the request. The form ["xxx"] = "yyy" ["aaa"] = "BBB" and end is equivalent to: request. Form ["xxx"] = "yyy" request Form ["AAA"] = "BBB"

How to reset my C# program (Windows mobile)? -

How can I reset my C # program? I want my program to start again In Windows Mobile Thank you in advance One way around the CeRunAppAtTime API is the use of P / invoke (or the current cover), to launch it in two seconds Schedule apps, and exit. SDF (www.opennetcf.org/sdf/) is a cover for this API. Peter - Peter Foot Devices Application Development MVP www.peterfoot.net | Www.inthehand.com from Internet Archive (). (I figured out why url parser hates that link) Look at MSDN. Unlike Zanoni's solution, it will not be like this in two instances of your application running on it. Although it is very crooked.

How can I grab multiple lines after a matching line in Perl? -

I am parsing a large file ending with Pearl line-by-line (\ n), but when I'm certain Say the keyword, "target", I have to catch all the rows between the target and the next completely empty line. Therefore, a section of the file has been given: line 1 line 3 - line 4 target - line 5 hold this line - line 6 Hold this line \ n It should be: Line 2 - Line 5 Hold this line - Line 6 Hold this line Reason I'm having trouble, I'm already going through a file-line-by-line; How can I differentiate through the parsing process? You want something like this: my @ ring; While (& lt; FILE & gt;) {if (/ TARGET /) {Push @ impaired, $ _; While (& lt; FILE & gt;) {Final if / ^ $ /; Push @ bread, $ _; }}}

stylesheet - Force CSS Recache -

Is there any way to set or apply a css file to cache again if the user is an old Closing file? There is a certain way to ensure that everyone reloads their new file so that their Could change URL. In fact, a proper way to do this without changing its name is to attack a random string: & lt; Link rel = 'stylesheet' href = '/ mystyle.css? Random = 87365835 '& gt; This is using a sledgehammer to circumvent a play, and except for all the HTTP mechanisms present, it will work completely everywhere, while Other techniques are all warnings. Edit: @ Jitter: You do not have to change the URL automatically for each request - you can base it on the timestamp of the CSS file, or even You can change it by hand. You want to make sure that the CSS is reloaded.

oop - Does C's FILE have an object-oriented interface? -

क्या मानक C फ़ंक्शंस fopen , आदि के माध्यम से उपयोग किया जाता है FILE प्रकार एक ऑब्जेक्ट-ओरिएंटेड इंटरफ़ेस है? मैं एक पूर्ण जवाब देने के बजाय तर्क के साथ विचारों की तलाश कर रहा हूं, क्योंकि ओ ओ की परिभाषा के अनुसार आप कौन पूछते हैं। नीचे दिए गए जस्ट जेफ की टिप्पणी के जवाब में, मैं नहीं पूछ रहा हूं कि सी ओ ओ भाषा है और न ही सी (आसानी से या नहीं) ओओ प्रोग्रामिंग की अनुमति देता है। । (क्या यह एक अलग मुद्दा नहीं है?) शैक्षणिक रूप से बोलना, निश्चित रूप से वास्तविक फ़ाइलें < / Em> वस्तुओं हैं उनके गुण हैं और आप उन पर कार्रवाई कर सकते हैं। इसका अर्थ यह नहीं है कि FILE एक वर्ग है, बस कह, ओ ओ-नेस की डिग्री के बारे में सोचने के लिए। कहने की कोशिश में परेशानी कि stdio FILE इंटरफ़ेस को ओओ के रूप में उत्तीर्ण किया जाता है, हालांकि, यह है कि stdio FILE इंटरफ़ेस फ़ाइल की 'ऑब्जेक्ट' को बहुत अच्छी तरह से प्रदर्शित नहीं करता है। आप ओ ओ के रास्ते में सादे पुराने सी के तहत फाइलें इस्तेमाल कर सकते हैं, लेकिन निश्चित तौर पर आप जावा या सी ++ द्वारा दिए गए वाक्यात्मक स्प

prototype - Better way to access private members in Javascript -

After reading a bit on javascript, I created a class from Variable style Var Some_Class = function () {this.public_method = function () {}; (Function () {// Constructor}). Call (this)} to var Some_Class = function () {(function () However, I think that this is a good practice, but I am no longer allowed to access private methods in a public way. var Some_Class = function () {Var private_member = 'whatever'; (Function () {// constructor}). Call (this)} Some_Class.prototype.public_method = function () {return private_mail; // not possible }; After reading through an article (Closer-built Constructor), I came out with it var Some_Class = function () {var private_member = 'Whatever', private_machine = function (_some_value) {// private method implementation}; If (! Arguments.callee.prototype.public_method) {arguments.callee.prototype.public_method = function () {private_method.call (this, private_method); }; } (Function () {// Constructor}). Call (t

silverlight 3.0 - Populate DataFormComboBoxField from a list -

Do anyone know how to populate a DataFormComboBoxField from a regular list in SilverFight 3 Beta? Such a meaningful document or example is not online anywhere. Thanks Steve Actually this is not as easy as Private zero dfEmailForm_Loaded (Object Sender, RoutedEventArgs e) {DataFormComboBoxField dfc = new DataFormComboBoxField (); Dfc.ItemsSource = New list & lt; String & gt; () {"Type A", "Type B"}; Dfc.ItemsSource = lstEmailType; } But in the loaded area for the data format it has.

How to get a Camera Preview in android? -

Everyone knows about anyone's camera API in Android. When I used this API, it's a black and white grid and a square is running on it. Nobody knows how to get a real-time camera preview, help me with some code. See also You are calling the last three lines very quickly . Before you call SetPreviewDisplay (), you have to wait for the surface to be ready and you have to wait for the surface to be changed (before changing the page). What do you want.

How to find out the mobile model using WAP page -

I am planning to create a WAP page to provide a software. Now I have to find out which mobile phone model logs in my webpage using it so that I can redirect it to the appropriate download link. What this opera does on their opera mini site when you log in, your model is revealed and sends you to the link How can I add it to my site? I am There are several solutions to determine the mobile device based on user agent request. (Some solutions also use other factors.) Try looking at it: Which techniques do you make for your pages Which is the best solution for you, which will affect the above too.

visual c++ - Audio capture to a file using DirectShow from a mic (Any alternative to 'AudioRecorder WAV Dest' ) -

संदर्भ: http www codeproject com / KB / audio-video / cacsave.aspx? Msg = 3094764 # xx3094764xx मुझे 'ऑडियोरेकॉर्डर डब्लूएवी डेस्ट' जैसी कुछ भी नहीं मिल रहा है इसके लिए कोई विकल्प है जैसे कि मेरे पीसी ग्राफ़ एडिट इन दिखाता है: (भाग 1 एन ने अच्छी तरह से काम किया है।) WM भाषण एनकोडर DMO, WMAudio Encoder DMO, IAC2, आईएमए ADPCM, पीसीएम, Microsoft ADPCM, ACELP.net, डीएसपी समूह ट्रूस्पीच (टीएम), विंडोज मीडिया ऑडियो वी 1, विंडोज मीडिया ऑडियो वी 2, जीएसएम 6.10, माइक्रोसॉफ्ट जी 723.1, सीसीआईटीटी ए-लॉ, सीसीआईटीटी यू-लॉ, एमपीईजी लेयर -3, रियलटेक एचडी ऑडियो उत्पादन, डिफ़ॉल्ट डायरेक्टसाउंड डिवाइस, डिफ़ॉल्ट WaveOut डिवाइस, डायरेक्टसाउंड: Realtek HD ऑडियो आउटपुट, WMAudio डिकोडर DMO, WMSpeech डिकोडर DMO, Mpeg4s डिकोडर DMO, WMV स्क्रीन विकोडक DMO, WMVideo डिकोडर DMO, Mpeg43 डिकोडर DMO, MPEG4 डिकोडर DMO, WMT MuxDeMux फ़िल्टर, पूर्ण स्क्रीन प्रतिपादक, डीवी म्युक्सर, रंग अंतरिक्ष कनवर्टर, WM ASF रीडर, AVI स्प्लिटर, WMT AudioAnalyzer, वीजीए 16 रंग Ditherer, Indeo® वीडियो 5.10 संपीड़न फ़िल्

ADO Batch Update in Access VBA -

I'm trying to use batch update in VBA. When I update after every operation, my code works fine, but when I try to work on multiple lines fails I get exceptions "run -Time '- + 2147217887 (80040e21)' Error: .. Multiple steps OLE DB generates operational errors, then available, check each OLE DB status value There was no work done. " my code is rs.Open "dbrammDump", CurrentProject.Connection, _ adOpenKeyset, adLockBatc HOptimistic rowsDel = 0 Do rs.RecordCount up to & lt; 1 rs.MoveFirst rs.Delete rowsDel = rowsDel + 1 loop rs.UpdateBatch Any ideas what's the issue? I think the problem is that you need to explicitly use a client-side cursor I think you are using a server-side cursor indirectly. I personally like to set the properties of the recordset object because I think that (and therefore debug) is easy to read, by using overloaded to open Method Apart from this, you can use the RecordCount property for your loop eg.

Killing linux socket from shell (gentoo amd64) -

Friends, what's the best way to kill a connection from a shell in Linux? It seems that there are 'TCPKil' and 'cutter' tools available, however, on my 'AMD64 TCPKil' the 'AMD64' is disabled by keyword and cutter, when used , Then an error "openning / proc / net / ip_conntrack: no such file or directory". Thank you. (containing TCPKil) has been marked as "only" ~ MD 64, so you You may want to give it a shot in any way. (Although the programming question is not at all ...)

c# - Strange Timeout WebException in HTTP Get using WebClient -

I have a multi-threaded application) (C # which multiple HTTP GET Yuri does. Suddenly after thousands of requests, I get timeout web expption but the destination server is fine if I do a test using the browser. The code is: get public static string (string yuri) {string responseData = string.Empty; (Using WebClient wc = new WebClient ()) {responseData = wc.DownloadString (uri); } Return feedback data; } I think this connection problem or similar error is disposed of any body has the same problem? Thx in advance, PS I have also used HttpWebResponse but I get the same error. The PS OS is Windows Server 2003 so I do not have that connection limit. I've also tried with this code and I get the same error public static Strait Get2 (string Yuri) {string response Data = string .Empty; WebRequest request = WebRequest.Create (Yuri) as HttpWebRequest; request. Method = "received"; request. Time = 35000; (HttpWebResponse response = (HttpWebResponse) request.G

c# - Paste contents to TextBox in ANSI Format -

How do I create text box content in ANSI format when I paste in C #? .NET uses internally everywhere for Unicode string, including for form control. Includes. So I think that you are the real question, by looking at a byte-array, how can I convert that byte array to Unicode using the desired source encoding (some flavor "ANSI")? System.Text. Here are useful sections in encoding.

swing - Are there any built-in methods in Java to increase Font size? -

Does any inherent methods in Java increase the font size? The class allows you to specify the font size. So, to do a font, you do something like this: font f = new font ("serif", font.plline, fontSize); fontSize parameter will determine the size of your font . The best way to actually get the same effect on the size of an existing font object is to create a new almost identical deriveFont (size) method to use < Code> font it has a different shape. font big font = existing font. Default font (large number);

c# - Override only Get accessor -

मुझे एक अमूर्त वर्ग मिला: सार वर्ग कक्षाबेस {सार्वजनिक अमूर्त स्ट्रिंग टेस्ट {get ; }} मुझे इसे प्राप्त करना है और जिस तरह से एक सेट accesor जोड़ना चाहते हैं वर्ग ClassDerive: कक्षाबेस {string _s; सार्वजनिक ओवरराइड स्ट्रिंग टेस्ट {get {return_s; } सेट {_s = मान; }}} मैं ऐसा नहीं कर सकता क्योंकि मैं सेट ओवरराइड नहीं कर सकता वर्ग ClassDerive2: कक्षाबेस {string _s; सार्वजनिक स्ट्रिंग टेस्ट {ओवरराइड प्राप्त करें {वापसी _s; } सेट {_s = मान; }}} सिंटैक्स त्रुटि वर्ग वर्गड्राइव 3: कक्षाबेस {string _s; सार्वजनिक ओवरराइड स्ट्रिंग क्लासबेज़। टेस्ट {प्राप्त {वापस _ एस; }} सार्वजनिक स्ट्रिंग टेस्ट {सेट {_s = value; }}} सिंटैक्स त्रुटि कोई आइडिया ??? thx यदि पहले आप एक प्रकार में केवल पढ़ने के लिए एक संपत्ति को परिभाषित कर चुके हैं, तो आप बाद में इसे किसी व्युत्पन्न वर्ग में पढ़ने / लिखने की संपत्ति में नहीं बदल सकते हैं। यह बस कैसे है .नेट काम करता है, और बदला नहीं जा सकता। यदि, दूसरी ओर, आप केवल पढ़ने के लिए एक संपत्ति के साथ इंटरफ़ेस परिभाषित करते हैं, तो

I found a PHP script in a GIF file -

Is it possible for a PHP script to be inside a GIF file? I found one when I opened a .gif file in Notepad ++. Actually, there are some things that are possible (and usually used for things like hit counters Consider this: & lt; Img src = "myPicture.php" /> myPicture.php can look like this: So, your PHP script's Outlook is not ASCII text (or HTML), it's a binary of a .png file. Thus the header () is set to point to this, and the imagepang () function actually produces raw PNG image data. (For example, has been raised). Another option, which others have mentioned, includes a "normal" image tag: Notice ends in ".png" In this situation, the web server must be configured so that it not only parsed .php files in executable PHP code, Rather, the PNG files can also be. Your code will look the same, but it will be wrapped in "myPicture.png" instead of ".php"

How to replace text in a PowerPoint (.ppt) document? -

What are the solutions? Do I know the only solution to replace files with Apache POI in Word (.doc)? Are there possibilities to convert images, layouts, text-styles into .doc and .ppt documents? Platform: MS Office 2003 "post-text" itemprop = "text"> your platform What are the limitations? Obviously, the way you will participate in at least. Microsoft's own COM APIs are quite powerful and documented. I recommend using them if a) you are not running in a server (many user, multiverse) environment; B) You can have a proper version of powerpoint installed on the production machine; And C) You can code against a COM object model.

asp.net - How to remove AspxAutoDetectCookieSupport -

मेरी साइट पर कई यूआरएल www.mysite.com/display.aspx?ID=128 उपयोगकर्ताओं को www.mysite.com/Display.aspx?ID=128&AspxAutoDetectCookieSupport=1 के रूप में उपयोगकर्ताओं को प्रदर्शित किया जाता है। मैं कैसे AspxAutoDetectCookieSupport को निकाल सकता हूँ। मैं समझता हूं कि इसे web.config में कुकी के साथ कुछ करना है, लेकिन कहां? और क्या होगा अगर मैं इसे निकाल दूंगा? कैसे निकालें? इसे हटाने के लिए, सत्र की कुकसीस संपत्ति बदलें अपने web.config में झूठे उदाहरण के लिए। & lt; sessionState मोड = "इनप्राक" कुकीज = "झूठी" समय समाप्त = "20" / & gt; जब cookieless को स्वतः खोजा पर सेट किया गया है, तो फ्रेमवर्क एस्प्क्सऑटोडेटाकुकी समर्थनपोर्ट स्ट्रिंग उत्पन्न करता है, यह निर्धारित करने के लिए कि क्लाइंट को कुकी समर्थन है या नहीं। अगर क्लाइंट में कुकीज़ सक्षम नहीं होती है, तो एएसपी.नेट यूआरएल में सीधे उपयोगकर्ता यूजर आईडी जमा करेगा। एएसपी.नेट कुकसीस सत्र समर्थन का उपयोग कर एक एपिसोड यह संभावित रूप से सत्र अपहरण के लिए आपके आवेदन क

java - Error trying to use import.jxl... statements -

I am working on a program using Eclipse Galileo and JDK 6. The problem is that when I use any import.jxl. The statement gives me an error in eclipse and it will not compile then the statement like "import jxl.write.Label;" Give me an error I do not understand why this is. It says that he does not like the JSL statement if I use any import.java ... or import.javax ... then they work fine any kind of help is highly appreciated. Thank you. In your Project Properties dialog (Project menu / Properties), under the Java Build Path, select The 'Library' tab. There you have the option to include jars or class files from other projects which are open from other places or jar and class files on your file system. Once you find your jxl.jar and add it, The library should be displayed in the tree on the tab.

Migrating an Access Database into SharePoint 2007 -

For my surprise and happiness, I read that an adminsitrator can import an Access 2007 database (almost directly) into a SharePoint site Automatically, the database is changed into lists and ideas thrown for good measurement with some table lookup. With access 2007 on client machines, even forms can not be used and still. For me ... it feels good to be true. Has anyone actually eaten it? With all this good news, where it is bad stuff and damage. Depending on the size of the database, will it not be that how does "gum up work" work in the Sharpoint database? Source: SharePoint has no relevance of integrity because it is the main reason I can not see it usable for any type of database operation, because without the RI, you have got a collection of lists and there is no database. This does not mean that SharePoint is not good for some things, but access Rather than fully databaseed / jet database One of the obvious things is that it is viable for not .

c# - ASP.NET MVC ambiguous action methods -

I have two verb methods that are disputed. In fact, I want to be able to use two different routes of the same scene, either by the item's ID or by the name of the item and its parents (only one of the different parents of the objects may name). item / {action} / ParentName / itemName item / {action} / 1234- A search term can be used to filter the list. 4321-1234-4321 These are my verb methods (here are remove action methods too ...) / / Method # 1 Assign a Public Action Rialit (string parentName, string itemName) {// logic here to identify the item ... string itemId = ...; Return Redirect Action ("Assign", "Item", New {itemId}); } // Method # 2 Assign Public Action Result (String IITID, String SearchTerm, Int page) {...} And there are routes ... routes MapRoute ("AssignRemove", "item / {action} / {itemId}", new {controller = "item"}); Routes.MapRoute ("AssignRemovePretty", "item / {action} / {pa

winforms - How to configure .NET's WebBrowser to obey the current language settings -

I have a report system for printing and printing. Windows .form. I'm using a webbrowser object. Unfortunately the page setup dialog is not following the language settings on the user's computer and all the text is coming in English. .NET dialog is coming in the correct language to open and save the file but there is no print / page setup dialog for the web browser. You can use threading to set a culture for a specific process. System threading. Thread.CurrentTrade. Current UK Agriculture = New CultureInfo ("N-US")

xcode - iPhone SDK: Setting up an animation to create a blinking effect -

In an iPhone application I am developing, I have an image view that displays the eyes and I want to wink them. I am a clearly blinking one random thing, it can not be regular and will keep repeating like a UIImageView animation will be repetitive. How do I set up an animation that displays a frame (blinking eyes), then sets back to the original image and does it in random intervals? You can use an NSTimer. The timer's representative method has changed the image of the eye to a blink image, and then set the timer's fire date at a random time. Once the anestimer has been removed, use this code to set it at a random time: [your timer setfidet: [date of the NSDT date time interval: now: rand ()% maxTimeBetweenBlinks]] ; With the right prices, instead of replacing your timer and maxtimebubbleinblocks, obviously - you probably have SRend (time) (zero) generator

c# - Persisting string value in .net Windows Form -

I think what is the easiest way to continue with a string value, once the form and program is closed I want to Use it again later when they open the program and form it later. In my case I am using a FolderBrowserDialog and I am saving the directory that the user has chosen. I know that I file. I can use IO, but just thinking that everyone thinks that the easiest / most efficient / minimal lines thanks! Good and easy to use. Right click on your project and select "Properties" Visit the "Settings" tab (click to link to create a new file if none Access your settings from the code: Enter your new settings with a name and default value (i.e. "MySaved Directory") - Private string folder; Private Zero Form 1_load (Object Sender, EventAgds E) {this.folder = Properties.Settings.Default.MySavedDirectory; } Private Zero Form 1_formcling (Object Sender, FormClosingEventArgs e) {properties.Settings.Default.MySavedDirectory = this.folder;

iphone OS 3 Video api -

Do anybody know that it is possible to open a new camera / video API for the new 3G in the app, similarly 2.2. 1 in the camera API? Recording functions and all? But in the same token, is it possible to edit and edit the video that you recorded? All the best Yes there is a view controller to do this Types are available, you can ask for it. You assign a representative and will ask you to tell that when you have selected photo or video with the data. The video has a 10-minute hard limit.

jQuery Fancybox & Image Frame Size Control -

I know that I can use the width and framesheet option to control the frame size of inline and iFrame content , But what can I do to control the frame size manually while displaying images? My problem is that I have images which I want to display in a fancy box which are extremely horizontal and are not more vertical; Fancybox is the scales so that the lightbox is really wide and not too long, which means that you can not really see this image at all. What I like is that the image scrolls light box horizontally. (And no, I can not convert images.) Any ideas? I just hacking FancyBox and adding another option which I want This is the essence: if (opts.imgManSize) {_set_content ('& lt; img alt = "" id = "fancy_img" src = "' + imagePreloader.src + '" / & Gt; ', opts.imgWidth, imagePreloader.height + 20); } Other {_set_content ('& lt; img alt = "" id = "fancy_img" src = "' + image u

asp.net mvc - Dynamic Help for MVC in Visual Studio? -

I wonder if it would be possible to download the MSDN MVC document, so I used it with Visual Studio 2008 to be dynamic Can I help (which is very easy) .. does anyone know of such a thing? See my answers Same question:

What are the major differences between Sql Server 2005 and Sql Server 2008? -

संभव डुप्लिकेट: एसक्यूएल सर्वर 2005 और एसक्यूएल सर्वर 2008 के बीच प्रमुख अंतर क्या हैं? मैं एसक्यूएल सर्वर 2008 में निवेश करने के लिए अपने संगठन को कैसे समझ सकता हूं? मेरे लिए, एक प्रमुख पहलू यह है कि मैं मैं आपके कारणों को जानना चाहता हूं। धन्यवाद। SQL सर्वर 2008 में नया क्या है

html - reduce server load by loading image files / javascript files from another server? -

I'm thinking of saving server load, I can load normal JavaScript files (jquery src) and possibly Some images from websites like Google Thanks! UPDATE (which almost always never down below, and always very fast, probably faster than my server) : I am not very concerned about saving the bandwidth, because I am reducing the server load because my server has difficulty when a lot of users are online, and I believe That has a lot of images / files that are loaded from my single server. It is known as one, and it will help, though you should probably make sure That you need it before you go about setting it up I have heard the right things about it (that is, Twitter, along with other sites, to host their images and Such). In addition, if you are using any of the popular JavaScript libraries, Google's API Cloud.

osx - Java Webstart Options -

I ran an application in OS X 10.5.7, Java (TM) SE Runtime Environment (1.6 build) javaws I am using 0_13-b03-211), and it seems that command line tools are broken into OS X. I run the following command in linux and it works fine. " Gives property javaws.package .runtype = debug But when I run the same Aviation in OS X, then I jnlpx.vmargs = -dajavaws.package.runtype = debug Is this an error, or just an unknown feature? Use javaws -help . As always, you can add "-robus" to display the extra-output to debug your errors.

Skipping DNS and using IP adress in web dev as opposed to URLs -

How much time will it be left to leave the IP request for a domain name? Will it be noticeable? Before anyone gets excited, I know that web dev may have problems using IPs in opposition to a URL like you have many servers but are just curious. This will be the only job that will save you from DNS failure. When your user faces DNS problems, your site will be one such, which mysteriously works for them! You can still run many servers and load them loads behind a single IP, so that the worry. Generally though, there are very few professionals in comparison to this approach.

Books to refer for learning OOP through C++ -

I am looking for a book that can read OOP concepts using C ++. Could you please suggest me some books. C ++ is probably not the ideal language to do this, because a large amount of language is needed Or do not use object-oriented technology. You can see anything like Java or Python instead.

windows - Limit number of lines in .net textbox -

I'm using the winforms text box with multiline options. I want to limit the number of lines that can be entered into it, the user should not be able to enter more lines than that. How can I get it? you txtbox.Lines.Length < / P> You need to manage it for 2 scenarios: 1. The user has to type in the text box 2. The user has pasted the text in the text box Typing the user in the text box To stop you, the key of the text box is to handle the press event when the maximum lines are exceeded then the more lines User to enter. private const int MAX_LINES = 10; Private zero text box 1_kimpress (object sender, keypress eventsErgus E) {if (this.Texbox 1.lines> Lang & gt; = MAX_LINES & A.KEKER == '\ r') {e.Handled = true; }} I have tested the code above. It serves as the desired. User pastes some text in the text box To prevent the user from pasting more than the maximum lines, you can code the text change event Handler: Private zer

javascript - Google Maps - when clicked Marker doesn't show -

I'm trying to use Google Maps API - I have been able to successfully add an icon, but when it This is my code: Function Placemarker at Point Point (Point) {Var Marker = New GMM Accelerator (Point, {Icon: icon}); GEvent.addListener (marker, "click", function () {marker.openInfoWindowHtml ('here is some text');}); Map.addOverlay (marker); } When I call it in IE & amp; Click on an icon I do not see the very useful JavaScript error: 'X' is zero or not the object. Thanks in advance for your help It seems that you are not instantting any icon objects (or not blocking it in your location, the vocal ATPoint function).

How to boost MySQL master-slave replication to the extreme degree? -

Currently, slaves often fall behind the owner thousands of seconds, which is a real headache! First of all, make sure Das has the same or better hardware configuration than the master. Das needs to run the same DML and DDL running on the master, and whatever load you are throwing it. Many suggestions are available online about how to optimize MySQL performance. Standard recommendations (for MyISAM and InnoDB) are still applicable for key_buffer or innodb_buffer_pool . If there are many heavy questions running against the slave, consider adding more slaves to spread the load. You should also change the timing of any chrono run to reduce concurrent questions.

cck - how to configure the formatting of file upload in drupal 6 -

When you use file import in Drupal 6, it adds a lot of formatting, how can I just return the power I am printing the following & lt ;? Php Print $ nod-> Field_factsheet [0] ['view']? & Gt; To get the path to file use: & lt ;? Php Print $ nod-> Field_factsheet [0] ['file path']? & Gt;

c# - How do I Change comboBox.Text inside a comboBox.SelectedIndexChanged event? -

कोड उदाहरण: निजी शून्य comboBox_SelectedIndexChanged (ऑब्जेक्ट प्रेषक, EventArgs ई) {if ( कुछ स्थिति) {comboBox.Text = "new string"}} मेरी समस्या यह है कि कॉम्बोबॉक्स पाठ हमेशा चयनित इंडेक्स के स्ट्रिंग मान को दिखाता है और नये स्ट्रिंग नहीं। क्या यह एक रास्ता है? यह कोड काम करना चाहिए ... सार्वजनिक फॉर्म 1 () {InitializeComponent (); ComboBox1.Items.AddRange (नया स्ट्रिंग [] {"आइटम 1", "आइटम 2", "आइटम 3"}); } निजी शून्य comboBox1 से चुने गए इंडेक्स (वस्तु प्रेषक, EventArgs ई) {स्ट्रिंग पाठ = "आपने चुना:" + comboBox1.Text; BeginInvoke (नई एक्शन (() = & gt; comboBox1.Text = text)); } आशा है कि यह मदद करता है ... :)

ios - How to intercept touches events on a MKMapView or UIWebView objects? -

I'm not sure what I'm doing but I try to touch on MKMapView thing. I created the following squares by component: #import & lt; UIKit / UIKit.h & gt; #import & lt; MapKit / MapKit.h & gt; @ Interface map view: touch: MKMapView {} - (zero) touches: (NSSET *) touches with the event: (UIEvent *) event; @end and implementation: #import "MapViewWithTouches.h" @implementation MapViewWithTouches - withEvent touches (zero) touchesBegan: (NSSet *): (UIEvent *) Event {NSLog (@ "Hello"); // [super touching: event: touching event]; } MapViewWithTouches * MapView = [[ MapViewWithTouches alloc] initWithFrame: self.view.frame]; [Insert self.viewSaveview: View mapandex: 0]; Any thoughts that I am doing wrong? The best way I can get this is with the gesture identifier. Other methods include hackish programming that is incomplete duplicate Turning out to include a lot of Apple's code, especially in the case of MultitT Here's w

internet explorer 8 - Silverlight 2 Does not render content on IE7 IE8 Firefox 3 -

I have a very simple silver light xaml page displays text box and a button. When I run my application on IE6, then it works fine. But for IE7 IE8 and FF3 - this does not display any content page is blank rendering. & lt; Div style = "height: 100%; width: 100%;" & Gt; & Lt; Asp: Silverlight id = "Xaml1" runat = "server" source = "~ / clientbinn / test.expe" minwarson = "2.0.31005.0" width = "100%" height = "100%" htmlAccess = "enabled" / Gt; & Lt; / Div & gt; Does anyone have any ideas that are not rendering silver materials? I got an answer ...! Keeping the questions / answers on the bus stack overflow so that other simulator questions can be answered: IE7 does not accept IE8 and FF3 value 100% value or width or SL2 object. Change the height and width to PX value (pre 800 px) and this will solve the problem. Thanks

.net - Correct behaviour for tray icon click? -

When an application adds an icon to the system tray and reduces it, then there should be a way to restore it. However, when it comes to restoring the window, I'm not sure what the 'correct' behavior is for the applications. Do I click on a click twice or in a single click? What is Windows Standard? Raymond Chen, in his post "writes, writes: P> Left click single: Display simple interface item targeting casual user In most cases, this will be a context menu, but if you have something like volume control, a custom interface item (in this case, the volume A slider control to control) more suitable Right click single click: Display a context menu, but there may be options for one more advanced users. In many cases, the menu will be similar to the left single click menu (Important: See tomorrow's entry for additional discussion.) For double-click, you do not need a special rule because there is a general principle for a double click already: double-clic

java - The proper way to deploy a Hibernate-based J2EE app to a remote server -

I have a huge demonic Java app in development here. So far, it is only installed on my locally installed Tomcat / MySQL has been deployed on setup. For completeness, the app is an online game server using Spring, Hibernate with a MySQL currently on a backend. Now, I can easily package up warfare and get it on a remote server. The problem is that the database is now just being generated with an ANT script that is hibernate (in particular, HBM2DDL ant functions) to generate schema, and then the DB is a static SQL and some ant-based parser, which is the other data (XML mostly). After that, I have a fully prepared DB that is populated with the "Start" data set from game server. The issue is going to be slightly green in Java. I do not know what is the correct way to deploy it. Do I want to: Export SQL from your local MySQL and manually import it to new server? Oh, is that so. Make ANT script less grody (it has a lot of hardcode directories right now) and run it o

Free C# metrics calculation library (DLL) -

I wanted to ask if you know about some free C # Libraries (DLS) that CK matrix (mainly cyclone Complexity). / P> I will need the project which I am planning to do. I know that there are already finished solutions which calculate CK matrix and display it in different forms, but what do I do I was supposed to use it from within my application. So before starting and writing, I want to ask you first. Thanks driven matrix An open source # Command Line Tool I Main operations are separate from the command line console client as a library (core project is available). Even if it is very easy, it can fit your needs: it is free, calculates the number of lines and calculates the cyclic complexity of methods (potential code path Number) This is done through direct analysis of IL thanks (depending on the same library NDepend). This analysis can be done on the assemblies created by code written in C #, VB.Net, ... The project has been announced. The code is available on the

php - How to create path redirections -

I want to create an internal path redirections such as a Wordpress example If I have a post ( Permalink = 'hello-world') But even if I type ' , then call me ' ' is redirected to what I use to go with that correct URI on that page automatically, i.e. changes the URI that is displayed in the address bar. Perhaps this is something other than using the .htaccess rules Perhaps this question might be a bit trivial, but I could not find effective help on Google. Questions answered. Found a post that is not visible when posting a question. Sorry.

need a c# regex to get servername out of UNC -

I see my last post spoiled that I can get this one right .. Can anyone tell me how to remove the name of the server from the UNC? (I'm looking for a regex) This is the string that I want to draw the server name from: ** \\\ servername \ d $ \ Directory * * My code is in C # Regex r = New Regex (?????, RegexOptions.IgnoreCase); Match Me = R. Match (@ "\\ servername \ d $ \ directory"); CaptureCollection cc = m.Captures; Front (Capture C in CC) {System.Console.WriteLine (c); } I'm just looking to capture: servername no slash or nothing. Note: This answer is for educational purposes - it is better to use Uri object and Does not reuse existing functions. In the form of the same solution, but reversed with backslashes, and therefore escaped, (and removed proprietary xxfire, since C # regex does not support): (? & Lt; = ^ \\\\) [^ \\] + Name of the server \ 0 or $ 0 or simply the result of the function, how do you say it and wha

php - 2 different layouts of the same content type in drupal 6 -

I have a content type called fund The content of this is in node-fund.tpl.php , Which is inside the page. Pl.pl.php I need to reproduce the contents of the fund but without the page. Tpl.php To be clear, I need 2 pages 1) Funds within the page template 2) Fund data but fully refirmed. Plans are to create pages that print well on A4 Any thoughts on how I can achieve it. How do you form a fund content type? CCK, a custom module or just a simple new content type (like admin content content> content type> add content type). There are different possibilities in each approach of APAI. One option would be to create a print css file, which is used when a webpage is sent to the printer. I hope this will be helpful.

Java open-source project to contribute -

I want to contribute as a developer for an open source Java project. Most projects are not in development / development or it is very difficult to become a fan. Can someone please suggest projects that are easy to meet with a 2-year Java experience as a developer? Get the phone when you use something every day, then you can see the problem very easy Are there. Whenever you find something that bothers you, fix it (all UI content is Java, and some of the low levels).

Are pointers and arrays any different in C? -

I'm writing a small program to crunching a few numbers, and passing arrays around the middle of the functions L, int lane) {int * reversed = malloc (sizeof (* reverse) * len); Int i, j; For (i = 0, j = len-1; i & lt; len; i ++, j--) {reverse [j] = l [i]; } Return reversed; } Am I using the correct indicator? Your code snippet is correct. However, signs and arrays in C are actually different. Just "indicator to type indicator" is not equal to "T type array". Please Pointer & amp; Arrays to get a better understanding of this

module - How to import a Python class that is in a directory above? -

I want to inherit a file from that file which is currently in the directory above. Is it possible to import this file relatively? Inside a package hierarchy, use two points, as the Doctor says: When you specify the module for importing, you do not have to specify the full name of the module. When a module or package is included in another package, it is possible to import a relative within the same package without mentioning the package name. By using the leading points in the module or package specified by you can specify how high the current package range is in order without specifying the exact name. A leading dot means the current package where the importing module is present. Two points mean a package level Three points are two levels, etc. If you execute with import mod from a module in the pkg package, then you will stop importing pkg.mod . If you execute with with pkg.subpkg1 you will import pkg.subpkg2.mod . The specification contained for the relati

browser - UsingWebBrowser control in ASP.NET application -

I want to create a site thumbnail through my web application, so I thought I would use Webobor control. However, I get an error: System.Threading.ThreadStateException: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' can not be done immediately because the current thread is in single-threaded But he did not help Is not it possible to use web browser controls in ASP.NET? Yes, you can use it, compared to the establishment of Escuppate = "true" Is more complex, see if it helps

Inheritance and Polymorphism conflicting in ruby on rails -

I have a problem with Ruby on Rails. I have several model squares which can be used from the same class for some common behavior Passes. The parent class is called a cashable element. One of the children says the result. I am called a flow related to any child of the cached element, one needs another model. Therefore the element in the flow is called a polymorphic property, for which it is related When I create a new flow, which falls under a result, element_type is set to "cached element" Which is the "result" This is confusing because I have many types of cached elements that are stored in different tables, element_id has many different elements. In short, I should mention the element_type field to name the child's class and not the parent class name. How can I do this? field element_type is set to parent class because ActiveRecord allows you to Expecting to use single-table inheritance when received from models. The field will reference

iphone - NSNotification Strangeness when used in conjunction with AsyncSocket -

I'm using Asyncusk to connect to a server from my iPhone app. From the rep who receives the data from the server, I will post a notification that will tell the representative of the table view to trigger a reloaded data on the table view: - (zero) onset (AsyncSocket *) Sock DidReadData: (Ansdita *) data Sathtag: (long) tag {[NSNotificationCenter defaultCenter] postNotificationName: @ "PEERSTATUSCHANGED" object: self]; [ReadDataDataData: [Asyncset CRLFDA] with timeout: -1 Tags: 0]; } and viewController: - (id) initWithNibName: (NSString *) nibNameOrNil Bundle: (NSBundle *) nibBundleOrNil {if (self = [ Super initWithNibName: nibNameOrNil Bundle: nibBundleOrNil]) {[NSNotificationCenter default Center] AddObserver: self selector: @selector (peerStatusDidChange :) name: @ "PEERSTATUSCHANGED" object: nil]; } Healthy return; } - (Zero) PeerStatceded Change: (NSOtification *) Notification {NSLog (@ "Notification Receipt"); } Now, it does not wo

javascript - Wondering if there is a .html() equiv that can used for xml? -

$। Ajax ({प्रकार: "GET", url: "awards.xml", डेटाटाइप: "xml ", सफलता: parseXml}); फ़ंक्शन parseXml (xml) { मैं देख रहा हूँ $ ("# xml_test")। अनुलग्नक ($ (यह) .फंड ("पुरस्कार") .text ()); }); मेरे पुरस्कार नोड्स से सभी पाठ लौटाता है $ ("# xml_test")। अनुलग्नक ($ (यह) .फंड ("पुरस्कार") .html ()); }); मेरे पुरस्कार नोड्स में उनमें कुछ html है इसलिए मैं उम्मीद कर रहा था कि मैं इसे .html () के साथ प्रदर्शित कर सकता हूं लेकिन मैं उस दस्तावेज में देख सकता हूं जो। Html () को एक्सएमएल के साथ प्रयोग नहीं किया जा सकता है। क्या कोई वैकल्पिक या वैकल्पिक हल है जिसे किसी को एचटीएमएल को PHP में एएसएमएक्स () फ़ंक्शन के समान दिखाना है। धन्यवाद मुझे लगता है कि एक आपके प्रश्न से संबंधित है: असल में XMLDom का उपयोग करें, इस कार्य के लिए JQuery नहीं। फिर आप अपने एचटीएमएल को सीडीएटीए ब्लॉक में डाल सकते हैं और अपने पुरस्कार सामग्री को तुरंत आउटपुट कर सकते हैं (इस तरह मैं आपकी समस्या समझता हूं): & lt; पुर

.net - SGEN, InternalsVisibleTo and assembly signing -

I'm trying to do something a little unusual ... I have this class Foo : public square fu {public fu (string name) {this.Name = name; } Internal Foo () {} public string name {get; Internal set; } Public int Age {Received; Set; }} Notice the internal setter and internal default constructor for the name. This can normally be prevented XML serialization, but I also marked XML serialization assembly as a "friend" with InternalsVisibleTo: [assembly: InternalsVisibleTo ( "TestXML2008.XmlSerializers")] And I added an MSBuild function to pre-order the ordering assembly: & Lt; / SGen & gt; & Lt; / Target & gt; This works fine :. Name property is correctly serialized and deserialized Now I'd like to enter your assembly ... So I define a key file for my assembly, and I nternational Vijitebl to match the key modify hereby declare: [assembly: International Vijiteto ( "Test XML2008.XmlSerializers, PublicKey = c5cd51bf2cc4e

c - Will this leak memory? -

I have created a small function to cat out the strings and return the combined string. However since I assign memory to a third variable in the function, then the memory will be freed if the function is over, or will it need to be released later after it remains there? And if I need to free it, then what is the most stylish solution to do? Here is a test code that works, but I can not tell whether this memory is free from my devices or not. #include & lt; Stdio.h & gt; # Include & lt; Math.h> #include & lt; String.h & gt; Four * stracket (CONST FOUR * ST1, CONST FOUR * ST2) {FOUR * STRUG = CALLK ((STLAN (CT1) + STRELAN (CT2) + 1), SACHOFF (four)); Dome (string, whistle 1); Dome (string, stat 2); Return string; } Int main () {printf ("string:% s \ n", straight ("hello", "world"); Return 0; } Yes you have to make it free. Maybe something like: int main () {char * s = StrCat ("hello", "world"); Pr

c++ - Bigint (bigbit) library -

I'm looking for a C ++ class / library that provides 1024 bit and larger integer and bit operation such as : - bit transfer, - bitwise or / and - - position zero zero first speed is important, so it must be implemented with some SIM assembly. There are many, but for speed, the best possibility is to design the TTmath design compiletime On templated fixed length lets use it to be quite sharp.

c# - Get array starting with offset -

I am using C #, and it is annoying that I can start from a certain point like C ++ Consider this code: int [] array = new int [32]; Foboar (array + 4); // Send the starting ARM from the 4th location This is a strange syntax for C # because we do not have any useful sign, but is definitely a way to do this? Is there. Skip (), but I think it produces a new array, which I do not like. What are my options? You can assign it to a IEnumerable & lt; Int & gt; as an array. You can leave it again and this eater will be removed from the number of elements only. In this way, you will not need to use ToArray () and copy the part of the array in question. Of course, IEnumerable may not be suitable for what you want to do, but it is difficult to tell from your question. Public void FooBar (IEnumerable & lt; int & gt; times) {...} int [] array = new int [32]; Fubar (array Skip (4));

ruby - Keeping track of who did what in Rails? -

What is the best practice method for keeping track of who did in the mid-sized railway app? Have to stop reading / writing all the databases and reading it in another table? You can easily perform actions to do this Operation done. I think the versioning in the form of a plugin is very few ideas.

c# - Calling Console.WriteLine(ex.Message) to prevent warning message -

We usually hold exceptions to the upper level of code like GUI (form). But I usually have this type of code try {} catches {exceptions} {Console.WriteLine (ex.Message); MessageBox.Show ("The application has an error ..."); } I could catch without the identifier (exception) because I do not need a message at runtime, but for debugging build, it is convenient to break into a catch statement. So I usually write a console to stop the warning of an unused pre-variable. There are lots of cases of my console Written in my code (e.g., this cost performance is low? Note: The title has changed from "console." Is display cost of exemption (ex.message)? "Warning message" / P> To stop "Calling Console.Publishing (Pre. First try {...} hold (exception) {} Fully valid syntax is to connect to a console. Writite (ex.Message) just to talk The right thing to do is to get the compilation without any warning. Second The console WrightLi

How to use SQL user defined functions in .NET? -

After I created a scalar function in DB Go set to set QUOTED_IDENTIFIER ANSI_NULLS ALTER Function [dbo]. [Fn_GetUserId_Username] (@ User Name varchar (32)) declared @UserId integer selection @UserId = from UserId start int [user] Where Username = @ Username Return @UserId End Now I want to run it in my .NET C # or VB.NET code. I use the unit framework, I tried to mapping the function mapping and I did not get success. Public Integer GetUserIdByUsername {String User Name} {EntityConnection Connection: I do not care to do this with simple DbCommand, the problem is that I get any results (function entities are present in the class) Is = (unit connection) connection; DB CommM = Connection. Store connection Crete Commands (); Com.CommandText = "fn_GetUserId_Username"; Com.CommandType = CommandType.StoredProcedure; Com.Parameters.Add (new SqlParameter ("user name", user name)); If (com.connection.state == connectionstat.closed) com. Connection open (); Try {v

Crystal Report Formula for Date Separate -

New in Crystal Reports 8.5 How to print string value in a date format? Example: dd / mm / yyyy How do I write a formula in the crystal report? Date Separator Formula Need String Value? How to make an Arula in Crystal Reports 8.5? To answer your second question ... In CR 8.5 To create a formula field: Enter Field-> Formula Tab-> New in CR 10 and above: Go to "Field Explorer" Right click on "Formula Field", click "New". or Report-> Formula Workshop-> Formula Field-> New You can then drag the formula field to the report.

vb6 - Best way of sending a file to SQL server and save it, then reading it from DB? -

I am developing a software with vb6.0 :( I want to know that to save the file most What is the good code reading from the SQL server and after that? I should say that I am using ADODB. While saving the stream file ..... What are you suggesting? Do you need to save in SQL. An alternative, and IMO better Environment You can save docs in a folder on your regular file system and save its reference in SQL. Unless you have a desire to save in SQL? Do you use specific vb6 There is a specific reason to do that? Legacy? Here you have an example in NBT that you need, it should be very simple to convert to VB6 < / P> Update: ADB to VB6 Mr. store with examples and images to reclaim the use of which you should be very similar to what must:

Netbeans: deploying Java app to remote Tomcat -

Is there an easy way to deploy a web service / Java Web app, etc. for a remote service? Currently I manually copy the .ar file. Personally, I "deploy" Build.xml that contains a & lt; Scp & gt; Tag to transfer the tag file. Update: Here's an example: & lt; Target name = "deploy" depends = "dist" & gt; & Lt; Scp todir = "$ {user.name} @ www.myserver.com: tomcat-base / webapps /" keyfile = "$ {user.home} / .sh / myserver.key" passphrase = "blanket" trust = "true "& Gt; & Lt; Fileset dir = "dist" includes = "myapp.war" /> & Lt; / SCP & gt; & Lt; / Target & gt;

c# - WPF owner window on top of child window -

Is it possible that in the WPF the owner window is at the top of the hair window, when you click on it while the owner window Down the hair window? Here is an example of how I call the hair window: window2 window = new window2 (); Window. Honor = this; Window.Show (); The parent / owner window will always be under the hair window. You want that to get the behavior, you do not want to set the owner on either the window. Surely to lock your imaginary, you must handle the logic itself while closing any of the windows "baby" window. There may be other arguments that you have to apply to minimize, maximize, etc.

makefile - Get the Linux Kernel make process to rebuild modified files -

I am modifying one of the source files when I issue the build command: NOEXTRAS = 1 skipabi = true skipmodule = true fakeroot debian / Rule binary-insp8600 This rebuilds the debs, but none of the modified source files has been rebuilt is. What's going on? Do I have to completely clean up a source file every time to modify it? There is no such thing The revised file was ./init/ main.c . As a note binary-insp8600 I have a custom flavor designed for my Inspiron 8600 laptop. Debian / Rules is not a kernel file, it is editable by you There is no way to know the file, there is the dependency of the last kernel because these dependencies are in the real makefile. In fact, I depend on a "flag" file that builds debian / rules build target (which actually compiles) If it is the case after the completion of, then a simple solution will have to remove that "flag" file; It will then re-compile everything (by calling the kernel's Makefile

excel vba - VBA - Create a new object using the text name of the class -

Is there a way to set an object in a new instance of a class using the class name of the class? I have a library of classes, and depending on some other variables, I have to get one of these classes on runtime. Example I have "CTET1", "CTET2", "CTET2", "CTET3" I will have the same work as below Function gate test class (not as long as) Dim strClassName string as object strClassName = "CEEST" & amp; CSTR (LNG class no) set gate test class = new instance of class (strClassName) termination function There is no reflection in VBA, so I do not think it is possible. You have to do something that I'm afraid of: Select object As per Episode 1 GetTestClass (not long longer than lngClassNo) Case 1 Set Gettest Class = New CTest1 Case 2 Set GetTestClass = New CTET 2 ... and stitched and function Unless your CTEist class is defined in a CF DLL, you can use CreateObject Statement. Although you have to use VB6 to creat

Virtualization and why it is good for programmers -

Why does it help to know about virtualization from programmers' perspective? Except for the need for switching between the operating system and without any separate platforms, there is a special reason why virtualization is important for a programmer? Is there any detail that should be taken into consideration before developing in virtual instances? I test our installer , because it is important to check that Whether the application will work on the clean installation of the operating system. I used these tests to keep a hard drive with the installation of a new operating system and make a copy of that disk (almost) to run every new test. It took a lot of time, and the virtual machine solution saved me a lot of time Note that this allows you to easily perform remote debugging when using two non-virtual machines. Note : If you are interested, then I am using, which is a very good and free virtualization tool.

java - Why we must copy one set before calling the appropriate bulk operation? -

Why do I have to write the first statement before performing a bulk operation ?? set & lt; Type & gt; Union = new hashset & lt; Type & gt; (S1); Union.addAll (s2); The object must be urged before calling any object. In this situation, trying to call the addAll method on the null object will cause NullPointerException . Therefore, the set union should be made in any way, then it can be used in any meaningful way. I think this will be a good idea to go to the given code and try to understand what the code is trying to accomplish. set & lt; Type & gt; Union = new hashset & lt; Type & gt; (S1); Union.addAll (s2); The above code tells me the following: Let's create a new hashset with the existing elements s1 (which I consider to be another set ). The newly created code HashSet will be stored in the form of a set name as union - this code seems to be new set < for the union , any other element

.net - "Layout Shapes" in Windows Workflow -

I am looking for hours. It is possible that it is not in existence and I should eliminate it .... But I have a state machine that I am designing and it is not possible to shape it in any kind of shape, it is not that a program can improve but it will be a good starting point. Does anyone know of the automated size layout utility for Windows Workflow in Visual Studio 2008? As far as I know there is no device or utility available to you, Will do But if you are interested in giving it a try then you basically workflow 1. The need to change the hang file is automatically generated as you change the default layout and save the workflow. > The format is quite easy. It is basically an XML file that contains the size and location of each state and the layout of the state switch connector. I think everything is getting to work hard to get in line.

sql - Grouping result by date in mysql -

यह एसक्यूएल स्टेटमेंट SELECT `ip`,` कब` से 'मेट्रिक्स' WHERE `विडीआईडी` = '1' ग्रुप द्वारा दी गई तारीख ('कब') एक परिणाम देता है, भले ही कई टेबल अलग-अलग तिथियों के साथ मौजूद हों I मैंने भी DATE_FORMAT का उपयोग करने की कोशिश की है I क्या मैं कुछ बेवकूफ कर रहा हूं? जब पूर्ण टाइमस्टैम्प के साथ टाइमस्टैम्प स्तंभ होता है, जिसमें घंटे, मिनट और सेकंड शामिल होता है मैं सिर्फ दिन / महीने / वर्ष के परिणाम के आधार पर समूह की कोशिश कर रहा हूं। ऐसा लगता है कि आप इसके बजाय इस का प्रयोग करें: GROUP: दिनांक के अनुसार (`कब`) लगता है कि आप किसी दिए गए तिथि के लिए आईपी पते गिनती करना चाहते हैं: SELECT COUNT (` ip`) AddressCount , `जब` से` मीट्रिक` होता है जहां `vidid` = '1' ग्रुप द्वारा DATE (` कब `)

user interface - Share good examples of Web-GUIs -

I'm on the edge of courtesy because the question is subjective, and not strict about programming, but applicability - But in the end, what is more important than the usability of solutions made by us? The idea is that work "backwards" with the applicability of technology : I have to see an effective web-GUI ( If possible, show the URL) and then to know which technology has enabled it. < Never seen such a useful site They are using: Framework: ASP.NET Language: C # Dev Environment: Visual Studio 2008 Browser Framework: jQuery Database: Microsoft SQL Server 2008

c# - When using linqtosql, and inner joining, can you return only a subset of columns? -

When using linqtosql, and inbound entry, can you just return a subset of columns or all columns / Points in properties Sometimes you only need 2-3 columns, pull it back all 15 etc. It seems that Overkill. make sure var query = c in db.Customers Join db.Orders in c.CustomerID equal o.CustomerID select new {c.Name, o. Date of order};

PHP MySQL Can't Insert To Text Field -

OK, I have this problem that I have never had, it's really annoying me. Actually I am trying to submit text in a text field using a form. For some reason when I present it with raw text and full-stop, it works just fine, but it seems that when there is a punctuation 'or'! In Texteria, it will not be stored on the database only. It is obviously a really obvious problem which I am missing because I am a DP, any thoughts? Are you avoiding input?

asp.net - Visual Studio 2003 productivity tips -

I am now using Visual Studio 2005 and 2008 for a long time, but now I am consulting somewhere In which all ASP.NET 1.1 applications, so I need to use Visual Studio 2003. When using VS2003, can any good add-ins, settings, general tips etc. recommend ... well ... VS2008? Note: I have heard of MSBE, but VS 2005/8 is not an option. Also keep in mind that I have already established ReSAP for VS 2003. Update: Some specific things that I like about 2005/2008, which are not present in 2003 (at least as far as I can tell): Intelligence does not popup immediately ... i.e. I have to type "this". Or "some place." Before I give any kind of information Just like small things when I type in runat = and then Intelligence gives me the server, but I do not give the closing citations. This is very frustrating like this. / Li> I do not use "designer", so there is a problem to type in all the protected properties for control. If it is done in some way it wil