Posts

Showing posts from January, 2012

sql - How to know how many OR conditions are satisfied? -

How can I know how many conditions are satisfied in my results [TITLE ] From [M_TIPS] to [TITLE] as '% VALUE%' or '% SQL%' like [TITLE]; How will it know that only 1 or the condition of the result has been satisfied and both of the results have satisfied the conditions. The number of conditions is not stable, it can increase. Can anyone help? Add to result: select [TITLE] case [ TITLE] is like '% VALUE%' when the '% sql%' as the last [TITLE] as 1 and 0 as the CONTAINS_VALUE case when the CONTAINS_SQL FROM as [M_TIPS] as the 1 and 0 '[VALUE] ] 'Like' [VALUE] 'or' [TITLE] 'like'% SQL% ';

asp.net mvc 2 - Providing MVC Shared Folder Structure -

I am working on a project and I want to be able to put many ideas in the shared folder. However, when all of this (through a generation process) is created, I start feeling "Custard & amp; ^% $ fobic" due to X * N partial views in the shared folder and looking for a better organizational model I am here. Is it possible to create just one folder structure in the shared folders and "hope" MVC has to wire them properly or do something else. Ex folder structure I have ... Shared Products 1 dropdown list .ascx Product2DropdownList.ascx Product3DropdownList.ascx Product1Search.ascx Product2Search.ascx Product3Search.ascx ... Folder structure I like ... Share Product ProductDropdownList .ascx Product1Search.ascx Product2 Product2DropdownList.ascx Product2Search.ascx Product 3 Products 3DropdownList.ascx Product3Search.ascx ... This seems like a simple view-over-riding case. In your derived view engine, you can set rules, search sub-directors, etc., e...

actionscript 3 - how to add a needle or arrow from the center of pie chart using action script -

There is a pie chart from the center that I need to pull or needle like a needle Something like this should be done: Var radian: number = Math PI; Var radius: number = 400; Var xpos: Numbers = Math (Radius) * radius; Var ypos: number = mathematics (radians) * radius; Var line: size = new size (); Line.x = stage. Staveway * 0.5; Line.y = Step StageHite * 0.5; AddChild (line); Var g: graphics = line.graphics; G.clear (); G. Line style (2, 0x000000); G. Linto (expose, UPS); If the degree is required to be converted to radians or radians then you can use it: Degree to radians: (degree * Math. PI) / 180 degrees radius: (radius * 180) / monastery. PI

HTTP header 411 error in asp.net -

I have an .aspx file with some simple logic This file can only be accessed using the HTTP posting method is. My problem is that in some registration form (rebirth), they ask me that I select the post URL (My APX URL) and Access method (Post or Gate) and then they try to reach the url and HTTP 411 error (header missing content-length). Is there any way to stop web applications from sending this error back? Maybe there is some kind of configuration in web.config file? Thank you very much, etc ..

Image Website => Picasa or Flickr? -

I just have a simple question! In fact, I want to create a website with lots of images (user contributions). I already have a host, but it is limited to disk space (10 GHz). I know that this represents a huge image, but I like to plan it, and host it somewhere before the disk is over. I was thinking about Flickr and Google Picasa, but I can not decide which one to use. Can anyone help me? If you need more information about my project, then comment on this post, and I will edit it to answer you. Thank you. ;) Edit: Thank you for @Romeo, I'm going to Flickr, I think. Can anyone give me any feedback on the premium account? No matter, I'm putting it to solve: p Both of these have their limitations: I am not sure how this is on today's ranks, but between these two sides There is a post: Hopefully there is some good stuff to choose which one is good luck friend!

remember me - What's the best way to save user login and password in flex? -

What is the best way to save user credentials in Flex? Local storage does not find a good place to store confidential data, because it saves information as plain text. You must not use a browser cookie or session token to identify the user on the server For: Enters the username and password in a form in Flex and clicks the login. The server validates the credentials then adds a random (and sufficiently secure) token to the server in memory or in a database in the database. Then the server returns the token to the client. The client either saves in cookies, Tokyo, local lion objects, or just in memory. The subsequent requests include tokens.

java - Getting SSL context for HttpsURLConnection from X509Certificate -

I'm quite new to certificates, but I have to do something (in Java): 1 ) I have the requester's certificate in my hand: X509 certificate [] certs = (X509 certificate []) request.getAttribute ("javax.servlet.request.X509 certificate"); 2) I have to request another URL with that certificate (is this possible?), Something like this: url = URL = new URL (Server ); HttpURL Connection Connection = (HttpURL Connection) url.openConnection (); If (Example of connection HttpsURLConnection) {((HttpsURLConnection Connection)) .setSSLSocketFactory (???); } My question is, how do I add a certificate from 1 to 1 with the request? 2)? Cheers. You will not be able to do this. You need both the public and private components of the certificate to establish an authenticated SSL connection. This will be a security hole that you are suggesting, to do so to show a server in the form of an entity that it is not.

JSP and Servlet maintenance on Tomcat -

I'm developing JSP / servlet webpage on the Tomcat, I have some things (sublet Class, Web XML, JSP etc.) How can I refresh, while it is working? I can use a boolean variable in my servlet to find out that this will be a maintenance period, requests will be ignored. (All my servlets extend my base service class, so I only have to do one thing "if" check in my base class and a gestਟਰ / siter in boolean) but this file is not enough to refresh . Do I have to shut down my app, change things and re-deploy? When I refresh the app, I want to show the "Maintenance period, please wait ..." page for my users How should I do this? Only on a "maintenance" page is it possible that if you are in front of Tomcat from another web server The commonly used approach that is linked to Tomcat, while keeping WebPooling on Tomcat, just display HTTP Maintenance page rather than forwarding to Tomcat's request.

How to use enum within a struct in ANSI C? -

