Posts

Showing posts from August, 2015

c++ - QMake 'subdirs' template - executing a target? -

I am putting together a build system for my QT app using a qmake .pro file which is' Uses subdiris' template. It works fine, and allows me to specify the order made for each goal, so the dependency works well, however, I have now added a tool for the project that the version number used by the main version (Build date, SVN modification, etc.) - I can build this version tool first, but when it is created, I want to create any In order to execute it more goals (this is a header file that includes the main app, including the version number.) For example, my simple qmake file looks like this : TEMPLATE = subdirs CONFIG + = ordered SUBDIRS = version \ lib \ tests \ mainapp When the 'version' was created I executed it I want to do ('passing some arguments on command) -line) before' lib 'has been created. Is it possible that anyone knows? I think Qmeck has a 'system' command that can execute the application, but I do not know how I can take ad...

tortoisesvn - svn list of files that are modified in local copy -

I send my changes to checkout / SVN to use the Tortoise Client. But I found it a little difficult because I can not find a list of all the files transferred in my local copy. Is there a small cut or something that is ignored by me? I am new to SVN FYI. "check revision" command in turtle will display a list of all changed files work copy "committ "Will also show all changed files (which you can do). "Back" will also show changed files (which you can return again).

How can i add endnotes to a word doc using Powershell? -

Hello, I find a word in a word dos and definition of the term as an endnote (special footnote) endnote text with. This will allow me to walk on that word, and then the definition will pop up like a tool tip. I know that I need to use the reflection, but I am new to the whole reflection and all my efforts I have found the context for endnotes here: I have tried to load C: \ windows assembly \ gac \ Microsoft.Office.Interop.Word \ 11.0.0.0__71e9bce111e9429c \ Microsoft.Office.Interop.Word.dll is using reflection, but I do not know what to do after I load it when I create a new object Defense tries to do, it still asks me if I load the appropriate DLL. In addition to this, I will compose MS Word Application Any suggestions for this will be highly appreciated! - Scaler I am not very familiar with the Word object model, but if you can handle that part, then I can tell you how to run the Word To get an example and automatic it really is very simple. new application - camb...

XSD Definition for Enumerated Value -

I am trying to define an XSD which has a field that can only be one of the following three values Basically, I want to define a strict calculation at the schema level: Red Blue Basically, I want to define a strict calculation at the schema level. My first attempt is wrong and I am not sure about the "right" way to fix it. & lt; Xs: element name = "color" & gt; & Lt; XS: complexType & gt; & Lt; XS: Options & gt; & Lt; Xs: element name = "green" /> & lt; Xs: element name = "red" /> & Lt; Xs: element name = "blue" /> & Lt; / XS: Options & gt; & Lt; / XS: complexType & gt; & Lt; / XS: element & gt; By using an automated XML generator, it treats those element names as string objects: & lt; Xs0: color & gt; & Lt; Xs0: green> Text & lt; / Xs0: green> & Lt; / Xs0: Color & gt; You can define an enumeration within a simple type...

imagemagick - How to create a layered PSD file from command line? -

I should have a layered PSD file available on ImageMagick or any other command-line tool Linux platform since I do this on Linux server Need to do, I can not use Photoshop Scripting. The image below creates a PSD file with a single layer, where two images (here: plasma fractal) are placed below one and the other. (I use ImageMagic 6.5.3-10 2009-07-31 Q16, which is the latest available in MacPortes.) Convert - Season 100x100 Plasma: Fractal Plaza: Fractal -Append Out. PS How do I create a PSD file where each image is in its layer, and one layer is directly above the other? Or, is there any other command line tool I have permission to do this? Update: Any other options from the GIMP command line? If the image does not work magic, then I see. The following commands in the interactive console created a 2-layer PSD file for me: & gt; (Gimp-Image-New 200 200 0) (1) & gt; (Gimp-layer-new1 200 200 0 "layer-1" 100 0) (2) & gt; (Gimp-layer-new1 2...

sql - Using DDD, How Does One Implement Batch Processing? -

I have a logic in which to select a large number of records from one system, more than one change (based on business rules) and Insert them into another system. It seems that in order to encrypt each record as a high performance (and memory) these objects, hit them, make changes on them, and then put all of these objects into another system. / P> Is it the best way to get rid of class / objects in DDD and do it directly via SQL, maybe this is a stored procedure? Is this a better way to use DDD? Goal: Note: System uses SQL database, currently object-store such as CHDB is not an option. Many distributed systems created on DDD are using an event-driven architecture, where one Rather than displaying all the changes in the batch, each unit passes under state change which can be changed by your system, the organization gives rise to an event that can be used for any kind of message bus (eg, mule, Net for NetTranit.) Your Par Rtn system will subscribe to the events, and after...

How to make local server working after wamp installation? -

I have just installed the wamp and I have copied all of the folder inside the www folder but when I display it, So this kind of error displays. Internal Server Error The server encountered an internal error or misconfiguration and was unable to fulfill your request. Please inform the server administrator, webmaster @ localhost and inform them about the error, and whatever may be the reason for the error could have been the reason. More information about this error may be available in the server error log. I have also changed the PHP settings and extensions but if it does not work then can anyone suggest me? Thanks There may be a large number of possibilities for this error. For now, check to see if your project is using any php module which is not registered in php.ini. Please check ur php.ini and httpd.conf (or your Apache configuration file) to see if is configured correctly)

ruby on rails - Run rake task in controller -

I would like to run a rake function in my controller, is there any way to do this? I did not get this nice style to call a rack function in the code. I recommend putting the code for the job you want to execute outside of a rake task, and the rack work is to call this code. This is not only easy to call out the rake (what you want), but it also makes it easy to test the rack work.

jQuery hover : fading in a hidden div while fading out the "default" one -

I have two divs (one of these is hidden with CSS), which I have in common, inside and outside Fading place, on the hover. This markup is: & lt; Div id = "wrap" & gt; & Lt; Div class = "image" & gt; & Lt; Img src = "http://domain.com/images/image.png" & gt; & Lt; / Div & gt; & Lt; Div class = "text hide" & gt; & Lt; P & gt; Text lesson & lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt; And I was applying this jQuery code to fade the image - and fading in text, on the hover: But the problem is that the text detective becomes sticky and does not fade - always that the movement of the mouse is very fast. Do you know where it can be, what is the solution? I have established an online exam: Thanks for any tip If your wrapper does not have width and height, then after the image element is removed, you can get some strange results as it becomes smaller, ...

c# - Is there any good tutorial on building an activex control using visual studio? -

I need to develop an ActiveX control which can read CDs and USB drives. = DriveInfo.GetDrives (); FREHCH (DriveInfo Drive in the list list) {If (Drive.DriveType.Removable || Drive.DriveType.CDRom) {// DoWork}} then you can check what you do Read and want to read it and then read it.

apache - Web GUI for editing INI files -

I am looking for a UNIX based application or framework that allows me to view / edit the IE files on a remote system HTML APIs will be allowed through Apache (or similar) Ini through search engines Very confusing for the discovery of config / GUI solutions. > WebMin supports Manor of all configuration files. It has its own (Pearl) API and web server. Python is configured to configure PySure (or 3.0 in the configurator) that is ready for INI style configuration files. You must use it with some communication structure such as Turn

silverlight 3.0 - Security configuration when using custom binding in WCF -

I am trying to shut down an application in silverlight so far by using the client application of NetTcpBinding was talking. However, Silverlight does not support it, and I have found that they instead recommend using custom binding. I should know the weather I need to configure binding in a particular way in relation to safety. My distributed application works well when clients and servers are running in the same machine, But not walking in different people. In this case, I get the following error: Due to a contract filter mismatch on the Android Dispatch, the message can not be processed on the receiver with the operation. It may be that there is no compulsion / security match between the contract mismatch (mismatched action beiels sender and receiver) or the sender and the receiver. Check that the sender and the receiver have the same contract and the same binding (security requirements, such as messages, transport, none). I have already contracted and binding (the proble...

windows - Publishing COM/ActiveX interface using SOAP - what's the best solution? -

We have a COM API (Windows DLL file) that wants to use other system SOAP. What would be the best option for SOAP - should it be enabled? The interesting parameters are: License cost Ease of setup and maintenance If necessary, configure / development Ease Compatibility Security, Security Update etc. All tips are welcome, please provide some reasons why you think the solution is good. I came with .NET and WCF. Developing a thin .NET wrapper for COM objects is easy and WCF gives you soap. You can choose between IIS or self-hosting. License Cost: You need Visual Studio and Windows Server License (for IIS hosting options). NET and WCF runtime are free I Ease of installation and maintenance: Not sure what should be Ease of configuration / development: WCF is very easy to use in development Compatibility: WCF adheres to SOAP and WS- * extensions Security: IIS 7 is safe platform In the .NET framework To highlight COM components: About WCF: msdn.microsof...

c# - Using reflection for code gen? -

I am writing a console device to generate some C # code for objects in the class library. The best / easiest way I can actually generate a code is to use reflection after building the library. It works great, but it looks like a random way, because the generated code will be compiled with the library, after making a change, I will need to create a solution twice to achieve the final result. Some of these issues can be reduced with a script script, but it still looks like one My question is, are there any top-level best practices for such things? Did you consider using a T4 template to run the code generation? It seems that it is getting more publicity and attention now and now there is more help in VS02010. This tutorial is centered on the database but it can give you some pointers: Apart from this, there was also recently Hanselminute on T4. Edit: Another great place is the T4 tag on the stack overflow: Edit: (Asker, from new development) According to VS 2012, T 4 now...

networking - Why is SCTP not much used/known -

I recently checked the book of Richards Stevens and I came to know that apart from TCP and UDP, one-third of the transportation level is standard: SCTP . Summary: SCTP is a transport-level protocol that is similar to a message-based UDP, but is reliable such as TCP. Here's one. Honestly, I have never heard of SCTP. I do not remember reading about it in any networking books or I heard the classes I had. It is to be read that the SCTP says that I am not alone with this lack of knowledge. Why is the SCP so unknown? Why is not this done? In fact, the SCTP is mostly used in the telecommunications sector. In fact, Traditionally, the telecommunications switch uses SS7 () to connect different entities in the telecommunications network. For example - with a switch (MSC), the customer data base (HLR) of the telecommunications provider, the customer is also connected (MSc). Telecommunication Sector High speed and more accessible environment One of these changes is to replace...

security - Check for a domain -

How can I test whether the request for the API is coming from the right registered domain? You can not do You can check the IP from the server, but 1 server can control the $ n domain. I have tested with Google: Token my Google Map API key, That's just giving me ping and receiving domain IP server; But the API key is valid from every domain on that server ... while changing the server (second with separate IP) the same API key returns an error

java - How small can that JLabel be? -

I have a JLabel that I want to draw a screen with some conversion applied to the graphics object. I am trying to make JLABEL as a small waxing based on your text content. What I'm trying to do is: setbound (0, 0, label.getMinus size (width), label.maximum minimum size () Height); Occasionally, this yield is elliptical and sometimes now. It really depends on the change (usually arbitrary scaling in an animation) being implemented. Should I be thinking of "minimum size" with some obvious missing, do I get some round errors that are rolling down, label. () UI is calculated by the representative and instead of content it is more to do with the layout and its chrome. Maybe you can try computing that the size should be based on text? Something like this ... JLabel label = new jlab ("xx"); Int minWidth = ((int) (label.getFontMetrics (label.getFont ()). GetStringBounds (label.getText), label.getGraphics ()). GetWidth ()) + label.getInsets (...

php - How to retrieve query string parameter and values using javascript (Jquery)? -

मुझे क्लिक करें $ ('। Clickme') क्लिक करें (फ़ंक्शन (इवेंट) {Event.preventDefault (); var स्ट्रिंगआईडी = $ (यह) .attr ("id"); var mId = stringId.substring (2) .... मैं पुनः प्राप्त कर सकता हूं एंकर तत्व का आईडी का उपयोग करके आईडी का मान मुझे लगता है कि मैं इसे सीधे href से प्राप्त कर पा रहा हूं। तो मैं एचआरईएफ (यूआरएल क्वेरी स्ट्रिंग) से आईडी और स्टेटस का मूल्य कैसे प्राप्त करूं? मैं उपयोग कर रहा हूं आपकी मदद के लिए धन्यवाद। अद्यतन: इसके अलावा मैं सभी URL मान कैसे प्राप्त करूं .. यानी "test.php? Id = 100 & amp; blah = blah " यह कोड: फ़ंक्शन क्वेरीस्ट (जी) { (==; i & lt; gy.length; i ++) {एफटी = जीआई [आई] के लिए, .split ("="); if (ft [0] == जी) {return ft [1];}}} इसका उपयोग करने के लिए: document.write (querySt ("id")); document.write (querySt (" स्थिति")); अपने 'अपडेट' का उत्तर दें:

javascript - Best way to depend on swfObject in a library -

I am creating a Javascript library for customers so that my company's product is made in their own web pages. Could. The content is just a combination of html and flash with some javascript glue. We use SWFObject to embed our flash content. My question is, what is the best way to manage this dependency? Currently I'm considering two options: 1) Include a copy of swfObject.js with our distribution and end users the Sphibogs.JS script for myself Add elements. 2) Copy the source of swfObject.js into our Javascript library and hide it from our end users. # 1 It would be better to have some control over the script of those people who are using their last page (like they can update swfObject.js in a new version). I have noticed that many subscriber pages have already embedded some flash content in swfObject, so the same copy of swfObject.js would be efficient. # 2 It seems that it will be safe for us because we can investigate against it a known swfObject version. Wha...

Is there a better way to do this jQuery selection? -

This is a better way to do jQuery selection: $ ("p. DynFieldWrapper: Input: Not (: Text): No (Textarea) "). Focus (HideDynamicFormError). Click (HideDynamicFormError); $ ("P.DynFieldWrapper: text, p.DynFieldWrapper textarea"). Blurred (HideDynamicFormError); I am compelled to click on the incidents and focus for my function, HideDynamicFormError, text box and textures and to click on incidents of other form input elements. It's working, but I'm still hanging things in jQuery, and wondering if there's a better way to do this? The first one can be a little easier: $ (" P.DynFieldWrapper: input: not (text, textarea) ") Besides, you're fine.

SQL knowing when to split tables -

I am creating a database that tracks the replay for the game. Each replay has a different game mode that Is a team-based gameplay or personalized gameplay. Depending on the game mode, I want to record the winning team or the winning person. I have the following MySQL table, which plays again and goals in the respective winner: Run the table again _Rands (Replay_ID INT Unsolved Null, Round Smallal Unsended Null, victorious_player_id INT countless, winning_tem_id tinnitated unsecured, foreign key (replay_id) reference replay (id), foreign key (replay_id, victorious_player_id) reactions to contexts (replay_id, player_id)), Ideshi key (Winning_team_id) reference teams (ID), primary key (Riple_aidi round)) character set = UTF-8 Collet = UTF 8_jijiar_ji engine = Indodibi; Now the experiment I have, if game mode is team-based, then I'll set winning_team_id for each round and set win_player_id to null . Similarly, if the game mode is individually-based, then I will set winning...

optimization - Optimal C Structure definition -

I was thinking about ideas thinking when packing objects (int, float, union, etc.) in C structure (C structure definition) that will allow the compiler to customize it. I would like to know if there are guidelines that should be followed by adding items to the structure in a sequence which allow alignment for the boundaries of words. e.t.c. ? The details will be appreciated Regards, -J The question also enters optimization strategies for compiling such a structure. If you can compile your code under GCC, then you are able to find those structures Those who can be improved, can do it again and again. Ul>

Can you process T4 templates from inside a .NET application? -

Do you have one. Can T4 template process from inside the NET application? Is that code available to call? Joining a project? Licensing? Update : So it seems that you will have to use VS in any way. I wrote the implementation of a clean-reverse-engineer of a T4 engine for the MonoDevice IDE. This open source is licensed under the approved MIT / X11 license, so you are free to embed the engine in your app or redistribute it. There is also an implementation of the Text Transform.exe command-line tool to assist in hosting the engine, and some APIs in the Mono-Textpling Namespace. The only real missing feature is the custom directory processor - but the patch is welcome: -) You get the code from MonoBack / Mon / src / addins / textTemplating in Mono SVN can do.

javascript - window.location = #anchor doesn't work in IE -

On this map: I have an anchor on top, And I want to jump over the anchor when clicking on the page link. I am currently using window.location = '#top'; It works as expected in FF, Opera, and Chrome, but not IE7. I have tried all permutations such as window.location.hash and window .location.assign () and scrollIntoView (true) and focus (). How can I do this in IE? Edit : Anything seems to work, from which I think this is not a syntax, but some JS about it ... Click here to have Event handler ... maybe because this is wrong? Click on the click handler for each location link $ ('# index A') (function () {hideMarkers (); location.href = location. Href + "#top"; var marker = show marker ($ (this) .attr ('data-id')); GEvent.trigger (marker, "click"); return false;}); edit : pauses window.location.hash on the assignment page in IE7 and IE8, loaded as a result of page redirection by the HTTP "location" header Had...

php split string using regex -

I need to get company name and it's a ticker symbol in different arrays. Here is my data that is stored in a txt file: 3M company MMM 99 cents Store Only NDN AO Smith Corporation AOS Aaron, Inc. An and so on How could I use this regex or some other techniques? Thanks Repeat from each line, and collect data with regular expression: ^ (. +?) \ S + ([AZ] +) $ The name of the company will be the name of the backtraper $ 1 , $ 2 will signify a ticker in You can split the string with two or three-space delimiter in two and trim the resultant two strings. It works only if you make sure the company's name and ticker mark are always separated from the adequate space, and that company does not have the amount of space in that name.

How do I perform Type Conversion in Clojure? -

How do I change the string, integer to float and other similar types of conversions in the closure? You can tell the compiler how to add it, by adding metadata for it. It can do some actions faster and help eliminate the reflection ^ Icon syntax is sugar which adds to the metadata for later. (defn my-function [^ String my-string] ..... Symbols of the string: (int 4922354) (Double 42) (byte 254) (four 20) etc ... Information for more:

c# - How do I ignore a field size in a struct using Marshal.SizeOf? -

Is there a way to ignore a field in the calculation of a straight ruler using martial Ex: public communication messages {public use x; Public Youth Wai; // Ignore this field in calculation} int size = Marshal.SizeOf (typef (message)); Now the size is 4. I want to be the size 2. Is there any way to do this? The only way I can think of doing this and return to 0 if you can apply . You will use to apply Custom Marshler in that area. But, it will not be properly martial, so I do not know why you want to do this.

configuration - setting up subdomains on nginx -

This summary is not available. Please click here to view the post.

Is there a pthread equivalent to WatiForMultipleObjects -

I have the following Windows code that produces two threads and waits until both of them are complete Go. hThreads [0] = _beginthread (and do_a, 0, p_args_a); HThreads [1] = _beginthread (and do_b, 0, p_args_b); WaitingFormaltultubjects (2, httruds, TRUE, INFINITE); Now I'm porting the same code to using pthreads, but how to do WaitForMultipleObjects , it's uncertain: (& HThreads [0], 0, and do_a, p_args_a); Pthread_create (& amp; hThreads [1], 0, and do_b, p_args_b); ??? To achieve the same functionality, is there a similar way using pthreads? If you want to wait for everyone, as you are doing here, then you For the thread, just call pthread_join () . It will complete the same task. Pthread_create (& hThreads [1], 0 , And do_b, p_args_b); Pthread_join (hThreads [0], NULL); Pthread_join (hThreads [1], NULL); You can get fancy and if you meet more than two threads then do it in the loop.

php - need help with mysql joins -

उपयोगकर्ता तालिका user_id pic_url नाम दोस्तों की तालिका auto_id userid मित्र स्थिति स्थिति तालिकाएँ तालिका auto_id userid प्रकार विषय शरीर datetime मैं अपडेट के एक मित्र स्ट्रीम को अद्यतन करना चाहता हूं, एक ब्लॉग पोस्ट, स्थिति परिवर्तन, कुछ भी हो सकता है, लेकिन केवल उस उपयोगकर्ता को मित्र को दिखाने के लिए ही दिखाना चाहिए यह है कि मैं किसके साथ आया हूं लेकिन मेरा यूज़रबेस बहुत बड़ा है इसलिए प्रदर्शन करना जरूरी है, क्या ऐसा करने का एक बेहतर तरीका है? कृपया मुझे दिखाएं चुनें u.user_id, u.pic_url, u.name, a.auto_id, a.userid, a.type, a.subject, a.body, a.datetime FROM ए के रूप में एक बाएं जुड़ने वाले उपयोगकर्ता के रूप में क्रियाएं u.auto_id = a.userid LEFT जुड़ें दोस्तों के रूप में एफ पर f.userid = a.userid WHERE f.friendid = 1 // 1 मेरा उपयोगकर्ता आईडी और f.status = सक्रिय होगा कृपया मुझे सही नहीं लगता कि कृपया यह सही है। हम कहते हैं कि 50,000 उपयोगकर्ता हैं और मेरी यूजर आईडी # 1 है और मैं 20,000 उपयोगकर्ताओं के साथ दोस्त हूं, यह चाहिए कार्रवाई तालिका में सभी प्रविष्टियो...

Entity Framework Many To Many CRUD -

I am playing with the unit framework for a POC project. In my database I have category & lt; ------- Category Products ------- & gt; Product (where the table model contains a unit.) I Choose / Insert / Update or at category product table is just two from FK to product and one to category ... EF by default CategoryProduct unit, instead of manipulating that table to give you the product. Categories or category Creating / removing relationships will be required by using the Products collections. Ie to add a line: product.Categories.Add (category); // or Category Products. Add (product); To remove a row: Products. Categories Remove (Category); // Contrary to the Visa or the table, to get the rows in that table: var pc = c to ctx Categories from pc Select new {classID = c.ID, ProductID = p.ID} in the products; More updates are not understood, because PK (which can not be changed) is all the columns, i.e. none of the columns of...

c++ - Bad pointer or link issue when creating wstring from vc6 dll -

I got a DLL using VC6 and using wstring , and I use it In a VC9 project I am trying to do this DLL has a high level class named wstring , UtfString . Everything was properly imported into my project, but when I call: std :: wstring test; UtfString uTest (test); This will not be a link, even if the function prototype is in Lib ... The other issuer is that when creating a new UtfString, and debug my app, New pointer & lt; Bad Ptr & gt; . I do not believe VC6 wstring and VC9 wstring I want to avoid refining the original DL. It would be great if someone can make things more clear to me, and what is the real reason of the problem to explain to me. Thank you in advance for your answer, Boris Do not even try String layouts are different You can not do this The string class is completely different between VC6 and VC9. Even if you were able to link, you would most likely be the accident. There is a union in the VC9 string which is an indicator ...

.net - Was anyone thinking of 'CLR Server' instead 'SQL Server'? -

I was thinking many times, now the days that we have Linq and other CLR language-specific underlying search, type and other The tables, the collection and the capabilities on the object, why is' SQL Server 'or not, it is not CLL server' (not only OOP server but CLR 3.5 ) which will be a CLR (or COM) DLL phone Allows users to link directly above it; This will save the pain very seriously, the time to develop in two different languages ​​and so on. I'm not saying (do not do God) throw the SQL, it crosses my mind many times, I thought what to say about the community. This idea is a DB in the course is not new, there FoxPro (my opinion is different from Theo) but I'm talking about a pure CLR .NET 3.5+ dB DLL reach will allow external I'm not even creating SQL queries, the whole system should work differently. There should not be additional Linq keywords to be updated and delete but they should all be 'lincoln style'. I'm 100% confident that Mi...

C++ - when should I use a pointer member in a class -

C ++ (and Direct 3D, but sometime ago) I have been confused with learning when you In the class, an indicator member should be used. For example, I can use a non-pointer declaration: Private: SomeClass instance_; Or can I use an indicator declaration private: someclass * instance_ and then the new one Use () on it in the manufacturer I understand that if some class can be obtained from another class, a COM object or ABC, then it should be an indicator whether there are any other guidelines Should i be aware about The following advantages of an indicator are: a) You make a lazy start It means that to minimize the object / object before the first actual use. B: Design: If you use pointers for outsiders class types, you can make a further announcement over your class and thus include headings of that type in your header No need - instead of your own. CPP can include third party headers - it's time to minimize the advantage, compile time and inhibit side effe...

powershell - Need command to get a file from TFS without a workspace -

What do I want to do with a specific version of a file from TFS on a place except for my workspace Using the command line (either tf.exe or powershell) I want to do this so that it does not affect files in my workspace, and keep the file in the release folder. tf.exe only supports getting files in your workspace. I have not found any way to do this with PowerShear. Anybody help me? remit tf.exe tf $$ / path / to / file See txt / version: 1234 & gt; % Temp% \ file.txt # powershell $ tfs = get-tfsserver $ hostName -all $ tfs.vcs.DownloadFile ($ serverPath, $ fileName) # Even better: $ item = $ tfs.vcs in memory completely GetItem Manipulate ($ ServerPath) $ Ton GetItem (O) Overload $ Content Available = ([io.streamreader] $ item.DownloadFile ()) .ReadToEnd () $ Content | ? {Some condition} | Do-coolstuff

Flex: Convert ArrayCollection to XML -

फ्लेक्स में, एक्सएमएल को ऑब्जेक्ट और अररेक्ल्यूशन में का उपयोग करके परिवर्तित करना आसान है। वर् विकोडक: सरल एक्सएमएलडीकोडर = नया सरल एक्सएमएलडीकोडर (); Decoder.decodeXML (xml); लेकिन ऐरेकॉलन को एक्सएमएल में कनवर्ट करने का एक अच्छा तरीका है। मुझे इंटरनेट पर थोड़ी देर की तलाश है और मुझे कोई जवाब नहीं मिला। धन्यवाद। इस उदाहरण पर एक नज़र डालें, जो साधारण एक्सएमएलएनकोडर का उपयोग करता है: & lt; mx: स्क्रिप्ट & gt; & Lt;! [CDATA [आयात mx.rpc.xml.SimpleXMLEncoder; आयात करें mx.utils.ObjectUtil; आयात करें mx.utils.XMLUtil; आयात करें mx.collections.ArrayCollection; निजी var आइटम: ArrayCollection; निजी समारोह परCreationComplete (): शून्य {var स्रोत: ऐरे = [{आईडी: 1, नाम: "एक"}, {आईडी: 2, नाम: "दो"}, {आईडी: 3, नाम: "तीन"}] ; Var संग्रह = नया अर्रेइलेक्शन (स्रोत); ट्रेस (objectToXML (collection.source) .toXMLString ()); } निजी फ़ंक्शन ऑब्जेक्टओटोक्सएमएल (ओजः ऑब्जेक्ट): XML {var qName: QName = नया क्यूएन ("रूट"); Var xmlDocume...

Portable use of dyn.load to call a C function in an R package -

I am creating an R package which I intend to present in CRN, in which a regular written in C. Calling function. How do I load the CR-routine compiled in a platform-independent manner in the R function? I am able to work my package on my Intel based Mac: function (myadata) {dyn.load (file.path.library, "mypkg / libs / i386", paste ("Mypkg", .plat $ dynlib.ext, sep = "")) Try (output & lt; - c. ("Myfunc_cversion", in_data = as.double (mydata), res_data = as.double (res), Package = "mypkg")) Results & lt; - as.matrix (output $ res_data) returns (result)} The problem is the call dyn.load where I can not understand portable ways The complete path to the shared library for your installed package Specify from. Is there another variable in R. Should I use the library, or better work than dyn.load for this matter? You will need to see the manual page for library.dynam (). For example, you should do this, for example . ...

Limit execution time of an function or command PHP -

Hi, there is a possibility to set the deadline for only one command or only one function eg: function doSomething () {//. Code here .. function1 (); // .. Here are some codes ..} I just want to set the deadline for function1. Exits set_time_limit, but I think this deadline determines the full script any ideas? set_time_limit () runs globally, but it can be reset locally. Determine the number of seconds a script is allowed to run if it reaches, then the script returns a serious error. Default limit is 30 seconds or, if it exists, max_execution_time value defined in php.ini. When called, set_time_limit ( ) restarts the timeout counter from zero. In other words, if the timeout is the default of 30 seconds, and in 25 seconds the call execution time is set_time_limit (20) in the script execution, the script will run for a total of 45 seconds out of time. I did not test it, but you might be able to set it locally, when you ... Any time spent on such activity ...

sharepoint - User control with ajax fails to load in smart part with ajax -

I have user controls with some ajax functionality I am using smart part with AJAX to load user controls I am I have put this user in my virtual directory i.e (C: \ Insetpub \ wwwroot \ wss \ virtualDirectories \ 2323 \ UserControls). But it is giving me an error upon loading Error: Unable to load ~ / UserControls \ Vendors.ascx Description: The value can not be empty. Parameter Name: uriString Thanks Advance! I simply try to load my user control with AJAX functionality in simple smart part and Not in smart part with AJAX and it works .. I do not know how..but user control is successfully entered and AJAX functionality is also working fine ... thanks

email - How can I create an animated e-mail / SMS notification on an Android phone? -

Is there a way to create an alert when a new email arrives in my Android inbox? When I receive a new e-mail or SMS, I would like to show an animation - will it be possible without writing my own email client? I would like to be able to customize the information which is the sender, the subject line, etc. - Basically, the same type of criteria I used to send messages using any one of the large current customers I can use to filter. Unfortunately, any document email intent is not triggered for either default? Unfortunately, I think your only option would be to write your email client (and perhaps the bug report / feature). Submit Request) or to dig a non-standard email client that triggers intents on incoming email. There is no information about openintents.org in the inauguration of triggers of all underlying intentions and intentions and many other (but all) third parties.

Subsonic 3 and Activerecord isn't generating MySQL Stored Procedures -

It seems that the included T4 template (or one of the SVN trunks for that matter) simply prevents SP for generating MySQL. .. When stored processing runs. Join Myths with MySQL. Include, I get the "compile compile" error: The name 'gettypex' does not exist in the current context. "Is define the SQLServer the GetSps and I saw that someone wrote his for Oracle, but no clue how to look for MySQL - the method appropriate GetSPs () ? Personally I do not think that it is actually functional unless I can run my own SP: / I was slightly with the code from version 2 and came up with a small code (all the conditions Keep this in MySQL, which may have been a trick for me. To get a protected process, please enjoy! string [] GetSPList () {var results = New List (); Const String SQL = "Information from Information routine_name SOCEMA.ROUTINES where ROUTINE_SCHEMA =? DatabaseName "; Stringbillder sList = new Stringbilder (); (Conn = new MySqlConnection (us...

html - How does copying and pasting non-breaking spaces compare in different systems/browsers? -

मान लें कि आपके पास गैर-ब्रेकिंग रिक्त स्थान ( & amp; nbsp; ) के साथ एक HTML दस्तावेज़ है आईई 6-8 में विंडोज एक्सपी में चल रहा है, जब आप गैर-ब्रेकिंग स्पेस चुनते हैं और कॉपी / पेस्ट करते हैं, तो उन्हें "सामान्य" स्पेस (यू + 0020) के रूप में कॉपी / चिपकाया जाएगा। क्या कोई भी किसी भी सिस्टम, ब्राउज़र, आदि के बारे में जानें, या इसके संयोजन, जो इस व्यवहार को प्रदर्शित नहीं करेगा। यही है, गैर-ब्रेकिंग रिक्त स्थान एक गैर-ब्रेकिंग स्पेस (यू + 00 ए 0) के रूप में प्रतिलिपि और / या पेस्ट करेगा? संपादित करें: थोड़ा और संदर्भ प्रदान करने के लिए: जिस पर मैं काम कर रहा हूं उसे स्थानीयकृत किया गया है। मुझे संदेह है कि अधिकतर उत्तर / दक्षिण अमेरिकी और यूरोपीय सिस्टम इसी तरह व्यवहार करेंगे। मैं एशियाई भाषाओं और प्रणालियों के बारे में कुछ चिंतित हूँ। हालांकि मुझे ब्राउज़र के बीच अंतर के बारे में पता नहीं है कैसे वे नकल / चिपकाए गए टेक्स्ट को संभालते हैं, मैं यह सुझाव दे सकता हूं कि यह वास्तव में ऑपरेटिंग सिस्टम के क्लिपबोर्ड है जो HTML पृष्ठ के टेक्स्ट के अक्षर एन्कोडिंग को...

opposite of 'git status' command -

To find out what has changed locally in my git work directory, go to git status I use. But what is the "opposite" of that order? What do I mean, I would like to know what other people have tested in my remote / tracking branch (I am not sure if the remote branch is the same, in the branch of the Tracking Branch, GIT) but these changes Not working directory As the question "" git log HEAD..branch Maybe you are searching here. x --- y --- z --- branch / --- a --- b --- c --- d --- e --- HEAD this will return x, y, z Note: only two points, not three here: HEAD..branch . As mentioned in this second question: It is the same GIT log branch - no head , and it means "all branches Works on HEAD " Note: You must first update your local copy of a remote branch, a git Fetch is required without it, you will not take any new modifications on the remote branch. Note: One is a local branch that is connected to the remote branch. W...

iPhone - Custom Class Won't Access Method -

I am trying my hand at some iPhone programming and I did something that is quite clear for the giants but I I am not sure why this is happening, I have two UIViewController classes, and I want to use one method from another class. I have two NSObject classes in the IB (with each class file as UpdateClass for each), and I'm trying to create a class and call a method. It seems very easy, but the problem is that this method is calling (according to NSLog), but this is not updating the label. Here's my code: // UpdateClass H #import & lt; Foundation / Foundation. H & gt; @ Interface update class: NSOBIES {IBOTTULL UILBL * LLB 1; IBOutlet UILabel * lbl2; } @property (nontomic, raten) IBOutlet UILabel * lbl1; @protecti (nanatomic, raten) IBotllet UILBLL 2; - (zero) update labels; @end //UpdateClass.m #import "UpdateClass.h" @ Implementation UpdateClass @ synthesis lbl1; @ Synthesis lbl2; - (zero) Update labels {NSString * someWord = @ "whatever"; //...

odbc - Linked SQL Server database giving "inconsistent metadata" error -

I am currently running a third-party software suite, which uses SQL Server as my database Close is another example of SQL Server running at a different location, and some such apps that I am creating at that instance require SQL Server to access some data in third-party software. Therefore, I created an ODBC connection between the boxes, and on my version of SQL Server, the third-party SQL Server was set as a linked server. As a test, I did something like the following statement from my SQL server, using one of the third party tables: SELECT * FROM LinkedServerName.SchemaName.dbo.TableName for which I found this error: OLE DB error trace [non-interface error: column 'TableRowVersion' (compile-time order 4) Skimman "" DBO ". In the compilation of time, a DBCOL UMLFLAGS_ISRRO of 0 and 512 was reported on run time] Message 7356, Level 16, State 1, Line 1 OLE DB Provider 'MSDASUAL' provides incompatible metadata for a column. . Metadata informati...

css - dijit button theming not visibly applying in IE6 -

I have a simple page, with a digit button. I'm trying to override the font on the button with blue, time, bold. It works fine in FF, but in IE, I'm just looking at black, aerial, normal text. If I look at IE Dev Toolbar, then it shows the rule to be implemented, but not in the display. Am I doing something wrong? Here's the code: & lt; Html & gt; & Lt; Top & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" & gt; & Lt; Title & gt; Theme Test & lt; / Title & gt; & Lt; Link href = "js / dojo / resources / dojo.css" rel = "stylesheet" type = "text / css" & gt; & Lt; Link href = "js / dijit / themes / tundra / tundra.css" rel = "stylesheet" type = "text / css" & gt; & Lt; Style type = "text / css" & gt; . Tundra .DigitButton {font-family: 'Times New Roman', times, serif; Color: ...

mysql - Modeling a directed graph with a special center node -

I am looking for opinions about a modeled model of a specific node. Special node: It can not contain any edges. Can not Remove. Current design: Tables: Nodes, edges have two columns in the edges; The node refers to each record in the table. Rather than storing the special node as the first record in the nodes table, I decided not to keep it completely recordable for its creation, from any database queries, in the table of edges, by tap In the context of node, by_node_id takes a special meaning in the column. My motivation for using this design was that I would not be worried about defending the center node record by deletion / modification or being referenced in the to_node_id column of the edge table. It automatically prevents one edge from going to the same node I know that there are some drawbacks in this design, such as that is not able to make the _node_id and to_node_id the whole primary key, and possibly too much I am currently leaning towards the center no...

tsql - When do I need to use Begin / End Blocks and the Go keyword in SQL Server? -

Can anyone tell me when and where I started start and end Block in SQL Server? Besides, what does go do? Go is like the end of a script. You can create multiple rules, this is a way of separating one part of a script from the other divided by GO, but it is depositing everyone in one block. BEGIN and END C / ++ / #, Java, etc. They built a logical block of code, I use BEGIN and END at the start and end of a stored operation, but it is not strictly necessary there. Where it is necessary for loops, and if the statements, etc., where you need a further step ... if existing (my _table from WHERE id = @id Select) BEGIN INSERT log select ID, 'deleted' deleted my_table WHERE id = @id END

What is the tradeoff in replacing Java with Grails? -

Already using Java for a few years, we know what we are getting by visiting Grails Are there. The question is, what are we losing? Thank you. Groovy JVM as soon as by java Compiles for bytecoco. With grails you run like a java in your container, end with a .war file. Slow running performance for Zero is slow because in most areas it is a dynamic language. You can get Java code in your Grails app in addition to the Groove code.

winforms - Get total height of a windows form including non-client area? -

How to get the total height of a window form with non-client area? Size does not work for my window (FormBorderStyle = FixedToolWindow, if that helps). Try the desktop bounce property of the form.

javascript - IE8 Refusing to apply stylesheet to dom created elements -

It is now known that TwitPeek.net, one of my websites, render properly in "IE8" beyond "compatibility mode" not doing. The site works fine in IE 7. On some investigations, it appears that the IE8 page is refusing to apply the stylesheet to anchor and img tags, which generates the page's JavaScript. Because of this, none of the script.aculo.us animation is displayed properly, the pictures are not set to a similar size, and all the margins are completely ignored. Actually the page looks like crap. This should be an IE8 bug, but can I do something to work around, except to use the compatibility mode meta tag? Edit: The problem is resolved . IE8 was not processing class specialty on the new DOMElement. Instead had to set a classname. Did you see it in your source-code? & lt; Body id = "index;" & Gt; I suspect that there is nothing more for W / IE 8 and W / HTML ... edit me It looks like your error is here: # feedlist ...

uikit - iPhone development: How to create colored or translucent background for UIActionSheet? -

When you try to delete a note in the notes application of the iPhone, a UIEXShete pops up when the sheet is transparent (But not black transparent). How is this achieved? Is it possible to make the background of UIActionSheet a certain color? I generally apply the following delegate method: - (Zero) Will Project Action Sheet: (UIEXSAT *) Actions Sheet In this case, I use an extended PNG as a backdrop to make only one sample: - (void) HogpronsectionActionShot: (UIACSAT *) Actions sheet {UIImage * theImage = [UIImage imageNamed: @ "detail_menu_bg.png"]; IIMAG = [IIMeges Strenuous Image with Left Cap Wideth: 32 Top Capethit: 32]; CGSize theSize = actionSheet.frame.size; // Drag the background image and change the layer contents UIGraphicsBeginImageContext (theSize); [Image DrawRector: CGRactMake (0, 0, The Seas., Wide, The Seas High.)]; TheImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); [[Action Sheet Layer] Set Content: (ID)...

Error Running a Batch File To Copy A File -

I am trying to run the batch file to copy the backup file from one place to another. I continue to get the error: Invalid Drive Specification My way is as follows: \\ server \ Drive: \ folder \ folder \ folder *. Bak drive: \ folder \ .bak This usually does not work very well Does. You want it to: cp \\ server \ c $ \ folder \ folder \ folder \ copy.bak C: \ folder \ copied.bak Recommends that you have access to the folder \\ server \ C $ \ folder \ folder \ folder \ / code> from your box. If you do not do this, you must configure permissions to be properly configured to allow on the server.

cryptography - Is it possible to encrypt with private key using .net RSACryptoServiceProvider? -

I know that RSACryptoServiceProvider can encrypt with the public key, then it can be decrypted with the private key. Is it possible to encrypt with a private key and it is possible to decrypt with the public key using RSACRPT service provider? no Not that how any public / private key encryption works, you can only encrypt with the public key, and can decrypt with only the private key.

iphone - How to add controls beneath a UIWebView -

The easiest, fastest, or otherwise (fairly) to add some controls (like some UIButanens) to the best way UIWebView for? To be clear, I would like to display a regular scrolling UIWebView, but when scrolling will reach the bottom. I would like to have some UIControls after web content, I do not want to duplicate it with HTML / CSS content I see what looks like control; Ideally they should have real control which I can hook my visual controller as usual. I do not know that it is easy to try to do this with a larger UIScrollView, both UIWebView and Controls (can there be a scrolling collision between UIScrollView and Nested UIWebView?), Or a UITB scenario in which the Web There is control in the visible and individual cells (what would be terrible?), Or in some other way that I did not think. Update : I do not think I want to actually scroll UIWebView; I thought I would need to resize it to adjust all its contents, completely disable its scrolling behavior, and then let the user...

php - Find longest repeating strings? -

I have some HTML / CSS / Javascript that contains pain, long class, id, variable and function names and other, combined string See you here. The more used I can possibly rename or renovate some of them and cut it in half. So I'm looking for a simple algorithm that reports the longest repeated wires in the text. Ideally, this length will reverse the sequence with examples, so that the stars can be highlighted that if the world is re-named, then the most savings will be saved. It seems that I can do pain in the code of 100 lines, for which there is some elegant, 10-line recursive reggaeks. It also looks like a problem of homework, but I assure you that it is not. I work in PHP, but enjoy watching something in any language. Note: I do not see that I like meaningful text for HTML / CSS / Javascript commute, so I want to do it with my hand, and want to weigh the blame against bloat. . +) (?:? * *? \ 2) +)) Use it with that preg_match_all and choose the longest. ...

mysql - deleted row reappears -

मेरे पास एसी प्रोग्राम है जो उबुंटू से mysql (5.0.51a-3ubuntu5.4-log) से कनेक्ट हो रहा है। कार्यक्रमों का मुख्य कार्य छोटे (& lt; 5000 पंक्तियों) के Myisam तालिका से रिकॉर्ड्स को संसाधित करना है यदि पंक्ति को सफलतापूर्वक संसाधित किया जाता है तो इसे हटा दिया जाता है यदि ऐसा नहीं है, तो बाद की तारीख में पुन: प्रयास किया गया है। कई असफल प्रयासों के बाद इसे हटा दिया गया है। हटाना प्राथमिक कुंजी को तालिकाओं का उपयोग करती है और यह सादे है I.e यह कम_प्रीयरिटी निर्दिष्ट नहीं करता है, त्वरित या अनदेखा करता है प्रोग्राम पढ़ता और लिखने के लिए अलग कनेक्शन का उपयोग करता है कभी-कभी एक हटाए गए अभिलेख को उन पंक्तियों के लिए अगले चुनाव के द्वारा वापस किया जाता है जिन पर कार्रवाई की जानी चाहिए। यह केवल एक पुनः प्रयास सीमा तक पहुंचने के कारण हटाए जाने वाले पंक्तियों के होने के कारण दिखाई देता है। और आश्चर्य की बात है कि कभी-कभी अगली चुनाव कुछ भी नहीं दे रहा है और मतदान के बाद हटाए गए पंक्ति को वापस करता है क्या यह पढ़ता है और लिखने के लिए अलग-अलग कनेक्शन का इस्तेमाल करता है? मुझे उम्मीद है ...

php - How can I improve the performance of my social networking site using memcached? -

I would like to apply memcached to my social network site. When you have a social network, most data will change a lot. For example, if I had to store 10,000 friends of a user in the cache, at any time he would add a friend, it would be easy to update the cache, but at any time Someone else will need to be added as a friend. This alone has a lot to update on the Buddy List. There are also user blogs and bulletins that are posted non-stop with new people and you can see only those people that you have created by user friend list, so I think That it would be very difficult to cache. I can probably cache some profile information which only when the user updates his profile, but it will create a cache record for each user, if there are more than 100,000 users who are very caching Is this a good idea? I would say that it is a good idea to cache where possible ... .. most of the time You will be able to draw items faster than conventional RDBMS with memcached (especially if yo...

How might I display a "legal drinking age" alert for a website? -

I have a website where you are 21 or older to purchase liquor from this site. How do I tell the "Warning" above and click through the purchase pages to prove that you are 21 years old or older? I think that Randolph's suggestion is a little bit annoying, I think you're next to the 'buy' button. Let's put the text in 'By shopping, you believe that you are 21 years old or older.' I also like that Google makes some buttons that say, 'you agree with the terms and conditions' button. It is much easier than the checkbox. Note: Only years have realized that it has been doing this for many years. Lol. But in all honesty, it is the least intrusive way to do this without hiding it on the footer, either put a button next to the button, or a note next to the button. There are absolutely no extra steps in this way. Like BTW, Andrew

delphi - How to detect a mouse click for a button with drop down menu -

My question comes from the answer I'm trying to repeat the behavior of "office" Yes Button "found in the top left hand corner of the Mircosoft Office 2007 UI, especially where the user clicks the button, the popup menu is visible, and the button is reproduced in the" down "position. Remains until the user clicks the mouse on the menu, or on the form And, or even outside of the application. I need to find this mouse so that I can again in the normal image button, and if I hide the menu as my own popup menu I am using the dialogue. I am using D6. thanks for any advice, present, Explanation: Now I realize that when TPopUpMenu is used, its answer is trivial, under incorrect understanding After the popup menu was shown, this main event was left for the fate of the loop, and I have happily coded the code in the past as the diffuser, and a bit upset (but it's fine between friends). Should have been specific, and said: "How can I dete...