Posts

Showing posts from June, 2012

CHECK CONSTRAINT of string to contain only digits. (Oracle SQL) -

I have a column, called PROD_NUM, which contains 'number' which is messy with zero, for example 001004569 They are all nine characters. I do not use a numerical type because the normal operation on the number does not consider these "numbers" (for example, PROD_NUM * 2 is not any meaning). And since they are all the same length, The column is defined as a CHAR (9) table product (PROD_NUM CHAR (9) NOT NULL-ETC.) I would like to stop PROD_NUM so that only nine digits can be done. Apart from '0' in addition to '0', there is no other letter than '0'. REGEXP_LIKE (PROD_NUM, '^ [[: number:]] {9} $')

wpf - Why Would a Dependency-Property Implementation Crash My Application When I Provide a Default Value? -

जब मैं एक डिफ़ॉल्ट मान प्रदान करता हूं, तो निर्भरता-प्रॉपर्टी कार्यान्वयन मेरे आवेदन को दुर्घटना क्यों देगा? कोड का यह खंड मेरे UserControl ऑब्जेक्ट के लिए क्लास घोषणापत्र में है। सब कुछ ठीक काम करता है - यह पूरी तरह से संकलित और चलता है सार्वजनिक स्थिर प्रणाली। विन्डोज़। निर्भरता प्रॉपर्टी डेपप्रॉप = सिस्टम। विन्डोज। निर्भरता प्रतिनिधि। पंजीकरण ("रीकट", टाइपफ (सिस्टम। विंडोज। आकार। संदर्भ), टाइपफ (फ़ू कंट्रोल)); सार्वजनिक प्रणाली। विन्डोज़। आकृतियाँ। रिंकेंगल रिट {मिले (वापसी (सिस्टम। विन्डो। आकार। संदर्भ) (गेट वैल्यू (डेपप्रॉप))); } सेट {सेट वैल्यू (डेपप्रॉप, मान); }} हालांकि, जब मैं डिफ़ॉल्ट मान को निर्भरता प्रॉपर्टी में जोड़ता हूं: कोड संकलित करता है, लेकिन जब यह कोशिश करता है एक घातक अपवाद के साथ क्रैश UserControl इन्स्तांत करें संदर्भ के लिए, मेरा कोड अब ऐसा दिखता है - प्रॉपर्टीमेटाडाटा लाइन के साथ जोड़ा गया है: सार्वजनिक स्थिर सिस्टम। विन्डोज़। निर्भरता प्रॉपर्टी DepProp = System.Windows.DependencyProperty.Register ( "रीट", टाइपफ (सिस्टम.W...

sql server - SQL Replication Setup - Almost There -

I am trying to set up a replication between two SQL servers and I'm almost there but stuck on permission error (It appears). Servers are connected through VPN Publisher / Distributor = W2003 + SQL2005 (Domain Controller) Subscriber = W2008 + SQL2008 (Standon Server Not On A Domain) I have set it up instead of pulling it up rather than pulling it because in the same way I got it before the login problem. The current situation is that both agents are running and the snapshot is complete, but it does not start to copy. There is an error below which indicates that the subscriber does not have permission for the snapshot folder, but I have set everyone up (full control) just to try and make it work. I am thinking there is something with faith or something I can bring a snapshot share from the subscriber to the publisher and use the files without any permission issues. But SQL is having some kind of problem. Any ideas on the next step to trouble shooting? Thank you. Thi...

IronPython vs. Python .NET -

I want to use some .NET assemblies written in c # from Python code. A small research has shown that I have two options: Built-in with .NET interface capability / support with package Python What are trade-offs between the two solutions? If you want to primarily assign your code to the basis on the .NET framework, Recommend IronPathon vs. Python.net IronPython is very native .NET - so it only works great when integrates with other .NET langauges. If you want to integrate only one or two components from .NET into a standard python application, then Python.NET is good. There are significant differences when using IronPython - but most of them are quite subtle. The Python.NET standard uses the CPython runtime, so there is a relevant discussion about the difference between the two implementations. The biggest difference in cost of exceptions is that some standard python libraries do not even perform in IronPath because of their implementation.

google app engine - Python OS X 10.5 development environment -

I would like to try the Google App Engine Python environment, which is called Docs 2.5.2. As I've used OS X Leopard, I have Python 2.5.1 installed, but the latest 2.5.x version is installed (not 2.6 or 3.0). It seems that the latest version is So, I went here: and stopped because I'm worried that installing the latest version is standard install May be messed up with. I really want to install a version. So my questions are how do I install the latest 2.5.x safely? Is it possible to completely replace the manufactured version, and if this happens, will any Mac device damage it? Cheers, Shane You can install Python on your Mac, and It will not mess with default installation. However, I strongly recommend that you use Python to install, because this will make it easier to install Python libraries and packages under the road. Also, if you try to install a program or library with MacPorter, which depends on the dragon, then the MacPort will download a copy of the ...

c# - The type of namespace name 'Control' could not be found (are you missing a using directive or assembly reference?) -

Using genetics, trying to set up an extension method in Net 3.0 and I get an error message, the above description on line: (control control in parents.) Do I have a director or assembly reference Am using Thanks What I'm trying to do is set this up (down) as an extender function: Use the system Tax; Using System.Collections.Generic; Using System.Web; Using System.Web.UI; Namespace System.Rentime Compiler Services {Public Static Class Control Helper {Public Static T Search Control & Lt; T & gt; (This control manger, string control name) where T: has been found {T found = parent.Fund Controll (control name) as T; If (found! = Null) returns; Foreign Hair (Control Child. Control in Parents Control) {found = hair control. FIDC control (control name) as T; Break if (found! = Null); } Returns; }}} I'm missing a reference to System.core.dll ... it drives me crazy! Choose this for the technology you are using: Windows Forms: This is located in Syst...

How can I construct a clean, Python like grammar in ANTLR? -

G'day! How can I create a simple ANTLR grammar to deal with a multi-line quote without semicolon or backslabs? I'm trying to write a simple DSLs for expressions: # sh style comments ThisValue = 1 ThatValue = ThisValue * 2 ThisOtherValue = (1 + 2 + ThisValue * ThatValue) YetAnotherValue = MAX (ThisOtherValue, ThatValue) Overall, I want to provide the script with some initial designated values ​​in your application and exit end result . I would like to support multiple line manifestations like being hung on syntax, even though I have the following: # Note: the word is no backslash needed to continue because we are in brackets # Note: a semicolon at the end of the word is not necessary, either ThisValueWithAReallyLongName = (ThisOtherValueWithASimilarlyLongName + AnotherValueWithAGratuitouslyLongName) beginning with such an ANTLR grammar: exprlis T: (assignment_statement | empty_line) * EOF! ; Assignment_Statement: Assignment NL! ; Down_line: nl; Assignment:...

c# - Check if output is redirected -

I have a console application that is written in C # that processes the data, prints the results . As long as the results are not available, less animation (/ - \ |) and progress percentage (xx%) which is constantly being updated. Obviously, if the user redirects the output of my application, it will be printed in a text file where the output is redirected. If possible, I would like to avoid it. So is there a way to find out that the output of my application is being redirected? I'm only showing progress indicators while walking with a specified parameter, but I hope someone has a good answer for me. You can not redirect completely out of the output execution program and completely out of it . You can add a command line option to disable your beautiful output so that it can also be redirected. Edit: You can (now) ... .NET 4.5 forward (see).

javascript - Page Stats always show the name of an IFRAME, and not the real doc name -

I have a website with multiple pages. All pages have an embedded IFRAME (always the same iframe src). My problem is that iframe contains some statistical tracking code (such as statcounter), and statcounter shows only the name if the page is going to iframe. Is it possible that it is possible to include some lines of Javascript, to change this file name to make it the same as the main webpage name, so statistics shown on stat-counter, actual HTML Do not show name, and iframe name ?? Any kind of spirit can show me the lines of code I do to do this? Thanks for any help, regards, common Your javascript reference will be parent.document. [Whoever you are entering] . Changing those rows in your tracking code should give you the place you are looking at. If your iframe source is not always embedded to do conditional work to do this, you can write it as: if (original) {var Doc = parent.document;} and {var doc = document;} doctor [whatever attribute]

css - margin-top not working with :before -

I have inserted the content using a prefix element for a class before. I was trying to transfer this content using margin-top but Firefox is simply ignoring the property. The code is as follows: .bef {line-height: 2em; White-space: Abrop; Font-size: 24px; Display area; } .bef: first {display: block; Margin top: 2em; Padding: 0; Color: # 666666; Content: "Hello",} Does anyone know if Firefox can ignore the margin-top asset? Edit: Although the margin-top is being completely ignored, margin-down: - X em is working and I am able to move it It seems that Darco Z is right. Hypothetically, the first two test cases should be presented equally (separated by & lt; hr & gt; ), in Geo (Via FF3.5 / Mac), but webkit (via Safari 4 / Mac) provides the : first and : later sections as inline form The third test case indicates that webkit is currently required to block the triggering element blocking. It is not clear what to look for right behavior, it may b...

osx - How do I get an RTSP stream to play in Mac OS X's Quartz Composer? -

In the quartz composer (QC) a movie patch is inserting the RTSP: // stream URL and causing it to be a billboard patch Provides Hanging QC Many commentators on the net have noted that Quicktime uses a different rendering path for the currents than local files, which is the cause of this bug, but I have no suggestion given solution Can meet. We want to be able to be streaming from an IP video camera which present RTSP at QC on MPEG-4. The same stream URL works fine in standalone Quicktime and VLC. I have seen this work before using a reference stream rather than providing itself to the url The film composer with the URL can still be hanging until the momentum play is not available for the dimensions of the MOV, unless the network playback starts, and there can be many problems within the musicians.

ruby on rails - testing with before_filter -

I have developed the first_filter - and should get in the tests like test "index "Receive: index assert_response: Success assigns assert_not_nil (: article) end me test_should_get_index (ArticleControllerTest): NoMethodError: your Close when you did not expect it, then the null object! You were probably hoping to be an example of Aare Nil.split app / controller / application_controller.rb: 20: in set_locale '/test/functional/articles_controller_test.rbitter : In the error when evaluating the code Test_should_get_index ' when I have added setup @ request.headers [' HTTP_ACCEPT_LANGUAGE ' Nothing changed: (can you tell me that PLG - what's wrong? Rail 2.3.2, Ruby 1.8 I The problem is solved with the request @ request.env ['HOST'] = "somesite.com" @. [HTTP_ACCEPT_LANGUAGE '] = "n"

sql server - A good tool to populate database with dummy data? -

What is a good freeware that generates fake data for SQL Server? It would be really great if the tool will generate data according to the foreign key (other obstacles), it is a repetitive task that I am sure should be a good tool for this, but in some way I am unable to find it. I have always written my own. It takes a lot of time to write it. This way I know that With whom I am working and if this is not correct, then I can zoom in as per need and can run again.

Cannot create dijits via dojo.NodeList.instantiate -

I'm trying to use the dijits with the dojo.NodeList.instantiate method That changes the existing HTML elements and to them in DIG when the DOM loads. instantiate The API reference can be found for the method. The following example, which calls the instantiate method in the dojo.addOnLoad method, with two ContentPane examples BorderContainer should be created, but the DIVs remain intact when they start, and the documents are not created: & lt ;! DOCTYPE html PUBLIC "- // W3C // DTD XHTML 1.0 Transcription // N http: // www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; Digit Test & lt; / Title & gt; & Lt; Style type = "text / css" & gt; @Import "Doorout / Digit / Themes / Tundra / Tundra CSS"; @import "dojoroot / dojo / resources / dojo.css"; & Lt; / Style & gt; & ...

.net - How to make form system modal using C#? -

I need to show the form as a top-level system wide, e.g. On screen / all / other window I know this is usually a bad UI practice, but I have a very specific scenario in my mind. We want to use a normal Windows PC for POS cash registrar. There is an option on the screen to open the cash drawer, for someone to press something on the screen and not looking for the clerk, it would be very bad for anyone to use the money. Therefore, we have prepared PCs with RFID Reader and each clerk has its own RFID card which will be used for authentication. Although I need a mechanism to lock the computer (or waste it) when the clerk is removed LP, Degene Any ideas welcome. Itemprop = "text"> After a day of good, lawsuit and error, I came to the solution. This includes the following steps: 1. When the "lock" button is pressed, the new (empty) / desktop / is created program is run in this desktop with full screen form and login process. There is nothing else to ...

java - How do I configure apache httpcore 4 to use a proxy? -

I'm trying to use the latest (4.0.1) Apache HTTP Core Components library. However, my web browser goes through a proxy - assuming this is myproxy.com: 9191. Can anyone provide a sample code to use it as a proxy to obtain any simple HTTP? I tried to add the following at the beginning of my code, but there is no happiness: ProxySelector.setDefault (new proxy selector () {public list & lt; Proxy Select (URI uri) {Proxy Proxy = New Proxy (Proxy. HTTP, New InetSocketAddress ("myproxy.com", 9191); Return Arrays.asList (New Proxy [] {Proxy}}) }} Public Zero Connectfail (URI Yuri, Socket Address, IOexpress ioe) {io.printStackTrace ();}}); In the absence of an answer, this is what I have found. First, for this type of thing, you do not want to use only the http core library, you also want to use it, make sure you download both from the download page. Second, use this code: DefaultHttpClient httpclient = new DefaultHttpClient (); HttpHost Proxy = New HTTPHOS (...

Log4net appender threshold not working -

मैंने एक logfileAppender और एक consoleAppender सेट किया है मेरे आवेदन के लिए log4net config मैं logfile एपेन्डर को केवल ERROR संदेश और इसके बाद के संस्करण और लिखने के लिए डिबग और ऊपर लिखने के लिए कंसोल एपेन्डर लिखना चाहूंगा। मेरी कॉन्फ़िग है: & lt; log4net debug = "false" & gt; & Lt; एपेन्डर नेम = "लॉगफ़ाइलअपैडर" प्रकार = "लॉग 4 नेट। अपैडर.फ़ाइलअपैडर, लॉग 4नेट" & gt; & Lt; param name = "file" value = "log.txt" / & gt; & Lt; param नाम = "अपेंडटॉफ़ाइल" मान = "सच" / & gt; & Lt; लेआउट प्रकार = "log4net.Layout.PatternLayout, log4net" & gt; & Lt; param name = "ConversionPattern" मान = "% d% एम -% एम% n" / & gt; & Lt; / लेआउट & gt; & Lt; दहलीज मान = "त्रुटि" / & gt; & Lt; / appender & gt; & Lt; एपेन्डर नेम = "कंसोलअपैडर" प्रकार = "log4net.Appender.ConsoleAppender" & gt; ...

windows - What's the best way to determine which version of Oracle client I'm running? -

The topic says: What is the best way to determine the exact version of the Iacle client? Our clients are running all windows. I have not found any suggestions that run the tnsing utility, without the parameters, which displays the version information is there any better way? Does customer information contain this information in any type of text file? Similarly, sqlPlus.exe will print its version, Command line will show TNSPing version. You can also go to the Readme file in the 'Relation' directory of your client installation. Version 10.2 contains a file named README_jdbc.txt, for example, which will tell you which version is installed.

Agile methodology causing fragmented design -

Which type of sprint / error prevents the spry method from which there will be a split design. Take the case of Manhattan Streets vs Design of Boston Roads for the East. Blueprints were completely designed for Manhattan Roads, which resulted in easy standardization and driving. The streets of Boston were designed in the eating point of one piece and it is getting around a nightmare. Dazzle development is not a mandate to throw over-the-arcing design. This makes great sense in planning a 'big picture' - for example, what are the responsibilities of your key components and how they will talk. In my own team, I agree with a fair agreement a comprehensive public API up front, but where possible to adjourn the detailed implementation decisions, it allows different developers to independently modify the design because the implementation will develop. While there is also the advantage of getting different methods at the design level, when the changes are very cheap. Modularit...

compact framework - Windows Mobile Wi-Fi works for IE but not my app (SocketException) -

I get my windows mobile 6.1. I'm trying to add Wi-Fi connectivity to the Net CE 3.5 application, but I can not understand that I get the following socket exception: An attempted connection failed because the connected party did something Failed to respond to the connected host because the timer did not respond properly, or the established connection was unsuccessful System.Net.Sockets.Socket.ConnectNoCheck at (SystemConnect.NETCock.ConnectNameCheck) System .Net.Sockets.Socket.Connect (EndPoint remoteEP ) On System.Net.Connection.doConnect (IPEndPoint EP) on System.Net.Connection.connect (the system has been ignored. Threading ThreadWorldWorkItem.Threading on DOCKWORK (Object O) SYSTEM Timer.Iron ( ) Error code 10060 (connection-based) connectivity. Both IE and my application work and work fine on GPRS connection. Any ideas ? Try to connect to the same server / resource in your code. Retroactive answers are fun.

What is the best data structure for tree-like data of fixed depth in C#? -

What is the optimal (simple, fast, fast) implementation of data structure like tree with three levels? I would like to use a dictionary or a shorthand, because all the values ​​(nodes) have unique keys. The first level is thought to be about 300 objects, about one tenth of each (probably more than 100, usually at least 10) items at the second level and approximately ten at the third level. Level two and three are closely connected, so they should probably be represented by an object. All relations 1: n ++ - L1 | ++ - L2 || + - L3 || + --... 1 to 10 L3 items for each L2 || + - L3. + - L2. + --... From 0 to 100, for every L1 usually What is the level 2 objects with a 1 level object (a real tree ) Is better to make a dictionary or is it better to have 2 level objects in a single directory? The objects are not very big, they only have some strings and numbers or object representation is a wrong option and should I go for something completely? Why not just create a Tree...

How to enumerate available database Services(SQLSewrver or Oracle or MySQL or PostgreSQL, etc) in a network in C#? -

After computing the available database service (SQL Server or Oracle or MySQL or PostgreSQL, etc.) in a network using "text" itemprop = "text"> C # How To? I also need to find my port number and service-instance names. For example: class server {#region DLL Inports [DllImport ("Odbc32.dll")] Private static extension short sql aloch handley (lower html, intupet input handles , Out InterPTR Output Handle); [DllImport ("odbc32.dll")] Private static extern short SQLSetEnvAttr (IntPtr henv, int attribute, IntPtr valuePtr, int strLength); [DllImport ("odbc32.dll")] Private Static Extern Small SQLFreeHandle (Small HType, IntPtr Handle); [DllImport ("odbc32.dll", charset = CharSet.Ansi)] Personal Stable Execution Less SQLBrowseConnect (IntPtr hconn, StringBuilder inString, Short inStringLength, StringBuilder outString, Short outStringLength, Out of Line OutLengthNeeded); #endregion #region constants personal const less SQ...

Monitor a HTTPS connection with URL class (Java) -

I would like to monitor a simple URL but when an https server approaches me handshake exception Is it possible to verify the status of the https url for the browser used to use it? (Without a local certificate) I do not know how the browsers get content of URL from https, but I want to make it the same way. Without any need to store specific certificates for each server, anyone can be seen without the https. try {url = new URL (row.getUrl ()); String protocol = u.getProtocol (); If (protocol. Angle ("https")) {HttpsURLConnection hc = (HttpsURLConnection) u.openConnection (); System.out.println ("Response Code:" + hc.getResponseCode ()); Hc.disconnect (); } If (protocol.equals ("http") {u.openConnection (); U.getContent (); } System.out.println ("url is up."); } Hold (exception e) {(...)} If you really Don does not care about the legitimacy of the server's certificate, you want to set it which does not check anything, after th...

SQL Server: Normal Index vs. Fulltext Index -

एक पूर्ण टेक्स्ट इंडेक्स और एक varchar स्तंभ पर एक नियमित सूचकांक के बीच अंतर (और फायदे / नुकसान) क्या है? मैं किस सूचकांक का उपयोग करूँगा? मेरे पास बहुत सारे varchar कॉलम (पते - शहर का नाम, सड़क का नाम आदि) है, जिसे मुझे सबसे अधिक प्रदर्शन योग्य तरीके से खोजने की आवश्यकता है और मैं यह कोशिश कर रहा हूं यह निर्भर करता है जिस प्रकार की खोज को आप करना चाहते हैं उदाहरण के लिए, आप इस क्वेरी के साथ एक सामान्य अनुक्रमणिका का उपयोग नहीं कर सकते हैं: SELECT * FROM [MyTable] जहां [MyColumn] की तरह '%' + @ SearchText + '%' यह नहीं है यह सुगम है, लेकिन यह बहुत अच्छा नहीं होगा: SELECT * FROM [MyTable] जहां [MyColumn] की तरह @ SearchText + '%' आप एक पूर्ण-पाठ अनुक्रमणिका पूरी तरह से अलग तरीके से उपयोग करते हैं: SELECT * FROM [MyTable] जहां में ([MyColumn], @SearchText)

properties - How to specify c:\users\public (%PUBLIC%) in WiX? -

Is there any property that solves the public folder? I do not want to have a hard code in the "c: \ users \ public" directory structure, obviously, but I can not get a predefined one that resolves this is an acceptable way of specifying the files to install here and / Or deleted? If there is a CSIDL for the directory, then it is probably. This is an extension of the properties supported by the Windows Installer. Vista is not just support for RefKnownFolder (), yet.

api - Obtaining a user's log in state for a Facebook Iframe App -

After creating a Facebook iframe app, the parameter passes to apply the Facebook pass parameter as a field within the query string Which is called FBI_sig, which is a unique signature that can only be made by Facebook. The problem I am facing is that I can easily attach the query string to my application URL and I can use this application from anywhere on Facebook. Methods that Facebook APIs examine GET parameter / Kuki only for some values. Is there an API method that can actually return a Facebook user's logged-in status (which does not retrieve the parameter or cookie). In my opinion this is a big security flaw because no one can track the requests of browsers and get a query string to access another user's account. Also the fb_sig parameter provided by Faby does not expire, so it can always be used to pass verification. I thought about checking the HTTP_REFERER flag to ensure that the request is only coming from Facebook, but many people can SPOOF the referee and ...

javascript - Use jQuery/JS to determine the DAY OF WEEK -

Is there any way to use either JavaScript or jQuery to determine what is the day of the week? For example, if a user raises the box, then he is Sunday, I can alert him. Thanks new date (). GetDay (); // 0 = Sun, 1 = Som, ..., 6 = Saturn Also see: On MDN. Word of caution: This gives the day of the week on the browser because the earth is not flat, for some users, the weekdays may vary from day to day for your server Are there. Whether it can be relevant to your project ... If you are doing a lot of work, you can see the library of the JavaScript date or

locking - php blocking when calling the same file concurrently -

I have some strange problems. I've written a file manager in PHP Download files - which works fine, the entire script is created as a large file. Now, while downloading a large file, I am not able to use the script at the same time, say, browsing folder content. It's nothing but keeping loading as soon as the download is complete, everything works again. Is there something that prevents PHP from parsing the same file concurrently? Because other scripts have to work like magic, no matter if I am downloading or not. The help or documentation link is highly appreciated :) Do you use sessions? If so, this problem is probably the default session handler uses the files that will be locked when the session-enabled code is executed. Practically this means that each user executes PHP files sequentially. To solve this, you should use a custom session handler which uses DB. Read. Edit: I want to say that writing a custom session handler with any locking can be difficu...

How to set the touch down event of UITextField programatically in iPhone -

I have the UITextField that I am programmatically adding I want to set that UITFFFILD's touch down event, Then, when the user clicks on the textfield for the second time, it should resign from the first reply. This means that the key board should disappear. UTFESTField comes from UCTROLL, so what should you do if you want to implement touch: eggplant : And to see if Uitfestfield is already the first responder. If so, then just send a resignance first responder message to the UITFFFiled object.

Can I put a single quote in a JQuery attribute equals selector ([attribute=value])? -

मेरा HTML इस तरह दिखता है: & lt; a href = "#" id = "कोटटाईस्ट" & gt; यहां क्लिक करें & lt; / a & gt; & LT; ul & gt; & Lt; li शीर्षक = "यह" शैली = "स्थिति: सापेक्ष" & gt; एक & lt; / li & gt; & Lt; li शीर्षक = "यह" शैली = "स्थिति: सापेक्ष" & gt; दो & lt; / li & gt; & Lt; li शीर्षक = "था" शैली = "स्थिति: सापेक्ष" & gt; तीन & lt; / li & gt; & Lt; li शीर्षक = "था" शैली = "स्थिति: सापेक्ष" & gt; चार & lt; / li & gt; & Lt; / ul & gt; Jquery: $ ('एक # कोटटेस्ट')। क्लिक करें (फ़ंक्शन () {$ ('li [title = this]')। चेतन ({'शीर्ष': '+ = 40px'}, 'धीमा' ('' '' = '40px' ',' धीमी '); $ ("li [title = tha't] );}); मैं उस में एक ही बोली के साथ काम करने के लिए चयनकर्ता नहीं मिल सकता। मैंने बोली, "\", बैकस...

winforms - How to get the size of the drawing area of a Windows Form? -

How does the drawing area be resized in a single Windows form? The size, width, and altitude attributes come back to the whole form, while I am looking for the area marked in the diagram linked by white arrows: Thanks! . Look at the ClientRectangle property. You are searching for that dimension.

Rhino Commons UnitOfWork and ASP.NET MVC Controller seem to be caching parameters -

I am using Rhino Commons Unitoffers in my controlling methods. The first request retrieves data and displays it correctly. My problem is that when I change the parameters in the URL, they do not go to the controller values ​​are used from the previous request. My Controller Method is given below: Public Action List (Int Year, Int. Month, Int Day) {ILIST & Lt; Meeting & gt; Meetings; (Using Unitoffers. Start ()) {meetings = _meetingRepository.GetByDate (year, month, day); } View return ("list", meetings); } Gives all the meetings for the initial request 2009 for global .asax.cs ~ / meetings / 2009 received from the UnitofWorker Application. Returns all meetings for the next request ~ / meetings / 2007 year 2009. This visual studio is coming during debugging, I have not had the chance to go to IIS to see that there is only one problem. Am I doing something wrong in using the unitofwork, or can it be a problem somewhere else? My guess is that the w...

css - Changing <a> link underline color -

I wonder if there is any trick to solving this problem. and want to change the underline colors. There are several lines in this link, in order to be light compared to the current color, the bottom line needs to be changed edit @Paulo Burgantino: This is IE8 Works with, Is it possible to hack with IE 6,7?

How to Make Emacs Display Chinese Characters -

I often test to use simple Chinese phrases such as "你好" that my code will be used for non-ascii characters Whenever I put Chinese characters directly into Imax, they come in the form of a question mark. Imax can sometimes display the characters properly if I open a preeded text file, but not always. For example, if I make a simple text file with "你好" in Notepad, then 好 looks fine but you just show a box. Emacs can handle Chinese characters? If so, how can I set it? I'm running MX 22.3.1 on Windows with the newest courier new font, but I'm curious about this work on Linux. I have all the necessary eastern language packages installed. I can edit in Chinese with no problem in Notepad. "post-text" itemprop = "text"> Fix Chinese characters on Windows with no disturbances or hacking Do not work from. I can write Chinese directly in a buffer or open a file with no problem. Amacus's Unicode support was not fully implemented...

windows mobile - WM Application works as expected in WM Professional 6,6.1 but not properly in Wm 6.5 Professional devices -

I have developed a WM application using WM SDK 6 and it works on WM 6, 6.1 business devices / emulators Does. But when I run the same application on WM 6.5 professional emulators, there are some GUI problems. (A) Web browser controls does not display progress bar below and scroll bar (B) cursor. WaitCursor does not work (C) The list view does not display the gradient effect. While 6.0 and 6.1, all the work is right above, as I know there is no SDK change in 6.5, yet why is not it working? Am I missing something that should be especially special to WM 6.5? Please help me find some solutions. The only solution I can give you is that you need a trial and the basis of the equipment used But do some conditional actions. I have found that differnet may be behaivour only in devices with a different build number. There are problems for me that have made a version of OS for each OEM OH. My previous problem was that Microsoft. WindowsMobile.Status gave untrusted information and the on...

php - Is it possible to loop through all the items of two arrays using foreach? -

मेरे पास दो सरणियाँ हैं: $ फ़ॉर्म और $ formsShared । & lt;? Php foreach ($ r रूप में $ r):? & Gt; $ ( "# Shareform & LT;? = $ आर [ 'फॉर्म'] [ 'आईडी'];? & Gt;") को छिपाने ()।; क्लिक करें (फ़ंक्शन () {$ ("# shareform & lt;? = $ R ['फॉर्म'] ['' $ '' [& lt;? = $ R ['फ़ॉर्म'] ['आईडी'];; & gt; आईडी '];; & gt; ")। टॉगल (" शो ");}); & Lt;? Php endforeach; ? & Gt; वर्तमान में, मेरे पास $ forms सरणी में प्रत्येक फ़ॉर्म के लिए यह छिपाना और टॉगल फ़ंक्शन है I मुझे ये कार्य चाहते हैं कि $ formsShared array में भी फ़ॉर्म के लिए सक्षम हो। यदि मैं $ formsShared के लिए लूप के लिए एक और जोड़ता हूं, तो इस तरह से : & lt;? Php foreach ($ रूप $ $ के रूप में साझा किए गए):? & Gt; $ ( "# Shareform & LT;? = $ आर [ 'फॉर्म'] [ 'आईडी'];? & Gt;") को छिपाने ()।; क्लिक करें (फ़ंक्शन () {$ ("# shareform & lt;? = $ R...

java - Using Multiple ApplicationContexts in Spring - question about cleaning up resources -

If I have a main appCtx and then I have a series of separate app CTXs that are the parent of the parent , Then can I relate the child's references to clear memory? Actually I want to use CTS as an object cache of the child and I have the option to say for a special cash - "I am not using the beans in this cache anymore I want to free the classic by applying the application. Ctx.close () " I have tried to prototype it, but I am not sure if the reference is made to the child Really in In not deleted - in other words, the beans available for garbage collection after closing? I know this is a different way of using the spring, but my app is different and I have all the other possibilities (custom scope, singletonbenfilocator, etc.). Yes, close () . Beans will be eligible for garbage collection, provided they have no other references.

c# - Smart ASCII string representation -

I have an app that converts binary file into ASCII file. With profiler I came to know that I am encoding 25%. Getbytes () which are written from BinaryWriter. White (wchar []). This is completely true because I have many such structures: m_writer.Write ("some fancy long text". ToCharArray ()); Do you have any smart ideas to avoid this encoding conversion? Now I would like to think of something like this: byte byte [] SOME_FANCY_LONG_TEXT = encoding ASCII.GetBytes ("Some fancy ..."); // ... and later m_writer.Write (SOME_FANCY_LONG_TEXT); But I have several entries to do this manually. If you are creating a text file, you can use the BinaryWriter Why do Just use a TextWriter BinaryWriter is for binary streams where you want to type preferences, strings etc. in a simple way. (Are all of your text definitely going to be ASCII, by the way? You may want to consider using UTF-8 instead.)

jquery - Table row selection, but text in it doesn't want to be selected -

I have a jquery table with lots of lines and I have also done row selection, but I do not want cell If I drag, then select the value to select the row. How do I work with selecting the enabled row, and do not select the drag and click? For most browsers, you should add a category to the table (such as 'select') and the following The CSS declaration is: . Selecting {-moz-user-select: -moz-none; -webkit-user-select: none; Select user: none; } For IE, however, you must subscribe to selectstart and Daggert events and have to cancel them by javascript .

Is MPS (a meta-programming language) worth looking into? -

Another project from Jetbrains, their new issues were tracker charisma completely written. Is this concept useful / practical or is it too early? MPS is not just a DSL for Java. It is actually language - angostic You can generate your own language in another language which is supported by MPS. We support Java, XML and plain text (in the form of final resort) outside of the box in MPS 1.1. Perhaps, in future versions, we will provide other languages ​​such as JavaScript, CSS, etc. One of the key features of MPS is that is not available in other tools, the ability to write languages. You can create multiple language extensions and write them in the desired way. For example, a vendor can apply a language to their database, and a language for other financial calculations. They will work well together, and you will not have any problems like ambiguity etc.

.net - LinqtoSQL - clearing then inserting -

Although this is probably not the best practice, I am trying to clear a series of records from a database table , And then insert a series of records - some of which can be in the original series, and others who can be new I'm using linqtosql in C #. The pseudo code I have to do is down this; It fails with "a unit which is already in use, can not connect an entity with". (dbDataContext reference = new dbDataContext () {// I also tried to use table.LinkedTable. Clear (); But this shows the same error, while (table Linked.Count ()> 0) {table.LinkedTable.RemoveAt (0);} foreach (SelectedItems.Items in SelectedItem Item) {LinkedTable lt = new LinkedTable); Lt.id = table.id; Lt.SomeValue = item.SelectedValue; Table.LinedTable.Add (lt);} context.SubmitChanges ();} it looks like linqtosql edit if I add one, so I do not even believe that I have tried to remove the objects before adding the objects, causing a duplication error. Submit after deletion, then I end up ...

version control - DVCS and data loss? -

Text after "div class =" itemprop = "text"> After nearly two years of using DVCS, it seems that there is an underlying "fault" accidental data loss: I code Have lost that which is not pushing, and I also know other people who have it too. I can see some reason for this: Off-site data is not created in duplication (i.e., "go to a remote host"), store code and "hack" until you release There is something to get "the notion of prevailing remains in the same directory ... but next to that point. I'm curious to know: Have you experienced DVCS-related data loss? Or are you using DVCS without trouble? And, in relation to "remember to push often," related, what can be done to reduce the risk? I have lost more data than preventing ungraded changes in a centralized VCS, and then I have to decide that I really want to do something to them that I did with DVCS. That's it that I have been using CVs for Git for alm...

Browse and display files in a git repo without cloning -

Is there any way to browse and display files in any git repo without first cloning it? I can do it in svn using those commands: lv / path / to / repo svn cat / path / to / repo / file-in-repo I guess Fatal: Not a GIT repository You want the command That allows you to get some information about the remote repository, but you can not tell history or list directory or anything at that level: it is essentially only a lot of you Allows remote viewing objects The highest level (for example, you can currently see HEADs tag). The only real way you want to do (if I understand correctly) is to use the ssh to run the remote command and return the result, for example: ssh me @otherhost "cd repo & git log -n 10" If you can add it then you want beautiful functionality, but what I've read Since then, this is not very easy because GE titing history etc. requires a lot of information which Be local to GIT, and at that point you can fetch a Geithat.

How can I get the name of the last folder in my basedir path in Ant? -

मान लें कि मेरा आधारित = c: /projects/myapp/1.2 मैं कैसे "1.2" प्राप्त कर सकता हूं "एक संपत्ति में? चेक आउट करें। & lt; basename Property = "property.for.dirname" file = "$ {baseir}" / & gt;

.net - Do Redundant Namespaces incur any overhead -

In addition to the maintenance complexity (and I argue that there is no one less), and the fact that it is a clean solution (I agree with this). In respect of memory / space / etc. in the designated namespaces, to import in any upper part? For example, if I import my namespace, but do not open them from itemprop = "text"> to: When you add assembly reference or use the 'use' keyword , Then csc.exe will ignore all those legislations that you have not actually created

operating system - Relationship between a kernel and a user thread -

Is there a connection between the kernel and the user thread? Some operating system textbooks have said that " maps one (multiple) user threads to a single (multiple) kernel thread". What does map mean? When they say a map, they mean each kernel thread has a fixed number of user mode threads Is assigned. Kernel threads are used to provide privileged services for applications (like system calls). If you make heavy use of your system system, they are also used by the kernel to keep track of everyone running on the system. Call, more user thread per kernel thread, and your application will run slower. The reason for this is that the kernel thread will become an obstacle, because all system calls will pass through it. Although on the flip side, if you rarely use your program system call (or other kernel services), you can allocate a large number of user threads to the kernel threads without any performance penalties, except for the overgraduate. You can increas...

c# - How to keep application shortcuts current/in sync? -

checks for I have an application auto updater new update, the current folder, including app in a new folder. New version in app folder XE + Kdiel makes copy Everything is working perfectly without some compensation, but a little messy - become invalid shortcuts created during the original installation Is there any way to programmatically correct those shortcuts? "post-text" itemprop = "text"> To identify can update a shortcut (folders and locations using WshShell object), and Skriptingkfailsistmobjekt changes to do. about here is an article on MSDN WshShell object: This is an example of replacing a shortcut link in VB Script: subset replaced shortcut (folder, target, Lcshykshetr) to oFso = CreateObject ( "Skriptingfailsistmobjekt") set oFolder = oFso.GetFolder (folder) set oFiles = oFolder.F iles for each Ofail in Ofailon If Elsiis (Ofo. gate Akstenshnnam ( Opile .name)) = "LNK" set OLNK = OA Acelkkelsortkt (Ofail. Path) If I...

Suggestions for python assert function -

I have been using multiple scripts while emphasizing, I was thinking that to get someone to Better suggestion for def assert_validation (expected, actual, type = '', message = ''): if type == '==': probability of estimate == actual, 'expected:% s, actual:% s,% S '% (expected, actual, message) elif type =='! = ': Expected! = Actual, 'expected:% s, Actual:% s, & lt; = Real, expected:% s, actual:% s,% s'% (expected, actual, message)% '% (expected, actual, message) elif type ==' & lt; = 'Alif type ==' & gt; = ': Expected & gt; = Genuine, 'expected:% s, actual:% s,% s'% (expected, actual, message) def assert_str_validation (expected, real, type =' ', message =' '): if type ==' == ': ARR (expected) == str (real),' expected:% s, actual:% s,% s '% (expected, real, mess =): AIF type =='! = ': ART (Expected)! = RR (actual), 'expected:% s, actual:% s,% s'...

sql - How to find the type, length, nullable or not given a table and a field name -

I have a table that has data that maps to fields in other tables in the database. Something like this: FieldName is required CUSTNAME 0 PRODQTY 1 For fields in other tables, the MYFIELD1 and MYFIELD2 maps in the SQL script, I field So I'm planning to add 2 other varchar fields to the table like this to make it like the type, length (information that we run a sp_help on a table) Looks field name is not source source Note: For this source source field, the custom customer's name PRODQTY 1 product quantity to map this way, I can get the customer .name In a sql script as varchar . Which SQL commands can I run that give me the Customer.name field (such as datatype = varchar (200), faucet = not accurate, all about the exact Gives information = 10 etc.) and how do I use this information? For any example, really is appreciated. My plan is to store table and column names instead of datatip because datatype can be changed in the future and someone should reme...

Block/Nullify mouse movement/click in C# -

I am writing an application to fully control the mouse click / movement. For example, if I'm running an application, make a completely transparent, fullscreen, so if I click on the mouse button, in normal case, it will bring focus in the background - I need to stop it from stopping ( I.e. clicking on the button and not showing anything on the screen), because I need to process all mouse activity and use this application. I need to have 2 mouse work independently, and I'm using it as an overlay, using duplicate signals, using the 2C # to disable the real mouse Whist What you're talking about is a mouse called capture - and it's both the Windows form as well as the WPF And WinAPI can be done directly. Here it is. You can use the function call at the WinAPI level.

visual studio 2008 - is there a plugin for VS2008 that makes it use normal regexs for find/replace? -

re: Is there a plugin that searches for VS2008 non-standard rijks in a more Replaces / Standard Version? When I scored for this, I did not get one, so my hopes are not high for it. I hate hatred that hate me to make a regex in my head and then think, "Oh, I think I want VS2008 It needs a refactor " This is a very oddball reggae syntax, and as best we can say it with Visual C ++ 2.0. We wanted to add additional support for the regular expressions of the .NET 2.0-style in the Visual Studio 2005 release, but unfortunately, it did not make the last list of features due to time constraints. We were able to fix many bugs to the existing engine, however, VS To make some improvements in 2003 ... Neil Ens Lead Program Manager Microsoft Visual Studio ^^ This post by Yash Nile was of 2006. Someone else added this: But the answer disappeared. If it comes back then I will remove it I installed it, it still works ...

java - eclipse mistakenly interprets packages as "resources", or source folders -

Image
I am importing an existing source tree as eclipse java project. When I do, I get errors in classes in the following rows (like mycompany.logging.LogEntry): package mycompany.logging does not match the expected package "" The problem is that Eclipse does not know that the directory src / mycompany / logging is a package directory --- instead it thinks that this is the source folder, which corresponds to SRCR, and that part of the log indicator default Package in that folder Can anyone give advice? Thanks a lot. Do you have the source path of the src configured in the imported project? Then you should look like a package: mycompany.logging Also see

merge - Methods for merging or moving an active MySql database -

I'm upgrading a set of tables, adding and changing things. I copy all my data in new format ... so it automatically gets old because the old data is continuously added and changed. Without closing the old system, is there a way to merge two methods when the data is still going on in old? If the transaction log (logs of logs of questions) is turned on, you can dump the old database After that, after the DB dump began, repeat the statement from the transaction log on the new DB. It can be done with a very simple bash or a PowerShell script. Once the ripples have to be captured on 'DB', you can temporarily stop the application access to the old DB , Play any remaining statement again and switch your app to new db View MySQL Docs on (PITR).

python - Spoofing the origination IP address of an HTTP request -

It only needs to work on a subnet and is not for malicious use I have A load testing tool that is written in python, originally explodes HTTP request on a URL. I need to run a demonstration test against an IP-based load balancer, so requests should come from a range of IPs. Most commercial display tools offer this functionality, but I want to create it myself The device uses the urllib2 of the dragon to transport. Is it possible to send an HTTP request with IP address to cheat for the packet being requested? This is a misunderstanding of HTTP based on the HTTP protocol header. TCP protocol depends on handshake in 3 ways to start requests. There is no need to say that if you cheat your original IP address, you will never receive a synchronization step and no information will be sent to HTTP Can not send to the legal host). If you need to check the IP load balancer, then this is not the way to do it.

c++ - Programmatically compute the start time of a process on Windows -

I'm writing c / c ++ code on Windows using Visual Studio. I want to know that How to calculate the initial time effectively Can I just use gettimeofday ()? I've got the following code from Google, but I do not know what it's really doing: int gettimeofday (struct time time * TV, structure timezone * tz) {FILETIME ft ; Unsigned __int64 tmpres = 0; Fixed int ties flag; If (Nal! = TV) {GetSystemTimeAsFileTime (& amp; amp; ft); // I'm lost at this point tmpres | = Ft.dwHighDateTime; Tmpres & lt; & Lt; = 32; Tmpres | = Ft.dwLowDateTime; / * Convert file time to Unix era * / tmpres / = 10; / * Change to Microsoft * / tmpres - = DELTA_EPOCH_IN_MICROSECS; TV- & gt; TV_SC = (tall) (TMPRS / 1000000UL); Tv-> gt_usec = (long) (tmpres% 1000000UL); } If (zero! = Tees) {if (! Tzflag) {_tzset (); Tzflag ++; } Tz-> Tz_minuteswest = _timezone / 60; Tz- & gt; Tz_dsttime = _daylight; } Return 0; } If I think you are right then you want to know what ti...

How to create project dependencies in netbeans (c/c++ plugin) -

Like I work on a C ++ application, I think I'm building many classes and tasks I can be used in other projects. So I will put all this in a separate Net Beam project which can be "included" in other projects (with code termination etc.) I have tried to create a new "static library" project, Then I got my main project in Project (Preferences-> Link-> Libraries and My "Library Project"), but the facility to complete the code did not get the .h file of my Library Project when I Try to #include it does / does my project will not be built. What is the right way to do this? Creating a static library and adding it to linker-> libraries is correct but requires a smaller step : Add Directory - * C Compiler (or C ++ Compiler) -> Directory to Shared * .h files for property properties. Also take a look at the subproduct sample: File -> New Project -> Samples -> C / C ++ -> Subproject Application.

flash - General Password Security && Implementation in Actionscript 3 -

For this summer, my project is to create a multiplayer online Flash game. I can use some advice because I have never implemented a secure login system before, only doing this in action script. My setup is currently one. SWF is sending / receiving game data from / to a Java server that communicates with the account information about a MySQL database. 1) How should I proceed to normal? I was thinking that maybe I have Encrypt SWF password, send it, (does my server encrypt it again?), Then keep it in database. 2) I am sure that I can find many guides for encryption in Java Any action script library, or even a general encryption algorithm, can recommend (therefore Can I find a similar one like myself) which would be acceptable for this task? In addition, my game is communicating through an XMLSocket, I do not think it should be the cause of any security issues, but please tell me if I'm wrong. Generally a way to send passwords is that they are not really sent at all b...

c# - What's the difference between "bool" and "bool?"? -

I use the "bool" type for the variable because I was used in C ++, and I used the function I try to keep values ​​or qualities I hope to be bullion in my variable, though I am often facing such cases where the result is "bool?" And not "boole" and the underlying casting fails. What is the difference between the two and when is each used? Also, should I use "boole"? As for my variables? Is this the best practice? After a type of ? is the symbol bool? For a shortcut Nullable & lt; Bool & gt; Allows wrapping types, and is able to assign them null bool? can have three different values: true , false and null . In addition to this, there are no short-circuiting operators (& amp;) defined for bool only logical and, inclusive or Operators are defined and they behave like this: xyx & amp; Y X | Y true true true true true true true true true false true truth tap empty real false false false false false ...

How might I write a "defn" macro in Clojure? -

I was practicing macros writing and I can not find defn to work . My syntax is: (my-define name parameter body) Ignoring & amp; Parameters and recursive routine, how do I bind a body (fn [parameter])? (my-define body to (def (fn & lt) ; Args & gt; & lt; body & gt;)) This is actually quite simple: (Defmacro my-define [name args Body] `(def ~ name (fn ~ args ~ body)))

django - how to add data into ManyToManyField? -

I can not find it anywhere, so your help will be good for me :) Here's the field: categories = models.ManyToManyField (fragmentCategory) fragment category: category category (models.Model): CATEGORY_CHOICES = ('Val1', 'value1'), ('val2', 'value2'), ('val3', 'value3'), name = model.ccarfield (max_length = 20, options = CATEGORY_CHOICES) Here's a type of sending: & Lt; Input type = "checkbox" name = "val2" /> & Lt; Input type = "checkbox" name = "val3" /> I tried to do something like this: categories = fragment category.objects.get (id = 1), or: categories = [1,2] A complete page of the Django documentary is well-indexed from the content page. According to that page, you have to: my_obj .categories.add (fragmentCategory.objects.get (id = 1)) or my_obj.categories.create (name = 'val1')

constructor - Java: What is the difference between these methods of construction -

What is the difference between the two methods of supervising the ArrayList, or is there any other kind of comparison for that matter Is fast in Or I'm missing out on some other benefits here class publisher executes (Personal Array List Supervisor = New Arrielist); } Class Publisher Observer (Private Arrested Supervisor; Public Publisher () {Supervisor = New Array List); }} They are identical, in fact, if you compile two you will see That they generate the same byte code: publisher (); Code: 0: Aloud_0 1: Innovative # 1; // method java / lang / object "& Lt; init & gt;" :() V4: Aldaudy 5: new # 2; // Class Java / Usage / Arrayist 8: dup 9: Inventions # 3; // Method Java / Usage / Array List. "& Lt; init & gt;" :() V12: Puddfeld # 4; // field supervisors: Ljava / util / ArrayList; 15: Return} Given that they are the same code, clearly there can be no speed difference :) Note that C # They are not quite equal in - initializer ...

objective c - How do I tell a (managed) object to notify its KVOs that one of its properties needs to be recached? -

When we have generated on the basis of an object property other properties that we generally apply + KeyPathsForValuesAffecting {PropertyName} class method What I'm trying to do is basically the same thing for a property on my NSManagedObject, but traversing a relationship is there. My model is simple; I have two entities, app version (I made a Aepakast-generating app) when I do app are changed properties, because I carry out the above method, is -appcast changed string, and fair to all bindings Is updated from However, the versions of a particular app (Kisi- many relationships) changes, -appcast property is not properly generated I could Haj Fix / Warcoround? This is a bit of late reply, but I think it's a common situation, and definite The answer is obviously not clear. I generally see to change the managed object contact and then check that any objects have changed which I want to see. So, in your NSManagedObject Subclass: // We can then register for ...

ios - How is layoutIfNeeded used? -

How and when is done layout is encrypted ? I know that when we change the layout of a scene, we can call the setNeedsLayout to update the layout but are not sure when layout is encrypted must be used. Note: I have the layoutIfNeeded used in the actual code but forgot how it was used in the context. Assume that you have overridden layoutSubviews , and UIKit It seems that your scene is necessary. Layout for any reason (like you called setNeedsLayout handling some user actions). After this, your custom layoutSubviews method will be called immediately when it is called in the normal UIKit run loop event sequence (after event handling, but before drawRect: ). Why may you need to call layoutIfNeeded in running a run: You can add a custom view Can change the size of the table view setNeedsLayout with custom layout is set to be called layout previews later A controller object tells the table to scroll the view from a particular cell, when user events. ...

Tool which shows me which files are written in Linux? -

I have found in IOStat that some part of my application is writing extensively, but I do not know that What is the process and what is writing to file is a device in Vista, which shows active files in the last 30 seconds. Is something similar to Linux? What you are looking for is a command line tool but it is also one.

java - How do Singletons in Google App Engine (or more generally in a distributed server environment) work? -

I find out how a singleton works in a Google app engine (or a distributed server environment). Your application may have to run simultaneously in multiple processes (on multiple machines), and the request can get a way out from the place, which is actually under the hood when an app does something like this: 'CacheManager .getInstance () '? I am using only the GAE Cash Manager as an example, but I have to say that there is a single global application installation somewhere, so where is it? Is an RPC applicable? In fact, how is global application status (like sessions) generally controlled? Regards, sine App Engine is single-time per-time time in Java, not That per-webapp Their purpose is to provide the only point of access to the built-in service (which is both in the case of the cache and user API, is delivered through an RPC), but it is absolutely a design pattern for the library - a copy -Apple is not singleton Use these methods anywhere.

javascript - How might I create a menu with images like that used on photobucket? -

Please select a moment to see the navigation menu. Do you know how I can get it with the images next to the dropdown item in the menu. Do you know any tutorials for this? Take a few minutes and check out HTML and CSS, in comparison to more class menu menus, Imagine, all the configurations (and most implemented) - so the images are as simple as elsewhere on your page.

c# - Sending gzipped data in WebRequest? -

I have a large amount of data (~ 100k) that send my C # app with mod_gzip to my Apache server Used to be. I'm trying to gossip the data first using the system.IO.Compression.GZipStream. PHP gets raw jpeg data, so I hope Apache does not uncompress it. Am I missing something? System.Net.WebRequest req = WebRequest.Create (this.Url); Req.Method = this.Method; // "post" req.Timeout = this.Timeout; Req.ContentType = "application / x-www-form-urlencoded"; Req.Headers.Add ("content-encoding: gzip"); System.IO.Stream reqStream = req.GetRequestStream (); Gzipstream jez = new gzipstream (rextreme, compression mod. Compress); System.IO.StreamWriter SW = New System. IO.StreamWriter (gz, encoding.ASCII); Sw.Write (large_amount_of_data); Sw.Close (); Gz.Close (); ReqStream.Close () System.Net.WebResponse resp = req.GetResponse (); // (Response handle ...) I'm not completely convinced "content-encoding: gzip" applies to client-supplied headers...

user interface - Dynamically manipulate Qt GUI -

Is there any way to open the QT process and then add widgets progressively? For example, start the process of opening a frame and then, with another program, say, another program (this is mine, is actually another scripting language), add a button to that frame? Then, in another program, I quickly say "open border" and opens the frame. And then I say "Add Button" and only the opened frame has been populated with a button. Updated the updated to solve the comment. As already mentioned, this is possible. If you need a domain specific scripting language, then I would suggest using it, it is based on ECMAScript 262 and allows access to signals, slots and other things. Although you can use IPC or TCP to control the application, QQT provides signal and slot between connected applications through a QIODevice, such as a TCP or local Connection

java - Unable to install Maven on Windows: "JAVA_HOME is set to an invalid directory" -

I followed this letter but I still can not install Maven on Windows. When I run the following in a command prompt: e: \ documents and settings \ zach> mvn --version me Getting: 'MVN' is not recognized as an internal or external command, operative program or batch file. I navigated to the Maven install folder and went to mvn --version and found: e: \ Java resource \ Apache-maven-2.2.0 \ bin & gt; Mvn --version Error: JAVA_HOME is set to an invalid directory JAVA_HOME = "E: \ Sun \ SDK \ jdk \ bin" To match the location of your Java installation, set the JAVA_HOME variable in your environment But when I java - Java version (1.6.0_14-B80) Java Hotspot (TM) client VM (build 14.0) -b16, mixed mode) So I have Java installed, anyone knows what the problem is? Problems have to be done on their own way. Make sure that the directory "e: \ Java resource \ Apache-Maven -2.2.0 \ bin" is on your command search path. Ensure t...