Posts

Showing posts from June, 2012

c# - Generate table of content using itextsharp -

What I am doing is to prepare a PDF manual from the database. I need to generate a content table with page number. As with page numbers there are two chapters: ============================= Content table Chapter 1 ----- 3 Chapter 2 ----- 17 ======== = ============================ Lesson "Chapter 1 -----" is the general paragraph. But using the PDF template is to create the page number "3" because it can only be known later but the PDF template is fully positioned. How do I know the status of a PDF template? Am i right on this How can I figure out how or should I use other methods? I have removed a bit of code to take you on your way. Allows the text to be anywhere using X and Y anywhere on the page. You can actually use iTextSharp to create paragraph and margin support, but, just need this will be useful. PdfStamper Dim TemplateReader PdfReader = New PdfReader (yourFileName) Driven currentPage PdfImportedPage as std = 0) Look at this next b...

stress testing - JMeter and JavaScript -

When I make an HTTP request in JMM, I get response data such as "This page uses JavaScript and JavaScript enabled Browser is needed. " How can this problem be cured? Jmter is not a browser, and JavaScript does not explain in download pages. From: JMater does not process embedded applets in Javascript or HTML pages. JMT can download relevant resources (some embedded resources are downloaded automatically if the correct options are set), but it does not take action on HTML and executes any JavaScript function is. If the page uses JavaScript to create urls or submit forms, you can use the proxy recording feature to create the required sample. If this is not possible, the code may need manual inspection to determine what JavaScript is doing. Based on what you're doing, you can get Firefox. This test will run in your browser, so JavaScript can also run. Note that although I have never used Selenium for JMTator and I do not know about common facilities for ...

c# - Remember me option for outlook addin -

How do I create a "Remember Me" option for Outlook Adin? (Text box) I do not want to connect it to the database. I want to save user credentials on my computer when it will login to Outlook Adin. This addin will connect the user to the site using web services. You can use the following functions for user / app specific registry access: Application.UserAppDataRegistry.SetValue and Application.UserAppDataRegistry.GetValue

opengl - changing GLUT calls to work with MFC/C++ -

