Posts

Showing posts from February, 2015

actionscript 3 - Dynamically change 3D Center point in FlashCS4 -

Using the new 3D features in CS4 I know that you can manually move the 3D center point through the Transform panel Can change, but does anyone know how it can be dynamic in order? (I.e. through code) I did not even know that, but I did a quick Google research And found I think it would do something like this: this.transform.perspectiveProjection.projectionCenter = new point (200,200);

a Simple "Hello World" Inline Assembly language Program in C/C++ -

मैं devcpp और borland c संकलक का उपयोग करता हूँ .... asm {mov कुल्हाड़ी, 4 // (आई / ओ फ़नका।) Mov bx, 1 // (आउटपुट फ़ंक) mov cx, और नाम // (स्ट्रिंग का पता) mov dx, 6 // (स्ट्रिंग की लंबाई) int 0x21 // सिस्टम कॉल} उपरोक्त कोड स्निपेट्स में मैं असेंबली भाषा की मदद से एक स्ट्रिंग प्रिंट करना चाहता हूं ... लेकिन मैं कैसे रजिस्टर सीएक्स में स्ट्रिंग का पता डाल सकता हूं ... । क्या कोड में कुछ गड़बड़ है ??? मैं नहीं बोरेलैंड कंपाइलर को हाथ में है, इसलिए मैं इसकी वाक्यविन्यास को गलत ढंग से लिख सकता हूं, लेकिन आपने यह कोशिश की है: asm {mov ax, 4 // (I / O Func।) Mov bx, 1 // (आउटपुट फ़ंक्शन) एलडीएस सीएक्स, "हैलो, वर्ल्ड" // (स्ट्रिंग का पता) mov dx, 6 // (स्ट्रिंग की लंबाई) int 0x21 // सिस्टम कॉल} या यह: चार msg [] = "हैलो, विश्व"; Asm {mov ax, 4 // (I / O Func।) Mov bx, 1 // (आउटपुट func) lds cx, msg / (स्ट्रिंग का पता) mov dx, 6 // (स्ट्रिंग की लंबाई) int 0x21 // सिस्टम कॉल} संपादित करें: हालांकि यह संकलित होगा (अब जब मैंने MOV को एलडीएस में बद...

css - jQuery Innerfade - fading weirdly on IE7 -

I'm wrapping up a new site, and I'm using an in-built plugin on the site's homepage. For some reason, the fading is slow and choppy. Javascript-wise only other thing is fancy zoom, but I have not made any changes to it beforehand. Any thoughts? Other posts are pointing to CSS issues .... I can not help myself , I still wonder - is not Enerfed Ted Overkill? (I saw that you only use it for landing page, do not you?) I did very similar to 20 lines of jQuery code (and this is a bit configurable :)) - If you want to ' Again interested, I can post it): In addition, the animation still seems a bit choppy in Google Chrome.

C# Mapping struct in ActiveRecord -

I'm applying a little bit to help balance my checkbook. I am using Castle Actocarcord to map object properties to the database. Now there is a problem as I am making a money program. I have created a structure. Structure: public structure currency {private long amount; Private currency type currency; Public long amount {come back} } Set {this.amount = value; }} Public Transcript Printer {Get {return.currencyType; } Set {this.currencyType = value; Class I: The mapping is: [ActiveRecord ("[transaction]")] Public class transactions: HasOwnerModelBase {Private currency amount; Private Category Category; [Belges] Public virtual category category {get this categorized; } Set {this.category = value; }} Public virtual currency amount {receive {this.mount; } Set {this.amount = value; }}} Now in the ideal case, the currency object will act as a nested object so that the amount and type the currency, there are two colums in the transaction table. But it does not look nes...

.net - Scrolling horizontally and vertically ListView WinForms C# -

I have some questions about scrolling list views without using external ListView controls from other vendors (free or paid versions). How to create 2 (or more) ListView is bound together in a way that if I start scrolling a ListView does another one exactly do the same? Is it possible to do with the original 3.5 or 4.0 (when it has been released) the list view? When you try to scroll the list view on right or left using the arrows on the scroll bar, it is very slow. For the fastest way you have to either grab the scroll and take it yourself or have to jump with it, is there any way to speed up the left or right? Like a bit below / up? (Although I think the speed is the same as the length of scrolling is only proportional). Text "> You have to use P / invoke to do this work. You will find the example code in it for a ListBox, it will also work for ListView. Use pinvoke.net to find C # declaration for SendMessage. I do not know about any fix for scroll ...

How to cancel Ruby Net::HTTP request? -