The following code is to be used in the main code, but I do not know how it is used. START A few ITEM {enum {MOVIE, MUSIC} item type; Association (structure film * movie; composition music * music;};}; This structure is used in a dynamic link list with previous / item / next indicator, but not me Find out how you can set an enum or how to get started. I have to know how this is seen in the main function. biglist.someitem = ';; / * Declaration I * / struct Library * Use a large list; To understand more code that I do Is trying to. Struct library {struct SomeItem * someitem; straight Some Itam * Previous Itam; Straight Some Itam * Next Entom;}; C2037: Contiller Ideals: C2037: Regardless of 'something', the undefined structure / union specifies 'Library' C2065: Film: Undeclared identifier Still a rookie on ANSI C, do not hit me properly;) You are using points everywhere, so you can use Mitigation requires -> refer to the item. Meaning bi...

objective c - iPhone memory leak monitoring when not hooked up to a computer -

I have an application that needs to be unplugged from the computer to be used (via this port one There is an interface with the device) I do not think that will work to use the instruments. Is there any way to monitor the memory allocation / leak without connecting to the computer? Thank you. You should be able to use the device via WiFi instead of USB. See . I have never tried, but this is a supported feature.

resource leak - Diagnosing Cause of 100% CPU Usage by "System" Process -

I have a Windows Server application, which has been implemented in C ++ using the Win32 API, which is very much C serial and TCP / IP communication. As soon as it moves, the CPU usage increases gradually, until it reaches 100%. The task manager indicates that most of the CPU usage (> 75%) is from the "system" process. If I kill my server process, then CPU usage comes back to normal. Are there really "easy" ways to diagnose the problem? I suspect that I / O connections are being opened and are never closed, so the OS is spending more time in fulfilling those requests, but I can not I want to verify before correcting it. Update: After playing with xperf , I have found that the process of system is more than half of its time in ntoskrnl.exe! KxWaitForSpinLockAndAcquire is spending . I do not know anything about it, but the name of the function suggests to me that there could be a deadlock / dispute problem. In other tasks the system is using a lot of ...

c - How to memset() memory to a certain pattern instead of a single byte? -

I am facing a problem today where I get the form of a special pattern like memory 0x 11223344 , therefore, looks like full memory (in hex): 1122334411223344112233441122334411223344112233441122334411223344 ... I understand this How can I do this? Any thoughts? Thank you, Boda Cisco. The pointer must be inserted into the byte as the indicator of the required size (such as UIT for 4 bytes 32_T) and fill it with an integer This is a bit ugly. Four Buffs [256] = {0,}; Uint32_t * p = (uint32_t *) buff, i; (I = 0; i & lt; s form (buf) / size (* p); ++ i) {pi [i] = 0x11223344; } Not tested!

Getting number of elements in an iterator in Python -

Know how many elements exist in python in Python, normally, without each and again without counting ? No it is not possible. Example: Import random atf (N): in xrange (n): if random.randint (0, 1) == 0: produce i iterator = Gen (10) The length of the Iterator is unknown until you move it again.

iphone - NSURL encoding using iso-8859-1 instead of UTF8 -

I need to use an NSString to use ISO-8859-1 instead of UTF 8 in NSURL (like here :) But I do not know about receiving it. For example: should be http://www.example.com/català http://www.example.com/catal%E1 insted http: //www.example.com / Catal% C3% A0 Thanks in the advice! You probably want the NSString method

Rails 3 has_one routing -