I have a program that uses GLUT for its Open Gall rendering. Now I need to be inside the MFC project so that it can work with other program components. I have followed this tutorial: I am calling a function which was a GLTUT display callback in the title of the title, but it is not working because the rendering depends on some GLUT's inactive callback I do not understand where I want the GLUTTUT disable callback in my MFC program. Should I make a separate event handler for this, and if so, what is the event? Or am I doing something completely wrong? I am quite familiar with OpenGL, but this is my first experience with MFC, so I am probably sinner on that side. Thank you very much for your time; I really appreciate it! I've browsed the tutorial you linked; On page 2, something can be found with the following lines (I have cleared the code a little bit): Zero Konogenel Control :: Ownimer (UINT NIDIT) {If (NIDITOR = = 1) {GlClear (GL_COLOR_BUFFER_BIT | GL_Depath_...

iphone - How to add Terms and conditions view to my application so that it will be visible first time only -

I describe rules in my applications to see the terms and conditions when the user is agreed It will not go to sign in on other pages, it should be visible for the first time the user launches on the mobile, after which the sign should begin with seeing How do I do this I can ... appreciate any thoughts You can do this NSUserDefaults . In the applicationDidFinishLaunching method, look at the presence of a BOOL which you place in NSUserDefaults . If it does not exist, then run your code to show the terms and conditions, then set that value to right in NSUserDefaults so that it is present in the next launch.

Can I construct an Object without knowing the class in ActionScript 2? -

In AS2, I can certainly do this: var example = new MyClass () ; But is there a way to do something like that? var constructor = MyClass; Var example = new constructor (); It is possible by calling "new" on the example of a class object in AS3, but I am not able to understand how to get this syntax, working in AS2. . You can do this: First of all, you have to declare class This is included in the SDF var: YOUR_CLASS; And then you can find an example on this: var example = new ["directory. Subdirectory.YOUR_CLASS"] (); Edit: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" layout = "vertical" xmlns: at = "at.controls. *" CreationComplete = "init ()" & gt; & Lt; Mx: script & gt; & Lt ;! [CDATA [import mx.rpc.remoting.mxml.RemoteObject; Private function init (): zero {var obj: ob...

java - Why does gmail close my connection when I send email through Javamail -

I have a process (Message Inspired Bean) that sends emails every time, sends a message per email to 10 Are less. I open 1 connection to my Gmail account and send all emails to the same connection. Every now and then, I get an exception at Transport.send () javax.mail.MessagingException: can not send commands to the SMTP host; The nested exception is: java.net.SocketException: connection to com.sun.mail.smtp.SMTPTransport.sendCommand (SMTPTransport.java:1878) com.sun.mail.smtp.SMTPTransport.sendCommand (SMTPTransport.java off by remote host Done: 1865) com.sun.mail.smtp.SMTPTransport.close (SMTPTransport.java:973) at javax.mail.Transport.send0 (Transport.java:193) at javax.mail.Transport.send (Transport.java On: 120) but .... Is the Gmail connection going down because it thinks this is spam? I know that there is a limit on the number of concurrent connections for Gmail (10) but it seems different should any connection pool support be used? The GMM exits on your TCP / IP c...

lisp - How is Racket different from Scheme? -

How is the racquet scheme different from the racket R6RS? What is it added, or taken away, or is it different? I think the racket is more than one language, it is a platform for languages, but I am talking about main racket quote. The racket is ultimately based on R5RS, and not the R6RS nor neither a hard superset I do not think it Can be called 'scheme' because it is not backward compatible with any scheme standard. Most implementations provide extensions, but otherwise are backwards compatible, of course, the compiler coming with the racket is also run in R5RS or R6RS mode. The valid R5 / 6RS scheme running in racket mode can either be rejected, can cause runtime errors, or behave in a different way than it said, the main point where it is not backwards compatible: Anyone in the racket set-cdr! is not and set-car! , rather than set-makers! which works on pairs created in pairs only. Is the racket call letrec in the letrec * / code> R6RS and is not...

Javascript question -

What do you usually do with javascript? I use it to validate the form, I am creating a drop down menu and wondering if you guys use it for other purposes. After all, Jquery is better than my attitude. P> I am confused JQuery is written in javascript. However, I use both for work on front-end, including the following: Good grid of data using jqGrid Creating theme-driven dialog boxes, buttons, spinners, etc. using jQuery Ease of using jQuery selectors and val , Install / Retain values ​​from on and on :) But much less than that Che uses Javascript. All I use is raw javascript, these are things that are not necessary for jQuery, which are usually for: String and Array function Integer / string conversion function

database - Mysql auto increment alternatives -

मेरे पास नीचे की तालिका है। तालिका mytable बनाएँ (physical_id int auto_increment, logical_id int , डेटा varchar (20), संस्करण_ प्रारंभ_डेटा datetime, version_end_date datetime, प्राथमिक कुंजी (physical_id), अद्वितीय कुंजी (लॉजिकल_आईडी, संस्करण_स्टार्ट_डेट, संस्करण_एंड_डेट)); स्कीमा के पीछे का विचार है, मैं हर पंक्ति में संशोधन का ट्रैक रखना चाहता हूं और किसी खास दिनांक को version_start_date और version_end_date को चेक करके वैध पंक्ति प्राप्त करना चाहता हूं। मैं अपने लॉजिकल आईडी को ऑटो_इनराइमेंट करना चाहता हूं, लेकिन mysql केवल एक आईडी को ऑटो_इन्रिटमेंट के लिए अनुमति देता है। इसलिए, मैं एक नई पंक्ति बनाते समय, physical_id को logical_id सेट करना चाहता हूं मैं ट्रिगर का उपयोग यह करने के लिए कर रहा हूँ। सीमांकक $$ प्रत्येक पंक्ति के लिए mytable पर डालने से पहले ट्रिगर myTrigger बनाने सेट शुरू new.logical_id = (information_schema.tables से auto_increment का चयन करें जहां TABLE_SCHEMA = डेटाबेस () और table_name = 'mytable'); अंत $ $ सीमांकक; मैंने देखा है कि कुछ अन्य...

java - How to make inotify wait when processing multiple files -

I am working on a directory sync program which uses jnotify to check for changes. This is the idea that whenever the jannat detects any change, one is synced. The problem is that when many files are copied or modified in a directory, many syncing is done instead of a large sync. Ideally if you copy 100 large files of the directory, Sync B will not come in the directory until all the files are completely copied to Directory A. I have somehow thought to capture files using a temporary directory (A1) until they copy completely and then move them to A1. But this solution does not work well because I am using Unity to sync which only sends the file Delta - and it is a feature I would not like to use or would like to use it. Perhaps one way of using it is to detect I / jnotify when multiple files are being updated at one time? Here is a suggestion about setting up a set on your application and making it "modified" files To gather / remove it, that file will be added ...

iphone - Problem using stringByReplacingOccurancesOfString in Objective-C -

I have some problems, working with NSStrings in Objective-C ... the code below gives the warning "'NSString' can not be answered '-string bite releasing oxidationoffstring: withstring:' ' NSSTING * NEWORD = [Word String BirrplacingConferenceOffString: @"! "] @" ";: WithString What am I doing wrong? Any help is greatly appreciated - thanks This is a spelling error. The method name is actually.

function - PHP sum values of a whilefunction -

हमने इस PHP- स्क्रिप्ट को कोडित किया है: फ़ंक्शन मूल्य ($ id) { $ Ergebnis = mysql_query ("का चयन करें * पूर्व से जहां आईडी = $ आईडी"); जबकि ($ row = mysql_fetch_object ($ ergebnis)) {// वेन ग्रैंडप्रस डेन फेर्ब्न अगर ($ पंक्ति- & gt; typ == "ग्रैंडप्रिरीज़") {$ gp = "style = \" background-color: # FF22FF; रंग: # एफएफएफएफएफएफ; पैडिंग: 5px; \ ""; } Else {} // preisfomat umändern $ preis = "+" .number_format ($ पंक्ति-> प्रीइस, 2)। "EUR"; $ ग्लोबल ["$ id"] = $ पंक्ति- & gt; प्रीइस; $ Ze = $ gp वर्ग = \ "rechnung_bezeichnung \" & gt; $ पंक्ति- & gt; बीज़िचनुंग & lt; / div & gt; div $ gp class = \ "rechnung_preis \" & gt; $ preis & lt; / div & gt; & Lt; p शैली = \ "स्पष्ट: दोनों; \" & gt; "; }} हमारी समस्या यह है कि हम इस फ़ंक्शन के बाहर चर का उपयोग नहीं कर सकते। हमारे स्क्रिप्ट में हमें इस तरह की फ़ंक्शन की आवश्यकता है: $ prei...

drupal - How can I create a view with fullsize and thumbnail Images -

The best way to create two dynamic unordered lists in repeat 6.x using the views What is it? I know how a dynamic list is created in the scene, but not two, I also know that it can create two separate blocks to make the output, but I do not know That's how to make blocks dynamic. Example Gallery: // Full size images & lt; Ul class = "gallery-output" & gt; & Lt; Li & gt; & Lt; Img src = "example.png" / & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; IMG src = "example-two pages" /> & Lt; / Li & gt; & Lt; / Ul & gt; // thumbnail image & lt; Ul class = "gallery-nav" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; Img src = "example_thumb.png" /> & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; Img src = "example- two_thumb.png" /> ...

Linux/Perl: Additional output buffers other than STDOUT and STDERR? -

Curiously, is it possible to create, instantize, or otherwise make additional output buffers in addition to STDOUT and STDERR from within Perl? In the case of usage files or other commands there will be additional output for pipes, e.g. ./ doublerainbow.pl 3 & gt; Full_tune Txt 4 & gt; All_the_way! .txt Absolutely. & gt; & Amp; = with the Open command allows you to open file sharing on arbitrary file descriptor. # perl 4fd.pl & gt; File1 2 & gt; File2 3 & gt; File 3 4 & gt; File 4 5 & lt; File 5 open stdfo, '& gt; & Amp; = 3 '; Open STDBAR, '& gt; & Amp; = 4 '; Open STDABAg, '& lt; & Amp; Amp; = 5 '; # Works for input handles, very STDOUT print "hello \ n"; Printed STDERR "world \ n"; Print STDFOO "42 \ n"; Print STDBAR & lt; STDBAZ & gt; $ echo pppbbbttt> File5 $ perl 4fd.pl & gt; File 1 2 & gt; File 2 3 & gt; File 3 4 & ...

seo - Meta tag vs robots.txt -

Use meta tags * or robots.txt file to inform spiders / crawlers Better Is there a problem using both Meta tags and robots.txt? * Example: & lt; #META name = "robots" content = "index, follow" & gt; robots.txt imho meta tag option bots personalized Can not use to index files, while robotstext can be used to restrict access to entire directories. Of course, if you have a meta tag, weird page in indexed folders that you want to skip but generally, I suggest more indexed content than one of your lists in one or more folders and I use robots.txt to leave a lot. No, there is no problem using both of them - if there is a conflict, then in common terms, reject one allow overrul Will do

Javascript bookmarklet to take info from one page and submit it to form on another page -

Now when I came to know that I can not write Javascript in a page to enter form data on any other external page , D likes to do this with a browser-based bookmarklet I can access the data on my original page with this bookmarklet code snippet: Javascript: var% 20thecode = document.myForm.myTextArea.value; If I manually open external web-based forms in the browser, this code changes into the text box: javascript: zero (document) ExternalForm.externalTextArea.value = "Hello World"); and this bookmarklet will open a new browser window with external form: javascript: newWindow = window.open ("http: // www ( Newlindro.com), "newwindow"), if (window.focus) {void (newWindow.focus ())}} However, when I put these snippets together Trying to open an external window in a new window and to change the data, a single bookmarklet, I can not access any element from the new window, for example, in this new window Text field does not work to check the cur...

css - IE ignores padding when white-space: nowrap -

OK, I have a duration with background that is located on the left, and 20px padding left to keep the text By render at the top of the image ... very standard. I also set white space: now to prevent the wrapping on the line scraps. In this period, a div is approximately 200px wide if the text is enough to cross the length of the compartment longer than the length of the compartment, suddenly the padding starts to ignore and the text BG image If I leave the white space, then it becomes: Normal with the same diwa is also overflow: auto set (scroll bars are being presented). Using IE8 ... Is This a Known Object? Is there any standard set, I can not find anything: ( You may need it I have posted more code, but whatever I am listening to your HTML shows something like this and your CSS looks something like this .container {overflow: auto; width: 200px;} .text {background: ... white-space: aboper; padding-left: 20px;} this easy Your padding will be missing in the m...

c# - Using the Xbox 360 Controller in a WPF application -

I am currently trying to use my Xbox 360 controller in my WPF application, but XNA in all the tutorials online The mention of using the game environment was just thinking that my application is easy to detect on my Xbox 360 controller and it can be from any movement / button, which can come from my current setup Visual Studio 2010, .NET 4.0, WPF, C # and I have P Xbox 360 wireless adapter for c. [X] To integrate Xbox 360 gamepad with PowerPoint [Bruno Silva's solution] [x] Consider [x] The first project was for an office add-in for powerpoint, but the base project is a cover that the gamepad can be used in any Windows or WPF application. This provides interfaces with the XNA Microsoft.Xna.Framework.Input.GamePad class and changes in each button position, as well as connect to the game pad / disconnect But also on [Bruno Silva's blog has a link to project and sample code] [x]. You have to install XNA Framework 2.0. I am unsure that the high / latest versions are...

asp classic - get AppFriendlyName of currently executing web page in global.asa? -

I need access to the Global IAS application's AppFriendlyName. Application_Start Event (Classic ASP) I am looking for the equivalent of HTTPCTX. Global. Aception. In APCPCP, in Global. ASX (ASP.Net) Is there any way to do this? Thank you for your help! Jerome Wagner There is a way to do this .. path = request. White ("URL") condition = INStr (2, path, "/", 1) Answer. Write correct (left (path, position -1) position -2) & amp; " " While it may not look good on eyes;) Update: Which course does not work in Global. Because you can only use the request Session_OnStart and Session_Onand Object in my bad, sorry.

algorithm - How do you write a summation of the following -

दिया d0 = 0 d1 = 5 + 3d0 d2 = 5 + 3d1 .. .nn = 5 + 3dn-1 मैं इसे कैसे अप करने के लिए सारांश लिखूंगा यहां एक अधिक सामान्य समस्या और समाधान है च (एक्स) = कुल्हाड़ी + बी चलो (आपके मामले में एक्स = 0, ए = 3, और बी = 5) यदि आप एफ (एक्स) एन बार पुनरावृत्त, यानी एफ (एफ (एफ ... (एक्स) ...)) एन एफ के साथ, आप एक ^ nx + b (1 + a + a ^ 2 + ... + a ^ (n-1)) राशि (1 + एक + एक ^ 2 + ... + a ^ (n-1)) को कम किया जा सकता है (a ^ n - 1) / (a ​​- 1) यदि a! = 1।

networking - Resuming a failed compression using Java -

I have a small number (2-10) large files (6-15 GB) that are really good (4: 1). I am writing to clients and Java in Java, and I want to send files from the client to the server so that 1. Intermediate Zip file is created) 2. Compressed goods on the server end up in a well-formed file (such as a .zip or .tgz file) so that it can be 'as is' downloadable. Transfer can be resumed if it fails through the middle path. 4. Restart transfer can be completely in a new process The first two can be easily obtained by using the java.io socket and Java .util.zip zip output is the third stream that has me Have grief Fourth is actually just the reference. I'm guessing a solution Maybe some kind of partial re-transmit or a dictionary, or something to be installed will require parse again. Is there any Java library that supports resumable compression? I could not find any pre-fab library though the restartable compression in the way I was required There are many bits and p...

html - How to break long single word in <td> using CSS? -

एक td का एक table में मेरे पास बहुत लंबा सिंगल है शब्द " Pneumonoultramicroscopicsilicovolcanoconiosis " और मैं तालिका की चौड़ाई को कम करना चाहता हूं लेकिन td में से किसी एक में इस लंबे शब्द के कारण ऐसा करने में असमर्थ & lt; br / & gt; देकर इस शब्द को तोड़ दें, लेकिन उपलब्ध स्थान के अनुसार इस शब्द को तोड़ने के लिए कोई सीएसएस तरीका है। लाइन ब्रेक दिए बिना या HTML में कुछ भी संपादित करें। निम्न प्रयास करें: शब्द-लपेटो: ब्रेक-शब्द; सफेद स्थान: सामान्य; शब्द-लपेट css3 है (हालांकि यह IE में काम करता है)। हो सकता है कि आप इसे पुराने ब्राउज़रों में काम करने में सक्षम न हों।

c# - Why should one use factory method to create objects -

संभावित डुप्लिकेट: हालांकि मुझे पता है कि फैक्टरी डिजाइन पैटर्न क्या है लेकिन मैं यह समझने में असमर्थ हूं कि इसका उपयोग करने के क्या लाभ हैं फ़ैक्टरी डिजाइन पैटर्न का उपयोग करके हम वस्तुओं को क्यों बनाते हैं। कारखानों के माध्यम से ऑब्जेक्ट बनाने से, आप सबसिस्टम यह कोड इंटरफेस के विशिष्ट कार्यान्वयन पर निर्भर करता है - "एक इंटरफेस के लिए प्रोग्राम, कार्यान्वयन के लिए नहीं" "डिजाइन पैटर्न" पुस्तक में सबसे महत्वपूर्ण एकल वाक्यांश है, और कारखाने आपके कोड को उस उत्कृष्ट दिशा में स्थानांतरित करने का एक महत्वपूर्ण तरीका है लक्ष्य (निर्भरता इंजेक्शन इसके लिए एक और प्रमुख डीपी है, जो कि क्लासिक किताब में शामिल नहीं है - लेकिन फिर, अक्सर निर्भरताएं जो आप हैं कारखानियां किसी भी तरह से, इसलिए कि चूक बहुत भयानक नहीं है ;-)

c# - Merging MDI toolbar -

In a pure MDI application, the child's menu is automatically merged into the parent menu. There is a way to do the same with tool bars. The concept is to send the toolbar of the active tool to the original Toolbar bar. I got it but I could not get it. can be done in the following ways: can be found in more detail both forms should have toolstreet. // Protected override blank OnMD ChildActivate (EventRGS E) in the Minor form {base.OnMdiChildActivate (e); // Required Handle Childmare (); // Manage the merger} Personal Zero handled childmare () {ToolStripManager.RevertMerge (tsParent); IChildForm ChildForm = ActiveMdiChild as IChildForm; If (ChildForm! = Null) {ToolStripManager.Merge (ChildForm.ChildToolStrip, tsParent); }} Public partial class frmChild: form, iccelform {...} interface iceldform {ToolStrip ChildToolStrip {get; Set; }}

php - Retrieving the comment count in from a Facebook comments box -

I use & lt; Fb: comments & gt; , but I can not understand I have tried to block all new comments with the following code: FB.Event .subscribe ('Comments.add', Function (Response)) {Warning ("comment was added.";}); Any idea though I never received a warning? The number of comments required for the box being entered. You are asking two different questions 1) How to get the count of comments, and 2) How to track the comment event with javascript 2, inform the comment to include in it = the event to be removed to include "true" . & lt; Fb: comments xid = "comment_xxx" notify = "true" & gt; & Lt; / FB: Comment & gt;

python - How will Turbogears reach the critical mass of Ruby on Rails? -

I have a Python background, so I am using a turbozier, but I honestly feel overwhelmed by everyone Ruby is available on rail resources can not help. For example, for the crude comparison of the amount of resources, check out What will happen to turbojies to reach the significant mass of rubies? A large repository of plugins? Sexy Marketing? I think turbooggers are going to be a bit complicated to work (and that, I mean Is that non-trivial use - Quickstart system is OK), with different maintenance all the time flows (in different versions, different ORMs, auth library, web back-end, template engine, etc.) On our short life span, therefore, the people who are working on it usually, through the necessity, a little more With self-reliance you can see ROR or the world in the world, and in this way the firm promotes glasses, good documentation, or 'publicity'. For an example of the latter, when SourceForge.net announced that they were using turboogier with mongodibi, ...

c# - recognize code page of input string -

To identify the code page of the input string, for example, if I put something in Cyrillic then it should return to the window-1251 and when I put the string in the sugar it gets another code page etc. If this is an input from the textbox (the Windows form) string one. The net string is, If you get input from a Web Form (ASPX) page, then the browser also sends the codepage with it. And. Net will create Unicode for you. If you get input from a file, - -).

ruby - Preseve line breaks from textarea in Rails controller submitted with submit_to_remote -

I do not believe that this is not a standard way of doing this, but I am submitting content from a text A rail controller, and does not preserve the breakdown of the line (of any form) Here is my view code: f.text_area: keywords, cols = & Gt; 50, Rows = & gt; 10 submit_to_remote 'button', "# {T} add_keywords"} ",: html = & gt; {: Id = & gt; 'Add_keywords_button'} ,: url = & gt; {: Controller = & gt; : Keywords, Action = & gt; : Add_to_site} ,: escape = & gt; True: loading = & gt; "Form.helment.disabled ('add_keyword_button')",: complete => "Form.aement.snibable ('add_keyword_button');",: update = & gt; {: Success = & gt; "Keywords_table_decorator" ,: failure = & gt; "Message" after submitting it goes to an administrator, which should be able to parse each keyword, line by line I have tried all the changes on the following topic: @keywo...