How do I get Ruby's Net :: HTTP Module to cancel a request? http.finish raises an error below I get the impression that the feedback object does not know that the connection was closed and still more data is expected. I want to avoid making a head request, therefore, request a GET, as long as the content-type is not HTML, cancel the request. net :: HTTP.start (uri.host, uri.port) do. Http | Http.request_get (uri.path) does. Feedback | As long as the feedback ['content type'] = ~ / html / i http.finish end-end end /usr/lib/ruby/1.8/net/http.rb28241: 'stream_check': attempt to read the body outside the block (IoROR ) /usr/lib/ruby/1.8/net/http.rb2171:IN/usr/lib/ruby/1.8/net/http.rbaxy198: In 'read_body' / usr 'body' / usr / lib / ruby ​​/ From `1.8 to` request '/usr/lib/ruby/1.8/net/http.rb:1052: to' reading_body '/lib/ruby/1.8/net/http.rb:3737/nnet/http.rb: 948: `Request_get 'from net.rb: 9 / usr / lib / ruby ​​/ 1.8 / net...

How do I use a Python regex to match the function syntax of MATLAB? -

I am trying to find all input / output of all MATLAB functions in my internal library. I'm trying regex and new to use margin mode in Python's again library. The MATLAB function syntax looks like this: function output = funny_nm (input) where signatures can span multiple lines is. I started with a pattern: re.compile (r "^. * Function (. *) = (. *) \ ([. \ N ] * \) $ ", Re.M but I'm getting an unsupported template operator error. Any pointer is appreciated! Edit: I now have: pattern = re.compile (r "^ \ S * Function (. *?) = [\ W \ n.] *? \ (. *? \) ", Re.m. re.Dotal) which gives matches Like: function [fcst, spread] = ... wolfstastmkeyt (r, ... mktVol, ... check, spread ..., ... fcstdays, ... Tsperyear if (calibrate) if (Nargin and lieutenant; 6) tsperyear = 252; Last temp = length (r) My question is why does he first give additional row instead of stopping ) ? If you are receiving a strange (internal) error ...

c# - Iterate through CheckedListBox in WinForms? -

If I checked the list box in the Win form which fills me like this List & lt; Work & gt; Function = db.GetAllTasks (); Forchach (various types of work) checklist item. Add (T.me.me); How can I reactivate tasks. Can you set some check boxes as box and check? Thanks If you want to do this after adding items, An example has been copied here: Private Zero CheckEveryOther_Click (Object Sender, System.EventArgs E) {// cycle through each item and each other Check // Set this to true to know when this code is being executed. ItemCheck // is used in the event handler in. Other = true; (Int i = 0; i & lt; checked listbox 1. items.count; i ++) {// For each other item in the list, set as check if ((i% 2) == 0) {// But for a second item, which is to be checked, an // is set as being indefinitely checked state. If ((i% 4) == 0) checklist button 1 .set item template (i, checkstate indentinate); And checked checkbox 1 .Set item check (I, true); }} Inside = other false...

prototypejs - How can I use FancyUpload (with mootools) side by side with prototype.js? -

I have a site that I am using prototype and lipatasial. One page of my site, I would like to use the Digiertrad Fancy utilizer (I have not found anything that is beautiful, and offers many file choices) Is it possible to use two on the same page? If so, how do I do this? Script with Mootools prototype . While Mootools provide an dollar-safe mode , then only the compatibility is provided in that mode frameworks which are $ ( ) function. The reason Mootools and prototype are inconsistent is that they both extend the original Javascript native with their own methods, unfortunately, this behavior There is no way to override. is an alternative solution that is compatible with many javascript frameworks. It is quite functional as a fancy upload, you may want to consider it as an alternative solution. If not, you need to make an alternative between Mootools and prototype .

php - Zend Framework: catch custom soap exceptions -

साबुन वेब सेवा ऑपरेशन का अनुरोध करते समय मैं अपने कस्टम साबुन गलती ProductoInexistente कैसे पकड़ सकता हूं? मेरा कोड निम्न है, लेकिन यह काम नहीं कर रहा है: $ _ WSDL_URI = 'http://joaquinlrobles.redirectme.net:8080/Pelopincho/PelopinchoService?WSDL'; $ Ws = नया Zend_Soap_Client ($ _ WSDL_URI, सरणी ('साबुन _वर्जन' = & gt; SOAP_1_1)); कोशिश करें {$ resultado = $ ws- & gt; getStockProducto (सरणी ('idProducto' = & gt; $ idProducto)); $ The-> gt; दृश्य- & gt; परिणामस्वरूप = $ परिणाम-> & gt; परिणाम; } पकड़ (उत्पादोइंक्सिस्टेंट $ पूर्व) {$ this- & gt; दृश्य- & gt; परिणामकोड = 'उत्पादक इनएक्सिस्टेंट'; } धन्यवाद! क्या प्रकार का अपवाद है उत्पादोइंक्सिस्टेंटे फेंक दिया गया है? कोड को $ _ WSDL_URI = 'http://joaquinlrobles.redirectme.net:8080/Pelopincho/PelopinchoService?WSDL' को बदलने की कोशिश करो; $ Ws = नया Zend_Soap_Client ($ _ WSDL_URI, सरणी ('साबुन _वर्जन' = & gt; SOAP_1_1)); कोशिश करें {$ ...

profiling - What is LicenseInteropHelper.getCurrentContextInfo and why is it using so many cycles of my .net app? -

I'm working on a web service that performs tuning performance. I am using JetBrains testing to profile the application. When I have a file of 15% GetCurrentContextInfo import execution time, here's signature: void System.ComponentModel.LicenseManager.LicenseInteropHelper.GetCurrentContextInfo (Int32 & amp;, IntPtr & amp ;; RuntimeTypeHandle) These function calls are considered coming from my query function: public function query (ByVal as SQL string ) As ADODB.Recordset Try Dim Conn as ADODB. New ADDB as Connection Direct Rikneset conn = Krnkshn () r.Open (SQL, Conn, Adiodibi. Kaiser ANM type. Odostatik, Adiodibi. Loktaipeaanyuem.adelok Reedonli) Catch as returns RS system. From time to time. Interp Services Handling COMExceptionDebatesErender (former) End Try End Function The Connection () function is a connection pooling. I'm not coming to find it GetCurrentContextInfo understand - I could not find a reference in the resolution What is the task, ...

iphone - How do I get a timestamp from an NSString date? -

I have an NSString date ( @ "Monday, 01 February 2010 20:25:37 +0000" / Code>) that I want to convert to a timestamp so that I can better calculate how much time has passed since the present time. How can I change the NSString date to a timestamp value? This has not been tested in full but it should do the trick. NSDateFormatter * formatter = [[NSDateFormatter alloc] initWithDateFormat: @ "EEE, DD MMM yyyy HH: mm: SSZZZ" allowNaturalLanguage: no]; NSDT * Date = [Formattor Deaththrustring: @ "Mon, 01 Februar 2010 20:25:37 +0000"];

sqlite3 - python sqlite check points? -

I am working with Python sqlite3, I have found that we have given a committ and rollback option. What does some checkpoint like SQLite3 allow? For example: The initial condition is empty. ... Put something ... Commit ... ... Add something Some updates got a problem. Now I want to roll back to the initial position. Can not support any SQL database engine "Undo multiple", Nested transactions (a less common concept) For, consider the SAVEPOINT feature (per!) - Most of what you just need can be sufficient to do most.

python style question around reading small files -

What is the most dragon way of reading in the named file, strip rows which are empty, are only spaces, or # ago In the form of letters, and then process the remaining lines? Suppose that all fit easily in memory. Note: It is not difficult to do this - what I am asking is the path of most dragon. I am writing lots of ruby ​​and java and lost my experience. Here is a stromman: file_lines = [line.strip () for open row (Config_file, 'r'). Readlines () if LAN (line.strip ()) 0] file_lines for line: if line [0] == '#': Continue # Whatever the line with the line here. I am interested in divorce but not at the cost of being difficult to read. line = [R for open (thefile) if not r.isspace ( ) And r [0]! The best way to test the method of string is if a string is completely white space - such as len (r.strip ()) = = 0 (ech; -).

c# - mvc controller returns 'html data' instead of view -

मेरे पास मॉड्यूल नियंत्रक है जो main.aspx पृष्ठ में एक दृश्य पृष्ठ (.aspx) देता है (renders) लेकिन अब मैं नियंत्रक को .aspx पृष्ठ की संपूर्ण सामग्री को जावास्क्रिप्ट समारोह में वापस करना चाहता हूं जहां से यह नियंत्रक कहा जाता है pls help मेरे कॉलिंग फ़ंक्शन में Main.aspx $ .get ('/ module / select /', {templateName: TemplateName}, फ़ंक्शन (परिणाम) {चेतावनी (परिणाम);}); मेरे नियंत्रक सार्वजनिक कार्यवाही परिणाम चुनें (स्ट्रिंग TemplateName) {वापसी दृश्य (TemplateName); } इसे फ़ंक्शन में 'TemplateName' की सामग्री को वापस करना चाहिए (परिणाम) {....} आपको नियंत्रक की कार्रवाई में एसिंक्रोनस (एजेक्स) कॉल करने की आवश्यकता है और वस्तु को JSON के रूप में पास करना होगा। सफलता कॉलबैक फ़ंक्शन में केवल परिणाम eval और आप अपना ऑब्जेक्ट प्राप्त करेंगे। $ ("# yourButtonId")। क्लिक करें (फ़ंक्शन (ev) {ev.preventDefault (); $ ('/ मॉड्यूल / चयन /', {TemplateName: TemplateName}, फ़ंक्शन (परिणाम) {var myObject = eval ('(' + result + ...

java - JMS catching when a JMS server goes away -

When there is a network problem, which results in the customer being disconnected from the JMS server, there is no other way to find out Does the problem fail other than waiting until the next JMS message is being sent? You can use the JMS connection by using the connection.sextension listener ( Exception Listener) Exceptionist listener will get more problem information than actual disconnection, so that you may have to filter JMSException Which is given to the listener.

javascript - Date constructor returns NaN in IE, but works in Firefox and Chrome -

I am trying to create a small calendar in javascript. I have my dates for working in Firefox and Chrome, but the date function is returning to NaN in IE Here is the function: Function buildback (date text) { Var headerDates = ''; Var newDate = new date (dateText); For {var d = 0; d '; NewDate.setDate (newDate.getDate () +1); } JQuery ('div # headerDates'). Html ('& lt; Table & gt; & lt; tr & gt;' + headerDates + '& lt; / tr & gt; & lt; / table & gt;';); } date text is the current week's Monday, which is actually set to php in the format of 'm, d, y', e.g. "02, 01, 2010" . The date creator accepts any value. If the argument is the primitive [[value]] number, then the date is equal to that value. If the primitive [[value]] is a string, then the specification only guarantees that the date constructor and parse method are able to parse the result of the date. Prototype. String and...

c - configure gdb compiler in netbeans6.8 in linux platform -

I have a small problem. Anyone can say how we can configure the GDB compiler in NetBean 6.8 in the Linux platform. Thanks in advance. Normally - if you are on Linux and GCC / G ++ / GDB is installed - then It should work out of the box. However - if this does not work, then you can try the following: Select `Tools' from the main menu Select 'Menu'. Select 'C / C ++' Navigate to 'Debugger Command' and enter the path for GDB, like / usr / local / bin / gdb

