Posts

Showing posts from June, 2012

Using Transactions in Oracle -

The first order executed during T1 select is a transaction, in return, delete Command (on time T2) The first order transaction is B. What will be the result of the SELECT statement at the time of T3 (a transaction)? In the T3, the SELECT statement will return a line (because transaction B is not committed yet)? Yes, it will be, as other transactions have not yet been done. If you try to do the same, then transaction B after transaction A in delete / Code>, then you have to wait for the lock to continue, but a SELECT will work fine.

iphone - Initial value of a Core Data Entities properties? -

I have several major data organizations that include a group of empty NSString properties. I parse some XML and set the assets, which I can hold and I want to set "empty" people in "not available" as "no / no". So if my values ​​are not included in XML, then it also arranges a "n / a" string which I can test for later, in one way, any one of them in UILBL It should also be made that which is (empty) .. which leads me towards my question: I do this test to see if the unit If the property has already sat, then zero or is empty: for (NSString * s in all public strings) {if ([[f valueForKey: s] isKindOfClass: [NSString class]] & amp; [[f ValueForKey: s] isEqualToString: @ ""]] {[Set set :: "for A / To: s];} if ([[F valueForKey: s] isKindOfClass: [NSString class]] & amp; amp; [F valueForKey: S] == zero) {[set set: "" for A / K "n: a"];}} It has been found that I still with very values Th...

C# and Variable Scope in Winforms -

Within a Winfix app, I want to make the data accessible from many form controls in an immediate category. What is my best option to be able to use Class Instance in this way? You have many options available, but this is probably the easiest way to create VS 2005. using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Text; Using System.Windows.Forms; Namespace Test {Public Partial Class Form 1: Form {foo a; Public Form 1 () {Initialization (); } Private Zero Button 1_Click (Object Sender, EventArgs e) {a = new foo (); A.name = "bar"; } Private Zero Button 2_Click (Object Sender, EventArgs E) {If (a! = Null & a.name! = Null) MessageBox.Show (a.name); Other messageboxes Show (""); }} Public square foo {string _name; Public string name {get {return _name; } Set {_name = value; }} Public foo () {}}}

perl - VIM 7.2 Scripting problem with `:perldo` and multiple expressions -

background work To end XY issues, I would say what I'm doing: I is trying to use : perldo in VIM 7.2 to complete two tasks: Clear all the backward whitespace, in which (not clearing ) The removal lines are only white space s / \ s + $ //; Before non-non-space characters s / ^ (\s *) (? = \ S) / S # [^ \ t] ## g; $ _ / Xe; I want to do all this one pass right now, by using : perldo I can work with two passes. (Using: twice daily) The command should look like this: : perldo s / \ s + $ //; S / ^ (\ s *) (? = \ S) / s # [^ \ t] ## g; $ _ / Xe; pearl background To understand this problem you should know something about Perl s /// automatically defaults The variable binds the variable $ _ which is free to modify the regedx. Most of the main functions work on default at $ _ . perl -e '$ _ = "foo"; S / foo / bar /; S / bar / baz /; The impression is that you can use the expression in the VIM using the : perldo and it is log...

.net - How can I prevent a third party library from displaying a MessageBox? -

I am integrating a third party C-based SDK into my .NET application. This application will run on a server as a Windows service, so it should not interfere with the user in any way. Unfortunately, in some error situations, this emphasizes calling MessageBoxA, possibly to report that something bad has happened. When this happens, the response to the service stops. I guess it is waiting for someone to press on. It is not possible that the vendor can change his code for me. Is there any way I can call this in a no-op so my code can deal with the situation itself? EDIT: It may be important to mention that in my special case this service will automatically restart, a beautiful (possibly) and sudden exit is probably the best solution for a situation where A message box is displayed in my case. Check Out This allows you to change the arbitrary Windows API functions. C / C ++ programming is essential for this work. You will not need much

inheritance - C# object initializer wanting to use wrong Add method -

मेरे पास निम्न श्रेणी के पदानुक्रम हैं: सार्वजनिक वर्ग पंक्ति: आईसीलाइनेबल, आईसीओम्पेरेबल, आईक्वेटेबल और लेफ्टिनेंट ; राउ & gt ;, आईएसटीआईआरआईएनआईडीएक्सएबल, आईडीसीकेर & lt; स्ट्रिंग, स्ट्रिंग & gt; आईक्लॉन्किंग & lt; कीवेलपैयर & lt; स्ट्रिंग, स्ट्रिंग & gt; & gt ;, आईयमेरमैम & लेफ्टिनेंट; कीवेलपेअर & lt; स्ट्रिंग, स्ट्रिंग & gt; & gt ;, सिस्टम.कॉल्लेक्शन.आईएनएनएमेरेबल {} पब्लिक क्लास विशिष्ट रॉ: रो, IXmlSerializable, System.Collections.IEnumerable {publicVoid Add (KeyValuePair & lt; MyEnum, string & gt; आइटम) {}} हालांकि, निम्न करने की कोशिश करने से त्रुटि आती है: var परिणाम = नया विशिष्टराख {{MyEnum.Value, ""}, {MyEnum.OtherValue, ""}}; मुझे यह त्रुटि मिलती है: संग्रह अधिभारकर्ता के लिए सबसे अच्छा अतिभारित विधि जोड़ें 'पंक्ति। जोड़ें (स्ट्रिंग, स्ट्रिंग)' में कुछ अमान्य तर्क हैं मैं इसे कैसे बना सकता हूं ताकि व्युत्पन्न वर्ग SpecificRow पर एक ऑब्जेक्ट प्रारंभकर्ता का उपयोग प्रकार M...

jQuery file upload after page load -

I have a page that loads an HTML form via a $ .jax request. The file upload option in the form I have tried to do many Ajax upload plugins and they need to instantify some Ajax upload () type objects, which internally creates a click listener. However, these audiences do not trigger because the dynamically loaded form DOM is not accessible. In the past, I have used Live to listen to such things, but I can upload these ajaks as a live event. So how do I make this upload button work? I remember, from somewhere, that plugin can control this type of thing, looking for the truth In, I came to:

c# - How to use Windows 7 API like Aero Glass, Jump List, etc -

How can I take advantage of Windows 7 features like Aero Glass, Jump List, Act? And minor changes like the icon on the jump list, the color of the jump list. Any good article? Check the Windows API code pack: Windows API Code Pack for Microsoft. The Net Framework provides a source code library that can be used to access some of Windows 7 and Windows Vista's managed code from managed code. The features of these windows are not available to developers today. Net Framework The individual features supported in the library in this version (v1.0.1) are as follows: Windows 7 Taskbar O Jump Lists, Icon Overlays, Progress Bar, Tabbed thumbnail, and thumbnail toolbar windows shell - o windows 7 libraries o windows shell search API support o explorer browser control - a hierarchy of o shell namespace entities - o windows shell property system o drag and drop shell object Common file dialog, oo known folder and non-file system containers, including O Vista Vista and Win...

How to change icon/emblem of a directory from bash -

I'm playing with (eccentric) which is going on every few hours to catch some new episodes ... After this, when anything new is over, I want to add plus or star (preferably Nautilus Emblem) to change the symbol of ~ / video P> Do I go through Nautilus about this? Do I need to change something in gnome-config? I'm sure this can not be the FS level? Cheers for any links and advice. GVFS-set-attribute ~ / video-tt string metadata :: images new required gvfs-set-attribute -t ​​string $ FOLDER metadata :: custom-icon file: ///home/user/path/to/icon.jpg

gpu - DirectX HAL specification -

Where can the directX HAL specification be found? Take it on the right Then all GPU vendors must write their device drivers as they talk to HAL. Where is the HAL specified? How does MSFF adjust or update HAL? When does HAL change? If changes in HAL breaks the world or the sky falls? As far as I know, there is not "DirectX HAL", HAL is just HAL. HAL is a kernel-mode abstract layer that uses WDDM. In return, Dial X speaks in the APIDDDDM driver (written by Nvidia, Ati, etc.), and provides immediate access to the HAL device. For software to talk to HAL, it needs to be run in privileged mode (i.e., a driver) If you are curious, this is where HAL is specified: HAL (usually) changes when new versions of Windows are released and yes, sometimes the sky falls. Remember when XP drivers worked on Vista? The reason for this was either changing WDDM or changing by HAL. Or, most likely, both.

java - php comet with quercus -

If I write a combo push with php, but this code is used on the Java server via quarks Is it a problem to request a process that will solve a process that Apache has done well with a lot of users who use my chat? Good, (j) VM so that it can be run with other code which can trigger threads Are there. But why do you need threads to communicate? You only set the expiration time on Vanilla PHP request 0 (no timeout) and wait for something to wait for the user to return. This will be something else in response to someone else's request (i.e., a "hello" which is obstructed in waiting for b to happen). You do not need multilevel for this. In addition to this, you can use Apache / PHP and instead of the above version, Java (or other) service can connect to some things like XML RPC, which can always wait for . That server can run multiple threads or whatever is necessary for this.

c++ - Static function access in other files -

Is there any chance that static functions can be assessed outside the filing? It depends on what you mean by "access" Can not be called by name because it is stable in a separate file, but you have a function pointer. $ cat f1.c / * static * / static int number (zero) {return 42; } / * "Global" indicator * / integer (* pf) (zero); Zero start (zero) {pf = number; } $ Cat f2.c # include & lt; Stdio.h & gt; Extra int (* PF) (zero); External zero start (zero); Int main (zero) {start (); Printf ("% d \ n", PF ()); Return 0; } $ Gcc -ansi -pedantic -W-wall f1.c f2.c $ ./a.out42

Jquery change CSS of child div after clone -

I clone a DIV and change it to CSS properties, but can not figure out how to deliver it Changes the CD In the following example I want to change the yellow-to-blue # description-child's background. CSS: #wrapper {width: 200px; Background: Gray; } #details {width: 200px; Height: 100px; Background: green; } # Description-Child {Width: 100px; Height: 100px; Background: yellow; } JS: jQuery.noConflict (); JQuery (document) .ready (function () {// clone clone_details = jQuery ("# ​​details"). Clone (); // change css clone_database ({'margin-top': '50px', 'background ':' Red '}); // jQuery ("# ​​description-kid"). CSS (' background ',' blue '); // original disk // render clone jQuery ("# ​​wrapper") Attachments (clone_details);}); Once you have a jquery object, you select a selector from within the scope Can search with that code of $ Find () clone_details.find ('# details-child...

log4net - How to suppress logging message for nHibernate -

I am using log 4net in my application which uses nHibernate now flooding with hibernate messages to my implicit That's what I want to suppress. I have tried to do this but it is not working. & lt; Log4net & gt; & Lt; Appender name = "Event logic" type = "log4net.Appender.EventLogAppender" & gt; & Lt; Param name = "login name" value = "app log" / & gt; & Lt; Param name = "ApplicationName" value = "DataService" /> & Lt; Layout type = "log4net.Layout.PatternLayout" & gt; & Lt; Conversion pattern value = "% date [% thread]% -5 level% logger [% properties {NDC}} -% message% newline" /> & Lt; / Layout & gt; & Lt; Filter type = "log4net.Filter.LoggerMatchFilter" & gt; & Lt; LoggerToMatch value = "NHibernate *" /> & Lt; AcceptOnMatch value = "false" /> & Lt; / Filter & gt; & Lt; / Appen...

c# 3.0 - date comparison problem -

मेरे पास एक नाम दिनांक है। दिनांक दिनांक jan 10 जैसी तिथि रखती है। मैं यह जांचना चाहता हूं कि क्या यह दो तिथियों के बीच गिरता है या नहीं। उदाहरण jan 10 के बीच dec 10 और feb 10 के बीच है। मैं यह कार्य कैसे कर सकता हूं? अपनी तारीखों को दिनांक समय और कन्वर्ट करने के लिए परिवर्तित करें। सिस्टम का उपयोग कर; System.Collections.Generic का उपयोग कर; System.Linq का उपयोग कर; System.Text का उपयोग कर; नेमस्पेस जेपीएलैब.एक्सटेंशन {सार्वजनिक स्टेटिक क्लास ComparableExt {स्टैटिक पब्लिक बॉल्स बीच में & lt; T & gt; (यह टी वास्तविक, टी लोअर, टी ऊपरी) जहां टी: आईसीओम्पेरेबल & lt; T & gt; {वास्तविक रिटर्न। कॉमपाराटे (कम)> = 0 & amp; amp; वास्तविक.संगत (ऊपरी) & lt; 0; }}} मुझे उम्मीद है यह मदद करता है।

Python Leave Loop Early -

How can I leave a loop in a python? For A-B: If the criteria in the list 1: Print "Oh No" # For Power stresses the next iteration without some deviation. App (A) In addition, in Java, you have a par value in Python, out of the break loop? continue and break which you In this connection, Python works like Python / C ++.

unit testing - Debug.Assert interferes with MSTests, how do I work around it? -

So I have been testing a unit through MSTests to ensure that it comes to bad data Excludes exceptions correctly. / P> However this is debug in this method. Associate while debugging while this is during actual testing, where I am trying to find a bug in debug mode. Therefore, the unit tests fail to be automatic when run in this way, because the ashert comes with abort, retrieve, ignoring statement. All 3 positions are important: I'm looking for debugging and a problem, so I should debug. Attachment code should be appropriate guard clause to be available, so if the exception is in production, the exception is thrown. So far when the unit tests are being run locally, Nicole's solution I wanted Did not, because I intentionally passed the values ​​that would travel in. To make sure the exception is thrown, intervene with running the automated unit test at the local level. I think that this would work if I was ready to accept the code and the Conditional ("DEBUG...

virtualization - How can I use the COM object "VirtualPC.Application" to automate Windows Virtual PC from c# -

I've read that Windows Virtual PC comes with a Com Interface (VirtualPC.Application). I have read about how I used blogs from Powerhale, but how can I use it from C #? In particular, is there a Primary Interop Assembly (PIA) that I can use in # to get intellisense in Visual Studio? Export the COM wrap as follows: Tlbimp c: \ windows \ system32 \ vpc.exe /out:\vpc.dll Add a reference to the generated DLL: vpc.dll Create an object and call it C #: var vpc_obj = new vpc.VMVirtualPCClass ();

javascript onclick get url value -

मैं onclick पर एक url मान प्राप्त करना चाहूंगा। इस तरह से: www.google.com/myfile.php?id=123 मुझे आईडी और इसके मान प्राप्त करना है। धन्यवाद window.location.search आपको ? Id = 123 भाग।

iphone - Is there a fast way to calculate the smallest delta between two rotation values? -

There are two views: viewA and viewB . Both are hanging The coordinate system for rotation is weird: it goes from 0 to 17, 99 99 99 or -179 99 99 degrees. Therefore, essentially 17 9, 99 99 and -179 99 99 are very close! I want to calculate how many degrees or radians between these rotations. For example: The scene is rotated at 20 degrees the visible B is rotated at 30 degrees I just do it Could: rotationB - rotationA = 10 But the problem with this formula: The scene rotates at 17 17 degrees on viewB -179 degrees This would be wrong: Rotation B - Rotation A = -179 - 179 = -358 358 Simple is wrong, because they are very close in reality, one thing I can do is to check whether the correct result value is greater than 180 , And if so, then calculate it in another way to get it less true delta. But I think this possible temporary point due to errors and ineffective, this is wrong and wrong. So if two scenes essentially revolve around 17 9, 99 99 99 99 99 99 de...

html5 - What are valid attributes for the DIV element in HTML? -

सभी वैध DIV विशेषताएं क्या हैं? इसके आधार पर, यह केवल वर्ग , आईडी , शीर्षक प्रकट होता है। क्या वो सही है? अर्थ, के लिए विशेषता और अन्य DIV के लिए मान्य नहीं है

iphone - How to get the filename from a given UIImage object? -

किसी दिए गए UIImage वस्तु से फ़ाइल नाम कैसे प्राप्त करें? नहीं, आप नहीं कर सकते, क्योंकि आप बिना कोई फ़ाइल के शुद्ध डेटा से UIImage बना सकते हैं।

visual studio - Does VS2010 support multi-attach? -

When I hit F5 to debug an application, then in case of processes there are usually more moving parts A process is understood from a project that is considered as the "startup app" For example, a web application calls another (separate) web application that hosts WCF web services, both apps are in the same solution, both Only shared / references Idhansbaan (in the same solution), and both need to debug at the same time. I've used Visual Studio 2008 for obvious reasons, and I'm already using the Debugger menu to attach manually and I also occasionally use System.Diagnostics.Debugger.Attach () I write at startup, but hate it; Can Visual Studio 2010 be configured to delay many processes, i.e. many solutions are being started in the solution? I understand that for "Visual" studio it has many "difficult" processes, especially if the secondary processes are "born" from the first process - Visual Studio will not have a PID in front of the...

python - Multithreading with pyqt - Can't get the separate threads running at the same time? -

I am trying to run a PyQT GUI above my Python application and I tried to split it into 2 threads The GUI will be liable, whereas my main lover goes, but I am unable to do it. Perhaps I have misunderstood it, what I have tried here is: My window and worker thread is defined as: class window (QWidget): def __init __ (self, original = none): QWidget .__ init __ (self, parent) self.thread = worker (start) = QPushButton ( QObject.connect (start, sign ("clicked"), (), (), (), (), (), (), (), (), "__main__ ': MAIN_WORLD = World () app = QApplication (sys.argv) window = window () window.show () sys.exit (app.exec_ ()) It looks like follow very closely for online examples of my world class is running a loop which once becomes infinite, when the user clicks "click" until it re Here is part of its definition. class world (quathrade): def __init __ (self, original = none): QThread .__ init __ (self, guardian ) Self-Revolutionary = Incorrect // Snip ...

c# - See if left mouse button is held down in the OnMouseMove event -

How can I find that a control in the left mouse button OnMouseMove ? Let's tell your event holder an MouseEventArgs for an OnMouseMove event If the left button is pressed, then Private Zero mouseMoveEventHandler (Object Sender, MouseEventArgs E) {if (e.button == MouseButtons.Left) {// Skip the stuff} else {/ Do other things}}

What is the "Starting Point" For PHP's set_include_path -

What is related to set_include_path, in PHP? Is this folder where PHP.exe resides? Is this WebRot? In other words, will the folder set_in refer to clude_path ('/') or set_include_path ('.')? The relative path is solved with the location of the file where contains Or any other function using include_path is used in (see): Using a . Allows for the path involved in the relative because it means the current directory. However, to be able to use PHP to always include the include './file' is more efficient to check the existing directory to include in each. / The root of your file system and . will describe the current directory.

html - Disable autocomplete via CSS -

Is CSS possible to disable autocomplete on a form element (especially a textfield)? I use a tag library which does not allow auto-complete elements and I would like to disable autocomplete without javascript. "post-text" itemprop = "text"> You can use a derived id and name every time that Is different, therefore the browser can not remember this text-field and will fail to suggest some values. This is at least a cross browser safe option, but I would recommend responding to Robertson M ( autocomplete = "off" ).

sql server - Combining SQL Rows -

I have got a SQL compact database in which there is a table of IP packet headers Table: : PacketHeaders ID SrcAddress SrcPort DestAddress DestPort Bytes 1 10.0.25.1 255 10.0.25.50 500 64 2 10.0.25.50 500 10.0.25.1 255 80 3 10.0.25.50 500 Table Looks Like This 10.0.25.1 255 16 4 75.48.0.25 387 74.26. 9.40 198 72 5 74.26.9.40 198 75.48.0.25 387 64 6 10.0.25.1 255 10.0.25.50 500 48 I need to perform 'Conversation' running on a local network. A query to show Packets going from A -> B is part of the conversation as is the packet going from B -> A. I need to make a query to the conversation I actually have what I want, which looks something like this: returns to the question: SrcAddress SrcPort DestAddress DestPort TotalBytes bytes E & gt; B bytesby-> A10.0.25.1 255 10.0.25.50 500 208 112 96 75.48.0.25 387 74.26.9.40 198 136 72 64 As you can see that I can query query (or query series) ), A-> BB-> A and byte are calculated accordingly accordingly. I'm...

sql server - Write a T-SQL query that filters records containing NCHAR(2028) -

My last goal is to write a SQL script which selects data from a particular table where in an nvarchar (max) column Characters include NCHH (2028). But obvious: first to select the tagline where '%' + NCHAR (2028) + '%' / Pre> Returns all the rows. Use a binary collation for your choice. select * to select from like '%' + NCHAR (2028) + '%' 'column name like COLLATE Latin1_General_B / Div>

CodeCampServer don't input any logging from NHibernate? -

Have you ever used the CodeCampServer architecture to be successful in entering the NHibernate input? I have read and I did everything that I can. Probably there is a problem in this architecture I use Infrastructure.NHibernate.DataAccess.Bases.Logger.EnsureInitialized (); Starting log4net. Code here: Public Class Dependency Registrar {Private Stable Bull _ Dependency Registered; Private static void RegisterDependencies () {ObjectFactory.Initialize (x => x.Scan (y = & gt; {y.AssemblyContainingType & quot; DependencyRegistry & gt; (); y.AssemblyContainingType & lt; NaakRegistry & gt; ); Y.LookForRegistries (); y AddAllTypesOf & lt; IRequiresConfigurationOnStartup & gt; ();})); New InitiailizeDefaultFactories () Configure (); } Private Static Reidonly Object Sync = New Object (); Internal Zero Configure On Startup () {Infrastructure. NHibernate.DataAccess.bases.Logger.EnsureInitialized (); RegisterDependencies (); Var dependencies begin with = ...

range and xrange for 13-digit numbers in Python? -

श्रेणी () और xrange () 10 अंकों के लिए काम -numbers। लेकिन 13-अंकीय संख्याओं के बारे में कैसे? मुझे फ़ोरम में कुछ नहीं मिला। आप यह कोशिश कर सकते हैं। श्रेणी के रूप में समान शब्दों: आयात ऑपरेटर डीआरए लेंज (num1, num2 = none, step = 1): op = ऑपरेटर .__ lt__ अगर num2 कोई नहीं है: num1, num2 = 0, num1 अगर num2 & LT; Num1: अगर चरण & gt; 0: num1 = num2 op = ऑपरेटर .__ gt__ elif चरण & lt; 0: num1 = num2 जबकि op (num1, num2): उपज num1 num1 + = step & gt; & gt; & gt; सूची (lrange (138264128374162347812634134, 138264128374162347812634140)) [138264128374162347812634134L, 138264128374162347812634135L, 138264128374162347812634136L, 138264128374162347812634137L, 138264128374162347812634138L, 138264128374162347812634139L] एक अन्य समाधान, itertools.islice का उपयोग करेंगे के रूप में xrange 's में सुझाया गया है

java - Save more than object with the same identifier into a database in the same session? -

संभव डुप्लिकेट: मेरे पास दो एंट्री हैं जो बहुत से एक रीतिशिप के माध्यम से जुड़ी हुई हैं I कई [श्रेणी] --------- एक [खेल] कॉलम idgame ---------- ------------ gameid श्रेणी ------------------ खेल का नाम मुझे कई अवसरों की आवश्यकता है वास्तविकता की श्रेणी के भाग में खेल प्राथमिक कुंजी का मैंने एक सत्र में ऐसा करने की कोशिश की है लेकिन मुझे त्रुटि मिलती है "समान पहचानकर्ता मान के साथ एक अलग ऑब्जेक्ट पहले से ही सत्र से जुड़ा था: [org.POJO.Category # 1]"। मुझे लगता है कि मेरी कॉन्फ़िग फाइल गलत है लेकिन मैं शायद गलत हेरा मेरे कोड। try {sessionfactory sessionFactory = नया कॉन्फ़िगरेशन ()। कॉन्फ़िगर करें ()। BuildSessionFactory (); Session = sessionFactory.open सत्र (); // संपर्क का नया उदाहरण बनाएं और ट्रांजैक्शन tx सेट करें = session.beginTransaction (); गेम गेम = नया गेम (); gam.setgenre (game.getString ( "शैली")); gam.setgname (game.getString ( "GAME_NAME")); gam.setplatform (game.getString ( "मंच")); gam.setdescription (game.g...

Access to the path is denied when programmatically downloading a file from ftp in C# on Win7 64bit -

I am using the C # framework REBEX files in files from APT in Win7 64 bit VS2008. After pressing F5 to start debugging, I get an error on which entry is prohibited from the path I am downloading. I believe it may be due to the UAC and Win7 / Vista. I did some research and found some information on app.manifest, but when I change the access level I entered in the app, it is mentioned that this click is not compatible with security settings. Therefore I have disabled only one click when it is automatically re-enabled during the project or debugging itself. And yes, I have enabled full security privileges for all users on the folder, and I have tried to send the file to my ... \ AppData \ Roaming \ The idiot drives me out I was not setting the entire local file path just to help someone else in my plight ... This will make the entry exception denied: client.GetFile (item.Name, @ "C: \ DIR \"); And this will give you the file you want: client.GetFile (it...

ms access - How do I View Specification Name? -

I am reviewing a coworker's access database which left the macro in the database, but I have to understand that what macro Does fine In the design scene, I open the macro and see that there is a specialty name field that I want everything. How do I see that file? Specifications are stored in system tables (MSysIMEXSpecs, MSysIMEXColumns), but it is easy to choose to import manually Select Advanced, then select Specs

c# - how to make pre-set public property to private while creating a custom control -

I'm just creating a custom MascadeTextbox for the date. Now I want to hide the mask property of the masked textbox from my users. Edit: Public Class Custom Dat Mask: System. Windows .form. Maskedtextbox {public new string mask {get; Private set; } Public Custom Date Mask () {this.mask = @ "00/00/2 \ 000"; // This property should no longer be set by anybody. ValidatingType = typeof (System.DateTime); // This property should no longer be set by anybody}} I should do so that no one can set this property Copy and paste it into your square: [Browsable (false), editorBrobable (editor BraziliteState. No]] Public new string mask {back {return base.Mask; } Set {base.Mask = value; }} [Browsable] Attribute property hides the property in the window. [EditorBrowsable] The feature hides from IntelliSense.

database - DB2 load partitioned data in parallel -

I have 10-node DB2 9.5 database, with raw data on each machine (i.e. node 1: / scratch / data) / Dataset.1 node2: /scratch/data/dataset.2 ... node10: /scratch/data/dataset.10 There is no shared NFS mount - none of my machines have all the datasets Each line in a dataset file is a long string text, column is delimited. The first column is the key. I do not know that the hash function which is subdit of DB2 Yoga will be done, so the dataset pre- There is no shortage of renaming all my files, is there any way to load DB2 in parallel? I am trying to do this 'Dell scratches / data / dataset modified by cold; FastShare message / dev / null has been changed to TESTDB.data_table part_file_location' / scratch / data '; It does not know how to suggest DB2 that it is on the first node If the Indivi Dual Data files are split from the same database partition on each partition. Was not produced, then you are stuck, and have to load 10 times - once each different database pa...

c# - In Gtk#, how can I pass an object reference in drag/drop? -

By reading the document, it appears that as a data you need to send an array of bytes. This cross program is understandable for interoperability, but I want to exchange data within my application. Is it possible to pass an object reference as a data? From the comments of Johannes Sansonko: By reading the docs, I It does not seem that it is possible. To use a dictionary to store "pointers" and their values.

Show line numbers in Visual SlickEdit -

Does anyone know how I can show the number of views in the SlickEdit line number? I can do this on each- file basis on the basis of view-> line numbers, but I want to set it as a mode in the editor and not to open it for every file. Thank you. I have got SlickEdit 2007 (12.x), and AFAIK has no way of all the files To toggle the line numbers at once, but if you are only interested in some different file types, then you can turn on display of line numbers on the per-extension basis in the Display Line Number checkbox of the General tab of the device. > Extensions> File extensions for each extension Setup

Creating a class with no init method (Objective-c) -

Is it possible to create a class with any init method, so that all the callers make a factory method instead of the object To be compelled? So basically, you want to make sure that anytime you use your class-int Not started, is not it? You can not exactly do what you want to do, but you can come close. Since you get from NSObject, you have an init method and you can not do anything to stop it from being called, he said, you can override the init for this: - (id) init {[self dealloc]; @throw [NSE Exception exception: Alias: @ "MyexationName" Reason: @ "Reason" userInfo: zero]; Return zero; } In this way, sometimes a person calls your method, kills the object, so speaking practically, your init method is very much unwritten.

integer - PHP check if variable is a whole number -

मेरे पास यह PHP कोड है: $ entityElementCount = (- ($ highscore- $ totalKeywordCount)) / 0.29; मैं क्या जानना चाहता हूं, यह कैसे जांच करें कि $ entityElementCount एक पूर्ण संख्या है (2, 6, ...) या आंशिक (2.33, 6.2 , ...)। धन्यवाद! $ entityElementCount = (- ($ उच्च स्कोर - $ कुल कीवर्डशब्द)) / 0.29; अगर (ctype_digit ($ entityElementCount)) {// (ctype_digit (स्ट्रिंग) $ entityElementCount)) / जैसा कि सलाह दी गई है प्रिंट "संपूर्ण संख्या \ n"; } अन्य {प्रिंट "पूरे नंबर नहीं \ n"; }

c++ - Is fastcall really faster? -

Is the Fastcoll Calling Conference really more fast than other calling conventions, such as cdecl? Is there a benchmark that shows how the performance of the conference affects the performance? It depends on the platform. For Xenon PowerPC, for example, due to a load-hit-store problem with the data passing on the stack, this can be an order of difference of magnitude. I have given time to end time on approximately 45 cycles of the overhead of a cdecl function, while compared to ~ 4 for fastcall . X86 (Intel and AMD), the effect can be very low, because the registers are all shaded and renamed. The answer is in fact that you need to benchmark yourself on the specific platform that you care about. / P>

regex - Regular Expression to match 6-15 alphanumeric characters plus symbols above 1-8 keys on keyboard -

I am trying to get a regular expression that allows between 6 - 15 characters and the one- ZA-Z0- 9 and the symbol above 1 - 8 numbers on a keyboard. What I have here but this does not work '/ ^ [a-zA-Z0-9 -_] [\! \ @ \ # \ $ \% ^ ^ & Amp; \ *] {5,16} + $ / 'Within brackets you have two separate sets.' Basically the expression "1-zA-Z0-9-_" And make 5-16 special characters in the same set of brackets and you are all good. Something similar is: '/ ^ [a-zA-Z0-9-_ \! \ @ \ # \ $ \% ^ ^ & Amp; \ *] {5,16} + $ / '

visual studio - VS 2008 Code Snippet Indentation -

In 2008, there are XML code snippets in VS 2008 which look great :) However, it seems that the snippets we have created do not indent properly, for example if we have the following code: {... ... ... {InsertSnippet here} We get something like this: {...} ... {The first LeonfootSept Second Linen snapet is the third lineoffendettext Any way to do this is that all the rows have the same indentation Borrow pit are? It usually indicates that the code you are inserting means that is incorrect - at the time of joining , When you did not fill the snippet value. To prevent this you can use the default value in your snippet to correctly snap the snap. To declare an argument list for functions such as: & lt; Liberal editable = "true" & gt; & Lt; ID & gt; MethodArguments & lt; / Id & gt; & Lt; ToolTip & gt; MethodArguments & lt; / ToolTip & gt; & Lt; Default & gt; Paramus object [] Args & lt; / Default> & Lt...

unix - editing text files with perl -

I am trying to edit a text file that looks like this: TYPE = Ethernet HWADDR = 00: .... IPv6INIT = no MTU = 1500 IPADRR = 1 2.168.2.247 ... (This is actually / etc / sysconfig / Every time I want to modify it, instead of reading and rewriting the file, I felt that I had grep, sed, awk or native text provided in Perl, on the network-script / ifcfg-file red cap linux)I could use Arsing functionality. For example, if I want to change the IPDDR field of the file, is there a way that I can just retrieve the straight line? Maybe something like this grep 'ipaddr =' & lt; Filename & gt; But to add some additional logic to modify that row? I'm a bit new in Unix based text processing languages, so bear with me ... Thanks! Here is a Pearl Inlineer to replace the IPADRR value with IP address 127.0.01. It is very low that you should be able to see what you need to change the other fields: * perl -p -i.orig -e 's / ^ Ipaddr =. * $ / Ipadr = 127.0.0.1...

oracle10g - oracle db lock issue, commit -

This Oracle is 10g if I issue an update on a table from sqlplus but does not commit, then in the second session Update on the same line and try to commit, until I commit to the first one. I know that some people argue that this is a locking mechanism, but we have only one thing and the users are being blocked. Is this the best way to avoid this problem? Instead of trying to update only, you can issue a lock with the NOWAIT option, for example, For SELECT * FROM to update where my location is; If the line is locked by another user, then Oracle will immediately raise ORA-200054: the resource is busy and received with the specified NOWAIT .

ASP.Net membership and Roles Managment -

ASP.Net 2.0 is looking for some feedback built in subscription and role management. Do many people use it? What's good and / or bad about it? Can I assign multiple roles to a single user? What is the optional standard for Net Apps? Personally considering the permissions or actions defined for a role, it seems that I could only play a single role and I would like to have roles to get permission from each other. It was a great headache to manage the team created in the membership manager. If I am the light ... .. Publisher Editor's Member And I want the editor to have some permissions, which have something with the publisher and the member , It would be difficult in my code to determine whether the current user can edit something rather than just a list of permissions drawn by a role and just to see if the "edit paragraph" is in the list . Using built-in subscription providers is very easy, and it is quite secure. I have used many versions of it in di...

jquery - Javascript "window.open" code won't work in Internet Explorer 7 or 8 -

I am using jQuery / Javascript code to open a popup window on my site: (Code) $ ('# change_photo_link' $ id, "upload photo", "menubar = no, width = 430, height = 100, toolbar =");}); This code works on Firefox and Chrome. It does not work on IE 7 or IE 8 (IE 6 has not been tested) IE has made an error on line window.open Why? The error given by IE is "invalid argument" and this is all. This is the second parameter in place that this is the reason if you upload "upload photo" instead of "upload photo" ", Then it works: $ ('# change_photo_link'). Click (function () {$ id = $ ('# id') .attr ('value'); window.open ("photo.upload.php? Id =" + $ id, "UploadPhoto", "menubar = No, width = 430, height = 100, toolbar = no ");}); I do not think there could be no official reason as the reason for the location in the window.open () parameter in the windowName...

ios - NSDictionary - Need to check whether dictionary contains key-value pair or not -

I need to follow as something to say that I am a dictionary. NSMutableDictionary * xyz = [[NSMutableDictionary alloc] init]; [Xyz Set Valley: @ "Sea" for: @ "S"]; [Xyz Set Valley: @ "Amit" for: @ "A"]; [Xyz Set Valley: @ "Fleas" for: @ "N"]; [Xyz Set Valley: @ "Abhishek": @ "A"]; [Xyz Set Valley: @ "xrox" for: @ "X"]; Now, I need to check this type of [xyz has the key "b" value ?? Pair or not? How is the question? The second question is how to calculate only the total key-value pair? For example, say NSInteger mCount = [xyz keyCounts]; just for it objectForKey: @ "b" Ask. If it returns zero , then no object is set on that object. if ([xyz objectForKey: @ "b"]) {nslog (set to "@ an object is key" \ "b \"!);} Other {nslog (@ "No object is set for key \" b \ "");} edit : According to you...

MySQL Query Issue - Count Query Uses lot of CPU -

The table we have mysql to log all visitors to our site structure is shown below CREATE TABLE `tblvisitors` (` visitorURL` LongText, `visitorDatetime` datetime default zero,` visitorIP` varchar (255) default zero, `visitorID` int (10) nOT nULL AUTO_INCREMENT,` visitorUser` varchar (255 ) default zero, `visitorShow` varchar (50) default zero,` visitorIPcaption` varchar (255) default zero, `visitorIPRange` varchar (255) default null, pRIMARY KEY (` visitorID`), KEY `INDEXDT` (` visitor e Ttaim '), key `Indeksip` (` visits Aipi`)) engine = Maisam default charge = latin1; The table has recorded more than 5 million now. We have a combined operation every half second and also select one of the operations every half second which is included on a criteria visitorURL column and select the COUNT field query. select COUNT in (visitorURL) visitorURL Where tblVisitors = 'http: //mihirdarji.com/something' With the 8GB RAM CPU usage in the 8 core server shoots up to 90...

javascript - jQuery live confirm -

मुझे .live () और पुष्टि के साथ समस्या हो रही है । यह प्रत्येक क्लिक के लिए पुष्ट संवाद को गुणा करना है मुझे .die () के बारे में पता है लेकिन मैं इसे काम करने के लिए नहीं मिल सकता। $ ("button.del")। Live ("click", function () (यदि (! पुष्टी ("क्या आप निश्चित हैं?")) {// बंद}}); मैंने कोशिश की है $ ("button.del")। मर ("क्लिक करें"); उपरोक्त कोड के ठीक बाद, जिस स्थिति में confim यदि आप स्वयं उस कोड को स्वयं चलाते हैं तो क्या डायलॉग बॉक्स कई बार प्रदर्शित होता है? यदि संवाद बॉक्स कई बार प्रदर्शित हो रहा है, तो एक संभावना यह है कि आप गलती से यह .live () एक बार से अधिक बाध्यकारी चल रहे हैं। यदि ऐसा हुआ है, तो आप प्रत्येक बार बटन पर एक ईवेंट बाउंड के लिए एक डायलॉग बॉक्स देखेंगे। सुनिश्चित करें कि आप केवल इस फ़ंक्शन को बटन पर एक बार संलग्न कर रहे हैं। यदि आप इस पर एक नज़र डालें, आप देख सकते हैं कि आपका कोड ठीक है।

Neural Network simulator in FPGA? -

To learn FPGA programming, I am planning to create a simple neural network in FPGA (because it is widely parallel, it is one of the few things where an FPGA implementation can have the chance to be faster than the CPU implementation ). However, I'm familiar with C programming (10+ years). I do not believe so much about FPGA development material > Most efforts to build a 'literal' nerve network on an FPGA hit the boundary of the road very quickly, P & amp; You can get a few hundred cells before pulling the R. It takes more time to finish than your problem; Most of the research in NN & amp; amp; The FPGA takes this approach, focusing on at least 'node' implementation and suggesting scaling is no longer trivial. The method of shaping exactly the working nervous system is to use FPGA to create a dedicated nervous network, get your initial node value in number crunching machine memory chip, your next timestamp results For a second memory chip, and t...

actionscript 3 - Finding the width of TileList - scrollbar width Flex -

I found a tile list with vertical ScrollPolicy = "on". Is there any property which gives width of the scrollbar by reducing the width of the tile list? I do not know about any property but in Flex Builder 3 you can navigate to the Navigating menu Open the square> Type the open type and scrollbar in the box at the top This will allow you to open the scrollbar. See the file file that is the previously declared stability thickness set to 16. Thickness is described in the comment / ** * Width of a vertical scrollbar, or horizontal * height of the scrollbar, in pixels. * / So the width you want can be computed by: calcWidth = myTileList.width - 16;

What is the automation of project ? Please explain with an example -

Can you please tell me what is the automation of the project? How does it relate to the test? Please explain with an example. I do not know what this is. It depends on context, "Automation" alone, with no reference alone, does not mean much at all. Anyway, most likely indicates a scenario such as: You make changes to the code and then press a button. Then, the following happens automatically. Some programs will check whether your checkout adheres to the code coding standard. If not then your checkout will be rejected. Your changes will be made; If the build fails (or possibly contains warnings) your checkout will be rejected. A suite of different tests has gone; If someone fails, your checkout will be rejected.

iphone - Intermittent memory leaks -

I'm testing a special case for leaks. I sometimes get leaked and available for a second time , Even if I did not go through the same experiment. Can you suggest that this system is due to framework or my code? I have checked in my code and at any time, without any visible objects, you can suggest a solution. Thanks This outline Do not forget that hundreds of thousands of developers use it, so the likelihood of not seeing any bug is vulnerable to code, which is only reviewed by you.

Parse RSS pubDate to Date object in JavaScript -

मैं यह कैसे करूँ? मंगल, 2 फरवरी 2010 19:34:21 आदि / जीएमटी यह बॉक्स के ठीक बाहर काम करता है जावास्क्रिप्ट में दिनांक ऑब्जेक्ट कई मानक समय स्वरूपों को पास करके सेट किया जा सकता है। आरएसएस में प्रयुक्त प्रारूप इनमें से एक है। उदाहरण: var pubDate = "सूर्य, 27 मार्च 2011 20:17:21 +0100"; Var date = नया दिनांक (पबडेट); Var महीने = अर्रे ("जनवरी", "फरवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितंबर", "अक्टूबर", "नवंबर", " दिसम्बर "); Var स्ट्रिंग = डेट.गेटडेट () + "" + महीनों [date.getMonth ()] + "+ + + date.getFullYear () अलर्ट (स्ट्रिंग);

gdb debugger in xcode doesn't work -

I stopped the program when trying to use direct commands for GDB through the console of the xcode window I am But (GDB) sign only accepts Carus returns, and does not do anything, has anyone encountered this? I am with XCode 3.2 Beta on the latest version of Mac OS X (10.6.2). It is best to use beta to contact beta mailing lists because it is such an issue, The developers who want to know While using the beta, I will first check that this works by using the previous production version Also keep in mind that you are under NDA And can do this only with developers.

c++ - Mac OS. How to create image from PNG data? -

I have an array of data that represents PNG: unsigned short SystemFontext [] = {0x5089,0x474E, 0x0Ad, 0x5089,0x474E, 0x0d, 0x5089, 0x474E, 0x0Ad, 0x5089xx474E, 0x474E, 0x 0 0 0 05050 0x474E, 0x0 A, 0x5089,0x474E, 0x474E, 0x0AD, 0x5089, ...} Do I Can I create a PNG file using this data? If yes, then how? To complete the data and then

objective c - Download new app from within an iPhone-app -

I have developed a game and planned to create a "light" version of that game to promote "premium" The version of the game is easy to find information about in-app purchase, but what I'm not getting is that after purchasing, how to actually download the app from within my light-version. I do not intend to update the lite version to a previous version, rather instead should consider the premium version as a new application that needs to be downloaded. How can I do this, and where can I get this information? "in app purchases" and "new application" "are mutually exclusive. The simplest thing is that people navigate their new app on iTunes Store, and let them decide whether to buy it from there: [[UIApplication share Application] Opal: [NSL URL URL String: @ "http://www.itunes.com/apps/yourPaidVersionAppName"]] ;;

java - Screentoaster, how do they do it? -

I need to develop a browser based application that records the user screen, most preferably on flv This is also true with Java. That's okay they completed on screentoaster.com, just with a Java app. Will anyone know how they have done this? Did they use Exagger? The best regards, The Java robot class, and the custom JNI library Using the libx264 encoder by embedding, by chance, seeing that they are shipping with libx264 and it is a download that installs on client computers (eg, check Java cache for binaries), give them your code Should be in the form of a GPL in the form of a license, which is compiled with libx264 Add. You can take follow-up action with them to get the source. Art

What's this data format? It looks like some kind of reduced pseudo-XML/JSON to me -

Sorry, this might be a stupid question, but I do not know how this google ... output me Found a CLI tool and I was wondering what the format is called. status list {status} Intel Time = "1260878400" value {char value = "197773F100" four types = "RGF"} #value} #status position {int time = "1260899700" value {char value = "347663E100" char type = "RGF"} # value} #status} #statusList Thank you! Looks like I'm not exactly the same, but it seems that the only creation Most of them are.

tcp - binary coded decimals (BCD) put into a byte in C# -

I am working on implementing a protocol, to put me two values ​​in a byte of 0 to 160 Says. I believe, because it does not specify what kind of BCD wants, that I will put one digit in the lower beak and the other decimal will be added to the beak. I mean 1 byte meets a two-digit decimal. But how would any big value fit into a byte? For example 160? Perhaps this is my experience of "dense packed decimal" with a BCD in a telecommunication CDR framework. As you say, where 99 is the most decimal that can be encoded into a byte. But a quick Wikipedia search changed the DPD.

Db4o Tree structure C# -

I am new to db4o and am trying to figure out whether it is possible: public class page {public sign id {get; Set;} public page guardian {get; Set;} Public IList & lt; Page & gt; Children {receive; Set;} public string name {get; Set;} public string depth {get; Set;}} When I save the page, then I have only parent ie IE page page = new page () {ID = Guid.NewGuid (), name = "p1", parent = null}; Page 2 = new page () {ID = Guid.NewGuid (), name = "p2", parent = p1}; Page page 3 = new page () {ID = Guid.NewGuid (), name = "p3", parent = p1}; When I load P1, what happens to populate two children? DB4O will also load P1 with datastore as well as load the collection of children , So yes it is possible ...

winapi - EnumServicesStatus and Windows 7 -

इन सभी वर्षों में मैं सफलतापूर्वक EnumServicesStatus का उपयोग कर OpenScManager (SC_MANAGER_ENUMERATE_SERVICE के साथ) में स्थापित सेवाओं की सूची प्राप्त करने के लिए कर रहा हूं। एक कंप्यूटर। यह एनटी 4 के बाद से और विस्टा तक काम कर रहा है। अब, कुछ कारणों से, विंडोज 7 में मुझे स्थापित सेवाओं की पूरी सूची नहीं मिली है, लेकिन उनमें से केवल कुछ कोई त्रुटि नहीं, सेवाओं की बस एक बहुत ही अपूर्ण सूची क्या कुछ भी विंडोज 7 में बदल गया है? क्या मुझे सेवाओं की गणना करने के लिए अब प्रशासनिक शक्तियों की आवश्यकता है (मुझे उम्मीद है कि यह मामला नहीं है)? डेल्फी 2010 का उपयोग करते हुए लेकिन एक ही कोड D2007 में काम कर रहा था। मुझे नहीं लगता कि कुछ भी बदल गया है यहाँ। इससे पुराने सॉफ़्टवेयर के साथ बड़ी असंगति का कारण होगा लेकिन डी 2007 ने एन्सी संस्करण ENUM_SERVICE_STATUSA का इस्तेमाल किया और मुझे लगता है कि डी 2010 यूनिकोड संस्करण ENUM_SERVICE_STATUSW को कॉल करता है। शायद आप परिणामों में कुछ हेरफेर कर रहे हैं जो मानते हैं कि जब आपको यूनिकोड मिल रहा है तो परिणाम एएनएसआई है? बस अनुमान लगाना। ...

c# - Where should I store error logs? -

I am creating a C # / asp.Net (FW 2.0) web application and I was thinking that Where the log entry should be stored in your error I can write it on a file on the server, but I do not think it would be insulated from the idea of ​​an database . Other bizarre answer is on the database, but if I do not have any relation with the database, what should I do if the client receives a connection error in the database (because the server and database are the same Are not clearly on the machine)? Your suggestions are appreciated. From you edit: I'm talking about basic error logging here, please do not mention such things as a large frame of log 4 net. There is a very valid scenario when there is a fallback mechanism. Logging in the window event logs is not always practical, because logging is not easy to analyze, as is with relational databases. But the event allows logs to be logged in the event when your database fails then the luxury option is not IMO. One of the reaso...

php - trim url(query string) -

I have a query string that is given below: Now variable: In the query string, the page can be anywhere within the query string or at the beginning or middle or end (e.g., page = 9 or & amp; page = 9 & amp; or page = 9) anywhere. Now, I need to remove page = 9 from my query string and get a valid query string. wrote a function for this. Seems to work: & lt ;? Php $ url = "http: //localhost/project/viewMember.php? Sort = y2xhc3m = & amp; square = mw == & page = 9"; // print http: //localhost/project/viewMember.php? Sort = Y2xhc3M = & amp; Class = mw == print changeURL ($ url) "\ N"; $ Url = "http: //localhost/project/viewMember.php? Sort = Y2xhc3M = & amp; page = 9 & amp; square = mw =="; // print http: //localhost/project/viewMember.php? Sort = Y2xhc3M = & amp; Class = mw == print changeURL ($ url) "\ N"; Function changeURL ($ url) {$ arr = parse_url ($ url); $ Query = $ arr ['query']; ...

iphone - What is a UIViewController -

I know that UIView do, but UIViewController is not . I just want to know how I can use it for it, and it is UIView what is in fact you need to know that the software engineering field, this structure corresponds to the view UIView and UIViewController this controller side architectures. now UIViewController can be regarded as an agent that UIView events and design Programmed controls shown on (and implementation methods) screen that you want to change anything you view, can be written in a way its controller class, which UIViewController class It handles itself. It is only a brief description of this big concept. For details, you should see the above link.

performance - How to measure the TCP/IP overhead without sniffing? -

I am thinking that there is a programmatic way of getting a full bandwidth measurement when a TCP stream is available. Because I can not know how the network stack will split the stream into the pack, or when it sends you TCP SNN or ACK or many things in the background, then I can get only one estimate for it. / P> The only solution I can think is to actually sniff the interface, but I think the stack can already collect these figures for me. This is going on in Java either Windows or Linux (of course, a portable solution will be given priority), but I can give a C / C ++ reply to JNI-ejet so that (and OS API call) is also a good answer. You are welcome! [Windows specific answer] On ETW (Event Tracing for Windows) Normal As such, ETW is a technology used to provide tracing / logging information on Windows, and most Microsoft software is already eclocked with ETW providers that you can use. In your case, I think the Microsoft-Windows-TCPIP provider has information (like...

c++ - How do I require const_iterator semantics in a template function signature? -

I am creating a constructor which will take a pair of input iterator. I want to do the method signature as compile-time code: DataObject :: DataObject (const char * start, const char * end) However, I have not found some examples of this. For example, the range constructor of my STL implementation has been defined for vector : template There is no compile-time const guarantees iterator_category / iterator_traits & lt; & Gt; There is nothing related to const , either. Is there any way to guarantee that the collar that I can not modify the input data? edit, 2010-02-03 16:35 UTC For example, how would I like to use the function, depending on the function signature , I want to be able to pass a pair of points to the char * and the data they point to will not be modified. I was hoping that I can not build a pair of pointers for the guarantee of consultant semantics. I can be forced to pay the template tax in this case. is. You can create a du...

Swing: JFileChooser with favorites? -

I am working on an application that needs to be selected. It's a good start, but I need to increase it. I can start it on a special directory with JFileChooser.setCurrentDirectory () , but how can I provide the user with "preferred" functionality, either the context of the favorite files saved later For or to the favorite directories? While Jfilecloser accessory was to be intended for things like thumbnails of the currently selected file, copy : An assistant is often used to show a preview image of the selected file; However, it can be used for anything that a programmer wishes, such as additional custom file selector controls. So you have to create a custom JComponent to represent "Favorite Directory", then call setAccessory (myFavesComponent) to your file selector. In order to actually implement the storage of favorite directories, you would want to use it.

inheritance - Is packaging type 'pom' needed when not using project aggregation (multimodule)? -

मैं एक बच्चे की परियोजना में (माता पिता) pom.xml की निर्भरताएं प्राप्त करना चाहता हूं मेवेन 2.2.1; अर्थात परियोजना विरासत का उपयोग करें ऐसा लगता है कि इस मामले में डिफ़ॉल्ट पैकेजिंग प्रकार को jar से pom में बदलना आवश्यक है। हालांकि, यह नहीं बताता है कि पैकेजिंग प्रकार प्रोजेक्ट एकत्रीकरण के लिए pom आवश्यक है, यानी बहुउद्देशीय परियोजनाएं जो प्रोड्यूमेंट्स का उपयोग करती हैं, लेकिन परियोजना विरासत के लिए नहीं? & lt; परियोजना & gt; & LT; modelVersion & gt; 4.0.0 & lt; / modelVersion & gt; & LT; ग्रुप & gt; उदाहरण के & lt; / ग्रुप & gt; & LT; artifactId & gt; उदाहरण के माता पिता & lt; / artifactId & gt; & LT; संस्करण & gt; 1 & lt; / संस्करण & gt; & LT; निर्भरता & gt; & LT; निर्भरता & gt; & LT; ग्रुप & gt; log4j & lt; / ग्रुप & gt; & LT; artifactId & gt; log4j & lt; / artifactId & gt; & LT; संस्करण & gt; 1.2.14 & lt; / संस्करण & gt; & Lt...

asp.net - Hosting WCF web services on IIS - works in VS, but not in IIS -

I am very new to web programming stuff, so my question is basics, I am developing Silverlight applications and databases from it Need to reach. I am using SQL from LINQ to get data from the database and I am using a WFC web service to distribute in my app. When I run my app in Visual Studio, then everything is working properly - When trying to publish a web service to the IIS - the web service call fails. To simplify my question, I will focus on a brand new web service. Here are the steps I'm taking: Start Visual Studio 2008 -> File -> New -> Project -> Web -> WCF Service Application Name: MyWcfService Web Services "Service 1" as a result of Visual Studio " produces a sample project, rebuild, start with Visual Studio (on ASP.net) T development server) -> Everything works fine, I have a http: // localhost: 52489 / Service1.svc link under my View the service. I Visual Studio -> Right-click Project -> Publish -> Click...

iphone - Reusable NSMutableDictionary -

In that forum someone offered me a code solution that used to work great, but for my understanding, I would like to know What is the difference between the 2 blocks of code: Block 1 NSMutableDictionary * step_info = [NSMutableDictionary Dictionary]; block 2 NSMutableDictionary * step_info = zero; Step_info = [NSMutableDictionary dictionary]; It may also be important to mention that step_info has to be loaded again in another NSmutabledictionary to reload. Thank you for your help None compiler step_info = Nil is optimized remotely and you are left with the same code. The following is another method you can take: NSMutableDictionary * step_info; Step_info = [NSMutableDictionary dictionary];

How can I code in a functional style in Perl? -

आप या तो कैसे करते हैं: एक उप वापसी उप या कोड के रूप में पाठ निष्पादित में इसके अलावा, मैं कैसे एक अनाम समारोह स्टोर राज्य है? एक उप coderef के रूप में एक उप देता है: # उदाहरण 1: इनलाइन को परिभाषित किया गया एक उप वापसी उप foo {वापसी उप (मेरी $ this = shift; मेरा @other_परम = @_; कार्य करना(); वापसी $ some_value; }; } # उदाहरण 2: एक उप वापसी जिसे अन्यत्र परिभाषित किया गया है। उप बार {वापसी & amp; amp; foo; } अनियंत्रित पाठ eval फ़ंक्शन के साथ निष्पादित किया जा सकता है: दस्तावेज को यहां देखें: eval q {प्रिंट "हैलो दुनिया \ n "}; ध्यान दें कि यह बहुत खतरनाक है अगर आप उपयोगकर्ता इनपुट से निकाले गए कुछ चीजों का मूल्यांकन कर रहे हैं, और आम तौर पर एक खराब अभ्यास है, क्योंकि आप आम तौर पर अपने कोड को परिभाषित कर सकते हैं ऊपर दिए गए उदाहरणों में जैसा coderef। आप राज्य को एक (नई perl5.10 में) स्टोर कर सकते हैं, या एक चर के साथ, उप के मुकाबले अधिक स्कॉक्ड के साथ: सुविधा 'राज्य' का उपयोग करें; उप बाज़ {राज्य $ x; वापसी ++ $ x...

flash - How to tell what .swf generated an error? -

I was just viewing a page and the error box popup told me that one. There is a runtime error in the SWF problem, there are many .swfs on the page, and I do not know who has caused an error. Is there any way? Install the debug version of the Flash Player You can download it from Adobe's website: To save the log described by Adobe's documentation, configure it: Run the page with it, and view the log you can open the text file directly, or if you use Firefox If you are in a small window next to your page A plugin to reflect.

tomcat6 - tomcat: how can i place parameters in web.xml and fetch them in my application? -

I want to store DB connection information in the application web.xml file and want to bring it into the application. Thank you! 2) In your web.xml Link to your resource pool P> eg (Tomcat 5.5 and above). I have an example_des (data source) in the connection pool, and here I your web.xml & lt; resource ref & gt; & Lt; description & gt; database connection, for example & lt; / description & gt; & LT; race-referee-name & gt; JDBC / Example_DS & lt; / race-referee-name & gt; & lt; Press Type & gt; javax.sql.DataSource & lt; / Race Type & to gt; & LT; Race Writing & gt; container & lt; / race Writing & gt; & LT; Race sharing-scope and shared gt; the qualified & lt; / race sharing the room & gt; & Lt; / resource ref & gt; the context.xml (meta created found in -aianaf folder) coincides with my resources. still using Tomk. & lt; resource name = "jdbc / example_d...

Impementing Clickatell CallBack in ASP.NET using C#.NET -

I am creating a web application using C # .NET in ASP.NET which by using clickatell Sends an SMS. I'm trying to get a position back from the click thall click Callback page Callback CallatellCallBack.aspx is the code of the page here: Public Partial Category ClickatellCallBack: System.Web.UI. Page (Safe sender, EventArgs e) Recover the value from QueryString. string apiID = Request.QueryString ["api_id"]; string = request from "Story" ["From"]; = String = to request. [String] "string" timestamp = request .QueryString ["timestamp"]; string api gid = request.QueryString ["apiMsgId"]; string cliMsgId = Request.QueryString ["cliMsgId"]; String position = Request JQueryString ["status"]; String Charge = Request. Question yString ["charge"]; SMS status value in // database. Int smsStatusID = SMSManager.InsertSMSStatus (from APIID, timestamp, APIIMID, ClemGID, status, charging)...