mysql - How to use crystal reports in vs 2008 -

I'm starting on this. I am using mysql connector. .net to connect vb.net with Mybq database but I used ODBC for a crystal report. Is that okay? And I'm also putting a command, will anything be like work? And how do I design a crystal report? My first attempt is, I've got a lame report with only text about it. Please link that which is helpful in starting me hanging when using crystal reports. I am using vs. 2008. I think the crystal report used to be used by the client There are several ways to differentiate crystals before using these Visual Studio. First of all, I will definitely try to know how to create crystal reports in client applications. Which "Buildings" focuses more on reports You can get many white papers here: In the context of Visual Studio, first you need to know about the Crystal Merge module. Need to understand well and especially how to erase them properly About this really really good posts on StackHowarflow :) If I have...

Breaking cyclic dependency in C++ -

I have the following cyclic dependency problem I am trying to solve: Typedef std:: map & lt; Int, my_class & gt; My_map; Class my_class {... private: my_map :: iterator iter; }; Class other classes {public: my_map :: iterator getIter (); Private: my_map map; }; The compiler does not like it, because my_class was not declared before typedef. If I try to forward myclass like this: class my_class; Typedef std :: map & lt; Int, my_class & gt; My_map; Class my_class {... private: my_map :: iterator iter; }; Class other classes {public: my_map :: iterator getIter (); Private: my_map map; }; I get an error: the forward declaration of 'my_class'. " How can I break this vicious cycle? I am sorry, but I have to amend my question, because I have seen that my representation is a bit wrong. The following is a true representation of my problem: class my_container; Typedef std :: map & lt; int, my_container & gt; my_map; class my_class ...