How to add a Boundary outline in UIView of Iphone.Please Read Description -

Image
I want to create a rectangular border and want to insert a UITQview and two buttons in that rectangle. If I add a subview from the rectangle UIView square I am unable to interact with the controls in the rectangle area which I put in the subview from the interface builder. I'm attaching a screen for this In this image I have to make a rectangle and have to include a text view and two Ui buttons. If I am making the rectangle from the UIView and adding it to the view controller, the interface builder does not respond to the controls added in this subview. So I have the program to add these controls, which make this task very difficult . Please provide me with a solution to make the boundary of the rectangle and add control. Just insert a control in a container UIView and borderWidth and BorderColor Set the properties of the layers of the container view.

delphi - Why do interface implementations based on TComponent leak memory? -

This Delphi code will show a memory leak for an example of TMyImplementation: Program LeakTest; Uses classes; Type MyInterface = interface end; TMyImplementation = Class (TComponent, MyInterface) end; TMyContainer = Class (TObject) Private FInt: MyInterface; Public Property Implements: Read MyInterface FIST to FInt; End; Var C: TMyContainer; Starting ReportMemory Lexon Shutdown: = True; C: = TMyContainer.Create; C.Impl: = TMyImplementation.Create (zero); C.Free; End. If TComponent is replaced by TInterfacedObject and the constructor has been replaced to make it, then the leak disappears. What's different with TComponent? Thanks a lot for the answer briefly: It's easy, but wrong to say, "If you are using the interface, then their reference is counted and therefore they are free for you." In fact any class that implements the interface can break this rule. (And no compiler gesture or warning will be shown.) difference in implementation TComponent._R...

Tool for get image sources parsed from css -

The task is simple, which will parse the CSS on the network website, from there images Read the link and download them to the structured folders in the local disk. It is important that the device should be ready to use, and the designer should be able to use it. Answer: "You can write equipment yourself fine", but is not acceptable for finished equipment. You can get the URL manually from CSS with regular expression.

internet explorer 6 - IE6: select inside jQuery tabs does not render dropdown list -

I have a form inside the jQuery tab; I make tabs in a simple way: $ ("# tab"). Tab ({selected: 1}); Selected index 1 is the tab where the form is placed. The problem is that with a IE 6 dropdown arrow click on a remote computer, a small blank row is displayed instead of the list with the option: In the Options Page Source And everything actually works on other machines, in other browsers and in IE6 (though I use ittestar). Everything works even if I remove tab creation .tabs () - Options appear and work; Or Select the first tab without the form (tab 0), and then click on it - options appear and only when clicked do the work; Programmatic after creating tabs Tabs ("Select", 1) Does anyone know what might be causing this? Is this something with IE6 bugs or my scripts? Update: Hm, thanks, I found that this is something with my CSS - if I disable this Site.css works, I still had to figure out the script to find out still What is that Upda...

Java integer to byte array -

मुझे एक पूर्णांक मिला है: 1695609641 जब मैं विधि का उपयोग करता हूं: स्ट्रिंग हेक्स = पूर्णांक.टैक्सस्ट्राइंग (16 9 560 9 641); println (हेक्स); देता है: 6510f329 लेकिन मुझे एक बाइट सरणी चाहिए: बाइट [] bytearray = नया बाइट [] ((बाइट) 0x65, (बाइट) 0x10, (बाइट) 0xf3, (बाइट) 0x29}; मैं यह कैसे कर सकता हूं? जावा एनआईओ का उपयोग कर रहा है बहुत सरल: बाइट [] बाइट्स = बाइटबफर.ऑलोकेट (4) .पुटआईंट (16 9 560 9 641) .रात्र (); (बाइट बी: बाइट्स) के लिए {System.out.format ("0x% x", b); } आउटपुट: 0x65 0x10 0xf3 0x29

Sidebar Gadget to Login to website and retrieve information? -

I'm learning how to make gadgets and simple gadgets all understand. How will I create a gadget that logs into a website and retrieves the details of that user (so it imitates a lot of user logging and showing basic information?) (like the Facebook gadget that shows any message, "Pokes", etc. etc. .... What many sites like Facebook offer is an API ( a documentation p rogram I nterface, and a developer network full of documentation that can be used to access the detailed information provided by the site or on the site. For a comprehensive list of sites that provide APIs, see. To receive sensitive user data, from Facebook, eBay and most other sites Require that you sub Ogkrta give instructions to sign on your site to get the token, add to your application, authorize it to access the restricted API calls to the user.

How do I prevent git diff from using a pager? -