मेरे दो वर्ग हैं: वर्ग उपयोगकर्ता & lt; ActiveRecord :: बेस: है_ऑन: फ़ू एंड क्लास फू & lt; मैंने निम्न रूटिंग बनाई है: संसाधन: ActiveRecord :: बेस: is_to: उपयोगकर्ता अंत उपयोगकर्ताओं को संसाधन हैं: foo end निम्न मार्गों में कौन सी परिणाम हैं: प्राप्त करें / यूज़र: / निर्माता :() :(): {नियंत्रक = 'Gtc: GET / यूज़र / यूजर / यूज़र :( प्रारूप) {: नियंत्रक = & gt; "एफओओएस",: एक्शन = & gt; "नया"} GET / यूजर / यूज़र / ईफू / ईआईडी (। {: नियंत्रक = & gt; नियंत्रक = & gt; "एफओयूएस" ,: एक्शन = & gt; "शो"} पीयूटी / यूज़र / यूज़र / ईफू / ईआईडी (।: फॉर्मैट) {: नियंत्रक = & gt; "एफओओएस", एक्शन = & gt; "Update"} user_foo DELETE /users/user_id/foo/:id(.:format) {: नियंत्रक = & gt; "foos",: action = & gt; "नष्ट"} edit_user_foo / users /: user_id / foo / : आईडी / संपादित करें (।: प्रारूप) {: नियंत्रक = & gt; "foos",: action = & gt; "सं...

asp.net mvc - Passing parameters to ASCX user control in MVC -

I am trying to pass string parameters for an ASCX. I want to set it in the text property of the label. In the code given below, it shows that the Biwi tags (ignore% Psychos in HTML tags). & lt; @ Control language = "c #" Inheritance = "System web.mvc.useuser controllt; string & gt;" & gt; & Lt;% asp: Label ID = "Label2" runat = "server" ** text = "& lt;% # Model% & gt; Test" ** CssClass = "isslabel" & gt; & Lt;% / asp: label & gt; & Lt;% div & gt; & Lt;%: Model% & gt; & Lt;% / div & gt; Although there is nothing in the label tag which I have placed between the angle brackets in the text field (slightly bold), I can not reveal the parameter I have tried & lt;% : Model%> No Benefits Is it the issue that the code block is inside the quote marks and am I missing some character right now? Why are you trying to use a web form user control with MVC? T...

sql - Datetime pattern for yyyy.mm.dd.hh.mm.ss pattern code? -

What is the DATE format code for "yyyy.mm.dd.h.h.mm.ss"? I know that 34 (date format code) is "Yyamgagdhams", but what is the code for "yyyy.mm.dd.hh.mm.ss"? It is on SQL 2005. As GBN said, using one of the existing formats will work with some string combinations Another option is: Cast Cast (Charge (Year 4) (4)) + '.' + Wright ('0' + Cast (Month (My_date) as VARCHAR (2)), 2) + '.' + Correct ('0' + cast (day (My_date) as VARCHAR (2)), 2) + '.' + Wright ('0' + Cast (DATEPART (HOOR, my_date) VARCHAR (2)), 2) + '.' + Wright ('0' + Cast (DATEPART (minute, my_date) VARCHAR (2)), 2) + '.' + Wright ('0' + cast (DATEPART (second, my_date) VARCHAR (2)), 2)

multithreading - use an Android GestureOverlayView seperate from the game thread execution? -

I have a gesture activity class, which is used for gesture on the screen, which is connected to Jester Overlayview. Full screen I have a main game thread detrication and launch that is launched from the clutter menu file. The thread works with physics and draw methods which play once created games, the control is passed until it gets out or disrupted. My question is, how can I move both the gesture activity and incarnations at the same time, so that while playing the game, the game can be heard for gestures, because once again it starts Before it is resisted to wait for an activity. I think there will be a second thread involved in it uncertain how to implement it correctly? Gesture activity should be an activity type, which I believe on the basis of view?

c# - TypeLoadException is Not Caught by try/catch -

I'm trying to recreate a TypeLoadException for display purposes, so my Nearly absurd library setup that looks like this: TestProject -> The Library [1.0] \ - & gt; Proxyfor V2 - & gt; Thelibrary [2.0] get thelibrary version 1 in a variety of interfaces: public interface IConsistentThing {int ConsistentProperty {; Set; }} Public Interface Evernings {int RemovedProperty {get; Set; }} while TheLibrary interface version look like 2: public interface IConsistentThing {int ConsistentProperty {get ; Set; }} Public interface IShrinkingThing {} ProxyForV2 This version of this class also applies to 2.0 IShrinkingThing : public class syncingimplement: Istingting ting {Public Internet Context Property; Set; }} Then, in TestProject , I expect to be the cause of the TypeLoadException if someone attempts to assign ProxyForV2 Synchronizing IMAPPL , because the first version of the interface is a property that is not enforced by another version. T...

combobox - Easy way to make Silverlight combo boxes perform like HTML select boxes? -

I am quite new to the serial but I am experienced in web development, and I am feeling very angry with Silverlight's default cobobox. It seems that there is a lack of any concept of use for regular data entry. Mainly I would like it to function like a HTML selection box, where you can press the drop down, then type a letter and it takes you to the first item with that letter Thank you You can write the attached behavior to provide this functionality. The problem is that the items in the combo box in Silverlight are not always wired, they can have full control that the user has templates in the form of the ItemTemplate . If you know that you are going to be string , then you have to attach to the KeyDown event by Behavior & lt; ComboBox & gt; can apply and select the correct one. Public Class HTMLSelectBehavior: Behavior & lt; ComboBox & gt; {Secure Override Zero Current () (AssociatedObject.KeyDown + = OnKeyDown;} Private Zero OkayDown (Object Sender...

asp classic - How many requests per second should my asp(class) app handle -

I design an ASP (classic) web service, call a web service database, read / write files, And xml process I am creating a tool to test this, how many requests I handle per second on a Window Server 2003 box (2.7 GHz, 4 core, 4GB RAM) Can i But I'm looking for several requests per second to shoot. I know that this is quite unclear, but please give the best estimate if you want more information, please ask. Depending on the database of 95% of a data-driven app's performance: 1) The way you use your Call, 2) indexed, 3) hardware under databases (especially disk subsystem). I have seen a machine, as you are describing, handle 40 requests per minute (2500 / minute) per second, but the numbers like 10 seconds per second (600 / minute) were more common is. Even if you are running your DB on the same machine, it is expected to be less, and even if it is still less, if DB is SxXxpress or MSAVICE. Also, on capacity, your app probably will not fail, but IIS queue request, o...

sql server - Is there a practical way to use the hierarchyID datatype in entity framework 4? -

As it stands now, CRR with serial unit UDT is not supported in Entry Framework 4. HierarchyID.ToString () is useful, but 10+ siblings of any object (basic structure / 3/4/12 / or / 3/4/2 / , Then break after 12th node will be sorted before 2 nodes) Revert the hierarchy as a varnallini and apply your own hierarchy .ostrank () method that pad numbers with zero during the creation of the string So that the resulting string is sorted Defense could be (ie "/ 0003/0004 / 0012 /"). I disassebled Microsoft.SqlServer.Types.dll and saw the implementation. It seems that the interval is based on a class named "OrdTree" and I use that class again as the basis of the implementation Can i Write your own CLR type for SQL, work on binary data and make your string (a variation of option 2). However, an additional deployment comes with headache. Write a SQL udf to parse the hierarchy string and pad on the DB layer. The lack of array processing / reggae ...

javascript - jQuery .focus() and .blur() not working in Chrome or Safari -

I am creating a survey form for which to highlight each question and answer set (by changing the background color) When the user is focused on them. Both Focus (.) And .bore () work in Firefox and IE, but not completely in Safari and Chrome. I also tried. Foccin () and. Focusout (with the same result) Edit: Clicking does not slip the focus event, but tabbing through the input field. I say not completely because it works for text input, select input and texture input; But not radio and checkbox input $ (document) .ready (function () {$ ("form li"). Focusin (function () {$ (this) .addClass ("at");}). Focus Out (function () {$ (this) .removeClass ("over");});}); It is being applied to blocks of this kind: & Lt; / Li & gt; & Lt; Li & gt; & Lt; Label for = "business" class = "desc" & gt; Your charter flight objective: & lt; / Label & gt; & Lt; Div & gt; & Lt; Period & gt; ...