java - Cannot resolve symbol error during deploying JSP -

I have just learned basic service and JSP technology and have been using it to create a simple website. The purpose of the website is to sell the product details of the products are stored in the database. I want to retrieve data from the database and want to display dynamic pages. I am using the MVC approach and trying to make it as OO as I can. I am facing a problem with category page (which is to work as an index for various products ... I want the details are as follows: I have created a simple Java class that represents the table. The name of the table is "Categories" in DB ... This category has been given the Category name and for example Copy of the various features of the table in the field Has been done. The designated POJO ClassRetriever serves as my work Ideal. It incorporates data from a particular line into the table of an object and ends in various The ArrayList creates an ArrayList object. This ArrayList includes all retrieved data. The des...

php - Where to rollback a transaction in PDO? -

My problem is, I have a database design with this link edit * OK Can use transactions? But where should I put a rollback, if it fails? $ dbConnect-> gt; Startup (); $ Registrand = $ dbConnect-> ("Name,` address, `email`,` phone`, `link`, 'verified') value ((name: address,: email,: phone, link: verified)"); $ RegisterEnsert-> Execute ($ RegisterData); $ RegisterData2 ['CID'] = $ dbConnect-> gt; Last InsertID (); $ RegisterInterress = $ dbConnect-> INSERT VALUES ((UID, CID, Role)); $ RegisterInsert-> execute ($ RegisterData2); $ DbConnect- & Where should I put rollback? thanks A transaction must end with either a rollback () or commit () (only one of them) It is usually executed only one with a if ... and statement Or go to. dbConnect-> gt; Startbank (); // somecode // $ dbConnect-> execute ($ some INnsert); // some more code // $ Result = $ dbConnect-> Execute ($ some selection); // $ nextRow = $ resul...

wpf - Focus on Label, TextBlock and Border -

I want to create a flat button with round right top and bottom corners. On clicking and on the mouse this button needs to be changed in the background. At present my markup looks like this: & lt; Border x: name = "MyButton" Height = "25" margin = "0,5,0,0" corner Radius = "0 5 5 0" borderTechnness = "1" borderbrush = "gray" style = "{static resources mystyle 1 } "& Gt; & Lt; StackPanel Orientation = "Horizontal" margin = "8,0,0,0" & gt; & Lt; Image source = "image.jpg" height = "20" /> & Lt; Textbox text = "my button" /> & Lt ;! - If label is required then there may be a label - & gt; & Lt; / StackPanel & gt; & Lt; / Border & gt; & Lt; Style x: key = "myStyle1" TargetType = "{x: type limit}" & gt; & Lt; Setter Property = "Background" Value = "{StaticRSORS Main...

Best practice to handle / sanitize usernames (accents, punctuation, ...)? -

Why would you recommend the best practice to handle or send usernames? In order to limit the Latin alphabet to France, Spain, Greece, ... you will receive period, dash, apostrops, .... What we are doing, get information from the Facebook API We have got the username, if the user has set it, otherwise we take the name and change it to username (for example to log in later). How have you managed it? user names Full Unicode support in If you are worried about cloning the use of Unicode characters, then you have automatically generated visual clues (next to many new user accounts, but replaced by the user icon) next to the name. Without). If you still have to reduce the ASCII category, you can use the standard tool for generalizing Unicode text. They work on the basis of various Unicode equivalent principles: It may be appropriate for people to accept letters in the Unicode range for those who give their lectures, but they The user account does not have to accept the ...

Can I design Web pages with Delphi? -