क्या git diff और अन्य कमांड जो कम पेज़र डिफ़ॉल्ट रूप से? मुझे पता है कि मैं इसे बिल्ली में पाइप कर सकता हूं, लेकिन यह सभी सिंटैक्स हाइलाइटिंग को निकाल देता है। मुझे पता है कि मैं पेजर को वैश्विक .gitconfig को बिल्ली द्वारा GITPAGER = cat (या ऐसा कुछ); लेकिन मुझे कभी-कभी पेजर (diff के आकार के आधार पर) होना है। लेकिन, यदि कोई है तो मैं एक कमांड लाइन स्विच को पसंद करता हूं; और मैं किसी को खोजने में सक्षम नहीं हूं, मैन पेज के माध्यम से जा रहा हूं। - नहीं -पीगर जीआईटी के लिए यह पेजर का इस्तेमाल न करने के लिए कहेंगे -F कम करने के लिए इसे पृष्ठ पर नहीं बताएगा यदि आउटपुट एक स्क्रीन में फिट हो। उपयोग: git --no- पेजर अंतर टिप्पणियों में से अन्य विकल्प शामिल हैं: # अपने पेजर के लिए बिल्ली का उपयोग करने के लिए एक वाष्पीकरण वातावरण चर सेट करें GIT_PAGER = cat git diff # कम बताएं पृष्ठ के मुकाबले यदि कम से कम निर्यात नहीं किया जाए तो कम से कम = '- एफ -एक्स $ कम' # ... तो सामान्य git diff के रूप में git

Can I import tab-separated files into MySQL without creating database tables first? -

As the title says: I have a set of separate text files from a tab containing data I know that if I manually use 'Create Table' to set all the tables, then I can import them into wait tables using 'load data' or 'mysinklinport'. But is there any way to automate the tables based on tab files? It seems that there should be (I know that MySQL may have to guess the data type of each column, but you can specify it in the first row of the tab file.) No, it is not. In either case, you first need to create a table . Automatically creating tables and estimating field types is not a part of DBMS job. This is the best job for an external device or application (which then creates the required details).

Design pattern for file based communication? -

I have to expand an existing program (Java is based, but it should not be counted). This program should communicate with any other program X. This program is X. The UI is a little small and only supports file based communication. This means that I have to put my file in a certain folder. "Answer" is placed in another folder, where I have to choose it. Are there any design patterns for such communication? If I think about it, the problem of file locking, unfolded io-streams etc. comes to my mind. Do you have some more descriptive keywords for my googleing? "File based communication" does not take it. Perhaps the pattern you want I want to improve the article in Wikipedia Find articles. But the description of the main concepts is quite clear there (just replace 'buffer' with 'file' for your concrete case).

asp.net mvc - Rebinding a list of textboxes in ASP MVC2 VS2010 Beta2 after postback -