iphone - UINavigationController / reloading views / working with views! -

मेरे पास एक UINavigationController के साथ काम करने वाला एक दृश्य आधारित प्रोजेक्ट है। RootViewController एक को लिखने के लिए कार्य करता है डेटा मॉडल जब एक नई प्रविष्टि की जाती है। मेरे पास एक मुख्य स्क्रीन पर एक ऐड (+) बटन है जो एक टाइमस्टैम्प के साथ एक प्रविष्टि जोड़ता है और डेटा मॉडल को रिकॉर्ड करता है। मैं ऐड बटन पर क्लिक करना, संपत्ति की एक सूची ब्राउज़ करना चाहता हूं और एंट्री रिकॉर्ड करना चाहूंगा जिसमें एसेट यूआरएल शामिल है, ताकि मैं संपत्ति खेल सकूं। मैंने ऐड बटन को दबा दिया, तब मैं एक नया एक्सआईबी लॉन्च करता हूं जैसे: pickerViewController = [[MyPickerViewController alloc] initWithNibName: @ "MyPickerViewController" बंडल: शून्य]; // --- वर्तमान दृश्य में DatePicker दृश्य के साथ दूसरे दृश्य की संपत्ति सेट करें-- pickerViewController.myURL = importVideoURL; फिर, मैंने एक सम्बद्ध संपत्ति यूआरएल को पकड़ लिया है, जिसे मैं अपनी प्रविष्टि के साथ संग्रहित करना चाहूंगा, मैं पर्यवेक्षण से दृश्य को मेरे मुख्य दृश्य पर वापस लाने के लिए निकाल देता हूं: मुझे क्या ...

python - Deploying cx_Oracle onto various versions of Oracle Client -