I've been programming with Delphi for a long time, and I was focused on desktop applications. I decided to enter the web page programming world. How can I do an interface like Delphi, but with a scripting environment for web programming? Is there any version of Delphi that I can create a web page? Can an application made by the intra web be uploaded as a complete site? Delphi focuses primarily on developing native applications for Windows (Win32), though Delphi There are a few options for creating web pages or web applications using. (Extension JS Cover for Object Pascal), see it for some demos. Another option is to use, you can use ASP.Net, and Silverlight applications with a syntax similar to Delphi.

Google reader API get single item -

I am trying to retrieve a single item from the Google Reader API. Is there an API call that I can get an item from ID or do I have to eat those items and get it from there? You can use POST as input (you can use POST I = parameter can be repeated to get item content). Here is a sample curl greet: $ curl -d "i = tag: google.com, 2005: reader / item / 1bab1bbe8a8ad82f" http: // www .google.com / reader / api / 0 / stream / items / contents {"direction": "ltr", "id": "feed / http: //googlereader.blogspot.com/atom.xml", "title" : "Official Google Reader Blog", "Description": "Tricks from News, Tips and Google Reader Team.", "Self": [{href = "href": "http://www.google.com/reader/api/ 0 / stream / items / contents "}]," optional ": [{" href ":" http://googlereader.blogspot.com/ "," type ":" text / html "}],...

javascript - jQuery beforeScroll event -

What is the first cycling event in jQuery? Or can this type of incident be repeated? We have a scenario where we need an event before a division with overflow: scroll is scrolled. The problem with using the .scroll event is that the device was scrolled in comparison to the previous one. No, there is no such event. Scroll event (for special reasons) can not be canceled And I think this action takes place after the fire, so that the Scrolltop and Scrolllight are right on reaching the property. May be possible to capture the key down event for the mousewheel / DOMMouseScroll event and page up, page down, up, down, etc. to work. There is no 100% method, however - you will never be able to stop the user from interacting with the scrollbar components of the browser. If you want to find the amount of scrolled user, then you can set a timer to store the current scrollLeft / scrollTop . Em> see the new value vs. in a variable and then in the scroll event.

What is the Pylons equivalent of Django's 'syncdb'? -

Small and sweet questions: I inherited a pilil site with a bunch of models. If it was a dezgo then I would just run 'SyncDeb' to set up a local database. What's the equivalent of Pylons? Maybe you are looking for the Pastor Setup-App Development .INI ( Replace development.ini with your actual configuration file). This will go through your websetup.py file, to start answering true to question the use of project SQLAlchemy.

Spring security and @PostFilter -

मेरे पास यह ऑब्जेक्ट है: @ सेवा सार्वजनिक कक्षा myBr {@PostFilter ("filterObject.cellule.getId () == 2") सार्वजनिक सूची & lt; Bibliotheque & gt; GetB () {वापसी super.getAll (); } सार्वजनिक सूची & lt; बिबिलोथेक & gt; GetA () {वापसी getB (); }} जब मैं एक परीक्षण से कॉल करता हूं जो myBr.getB () करता है, तो @PostFilter लागू होता है, लेकिन जब मैं myBr.getA () को कॉल करें, पोस्टफ़िल्टर काम नहीं कर रहा है। क्या इस को संभालने का एक तरीका है, ताकि फ़िल्टर लागू हो? समस्या यह है कि @PostFilter को एओपी तकनीक के माध्यम से लागू किया जाता है, फिर भी आप उदाहरण के कार्यान्वयन को GetB () से सीधे getA () , और स्प्रिंग एओपी वर्गों को फिर से लिखना नहीं है। यहाँ क्या हो रहा है: + -------- + + ---------- + getA | पास | प्राप्त करें | | ----- & gt; | ······· & gt; | ----- & gt; | | --- + | | | | | | बीन | | उदाहरण | | This.getB | | | | | GetB | फिल्टर | GetB | | | ----- & gt; | ······· & gt; | ----- & gt; | | & Lt; - + | | ...

c# - Problem xml-deserializing recursive nested object -

Solution: The code below is not causing an infinite loop as I thought. Was in the loop code, which was called desiilization. This post code works fine I am trying to serial and deserialize XML to the following object public class MessageObjectCollection: List & Lt; MessageObject & gt; {Public string serial ize () {XmlObjectSerializer return.SerializeObject (this); } Public Status Message Object Declaration (String Serialization Resisance) {Return XMLAllore Surveyor. Directoryal Object & lt; Message Object Colback & gt; (Serialized premium history); }} Message content looks like this public class MessageObject {public string title; Public message object selection feedback; } So if I have an example of messageobjectcollection that looks: var msgColl = New MessageObjectCollection {new MessageObject {title = "Hello", Answer = New MessageObjectCollection {new MessageObject {title = "hi", Responsive = null}}}} I var xml = msgColl....

jquery - Fancybox options not having any effect -

I'm using fancybox 1.2.1 to open an iframe. My problem is that my width, height and scrolling options do not really do anything, am I forgetting something? It just opens at the default size. calls: $ (document) .ready (function () {$ ('a [rel = gallery]'). Faxbox ({'width' : 920, 'height': 700, 'scrolling': 'no'}); }); And looks at the link in the page: & lt; One class = "iframe" href = "http://www.myiframedomain.com/page.jsp" rel = "gallery" & gt; & Lt; Img src = "/ img / content / button.png" width = "210" height = "115" alt = "" /> & Lt; / A & gt; Thanks. You are not using the correct option name. Defined in width and height version 1.3+. Use 1.2.1 for framewidth and frameshite . See all the options (and note that no one is in scrolling 1.2.1). The post you posted is completely okay even though it is okay in 1.3...

android - How to autorun an application when the Phone is switched ON -

Can someone give me the code or links or concept to run the Android application automatically on the Android device. You have to switch to a broadcast listeners Must announce that RECEIVE_BOOT_COMPLETED hears for Use of Android-permission Android: name = "android.permission.RECEIVE_BOOT_COMPLETED" /> In your listener: mystarterIntent = new intent (context, YOUR_CLASS_TO_START category); / * Set the launch-flag of the intent * / MyStarterIntent.setFlags (intestine. FLAG_ACTIVITY_NEW_TASK); MyStarterIntent.addFlags (Intent.FLAG_ACTIVITY_SINGLE_TOP); / * Intent to OS * / Context.startActivity (myStarterIntent); Another example using the suggestions above:

c# - How do I get the SOAP headers as XML? -

How do I get the SOAP header of my web service function as XML? To use an example for someone with a broken SOAP header I want an XML version of my working SOAP header that is using a different programming language, but when the headers send in XML We are hoping that we can easily compare those people. I am using C # and toasting (), only gives me the name of the object after googling, I tried Fiddler, but he caught nothing, and SOAP extension seems like a very easy task Looks very complex There is no easy way to do this with ASMX web services if you were using WCF , Then this message will be a trivial matter of turning on logging. Wisdom should catch everything, and it will be good to learn how to capture traffic from local host to local host. Be sure to check in online documentation to find out how to capture traffic.

html - Problem in Google Visualization Chart Api -