So .. I have a problem. I was sure that almost anyone tried MVC Despite this, I have failed to score a solution or think one for myself. The problem is this: I have a list of text boxes which I would like to edit every one at a time, even though D also likes to add new items to my list, though the text post binding after the first postback Fails. So I have made a small example to clarify this problem: using & Lt; P & gt; & Lt;% = Html.TextBox ("list", s)%> & Lt; / P & gt; & Lt;%}% & gt; & Lt; P & gt; & Lt;% = Html.TextBox ("newstr")% & gt; & Lt; / P & gt; & Lt; P & gt; & Lt; Input type = "submit" value = "save" /> & Lt; / P & gt; & Lt; / Fieldset & gt; & Lt;%}% & gt; Controller code: [AcceptVerbs (edit.httpVerbs.Get)] Edit Public Functionality () {Return View (new list & lt; string & gt; ; () {"AA", "BB", ...

Which is the quickest appender for log4Net? -

लॉग-इननेट के लिए कंसोलपैडर के अलावा सबसे तेज एपेन्डर कौन सा है? चेकआउट करें हम इसका उपयोग करते हैं जो कि आगे के लिए। यह लिखता है और लिखने की प्रतीक्षा किए बिना कोड को जारी रखने की अनुमति देता है। हम चेतावनी थ्रेशोल्ड पर फ्लश को मजबूर करने के लिए एक एवल्यूलेटर सेट करते हैं और झूठी हानिकारक सेट करते हैं इसलिए हम किसी भी संदेश को याद नहीं करते हैं। & lt; appender name = "बफ़रफ़ोर्डिंगअपेमेन" प्रकार = "लॉग4नेट। अपैडर। बफरिंगफॉरवर्डिंगएपेडर" & gt; & Lt; बफर साइज़ मान = "512" / & gt; & Lt; हानिपूर्ण मान = "गलत" / & gt; & Lt; मूल्यांकनकर्ता प्रकार = "log4net.Core.LevelEvaluator" & gt; & Lt; दहलीज मान = "वार्न" / & gt; & Lt; / मूल्यांकनकर्ता & gt; & Lt; एपेन्डर-रिफ रेफरी = "रोलिंगफ़ाइलअपैडर" / & gt; & Lt; / appender & gt;

Xcode and input/output files -

I have to input my input files straight into the root directory to see them, and the output file is always the same root . How can I configure xcode to change input / output directories? Your application should never make any assumption about the current workplace when it launched goes. It will be different from the command line or from the finder or through other methods when launched with Xcode. You must either use the full path for your input / output files (icky but can be acceptable for "research" type codes), or they must be placed in a specific location, or some other defining location Reliable way.

Read WCF Message body twice - "Message Cannot be read" -

I have a WCF message (Channels.Message) that I am trying to remove from the body. However, I think I can do it only once, and if I'm trying to use "GetBody"> I'm getting: "This message can not support operation because It has been read. " Any ideas how can I read the message body again? Thanks What you are trying to do on MSDN There is a very good article in the section to see a message titled titled titled in a buffer. It clearly talks about reaching the body more than once.

rest - Rails: How to parameterize access to a RESTful resource? -

I am looking for a comfortable way to pass through options in a service. Now I have a standard device that has standard rail Is available in: map.resources: devices ,: member = & gt; [: Historical] So I can get my device from / devices /: id and I can not get the value of / devices /: id / historical I really want to add an absolute to the historical URL which specifies a threshold, so when I ask for historical data, then I am per hour, daily, weekly, month. / devices /: id / historical /: range Is there a way to set it up to be the way to adjust it? Or do I just call it / devices /: id / historical? Range = hourly , but I'm not sure whether this is breaking frightening conventions or knowing about what is best. I think your question really is how to know when it is a resource As is appropriate to represent something and parameter it using the query string. I do not know your domain, but with your question it appears that there is a historical data ...

cluster computing - How do I send a module to an Erlang node? -

I have several nodes running in an Erlang cluster, each using the same magic cookie and one- Are trusted by others. I have to send a master node code and module to other nodes. How can I do this? use nl (module_name). Code on all nodes to load.

How to sort array in javascript? -

var arr = []; arr.push (ROW1); arr.push (पंक्ति 2); ... एड। पश (रोन); पंक्ति ['कुंजी'] एक जावास्क्रिप्ट सरणी में एक अंतर्निहित विधि है। इस मामले में, कुछ ऐसा काम निम्न होगा: arr.sort (फ़ंक्शन (पंक्ति 1, पंक्ति 2) {var k1 = row1 ["key"], k2 = row2 ["key"] ; वापसी (k1 & gt; k2) 1: ((2 k2 & gt; 1)? -1: 0);});

Incorrect "Unable to start debugging...Unable to attach to ASP.NET worker process" message in Delphi 2007 for .NET -

I have seen this for a long time, and finally decided to put the question here. I have some applications that I need to maintain that were written for Delphi 2007 for .NET (ASP.NET 2.0). Usually, for the first time I run the application (using IIS) I'm unable to start debugging on the classic "Web server. Unable to attach ASP.NET worker process" message. I just press F9 (run) again, and it moves. Sometimes I have to run several times before it will actually run, to try. I'm running Windows 7 64-bit (and have seen the same effect on Vista 64-bit). What do I need to configure IIS for ASP.NET, and I need to do the following code in my Web.config file . & Lt; System.webServer & gt; & Lt; Module & gt; & Lt; Name = "DbgConnect" type = "Borland.DbkAsp.DbkConnModule, Borland.dbkasp, version = 10.5.0.0, culture = neutral, publicKeyToken = b0524c541232aae7" pre-condition = "managedHandler" /> & Lt; / Module & ...

hotswap - Do other languages apart from Erlang have the ability to send code to running instances? -

I just found out that the elongated "nl" command can perform remote load codes and modules on all instances of the cluster Are there. Can any other language do this? Technically any kind of bids can do this. Since 'code data' is in Lispi, passing some code to a different box and this will work in 'eval'. SLIME does this by using sockets somewhat through remote printing.

c# - Determine the orginal build location / path of an exe using .Net Reflector or another tool -

I have an EXE which is currently deployed on our production server (C #. 2). I inherited the task of making some changes and re-deploying this app. I have not written this app and I have been pointing to different network drives with some different visual studio solutions (~ 10) on some different folders, through which time this app There were various impeditions and to be the claimant of the Visual Studio Project which was used to generate this exe, but I do not know which project was used which was in production EXE Matches. Is there a way to use it correctly or another tool when determining the original file path when they were used to compile EXE I can work backwards to determine the correct visual studio solution and to make changes there. Thank you This situation looks like a hell if you know it Can not believe what is the origin of what is going on in production. However, one possible solution is to look at the debug header of the .exe assembly, if it is compi...

jquery - Trying to anchor a link in center of in-page scroller content -

I am trying to link to www.membersolutions.com in a press release. All pages with the homepage for the most part have in-page scrollable content. Anyway, I can link to a press release halfway on the page, I am pretty sure that you can not do it directly with HTML / CSS ?? The press release that I am seeing can not be scrolled because it is fine on the view panel Fit from Anyway, to link a page halfway, you have to target an appropriate anchor, it will have to target the tagged tag with respect to the id attribute. With that, you can target page # anchor-name, for custom scrolling, it will require a bit of JavaScript.

ruby - Understanding Simple ActiveRecord Updates in Rails -

I'm just diving in ActiveRecord and I can not find an answer to my question. If I am updating the attributes of an object and then calling Save ... will the ActiveCard save only DB when the new values ​​differ from the old values? Say I do something like this: / P> thing_to_update = Thing.find_or_create_by_code (some_code) if thing_to_update.name! = Some_name thing_to_update.update_attribute (: name, some_name) end I do not want to make additional calls to DB if I do not have it because I have to update many objects in potentially I Tried to read through docs and it does not mention anything about the older people about comparing new values. Am I missing something here? Thanks Used partial SQL updates not used for recording , But it's since April 2008.

html - Change content of a div using JavaScript -

How to dynamically change the contents of a device using Javascript should do this: & lt; Div id = "foo" & gt; Div that you want to change & lt; / Div & gt; and in JavaScript: document.getElementById ('foo'). InnerHTML = 'Your Content';

c# - Add a wrapper div to XSL XML -

I have the following XSL translators that are being used to generate some XHTML, XHTML generated in CX as XML form Is parsed so that it can be injected into another XHTML document. The problem is that XHTML is not a root XML node exposed from XLS, only the Sibling nodes (& lt; Table> element) I tried to manually add the div, but I got the error System.Xml.Xsl.XslLoadException : The top-level element 'div' can not contain an empty namespace, how can I add it using XSL so that all divisions of a div are all & lt; Table> s? & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" deprecated-prefix = prefix = "MSXL" xmlns: msxsl = "vase: schema-microsoft -com : Xslt "xmlns: msdata =" vase: schema-microsoft-com: xml-msdata "xmlns: xs =" http://www.w3.org/2001/XMLSchema "& gt; & ...

web services - Java Secure Webservice -

I am trying to convert an http webservice to https I added the tag to the webservice @ security dimension (value = "jboss -ssl") and @WebContext (contextRoot = "/ path / one" // // already added urlPattern = "/ X", // here already authMethod = "Client-CERT", // Added TransportGuarantee = "Confidential") // Added But when my customer tries to connect to https: // hostname: 80 / path / to / ws , I get an exception: Reason by: java.io .IOException: The HTTPS hostname is incorrect: may & lt; Hostname & gt; . (The whole thing shown below) I suspect that it is to be used with certificates which is being used, I think I have to use Java Kettle to solve this problem. . If someone can verify for me then he will be very much appreciated javax.xml.soap.SOAPException: java.io.IOException: org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal (SOAPConnectionImpl.java:115) the message could not be transmitted to org....

mysql cli: how to list all databases I have permisions to create/read/update/delete? -

Which command do I use on a mysql command line to see all databases on some database servers? Especially I am looking for DB that I have full CRUD permission. mysql-e "Show database" UPDATE : Depending on your editing, here is a query that you can run against mysql database in your server: mysql> Select DB from DB where user = 'AJ' and (select_priv = 'Y' and insert_priv = 'y' and update_priv = 'y' and 'delete_priv =' y '); + --------- + | DB + --------- + | Hupdibi | | Loksudibi | + --------- + 2 lines set (0.00 seconds)

mysql - Should I also index columns included in a PRIMARY KEY? -

This question suddenly went into my head ... I have a table which, based on their ID, I create table looks like this: create table 'ticket_content' (`ticket_ID` INT not tap, 'entity_id' INT not zero, 'indicated DO 'INT NO FAL DEFAULT 0, Primary key (`Ticket_ID`,` unit_ID`), key `ticket_id` (` ticket_ID`), key `unit_id` (` entity_id`)) I I am wondering if there is a need to include those previous two key lines, will I get better speed with the following questions, or do the individual columns automatically under the primary key Will be indexed from? SELECT * ticket_contact WHERE ticket_id = 1; SELECT * ticket from ticket_contact WHERE entity_id = 1; The index created by primary key is identical to any Other (potential mixed) UNIQUE index therefore you do not need to create a separate index for ticket_id because it is in (ticket_id, entity_id) index The main column is included in the form. By using that column independently of ti...

jsp - Integrating Seam app with flash file uploader -

I have a seam app and want to use multipuploader (). They give some processing script files (.asp, .aspx, .php), which should include a .jsp, define a flashover parameter with the relative path of the script. When I try to upload, I get the following errors: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred There is only one type imported the java file can be imported in: 6. Org.apache.commons.fileupload.FileItem fixes the package An error on the line in the generated Java file: 7 Only one type of import can be done. Org.apache.commons.fileupload.servlet.ServletFileUpload fixes the package An error in the Java file that is being generated: 8 Only one type can be imported. Org.apache.commons.fileupload.disk.DiskFileItemFactory fixes the package I've included commons-fileupload-1.2.1.jar. Even if this works, I do not think it's the best way to do this, it's happening in a .jsp when the app does not use any .jsp ... any advic...

why cannot find enum in different file in C#? -

मेरे पास एक सी # फाइल है जो कुछ सार्वजनिक एंमान और सार्वजनिक संरचना को परिभाषित करता है I अब मुझे उनके लिए त्रुटि कोड को परिभाषित करने की आवश्यकता है। मैंने फाइल में सबसिस्टम ईराउरेकोड नामक एक एंमाम को परिभाषित किया है। A और B दोनों में वर्ग के अंदर नहीं है। वे एक ही नाम स्थान में हैं फ़ाइल ए के एक स्ट्रक्चर में, मैं सबसिस्टम ईआरआरकोड एन्यूम का उपयोग करने की कोशिश करता हूं लेकिन यह मुझे त्रुटि बताता है मुझे बताइए: त्रुटि 1 प्रकार या नेमस्पेस नाम 'सबसिस्टमएर्राकोड' नहीं मिला (क्या आप उपयोग निर्देशक या अनुपलब्ध हैं एक विधानसभा संदर्भ?) अगर मैं उस फाइल में सबसिस्टम ईराउरेकोड को स्थानांतरित करता हूं कोई त्रुटि नहीं। लेकिन मैं वास्तव में उन्हें अलग करना चाहता हूं। मैं यह कैसे कर सकता हूँ? धन्यवाद, फ़ाइल ए: नामस्थान सिस्टम सॉफ़्टवेयर {सार्वजनिक स्ट्रेट स्थिति संदेशबॉडी {सार्वजनिक प्रक्रिया नियंत्रक स्टेटस राज्य; सार्वजनिक StatVal LVP_OK; सार्वजनिक सबसिस्टमएर्राकोड LVP_ERROR_CODE; }} फ़ाइल बी: नामस्थान सिस्टम सॉफ्टवेयर {// पब्लिक क्लास त्रुटि कोड // {सार्वजनिक enum सब...

c++ - How can I use a std::valarray to store/manipulate a contiguous 2D array? -

How can I use std :: valarray to store / manipulate 2D arrays Am I I want to see an example of a 2D array with the elements accessed by the row / column index. Something like this pseudo code: matrix (i, j) = 42; An example of starting an array like this would also be good. I already know about Boost. Multira, Boost.ubl, and Blitz ++. Feel free to answer why I should not use Valerre for my use case. However, I want to have a memory block (column x lines) for multi-dimensional array Top off: template & lt; Square element_type & gt; Square matrix {public: matrix (size_t width, size_t height): m_stride (width), m_height (height), m_storage (width * height) {} element_type and operator () (size_t row, size_t column) {// column major return M_storage [std :: slice (column, m_height, m_stride)] [row]; // line major return m_storage [std :: slice (row, m_stride, m_height)] [column]; } Private: std :: valarray & lt; Element_type & gt; M_storage; Size_t...

Rack::Session:Cookie error using Sinatra, Thin, Rails, and Rack::Cascade -

I have a combined Sinatra / Rail app that shares a session using rack :: Session :: Cookie. The app works fine when it starts with Rack :: Handler :: Thin. Run app , but if the racket file starts with thin start , then one in the rack Get the error:: Session :: Cookie: !! Unexpected error while processing the request: No marshal_dump is defined for the class Proc no marshal_dump is defined for the class /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0. 1 / lib / rack / session / cookie .rb: 64: `dump '/usr/local/lib/ruby/gems/1.9.1/gems/rack-1.0.1/lib/rack/session/cookie.rb: 64: in 'commit_session' / usr /local/lib/ruby/gems/1.9.1/gems/rack-1.0.1/lib/rack/session/cookie.rb:38:in 'call' / usr / local /lib/ruby/gems/1.9. 1 / gemstone / thin -1.2.5 / leeb / thin / connection RB: 76: 'block in pre_process' /usr/local/lib/ruby/gems/1.9.1/gems/thin-1.2.5/lib/thin/connection.rb:74:IN 'hold' / usr / local /lib/ruby/gems/1.9.1/gems/thin-1.2.5/lib/thin/co...

.htaccess - RewriteRule problem -

पुनर्लेखन नियम ^ ([az] {2} /) {0,1} showcategory / ([0- 9 ] *) / [Az \ -_ 0-9 \ +] * / mp / (। *) (/ {0,1}) $ /main.php?id=$2&il[lang]=$1&$3 [एल] रीव्रेट नियम ^ ([एज़] {2} /) {0,1} शोकेबेट / ([0- 9] *) / [एज़ \ -_ 0- 9 \ +] * / (। *) / एमपी / ( । *) (/ {0,1}) $ /main.php?id=$2&il[lang]=$1&page=$3&$4 [L] रीव्रेट नियम ^ ([एज़] {2} /) {0,1} शोकेबेट / ([0- 9] *) (/ {0,1}) / [az \ -_ 0-9 \ +] * $ /main.php?id=$2&il[lang] = $ 1 [एल] रीव्रेट राउल ^ ([एज़] {2} /) {0,1} शोकेबेट / ([0- 9] *) / [एज़ \ -_ 0-9 \ +] * / ([0- 9] *) (/ {0,1}) $ /main.php?id=$2&il[lang]=$1&page=$3 [एल] रीरमिट नियम ^ ([एज़] {2} /) {0,1 } Showcategory $ / main.php?id=0&il[lang]=$1 [एल] मैं इन पंक्तियों और स्थानीय होस्ट / शो श्रेणी का उपयोग / ठीक स्थानीय होस्ट / शो श्रेणी / 0/1 है ठीक है स्थानीय होस्ट / शो श्रेणी / 0/2 पहले पृष्ठ पर रहता है ... (वही 0/1) अच्छा नहीं है क्या समस्या है?

c# - Retrieving one object by using GetTable method over DataContext -

I have inherited a class from Datacontext for using Linux. Public class context: Datacontext {public context (string connection string): base (connection string) {}} [table (name = "tablename")] Public class ClassOfTable {} And I have another class that has been mapped on a table to get all the lines in the class context.getteable method, which is mapped to classfotable classes. But I want to get just one row from the database table. I can use it this way: classoffable cls = context.getetable & lt; ClassOfTable & gt; (). Where (P = & gt; p.id == 1). first (); But it will retrieve every row of the table and I do not want to do this. What should I do to take only one row from the table? This will not retrieve all the rows of a table, this is just 1 row via a statement in SQL Can get from Remember that the link is, GetTable & lt; T & gt; actually runs anything, only when . The first () runs is called anything. We often add this meth...

entity framework - How to eager load in WCF Ria Services/Linq2SQLDomainModel -

I have a database grid on my view (XAM) and there are item resources for a report collection. There are ancient and some complex types. All three have been shown as expectations of the datagrid. Apart from this, there is a type of shop in the report unit. When loading reports through the GetReports domain method, I quickly understand that only the priorities come back and there are not all the graphs of some depth, so, as I wanted to load the store property, I used to do my domain service This change was made: Public IQueryable & lt; Report & gt; GetReports () {return.ObjectContext.Reports.Include ("Store"); } I see from the immediate window, the store is relatively loaded, but while returning to the client, it is still sorted out. How can this be fixed? Thank you! To store the store's property [Include] ReportMetadata class. [MetadataTypeAttivate (Typf (report report metadata data)) Public partial class report {Internal sealed class reportMatetta...

wpf - VS2008 XAML Designer exception "Key cannot be null" when using default styles from a ResourceDictionary -

i am using a shared resource tool to define the default styles and Visual Studio Aksamel Designer 2008 I am struggling big. key can not be null merged into XAML design is visible to all efforts to show the footage can be use dictionary App.xaml (all windows) And has many styles of default setting for control, so they shown without a key are below them. If you add X: the main feature for styles, they are no longer applicable by default. I do not want to put a clear style segment on every control, but it seems I can have to do this. & lt; ResourceDictionary xmlns = "http://schemas.microsoft.com/ Winfx / 2006 / xaml / Presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml" & gt; & Lt; Style x: key = "windowStyle" TargetType = "{x: type window}" & gt; & Lt; Setter property = "background" value = "light gray" /> & Lt; / Style & gt; & Lt; Style TargetType = "{x: ty...

c# - What is the collection version of SingleOrDefault for a Dictionary<T>? -

शीर्षक का प्रकार यह सब कहते हैं। मैं बस एक शब्दऑर डीफॉल्ट \ ListOrDefault \ संग्रहऑर डीफॉल्ट विकल्प नहीं ढूंढ पा रहा हूं। क्या ऐसा कोई तरीका है? यदि नहीं, तो मैं यह कैसे करूँ: MyClass myObject = MyDictionary .SingleOrDefault (x = & gt; {यदि (x.Value! = Null) रिटर्न (x.Value.Id == sourceField SrcField.Id); और झूठी वापसी;})। कुंजी; अगर एक से अधिक मैच हैं? (मुझे एक निष्पादन मिल रहा है क्योंकि सिंगलऑर डीफॉल्ट केवल एकल परिणामों के लिए होता है (कल्पना कीजिए!)। लगता है कि मुझे स्पष्ट होना चाहिए (हालांकि जहां जवाब दिखता है अच्छा)। मेरे पास उपरोक्त बयान है मैंने अपना कार्यक्रम बदल दिया है ताकि यह हमेशा 1 पर वापस नहीं लौटाता (बहुत सारे मान हो सकते हैं जो एक कुंजी से मेल खाते हैं)। यह विफल हो जाता है इसलिए मैं वापस लौटने के लिए एक संग्रह (सिर्फ एक आइटम के बजाय) की तलाश कर रहा हूं। आप IEnumerable & lt; T & gt; .FirstOrDefault (Func & lt; T, bool & gt; predicate) का उपयोग कर सकते हैं यदि आपका इरादा पहले की वस्तु से मेल खाता है अन्यथा आप केवल IE...

javascript - How do I pass in config info to CKEditor using the jQuery adapter? -

I'm using with the latest. I have successfully found it to work, and display it. However, as I am totally new to CKeditor , how do I pass the config variable using the jQuery method? This is what I have found $ ('# input-content'). Cleditor ('', {toolbar: 'basic'}); I think what I have read, the first argument is to be a callback, and the other config, but by doing so, the editor has not changed at all. How do I use the jQuery adapters etc? I have completed using this code. Hope this will be helpful. Here is the html: & lt; Textarea id = "txtMessage" class = "editor" & gt; & Lt; / Textarea & gt; And here's Javascript: try {var config = {height: 180, width: 515, linkShowAdvancedTab: false, scayt_autoStartup: true, enterMode: Number (2), toolbar_food: [['Styles',' Bold ',' Italic ',' Underline ',' SpellCaker ',' Skate ',' - ',...

c++ - Double to int conversion behind the scene? -

I'm curious to know what happens behind the scene, to change it int twice, int (5666.1) Say? Can it be more expensive for parents than a static_cast of a child's orbit? Since int and double representation is fundamentally different, it is going to be temporary and expensive during this process. An instruction for converting floating-points into integer data to any CPU with the original floating point Will happen. That operation can take several cycles from many to many. Generally there are separate CPU registrations for FPs and integers, so you may have to use it before moving the integer to an integer register. This may be another operation, it is possibly costly for its processor manual See. PowerPC does not include an instruction to transfer an integer register to an integer in an integer register. To store and load from FP, there should be a store in the integer. You can therefore say that a floating variable has been created. In case of a hardware FP support, ...

oracle - sql order by numeric string -

I am using Oracle 10. I need to sort my result set according to two numerical string fields. One type of criterion area keeps such data: FIELD1: FO-00001001001 FO-00001002001 FO-00001003001 Class-00001003001 FC-1022001003001 Other: FIELD2: 000203 000567 349990 I need to combine two criteria, first criteria take precedence, as a result of which the ascending order is required is. How do I write this SQL? Since the numbers are null-padded, so you can compare them as strings: SELECT ... from ... ORDER field1 ASC, field2 ASC or if you want to ignore prefix in field1 : SELECT ..., SUBSTR (field 1, 3) from AS stripped_field1 ... order by stripped_field1 ASC, field2 ASC

language agnostic - Do I need to Refer to the Mit license on my website? -

If my site uses jquery and jquery plugins, should I mention the MIT license and give credit to the creators needed? Does this apply only to software redistribution? By link: Copyright (c) 2010 John Resig, To obtain a copy of this software and to obtain the relevant documentation file ("software"), any person is allowed free of charge for the use of the software without restriction, without limitation Create, modify, merge, publish, distribute, sell copies of Sublicensee and / or software Area, and with the software presented to it, the following conditions to allow them to: The notice above copyright notice and this permission will be included in the important part of all copies or software. The software is provided "as is" without warranty of any kind, express or implied, which includes but limited to mercantile warranty, limited limited to AR. Objectives and non-infringement should not be held responsible for any claims, losses or other liability...

ruby on rails - Custom ActiveRecord finder invoking named scopes? -

मेरे पास नीचे परिभाषित कस्टम खोजक है: वर्ग कंटेनरगेट इन & lt; & lt; ActiveRecord :: बेस ... def self.search (text) परिणाम = यदि पाठ text.split ('') .inject (self) do | परिणाम, मानदंड | मामला मानदंड जब / ^ [0-9] {4} - [0-9] {2} - [0-9] {2} $ / परिणाम। खोज_बाइट_डेट (मापदंड। टू_डेट) और परिणाम। Search_by_text (मानदंड) समाप्ति अंत दूसरा स्व अंत अंत ... अंत जहां search_by_date और search_by_text का नाम स्कोप है, और उत्सुक एक उत्सुक-लोडिंग नामित स्कोप है: name_scope : उत्सुक ,: शामिल = & gt; [{: कंटेनर_इनवेंटरी = & gt; {: कंटेनर = & gt; एसएमओ एक एचएमटी (के माध्यम से है): वर्ग कंटेनर डीपोट & lt; & lt; ActiveRecord :: बेस है has_many: container_inventories has_many: container_gate_ins ,: through = & gt; : Container_inventories समाप्त करें समस्या यह है कि कंटेनर डीपोट से एसोसिएशन घोंसले के शिकार के माध्यम से खोजकर्ता को लाया जाता है, यह एक ActiveRecord :: स्टेटमेंट :: अमान्य के साथ विफल रहता है, यह कह रहा है कि मेज से अधिक निर्दिष्ट किय...

cakephp - Issues with Searchable Behavior and PHP 4.x.x -

I am trying to use the searchable behaviors hosted here: to initialize the search_index table with existing data For, I've used it: Answer # 2 which creates a class search controller. This code was working fine on my local test server which runs PHP5. However, the server has PHP 4 and when I try to code on the server it returns this error: Fatal error: Class Search in LONG_PATH / cake / app / model / behavior / search The controller can not be changed again. On the PHP 2 line Is this really something to do with the PHP version or have I made some logical mistake? Not sure, but you try instead of me can do

c# - How to fix "The requested resource is in use. (Exception from HRESULT: 0x800700AA)" -

How can I resolve this error? "The requested resource is in use. (Exception from HRESULT: 0x800700 AA)". It appears when navigating to a different website using the WebBrowser control in C # .NET. Why? Web browser controls are considered "in use", if any navigation action is currently being processed , Or no blocking dialog is currently open from the control (context menu, javascript alert, NTLM login dialog etc.). You can use the WebBrowser.IsBusy property to locate these states. If currently due to incomplete navigation action, you can try to stop current navigation (if you really want to stop when page load is not completed) or new in a request queue Add navigation and use the WebBrowser.IsBusy until the timer is used to wait. Instead of busy position one or more open blocking dialogs, you can do the same waiting technology and maybe Messagebox.Show () send a message to the user that Pending navigation is delayed due to an open dialog win...

sharepoint - How do I know the default batch file directory? -

I am creating a batch file for SharePoint deployment. I will batch solution installation and configuration, create a web application and create Restore the .dat file to a web app. Instead of the hard code solution path and .dat , I want to know whether this root Therefore, if I move this folder elsewhere, then I will not need to update the path. Is there any word in the batch command, which can say where I am (batch file directory)? Batch Script Sample: @SET STSADM = "c: \ Program Files \ General Files \ Microsoft Shared \ Web Server Extensions \ 12 \ bin \ stsadm "Echo Copy Solution Files ...% STSADM% - o Compilation -Filename SmilingGot. SharePoint Web Purses RSS.WSSP% STSADM% -o deplusolution -name SmileGot. SharePoint Webports RSS.space-mammaidet -lovegac derivatives -latentureral% STSADM% -o Employment -Filennum ReturnoffsSmartPartive1_3.vsp% STSADM% -o deploysolution -name ReturnoffsSmartPartv 1_3.wsp -immediate -allowgacdeployment -allcontenturl...

c++ - Want to place several images with transparent colour on the same background -

I have a transparent background on the same background with many graphics GDI to search for space. I did not have any programming experience before Windows or graphic programming (like games), so finding solutions is more difficult. GDI + is a transparent color GDI + only uses transparent information to make this color properly bitmap on another image once after the bitmap, however, the first image is no more transparent. If you put the same picture several times in the same background, you will see that only the first appointment was transparent. My problem is keeping many transparent items on the background at one time. You can work the code given below for a ship (nNrOfShips = 1;) If you type a big value for this variable, then no ship will be placed. How should I modify the code? I also tried to use the ship array, but no ship is visible on the screen. You can make your own example using a background with a slightly changing color and just keep the image transparently. I ho...

java - How to print PDFs automatically -

There are several such systems which produce PDF, which need to be printed. These are stored on a central document archive. A message then goes to a JMS queue that requires printing of documents. A service written in Java, raises them and then invokes a basic command. This is the call to the Adobe Reader with a T-flag. This document causes the print to appear without showing the GUI. However, since a power cut it does not work anymore, in the interim, we have to manually print hundreds of documents. We originally tried to use Java printing, but the PDF got damaged. What is the better solution? This code only works if the printer supports PDF. Otherwise you will have to use a native printer or Java library. has a blog article on it

java regex to exclude specific strings from a larger one -

I have been beaten for the time being against my head: 0-9]? Character sequences, except strings like sin | Cos | Tan etc. After doing my Reggae homework, the following regex should work: (? ((Sin | reason | tan))) \ b [az] [0-9]? As you see, I'm alternatively using negative letter head - after the non-capturing group ending bracket \ b after in sin etc. Regex is understandable and in reality I am trying as a target implementation with Reggaebudby and Java and getting the desired results, but it does not work by using Java Matcher and Pattern Objects! \ b is in the wrong place, it will seek a word boundary which is not sin / cos / tan before But a limit would be after that at the end there would be a letter, so this would be the limit of an end limit, which can not be if the next letter is AZ Also, exclude the strings like negative attitudes (if this will work) cost , which I'm not sure you want to do is just keyword Are filtered. > I recommen...

How to allow your data structure to take in objects of any class - C++ -

How can I do this? As you know in Java, you can use an array list and by the time you are retrieving the object, it will take down any object. Even better, you can specify that the class of objects that will be done by ArrayList ... New ArrayList () I have implemented a linked list data structure in C ++ and I want to know how I can allow it to ... Moment, I'm just using ... typedef whateverObject ItemType The start of my header file for my linked list In the implementation of the list of "Type Type" links in and then. So every time I want to change this type, eg. Instead of using the list to store stars, I want to store an integer, I have to change the typfix in the header of my linked list, but I want to be able to use it for any object .. . How ?! Thank you. The templates are your answers question. Define your linked list as follows: template & lt; Typename itemtype & gt; Class Array List {// What does not change inside your c...

javascript - Closures in a for loop -

Closers in a loop are causing me problems I think I have to create another function to solve the problem Returns the function for, but I can not work with it's jQuery code Here is a basic problem in a simple form: function fu (val) {alert (val); } (Var i = 0; i & lt; 3; i ++) {$ ('# button' + i). Click (function () {foo (i);}); } Naturally, clicking on any of three buttons will be given a warning 3. I want the functionality that will be warned by clicking on button 1, button 2 2 Will say etc. How can I do this? See the method. / P> $ ('# button' + i) .bind ('click', {button: i}, function (event) {foo (event.data.button);}); From Docs: Alternate EventData Parameter is not commonly used. Upon granted, this argument allows us to give additional information to the handler. This parameter has to work around issues that are close to an easy use.