I have some small python applications that use cx_Oracle to connect to an Oracle database. I deploy these apps with py2exe, which works fine in many cases. The problem is that many standard Oracle client versions (for example, 9i and 10 grams) do not need to install a lot of people, and this is standardized on the same Oracle client version It would be very disappointing to try. I am currently using 9.2 client for 9i customer, and when I include the Cx_Oracle 4.4.1 library in the exe as a result of PE2XX and will not work with 10g customers. I do not use any specific features of any Oracle versions, so there really is not a specific reason for me that the client version is being used except for CX_ORRALIC compatibility issues. The ideal solution will be compiled in any way, a version which is completely independent of the Oracle client installed on the machine. If this is not possible, then I would be willing to compile the different exes for each major Oracle version (my_a...

winapi - Is it possible to modify a file without changing its hash value -

I need to edit some CGG files for an application, but this is the thing that if I do this This application does not start I do not have an application source. I think that hash does not match the hase of exe, it turns out. Can you father it in any way? Actually, there is a way: while (hash Malicious config file is not original match) {Make random, non-functional changes in malicious config files} This may take a while.

Calling GetGUIThreadInfo from Outlook VBA -

I need to find the active window'm writing a VBA macro in MS Outlook, which is a specific process. The goal of this is to get the active window / document name even if its original application has more than one document interface. User processor with GetCurrentThreadId is active, I am using GetGUIThreadInfo to get .dll. Here is the correct code: private type RECT as as Left LongPtr top LongPtr right LongPtr down LongPtr termination of private type GUITHREADINFO cbSize as LongPtr flags LongPtr hwndActive LongPtr hwndFocus LongPtr hwndCapture LongPtr as as as as as reset as LongPtr rcCaret as LongPtr hwndCreate as LongPtr hwndMoveSize as HwndMenuOwner end of Private Equity PtrSafe function GetWindowThreadProcessId Lib "user32" (_BVV hnw LongPtr as LongPtr Nig Mr. announced as PtrSafe function GetGUIThreadInfo Lib "user32" _ (ByVal dwthreadid as LongPtr, _ lpguithreadinfo as GUITHREADINFO) LongPtr Sub MyFunction () as dim strWindowTitle string = space as s...

how to change default date format when creating table in MYSQL -

MYSQL में टेबल बनाते समय डिफ़ॉल्ट दिनांक प्रारूप को कैसे बदला जाए आप तालिका परिभाषा चरण के दौरान एक तिथि के लिए डिफ़ॉल्ट प्रारूप नहीं बदल सकते। (इसे हमेशा DATETIME, DATE या TIMESTAMP प्रारूपों का पालन करना चाहिए।) मैनुअल के अनुसार यह कहते हैं: हालांकि कई प्रारूपों में मूल्यों का विश्लेषण करने की कोशिश करता है, तो दिनांक हमेशा वर्ष-महीने में दिया जाना चाहिए- दिन के आदेश (उदाहरण के लिए, '98 -0 9 -4 '), बजाय महीने-वर्ष-वर्ष या दिन-महीना वर्ष के ऑर्डर के बजाय सामान्यतः कहीं और (उदाहरण के लिए, '0 9 -04-98', '04 -0 9 अधिक जानकारी के लिए देखें। इस तरह, आपको इस लक्ष्य को प्राप्त करने के लिए उत्पादन के समय समारोह का उपयोग करना होगा।

asp.net - AppFabric Error when disable Security for sessionState Provider -

I am fully connected to this version 1.0.0.0 product. I am using a domain environment but for specific use, I want to disable security to reduce the workload on the server when accessing the cache. I have a group of web servers using SQL using a current session session, and it was thought that the role of appraffic should be rolled up and using the session state provider and speed up things The fast solution for this is currently an appographic host running on a separate server. All servers are on the same domain. I'm running AppFabric on this host using this mode Set-CashClusterSecurity-Security Level Encrypted and Sign-SecureMobile Transport Local App on Web Server The pool is using the network service service account, and I have given machine account permissions and they all work fine. But then on the server I set it up Set-CacheClusterSecurity- none of the security level -Security mode none (closing and starting the cluster). Then I get this error. Err...

How can I create a snmp trap handlers using c#? -

How to get information from UPS, how can I create SNMP mesh handlers using C # Is the IP address connected to the network? Thank you. You can start with the SNMP protocol itself, or use existing libraries, To be biased, I recommend my own open source project # SNMP, where you can capture the trap (snmptrapd.exe sample code package in the source), and its After you can handle them easily.

sql - how to remove NullExceptionError from Session Variable -

I have a varible sem which takes input from the textbox, but if the text box is kept blank, then I I want to return "please" one semester " int semicolore; if int.TryParse (Textbox2.Text, parsevalue out)) {sem = parsevalue; session [" bean " ] = Cm;} Other {Literal2.Text = "Please enter one semester";} But if the textbox is empty, then session ["bean"] Return NullExceptionError in .aspx in which the file I have used it. I used the tryparse to search for the proper conversion but it did not clearly understand how to print the error message above. Please thank you in advance Your correct code is here: int sem; Int parsevalue; If (int.TryParse (Textbox2.Text, parsevalue out)) {sem = parsevalue; } Other {Literal2.Text = "Please enter one semester"; } // Always set the session variables when it is used in another session ["beans"] = sem;

php - Facebook-Like Activity Stream -

I wrote an application, this is not a social networking script by any means, but for my script "user profile" And I am interested in the idea of ​​SQL / PHP design to know about the activity streams seen on Facebook for users of my script. Such activities like "Joy commented on X's wall." Or "joi, x, foo your picture" or "foo changed their photo [photo here]" I want this to be dynamic, not on stationary entries, because if Joey uses his name Something else changes, I do not want to show this old data. Therefore, if you please, please help me with the design of this ... I do not need any code, just push directions on the right. Thanks a lot! I'm sure that your proposed schema will give you a lot of flexibility: What do I want DB Schema? I was probably thinking about something like this ... activity_id activity_message activity_time where the message "{USERID: 34} likes {USERID: 23} posts" and "{USERID: 34...

R: When using the rep(..,..) to replicate 1020 a character variables, the result contains just 1019 replicates? -

When I programming within the R environment, I used the representative ("[35,40]", 1020) I am It should give me a list with 1020 times "[35,40]" However, only 1019 elements exist in the result. Programming was repeated for the first two vectors, but even then when I split it does not work. What I have tried is using different versions of R (R 2.11.1, R 2. 9.0, R 2.10.0, R 2.7.2), but none of these Does not work from Is there any idea if there is a version of R, which is not in this bug? Or how can I solve this problem? So the code for this: & gt; Agecats [1] "(-0.001.5)" "(510)" "(10.15)" "(15,20)" "(20,25)" [6] "(25,30)" "(3035)" "(35,40)" "(40,45)" "(45,50)" [11] "(50,55)" (5560) "" (606) "" (65,70) "" (70,75) "[16]" (7580) "weight lifting & lt; -c (0.9,0.9,2.7,3.1,8.9,10.05,10.05,10.2,10....

c# - How to set "interact with desktop" in windows service installer -

itemprop = "text"> moving to me under a windows service system account and execute a program from time to time ( Yes, yes, I know that this is a bad practice, but this is not my decision ). After the service is established, to see the GUI of the programs I have to execute, I have to set the "Talk to Desktop" check. I many ways tried the code below to put in AfterInstall or OnCommited event handler of your service installer: Knekshnopshn cooptions = new connectionOptions (); CoOptions.Imersonation = impersonationLevel.Impersonate; Management scope mgmtScope = new system.Management. ManagementScope (@ "Root \ CIMV2", Cooption); MgmtScope.Connect (); Mandnobjekt wmiService = new Mandnobjekt ( "Win32_Service.Name = '" + ServiceMonitorInstaller.ServiceName + "' '); ManagementBaseObject InParam = wmiService.GetMethodParameters (" Change "); Inparam [" Desktop Intrtekt "] = true; ManagementBaseObject Autpa...

How to update contact number using Android -

I'm learning Android I'm trying to upgrade the contact number programmatically. Anybody can help me please how can I do this. My attempt is: string lNumber = pCur.getString (pCur.getColumnIndex (ContactsContract.CommonDataKinds.Phone.NUMBER)); Material values ​​= new material value (); Uri lPhoneUri = Uri. Withdrawal (ContactContact.com.comDayDayDind.Phone Contribution, ContactCactrect.comCommentIndex.php NUMBER); Values.put (ContactContact.com.comDayDinds.on., "45323333")); GetContentResover () Update (lphonehone, values, ContactsContract.CommonDataKinds.Phone.NUMBER + "=?", New string [] {lNumber}); I think you are too much. The following contact's work uses the new API to update the phone number, assuming that the contact already has a work phone number in the public zeros update dialog (string contact id, string New Number, Activity Act) RemoteActionation, Operation Applications Exception {// ASERT: @ Contact Id Alray has a work pho...

c++ - How can I get the address of the buffer allocated by vector::reserve()? -

I have a standard standard vector for which I know the maximum size, but actual size will be different during use : zero setup buffer (const size_t maxSize) {myVector.reserve (maxSize); } Zero addToBuffer (const value & amp; v) {myVector.push_back (v); If (myVector.size () == maxSize) {// Process data ... myVector.clear (); }} However, in SetupBuffer, I have to get an indicator to start the data of myVector. I am using a third party library where I can find "Process Data ... "This indicator needs to be cached in order to use in calls made during the section. zero setup buffer (const size_t maxSize) {MyVector.reserve (maximal); CachePtr (& amp; (myVector [0])); // does not work, obviously I do not want to change the vector () on the front, because I want to use vector size (), which means that Number of elements added to vector So, after the allocation (reserved), there is no way to get the pointer in vector buffer, but before that there is an element...

php - Automatically insert content into News section -

I'm developing a WordPress theme on the front page, the headline of a section news in that section, (I will create a separate file called news.php, which will be included in the markup), but I also want the content to be automatically updated after posting it. For example, if the user writes a new post, then I want to update the news section to do something like this: A new post was written, find it here ( Where 'Here' is pointing to the URL of the hyperlink post.) Edit Let me try to give some more information so that it is clear. The news section will be a noodle list. Like this: & lt; Ul & gt; & Lt; Li & gt; News item 1 & lt; / Li & gt; & Lt; Li & gt; News Item 2 & lt; / Li & gt; & Lt; / Ul & gt; I want the user to be able to add content to the news section, aka create a new news item, but using the WordPress Visual Editor, such a user does not need to understand In addition, whenever a new post is publishe...

exception - How to retrieve useful system information in java? -

Which system information is useful - especially when tracing exceptions or other problems - in the Java application? I am thinking about the information about exceptions, Java / OS information, memory / item consumption, io information, environment / encoding etc. In addition to the obvious - Exception stack trace - as much information as you can get, all of you Environmental variables should also be found along with system properties. Also, if you have some settings in your app, get all their prices. Of course you should keep all this information in your log file, I used the system. For her simplicity: System.out.println ("---- Java System Properties ----"); . System.getProperties () list (System.out); System.out.println ("---- System Environment Variables ----"); Maps & lt; String, string & gt; Env = System.getenv (); Set up & lt; String & gt; Key = env.keySet (); (String key: keys) {System.out.println (key + "=" + env.get (k...

osx - Compiling OpenCV with FireWire support on Mac OS 10.6 -

We have a webcam and a firewire camera attached and want to get input from the other. But when we use cvCaptureFromCAM (0) and change the number passed as an argument, then we are only getting data from a web camera We use OpenCivi Private Framework Tried and then it works fine. Therefore, most likely the problem is that our OpenCVI was not compiled with the support of FireWire. Can you please tell how it is possible to enable that help? Do Any Extra Libraries Need? You execute cvCaptureFromCAM ) 0 Instead of -1 with

php - Netbeans 6.9 uses 50-60% CPU -

Netbeans account for 50-60% CPU time and I am only setting NB for PHP and Y Framework. My PC extension: Intel (R) Pentium (R) Dual CPU E2200 @ 2.20 GHz (2 CPU), 1526 MB RAM. Should I upgrade my PC or is it the right way to resolve this problem? Netbins file scans in the project folder When it starts, it can take some time, But then that CPU should not be used anymore. Which OS and JVM are you using?

java - How to serialize a Map<String, String> using Simple XML? -

How can you get about being serialized using a map so that something looks like: & lt; Elem foo = "value" & gt; Key & lt; / Elem & gt; instead of the usual & lt; Elem foo = "key" & gt; Value & lt; / Elem & gt; (The map is one of many people, and since it will be edited by a man, I wanted to make it clear.) [edit] ]: is not okay. Have you tried something like this: @ ElementMap (entry = "attribute", value = "value", attribute = true, inline = true) private map & lt; String, string & gt; Map; Or to use some combination, that is, to use other features too?

python - Pylons 1.0 and SQLAlchemy 0.6 - How do I Model? -

I was reading with their Siteside tutorial and following the following, but there are some problems with making models Are there. The models import used on the tutorial are: "model" object of the application "" sqlalchemy to sqlalchemy import orm simplesite.model import meta # Import two import: import date from sqlalchemy import schema Then they use it to create a table: page_table = schema.Table ( 'Page', Meta.Metatadata, However, when I try, I get: AttributeError: any of the 'module' objects Specialty 'meta Data 'is not I think Pylons has changed its way during the upgrade ... ... So how can I do this? Can I link to an updated tutorial to create a model? And have to resolve the database connection / queries: Pilon 1.0 declarative basis as the default for use model. Example: to sqlalchemy import column sqlalchemy.types Base class user (base) from Integer, Unicode, MYPROJECT.model.meta import: __tablename__...

java - Spring Build Problem - Can't Find Beans Schema -

When I run my project in Eclipse, everything works fine, but when I use the assembly: I am using Maven2 and Spring 3 assembly, resulting jar throws the following exception: in the thread "main" org.springframework.beans.factory.xml.xmlBeanDefinitionStoreException: XML document In line 4 in the square path [Beans. Xml] is invalid; Nested exception org.xml.sax.SAXParseException: cvc-elt.1: element can not be announced for the 'beans' My Beans file looks like this: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Bem xmlns = "http://www.springframework.org/schema/beans" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schema location = "http: // Www .springframework.org / schema / beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> & Lt ;! - Beans here - & gt; & Lt; / Bean & gt; This file is stored in src / main / resources My pom...

Flash Actionscript With XML has trouble loading onClick -

If you go to that page and click on the card deck. Some clicks do not work Most of the clicking is an onclick problem even when the movie is tested in the flash. import tweening files com.greensock *; Import com.greensock.easing *; Import Flash.Display.MovieClip; Import flash.events.Event; Import Flash. Text. Textfield; Import Flash. Text. Text format; Import fl.controls.UIScrollBar; Import flash.display.Sprite; // Create an array of image names var image name: Array = new Array (); Var descText: Array = new array (); // var for the total number of total images // variable: uint = imageNames.length; // Large image upload to a variable vs largeImageLoader: loader = new loader; // Bigimageloadloader on display list / random random number var random number: UIT; // Add Scroll Variable Scrollbar: Boolean = Wrong; Var scrollbar: uiscrollbar = new uiscrollbar (); AddChild (bigImageLoader); BigImageLoader.x = 130; BigImageLoader.y = 25; // Create a textfield var myText: TextField = ne...

javascript - Galleria + Colorbox working in IE, not in others -

Image
I thought I did this work, but unfortunately it does not work in FF or Chrome. I have a list of images that I would like to display as a slide show with carousel on my page. When the user clicks on the big image, I would like to open a full size image in a lightbox. Here's the code that works in IE: & lt; Script> src = "scripts / jquery-1.4.2.min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "script / gallaria.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "script / gallaria.classic.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "script / jquery.colorbox-min.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('a [rel = test]'). ...

iphone - Don't worry about `retainCount`? Really? -

I'm told not to worry about maintaining their numbers. I understand that I should not decide to use conditional arguments based on the code to keep release or to keep code , but Should not I worry about it? I thought that they are in any way compatible with memory usage. For example, if I have a bunch of subsets of UIView which I also have to be able to repeat through NSArray , do it double , so the count of maintaining and hence the use of the application memory? If so, it is expensive or trivial, if there are subviews, say, 500 UIControl example? It is assuming that I need 500 instances, of course. You do not have to worry about maintaining ' because it is often a misleading implementation description of the counting system I post it shortly after Apple's documentation: Important: This method usually has no value in debugging memory management issues because any number of structural objects have An object can be retained to capture context, w...

css - Cufon is messing up my transparent PNG backgrounds -

I have some divisions with repeated background PNG (this is set to ~ 50% ambiguity as an alpha channel ); The purpose divs to give a white transparent background Divs render great in all current browsers but when I call my cufon code to change some text on the screen, background from top left to bottom (only in IE) one Gradient looks faded in fashion. It does not affect some PNG backgrounds. Cufon is getting in the way of providing some definitely transparent PNG with. Has anyone ever seen this functionality? I used cufon 18 months ago but it was for titles and labels white or colored Background so I can not help you If I still need a similar need on this, then I will use the @ font-face as Fx3.0 and the other have disappeared very fast, Fx3.5 + and others Being replaced by recent browsers, do you have any hindrance, which prevents you from using this IE-compatible feature? Some questions may be of any help if it is: These elements have the layout ( zoom: 1; if they ...

xml - What is the xpath to select a range of nodes? -

Hello, I have an XML file that is structured like this: Lt; Foo & gt; & Lt; Bars & gt; & Lt; / Bars & gt; & Lt; Bars & gt; & Lt; / Bars & gt; ... & lt; / Foo & gt; I do not know how to catch several nodes. Someone gives me an example of an xpath expression that holds nodes 100-200 times. : / * / Bar [position () & gt; = 100 and not (status ()> 200)] Note : the exact form From bar elements are selected from 100 to 200 (inclusive). The evaluation of this XPath expression can be manifold faster than expression using // short name, because of the latter tree Try to avoid using the root reference node always possible to avoid using // short name in such cases.

asp.net - Asp send parameter character problem -

मैं किसी अन्य पृष्ठ पर response.Redirect () का उपयोग कर पैरामीटर भेजें उत्तर। "~ / Mypage.aspx? Value =" + myvalue)) लेकिन myvalue के पास कुछ अमान्य वर्ण हैं जैसे ö, ü और मैं पैरामीटर सही नहीं प्राप्त कर सकता। विचार, मैं इसे सही कैसे प्राप्त कर सकता हूं? यदि आप एक सर्वर करते हैं। यूआरएलएएनडीडी इसे ध्यान में रखना चाहिए तुम्हारे लिए। यानी रिस्पांस। रीडायरेक्ट (स्ट्रिंग.फॉर्मेट ("~ / mypage.aspx? Value = {0}", सर्वर। यूआरएलएएनकोड (मायवल्यू))) इसके पहले कि आप इसे दूसरी तरफ खपत करते हैं, आपको इसे डीकोड करना होगा। स्ट्रिंग माइवल्यूज = सर्वर। यूआरएलडीकोड (अनुरोध ["मूल्य"])

Is BizTalk an ESB? -

I'm looking at architectural patterns, enterprise services bus (esb) is fine after reading this article, and no experience If not, I am wondering if Bizotok is an ESB or is it just an EAI (hub / speak or bus)? I found it to be a central message broker to Bizotok. Take into account other ESB frameworks (NSCRBS and Rhino service bus). These frameworks have no central point to process messages. Is EAI instead of ISB? Many thanks Bizotok was penalized by Microsoft as ESB capabilities However, the word 'ESB' is very much involved, and there is a lot of autism about the exact definition of an ESB. IMHO is a weak point in the claims of BIST, which is widely known as an ESB Is (a> 2010 definition of the period). BTS hub-and-speak EAI originated in the era, before that the ESB became largely. Compared to synchronous processes, BTS is more favorable to asynchronous procedures - varying depending on the weight on the latency system, throttling state etc. Whe...

How do I make SqlBulkCopy work with MS Enterprise Library? -

I have some code that uses SqlBulkCopy and now we use the Enterprise Library database function instead of the standard code. We are reusing our code for Q: How can I instantiate SqlBulkCopy? It accepts SqlConnection, and I only have DbConnection. var bulkCopy = new SqlBulkCopy (connection) // here connection SqlConnection {BatchSize = Settings.Default.BulkInsertBatchSize, NotifyAfter = 200, DestinationTableName = "Contact"}; Very easy, we use it this way and it works perfectly Does: using (DB Connection Connection = DB. Connection Connection ()) {connection.Open (); // blah blah // We use SqlBulkCopy which is not in the Microsoft Data Access Layer Block. (SqlBulkCopy Copy = New SqlBulkCopy (SqlConnection) connection, SqlBulkCopyOptions.Default, null)) // // init & Amp; Blah blah}} to enter the connection: (SqlConnection) connection

iphone - SQLite database cached due to SVN -

My iPhone application uses core data and a SQLite database; Adding data to the database that is being tracked using version SVN is not reflected in the application. I'm sure I remove the project from the simulator and that the new database has been added as a file for the project. I suspect that the data is being cached in the second place. Please note, SVN does not show any changes to the database, even when directly edited. Also, if I copy and paste the project into a new folder, delete the hidden SVN folders, delete the build folders, edit the DB, remove the project from the simulator, then compile and run, this is the first time Works. After that, the data is cached again in some unknown location. Any ideas where this can happen? Update: The solution was to get out of my SVN client (version). I am still unsure that the DB updates how it affected; I do not think it will block or return any change. Now I can edit and save changes. Thanks everyone for the help. So...

xaml - How to link Property value to a Property of a Style in Blend 4? -

I have created a style template in Blend 4 for a button, but I'm not sure how to link the content of the label. The property of the button's content. The style is XAM here: & lt; Style x: key = "navbutton" targettype = "button" & gt; & Lt; Setter Property = "Background" Value = "# FF1F3B53" /> & Lt; Setter Property = "Foreground" Value = "# FF 2000000" /> & Lt; Setter property = "padding" value = "3" /> & Lt; Setter property = "borderline" value = "1" /> & Lt; Setter Estates = "Borderbrush" & gt; & Lt; Setter.Value & gt; & Lt; LinearGradientBrush EndPoint = "0.5,1" Start Page = "0.5,0" & gt; & Lt; GradientStop color = "#FFA3AEB9" offset = "0" /> & Lt; GradientStop color = "# FF839 9A9" offset = "0.375" /> & Lt; GradientStop c...

hadoop - Difference between Pig and Hive? Why have both? -

My background - Hadop is 4 weeks old in the world. Claudia's Hadoop VM gave a little dip in the hive, pig and headop. Map-deficiency and read Google's paper on GFS (). I understand - Pig language Pig Latin (the way the programmer looks) is the declarative style of programming like SQL and Hive's query language near SQL Looks like The pig sits on the top of the Hadoop and can sit on top of Dryad in principle. I may be wrong but the hive has been linked together with the handsopop Pig Latin and Hive are ready to map both the commands and reduce jobs. My question - what is its goal, when one can say the purpose of (say pig) purpose only because it is evangelized by the pig yahoo! And hive by Facebook? Check it with pig architect at Alan Gates, Yahoo! Like pig, like pig, they will use pigs as a useful case of utility of a procedural language such as pig (versatile declarative SQL) and dataphlow designers.

html - CSS Sprites Repeating Images -

I was thinking that using only one image for repetitive and non-repetitive images using CSS sprites There is no way to do it. So in this case I would like to add all the images on the page, regardless of the width and height, and if they are used as repetitive or non-repetitive images, I know that the standard is used by all repeating pictures Creating 1 image and another image using all duplicated images. But I just wanted to know if I could use 1 image for everything. Thank you. The short answer is "no". This explanation is that the repetitive images are completely displayed in whatever direction they repeat in their direction. Therefore, a background set to duplicate-x will show all image content in horizontal direction. This is the reason why you can not use the demons again in both directions.

jsf 2 - Embedding a link (or other html) in a JSF message -

Text after " I want to embed a link in a JSF message, is it possible? When I try to do it, the hue HTML: The message tag avoids HTML characters. I tried to set H's escape attribute: to make the message tag false, but he did not help. Unfortunately, the standard JSF implementation it is not possible component and renderer officially support this feature does not do. You can still make a renderer home that handles it. Since this is a very common requirement / desire, I think everything is possible. The first few background information: By default JSF tags are used to remove tags, which by default HTML remains. We instead delete it by & lt; H: outputText escape = "false" /> as you go with it. We want to extend the message renderer of the implementation of standard JSF and want to override the encodeEnd () method accordingly. But since MessagesRenderer include # encodeEnd () a lot (~ 180 lines of beautiful code) that we just do not like to c...

php - How to program an application with unknown future modifications and features? -

background I am not new to programming, but I am When it comes to handling customers and their needs My history is with my current client: I got a PHP application with 2/3 completion, continues to complete 100% till reaching the customer (major) facilities It is necessary to rewrite applications and databases. I had formulated two weeks how the new application would work with new changes with other necessary features and after acceptance, I started the application again. I am now being asked to add new features which were not discussed before the new build- and then, they are huge and the whole application is live with more than 300 users- it is also making it difficult. Question Do not pay attention to the fact that the client is asking for facilities not discussing fundamentally. How do I create feature proof ? In the prefect world, clients will know what features the app has, which will make it very easy for my job. But this is not the case and I am talking about thes...

python - maximum of 2 numbers -

अधिकतम 2 नंबर कैसे मिले? मूल्य = -9999 रन = समस्या .getscore () मुझे 2 मानों यानी value और चलाने की तुलना करने की जरूरत है और अधिकतम 2. मुझे चाहिए Python function to operate? बिल्टिन फ़ंक्शन अधिकतम का उपयोग करें। उदाहरण: अधिकतम (2, 4) रिटर्न 4। बस गीग्स के लिए, एक min भी है ... चाहिए तूम्हे इस्कि जरूरत है। : पी

ASP.NET button that performs a server-side action, returns a file to download, and plays nicely with an UpdateProgress... In a single request -

I have an ASP.Net page (using ASP.NET AJAX and TeleRC components) which is a data table and A provides option to download data in CSV format. I have a requirement that a button allows the user to download data sets. I have a system that is working on a solution basis for me My ASPX looks like this: & lt; Asp: button id = "export csb button" runat = "server" text = "download on csv / excel" onclic = "exportcashbutton link" "OnClientClick =" aspnetForm.target = '_blank'; " Then for exportCsvButton_Clicked in my codebehind, I do something like this: byte [] csvBytes = someLongOperation (); session [ EXPORTED_SESSION_KEY] = CSVites; response. Redirect ("myexportpage.aspx", true); In the end, in my 'myexportpage' codebehind, I am doing this: Secure Zero Page_load (Object Sender, EventArgs e) {Response.Clear (); Response.ClearHeaders (); Response.ClearContent (); Response.AppendHeader ...