I am using GWT If you click on my code, I see the button Hide This is clearly visible on the panflow panel panel but when I click on the show button it does not show my pitchchart the last panel panel = rootpanel.get (); Final FlowPanel pieFlowPanel = New FlowPanel (); Last Runnable onLoadCallback = New Runnable () {Public Zero Run () {piechart pie; // Create a pie chart visualization = New piechart (CreateTable, CreateOptions ()); Pie.addOnMouseOverHandler (createSelectHandler (Pie)); // pie.addSelectHandler (CreateSavedHandler (Pie)); PieFlowPanel.add (pie); Panel.add (pieFlowPanel); }}; Visualization Utility. LoadVisibility API (Oneled Callback, Piechart Package); Button Button = New Button ("Hide"); Button Button 2 = New Button ("Show"); Button.addClickHandler (New ClickHandler) {@Override Public Zero onClick (ClickEvent event) {pieFlowPanel.clear ();}}); button2.addClickHandler (New ClickHandler () {@Override public void onClick (ClickEvent event) {...

c# - Embed contents of a RTF file into a DOCX file using OpenXML SDK -

In our old MSWord-97 based system, we want to interact with COM with a .doc file and embed an OLE object Uses embedded document appears in the parent (not in the form of an icon). We are changing it with a system using OpenXml SDK because it requires words on our server, which generates .docx files. However, we still need to embed the contents of the RTF files into the DOCX ... In particular, we change a bookmark with the contents of the file. I get some examples online but they are all different when I make a simple example in Word and look at XML, to display / display the embedded object's visual presentation, a Too many , while embedding does not seem very terrible to itself. What is the easiest way to do this? You RTF AltChunk for external content Document using an anchor in an openXML DOCX file. The AltChunk ( w: altChunk ) element to insert external content such as RTF document specifies a location in your OpenXML wordprocingmail document below AltFu...

c# - PLINQ Performs Worse Than Usual LINQ -

Surprisingly, using PLINQ I have not earned profit on a small test case; In fact, it was even worse than the normal LINQ. Here is the test code: int repeated count = 10000000; Private Zero Button 1_Click (Object Sender, EventArgs e) {var CurrTime = DateTime.Now; Var strList = Exclusive. Repetition (10, repeated); Var result = strList.AsParallel (). Yoga (); Var currTime2 = DateTime.Now; Textbox1.Text = (curtTime2.Ticks-curtTime.Ticks) .restring (); } Private Zero Button 2_Click (Object Sender, EventArgs e) {var CurrTime = DateTime.Now; Var strList = Exclusive. Repetition (10, repeated); Var result = strList.Sum (); Var currTime2 = DateTime.Now; Textbox2.Text = (curtTime2.Ticks - curtTime.Ticks) .restring (); } The result? Textbox1: 3437500 Text Box 2: 781250 So, it is taking less time than LINQ to complete PLINQ for a similar operation! Am I doing wrong? Or is there a turn about which I do not know? Edit: To use a stopwatch, I have updated my code, and still, the...

zend framework - Zend_Http_Client::PUT not working -

Trying to update your records via the PUT method $ client = New Zend_Http_Client (); $ Customer & gt; SetMethod (Zend_Http_Client :: PUT); $ Customer & gt; SetUri ('http://example.com/api/type/'); $ Client- & gt; SetParameterPost (array ('useremail' = & gt; '***** @ *******', 'apikey' = & gt; secretcanc, 'expenseid ='> & gt; 4 ',' description ' = & Gt; 'Test Web API', 'Zodiac' = & gt; 5000.00 ',)); However this does not seem to work. The same applies to Zend_Http_Client :: DELETE . It only works Zend_Http_Client :: POST and Zend_Http_Client :: GET . What am I missing? I am not yet familiar with the implementation of the Zend Framework, but you can check that you Apache is configured to allow Put and Delay requests. / P> Assume that you are using virtual hosts and userdirs, see the following file: ... / apache / conf / extra / httpd-userdir.conf In tha...

winapi - How do I find out if a .exe is running in c++? -

How do you know that the process name is running an executable on a given Windows, e.g. Program.exe? There is no support of the C ++ standard library To do this, you need the operating system API If it is Windows then you use CreateToolhelp32 snapshot (), after Process32First and Process32Next to iterate the process processes. Beware of the conditions of inevitable race, the process could have come out of the time when you used to get it.

c# - Open URI in new TAB (Silverlight) -

अरे तो, वैसे भी मैं HtmlPage.Window.Navigate (new Uri (link), "_blank "); एक नया टैब (नई विंडो में नहीं!) में एक यूआरआई खोलने के लिए जो कि इंटरनेट एक्सप्लोरर के एक ही उदाहरण में है। वर्तमान में एसएल 3 का उपयोग कर रहा है और ऐसा लगता है कि इसकी एक नई टैब बनाम नई विंडो ब्राउज़र विकल्पों पर आधारित है ... कोई भी मदद? धन्यवाद। आप "_blank" का उपयोग कर ठीक से कर रहे हैं उपयोगकर्ता की सेटिंग के आधार पर या तो किसी नए टैब या विंडो में एक नया पृष्ठ खुलता है: यदि आप एक संसाधन के रूप में इस उपयोग के चारों ओर पाने के लिए "हैक" का उपयोग करना चाहते हैं यह मूल रूप से कहता है कि जब तक किसी ब्राउज़र को CSS3 का समर्थन नहीं किया जाता है, आपको एक "हैक" को वैकल्पिक हल के रूप में उपयोग करना होगा: इंटरनेट एक्सप्लोरर - (दूसरे पैरामीटर के रूप में 0x1000 का उपयोग करें)। नोट: इस पर काम करने के लिए आपके पास पूर्ण ट्रस्ट मोड होना है।

Generating PDF documents in ASP.NET -

संभव डुप्लिकेट: पेज आउटपुट से सीधे asp.net से पीडीएफ दस्तावेज़ बनाने का कोई तरीका क्या है? मेरी आवश्यकता है, जब उपयोगकर्ता अपनी वेबसाइट पर एक पृष्ठ का दौरा करता है, पीडीएफ प्रारूप में एक ही पृष्ठ / रिपोर्ट प्राप्त करने के लिए एक प्रावधान होना चाहिए। ITextSharp का उपयोग करते हुए, हमें पीडीएफ जेनरेट करने के लिए लेआउट लॉजिक एजिन को बनाने की आवश्यकता है I यदि भविष्य में पृष्ठ आउटपुट में कोई बदलाव आए हैं, तो मुझे फिर से पीडीएफ बनाने के लिए तर्क पर काम करना होगा। इसके बजाय मैं "रिस्पांस। कॉन्टेंट टाइप" प्रॉपर्टी सेट करके पेज आउटपुट से सीधे पीडीएफ जेनरेट करना चाहता हूं। मैं जो एक रणनीति का उपयोग करता हूं वह SQL सर्वर रिपोर्टिंग सेवाओं का उपयोग कर रिपोर्ट विकसित करना है। एसएसआरएस बॉक्स के बाहर पीडीएफ को निर्यात का समर्थन करने की रिपोर्ट करता है। यदि आप एसएसआरएस 2008 का उपयोग करते हैं, तो आप एक टेक्स्ट बॉक्स में मनमाने HTML भी लगा सकते हैं और रिपोर्टिंग इंजन इसे अच्छी तरह से व्याख्या करेगा। यह आपको किसी भी पेज से एचटीएमएल के स्निपेट को पुनः प्राप्त करने की अनुमति देत...

Updating Method in Web-Based application - Java Servlets -

I am writing a servlet based back-end for a mobile phone app and I'm new to web programming in general Am Anyway my problem is that I have a data model that connects users to a normal feed and when that feed is updated by any one user, I want to The rest of the users connected to the feed want to get the updated model At the moment, when I send the servlet, I can send only one response, when a request is received, which is not what I am looking for, because users are ping the servlet Needing to do a few seconds that does not seem very practical, instead I want to tell the server users their answers when they change the model. I'm sure there is a clean and well documented solution for this, I can not name it. From what I collect, I need to explicitly generate HttpResponses (I was thinking that HTTP session objects have a way of doing this, but this does not seem to happen). There are some updates in the service update 3.0 specification. Maybe you want to check ...

java - Making solution for Project Euler more efficient -

Basically, I was having some problems working on this code, but after a little tweaking I was debugged and ready to go. . I have gone through many modifications of this program. I only started with integer values, to know that the number was too large to fit in an int, then I turned into BigIntega, which proved to be a problem, but practical. From there, I switched for a long time (as it should be done from the beginning) and cut the runtime of my code to 8-times (or more). Here is the code as it is now: tall qNum = 600851475143L; (Long = qNum - 1l; i * i> = qNum; i - = 2L) if (qNum% i == 0 & amp; amp; and; prime (i)) {System.out.println ( "Solution:" + I); // i for debugging returns; } Else System.out.println (i); // debugging 0L for return; and public stable boolean isPrime (long number) {// unnecessary statement for this problem (B / C for loop), but If useful for others (number% 2 == 0) returns incorrectly; For (long I = 3; i * i It's been runni...

flash - actions vs. avm instructions in actionscript -

My search is, what are the verbs and AMM instructions. I am reading these two documents: But I could not find the concept. Adobe avoided using actions with AVM2 and Action Script 3 3 and what they did in the form of primary vehicles for programming in SWF. DoABC tag, which is located inside the AVM directive.

c++ - Large matrix inversion methods -

Hi, I am researching about matrix inverse (linear algebra) and I want to use C ++ template programming for algorithms. , Which I have found out that there are numbers of Gauss-eradenal eradication or loo decomposition and eradication of Gaus-Jordan, and I found that the function LU_factorize (c ++ boost library) I have to know whether the programmers or mathematicians are better than other ways (advantages / disadvantages) from perspective? If there are no other fast methods then already a matrix) Inverted function in the boost library? , Because I have searched a lot and I do not find anyone. As you mention, the standard approach is to make a LU factorization And then have to solve for identity. It can be implemented using the LAPACK library, for example, with dgetrf (factor) and dgetri (inverse count). Most other linear algebra libraries have roughly similar functions. Matrix is ​​more or less aromatic in some slow ways when singular or almost singular, and for th...

Monster perl regex -

मैं इस तरह तार बदलने की कोशिश कर रहा हूं: & lt; a href = ' ../Example/case23.html'><img src = 'Blablabla.jpg' इसे करने के लिए: & lt; a href = '../Example/case23.html'><img src =' & lt?? Php imgname ('case23'); ? & Gt; ' और मुझे एक नियमित अभिव्यक्ति का यह राक्षस मिला है: ढूंढें -प्रकार F | Xargs perl -pi -e \ 's / & lt; a href = \' (। \। \। \ / उदाहरण \ /) (case \ d \ d) (। Html। '& Gt; & lt; img src = \ ') * \' / \ 1 \ 2 \ 3 & lt; \? Php imgname \ (\ '\ 2 \'); \? & Gt; \ '/' लेकिन यह काम नहीं कर रहा है। वास्तव में, मुझे लगता है कि यह बाश के साथ एक समस्या है, जो संभवत: शीघ्रता से नज़रअंदाज़ किया जा सकता है। r: पंक्ति 4: अनपेक्षित टोकन के पास सिंटैक्स त्रुटि `('r: पंक्ति 4:`' S / & lt; a href = \ '(। \। \। \। / उदाहरण \ /) (केस \ d \ d) (। Html।' 'Gt; & lt; img src = \') * \ '/ 1 \ 2 \ 3 & lt; \? Php i...

python - How do I choose a task_id using celery? -

For now I get task_id from async_result and save it to get it back later. It would be better if I knew what the work_id did, then I can calculate it back instead of pulling it from DB. Example: task_id = ("% s-% s"% (user_id, datetime)) . You can definitely use "natural aids", but to be really useful They have to be reverse, which does not work when adding timestamps. Apart from that the IDs are also unique, so the two tasks can not have the same ID (then the behavior is undefined) If you have a job of refreshing the Twitter user's timeline, then you know that you At any time you want to run a task for each user ID so that you can use a natural ID: "update-twitter-timeline-% s"% (user_id) Then get results for that action Be able to, or cancel the work using that ID, no need to manually store it elsewhere.

c++ - Memory allocation confusion -

I created a class A and wrote the following function foo () class A {public: int a; }; A * Fu (AA; Return & amp; A1; } Int main () {A * a2; A2 = foo (); Return 0; } The compiler gave me a warning because a1 is a local variable and I'm referring it to the stack (hence its value may change unexpectedly). Now I changed foo () to a * foo () {a a1; A * A3; A3 = & amp; A1; Return A3; } The compiler no longer gives any warnings. Is it because A3 is built on the heap? If so, the indicators are always made on the heap like this. I thought that the heap is used only by the new / maulok. Now the compiler has any warning. The compiler is not giving any alerts because you have added enough complexity to make the analysis fool, which does your code. You are still returning an indicator in a local variable, and you can not use that pointer after the function returns.

gwt2 - Gwt accessing Session id in Client side -

ATM I have a JSP (my host page) where I have set session ID through scriptlet with requested object . I save this information in a hidden field and read it with the Live Dom object. Is there a better way to do this ? Thanks in advance for the help. Kuku Based on your setup, it is valid to hold a session ID The way I believe you have written a part of the web application in GWT and it is written in some other language. Your host page is JSP, so I believe the non-GWT portion of your application is also dynamic. I do not think the proposed solution works using the GWT service call in this case. Since you can not match the sessions ID of incoming AJAX calls to the server. Instead of using a hidden field, you can convert session IDs into encoded URLs and get it from there, getParameter (. ..): But I really like the solution with hidden filed because it does not affect url. If you encode the transient information in the URL, then you may lose the ability to bookmark it. ...

database - T-SQL - create new foreign key relationship from non-normalized data -

I am trying to find the best transit-SQL to change non-relational tables in more harmony, and Support Suppose I have a table table ID name USState 1 Apple Washington 2 Pineapple Hawaii 3 Orange Florida 4 Peach Georgia etc. I want the state to be your table with an ID and name: USSTATE (name) in INSTERT USState separate from FRITT Now I have a table USSTAT ID name 1 Alabama 2 Alaska etc. How can I update the USState value to Table Street to indicate the usage of USSTATE? I can state it by state DECLARE @USSTATE nvarchar (100) set @USSTATE = 'Alabama' update set Fruit USState = (SELECT Id from USSTATE where @USSTATE's name) set @USSTATE = 'A Lasca' - do this for each state? Arghh !!! etc. , but I want to do it recursively, thanks for any help? UPDATE F SET F.USState = FRID to ASID F INNER SSF.USSCT = S . NOM .

javascript - Resize div that's inside another div -

I have a div which is the body of my site, inside that div I place a div on the left one vertical Menu) My question is, how can I follow the menu div on the lower part of the body so that it does not look like this because in the menu div Color is ... I have played with the qualities like situation, margins, float, yet I can not seem to work for it ... I have Have included pictures so you can see Divs! Sorry Photos are not visible because I am a new user !! Although I have included the link ... The first picture is the convex page, and after the second material is added and the body div expanded to fit that content! Appreciate any help! This technique has always worked for me The background is actually two columns Is on the cover.

bluetooth - is there a bluetoooth device or kit that can accept text messages -

I want to be able to send arbitrary messages from my iPhone to a Bluetooth device and want to display it. I would like to know whether there is a commercially available advance or something that can be put together with some efforts. You can use one under $ 200 and one. Arduino API is open source and very friendly.

java - What is a good method of persisting application properties? -

I have a series of applications in which all have different types type, bullets, dates , Timestamps, or strings can be included. I need to provide the ability to change these properties for administrative users and the system has to remember / continue in a file. I'm looking for the best practice method to keep these app properties stored and replace them as well as to load them. Especially for this purpose there is a feature of Java - properties Here's a great article about this

Create Trigger in SQL Server -

When I wanted to create a trigger using the pre-defined "CREATE TRIGGER" of SQL Server 2008 R2, then I lost. Can you please give me a statement directly to me that I can use to create a trigger, and tell me how before, before, and how to define all of this? In addition, how can I renew / adapt / delete rows, and use my column values ​​to work inside the trigger? Database set-oriented and triggers are no different If a given task is executed a trigger will fire and That action can affect many rows. Thus, the question "code" is that I want to know the primary key for that line. is a misnomer, multiple rows can be inserted SQL Server entered and deleted names, which represent the rows that are inserted or deleted by an action and are evenly structured to the table An Impact is Being Affected Theet trigger can populate both entered and deleted , whereas an insert trigger will only populate the table From the comments: But the decision of the ...

c# - insert html tags into <li> programatically -

मुझे पता है कि soultion सरल होना चाहिए। string x = "xxxx और मैं सूची वस्तु को प्रोग्राम के साथ जोड़ना चाहता हूँ Yyyy "BulletedList.items.add (x) मुझे देखना है xxx yyy और नहीं xxx & lt; Br /> yyy कृपया मदद अधिक लचीलेपन के लिए प्रत्येक सूची तत्व पर प्रदान किए गए HTML पर, इसके बजाय एक repeater या ListView का उपयोग करने पर विचार करें। आपके & lt; ul & gt; और & lt; li & gt; टैग को सेट करने के लिए उन्हें थोड़ी अधिक HTML की आवश्यकता होती है, लेकिन आपको & lt की सामग्री पर मनमाने लचीलेपन की आवश्यकता होगी ; Li & gt; । & lt; ul & gt; & Lt; asp: पुनरावर्तक आईडी = "पुनरावर्तक" runat = "server" & gt; & LT; ItemTemplate & gt; & Lt; li & gt; & Lt; div & gt; कोई भी HTML या डेटा बाध्यकारी है। & Lt; / div & gt; & Lt; / li & gt; & Lt; / ItemTemplate & gt; & Lt; / एएसपी: पुनरावर्तक & gt; & Lt; / ul & gt;

vsto - Couldn't use Activation Context API from within Excel 2007 Add-in on Windows XP/2003? -

I use VS2008 to develop an Excel 2007 add-in, within the add-in I activate the reference API I want to use COM class The strange thing is that I can successfully install the COM class on Windows 7 / XP, buf fails on Windows XP / 2003. Here is the code snippet string codebase = this.GetType (). Assembly.CodeBase; String asmFullPath = new URI (codeBase) .Local Path; String comAssemblyPath = path.gate directoryname (asmFullPath); ACTCTX AC = new ACTCTX (); Ac.cbSize = Marshall Size (typeact (ACTCTX)); Ac.lpAssembly directory = comAssemblyPath; Ac.lpSource = Path.Combine (comAssemblyPath, "ComVver.x.manifest"); Ac.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID; IntPtr cookie; IntPtr hActCtx = CreateActCtxW (Ref AC); (Activate ActCTX (HctCTX, Out Cookie)) (Try {// Com Class IComViewer = New Comcast Client (Instant)}} Finally {DeactivateActCtx (0, Cookies);}} Else {// TODO: Error Message} COM has been written in C ++ and looks like the manifest: On Windows 2003 /...

ipad - API's for supporting .epub format -

I've read that the iPad supports .epub format. So is there an API that makes reading and easy to display? Apu format file? Thanks API bus XHTML files and metadata (Indians, publishers, author details Etc.) So whatever you have to do is open the file (it can be renamed by a .zip extension) and then read XHTML files in a browser. There is a The offf file will list all the files that are in the zip. It assumes that the APB file is not DRM protected. If so, you can not read the program except that the DRM is specified. In order to break this encryption (usually the Adobe Digital version on any computer or iBooks on any iPad) is not permitted by DCMA or other laws in many countries.

wpf - what is the Advantage of DLR in Silverlight? -

DLR में Silverlight का लाभ क्या है > भाषा के विकल्प को आधुनिक ब्राउज़रों में लाने के लिए, सिल्वरलाइट डायनेमिक भाषा रनटाइम को सक्षम करता है, और बदले में सिल्वरलाइट डेवलपर्स को इंटरैक्टिव वातावरण प्रदान करता है उन्हें अधिक उत्पादक बनाने के लिए यह आपको जल्दी से एचटीएमएल या सिल्वरलाइट ग्राफिक्स आधारित वेब अनुप्रयोगों को शक्तिशाली स्क्रिप्टिंग भाषाओं के साथ किसी भी विकास के वातावरण में लिखने देता है। सी # और वीबी के अलावा एनआईटी, डायरेक्टिव लैंग्वेज रनटाइम (डीएलआर) का प्रयोग करके बनाई गई प्रोग्रामिंग भाषाओं में सिल्वरलाइट अनुप्रयोग भी लिखा जा सकता है, जैसे रूबी और पायथन। लेख: प्रदर्शन के बारे में:

Video Capturing + Uploading + Processing + Streaming back - .NET & C# -

We are trying to find any of the technical / libraries available in the NET stack (also the wrapper at the top of the 3rd party DLS 1 - Capturing an image from a user's video device 2 - Upload it to realtime on the server 3 - Take action on the video (for example) - like: Adding a watermark to the video 4 - Revert the user to other users Switch to preferably, step 2 should be less than the time delay / decrease between 4 The first requirement (capturing) a straight look ahead. Identifying a suitable method for uploading, processing, and streaming the challenge. Any valid suggestions or ideas? Recently came the Across FFMPEG library, and it has a C # wrapper. Can FFMPEG be used for the processing side? I will go about this way: Video Use Silverlight or Flash to capture the camera input, just like. You can send that byte stream to which your server is listening. At the end of receiving, simply use the socket-acceptable program as a router-program. List...