Posts

Showing posts from May, 2010

pdf generation - How to create RtfWriter2 document using iText PDF OutputStream? -

I am using the free version of iText (especially v2.1.7) due to a tight project budget, the AGPL version I can not use) To create PDF and RTF docs I have an external interface (without access to its source code) which creates pdf and gives an outputstream object I need this Using an OutputStream object, type a RtfWriter2 document Ana is the sign of the external interface method I public output stream get PDFOutputstream (); I know what I am trying to achieve is technically possible using iText 2.1.7.

database - MySQL ANALYZE TABLE Response -

एक विश्लेषण तालिका में tablename & gt; प्रतिक्रिया के बीच अंतर क्या है पर कोई भी सुझाव? Msg_type: स्थिति Msg_text: ठीक और Msg_type: स्थिति Msg_text: तालिका पहले से ही अद्यतित है मुझे हमेशा एक ही तालिकाओं पर एक ही प्रतिक्रिया मिलती है। तालिका पहले से ही अद्यतित है मतलब है कि तालिका की जांच करने की कोई आवश्यकता नहीं थी। Msg_text: ठीक का अर्थ है कि आपका ऑपरेशन सफल था। दोनों ही मामलों में, आपके इंजन या कुछ और में कुछ भी गलत नहीं है।

javascript - How to remove element array "[" & "]" in json? -

I already had variables JSON encoded, then there are elements in the json array like "[" and "]". The question is [{"form": {"user_id": "1", "form_id") : "text", "hint", "form_name": "rays "", "Form_ description": "Effect", "Form_Jason": [{"ID": 72043, "Name": "Edit Text", "Input_type": "Text", "Indication": "", "Options" "Ina ca. RO", "Options": "Saya, Dan Diya"}], "", "", "409289", "name": "spinner", "input_type": "spinner", "sign" Created ":" 17-10-2014_16: 49 "," created ":" adminweb "," last_updated_at ":" 17-10-2014_16: 49 "}}] PHP: $ jadi_json = array (); Forex currency ($ model $ line) {$ js...

AppleScript: Show a service when right clicking empty space in Finder -

When right clicking on files or folders (if your automation service is configured this way) Can display. Note: How can I get a service by right-clicking on an empty space? Note: I have not included any code / images because I could not find any reference. From my experience you should have some kind of input for the right click.

How to detect hardware back button presence in android? -

I have to detect hardware back button appearance in the Android device. Here we have different types of devices, one of which has a soft back button, the other is a hardware back button, whether there is any common method for detecting the hardware back button. I tried the code below to detect hardware back button appearance, but it is not reliable, it is returning the truth to a tablet, which does not have a hardware back button and has soft back The button has. Back to the Boolean = Character Map. Device Husky (KAVE.KKCode_back); Please suggest me some way.

c# - How to get Outlook calendars from global address book? -

I work with Microsoft Office Interop Outlook. I want to receive a calendar from people in the Global Address Book. I already know that the session from the address book receives the data with my personal calendar with the .GetGlobalAddressList () or GetDefaultFolder (Outlook.OlDefaultFolders.olFolderCalendar). do; Is it possible to get calendar data from the global address list? Make sure, call namespace. Create reciprint , then return the recipient object to the namespace. Passard default folder .

java - focus content node of pagination control -

I have a ListView that is in the form of a content node in the Java Fx pagination control. My goal is to set focus on ListView after selecting a new page. Problems with My Viewpoint Sometimes the focus on ListView is but sometimes not. How can I ensure that the focus will be on the list page, after selecting a new page? Platform: Windows 7 JDK 1.8.0.25 (64-bit) Code: package test.focus; Import javafx.application.Application; Import static javafx.application.Application.launch; Import javafx.collections.FXCollections; Import javafx.collections.ObservableList; Import javafx.scene.Node; Import javafx.scene.Scene; Import javafx.scene.control.ListView; Import javafx.scene.control.Pagination; Import javafx.scene.layout.BorderPane; Import javafx.stage.Stage; Import javafx.util.clallback; Application increases in the public class main app {@ Override Public Womens Start (Stage Stage) throws an exception {paging pinignation = New Zealand (5); Last Supervisory List & lt; String ...

sql - Order by the nearest date in the joined table with a where condition - MySQL -

-हालो! मेरे पास उन दो तालिकाओं हैं: 1.events 2.Eventdates + ------------------ + + ----------------------- ---------------- + | आईडी | शीर्षक | | आईडी | इवेंट_आईडी | तिथि | बुक करने योग्य | + ------------------ + + ----------------------------- ---------- + | 1 | इवेंट 1 | | 1 | 1 | 2010-03-25 | 1 | | 2 | इवेंट 2 | | 2 | 1 | 2012-02-20 | 1 | | 3 | इवेंट 3 | | 3 | 2 | 2014-12-15 | 1 | + ------------------ + | 4 | 2 | 2014-10-28 | 1 | & LT; | 5 | 2 | 2014-10-24 | 0 | | 6 | 3 | 2014-11-30 | 1 | & LT; | 7 | 3 | 2014-06-17 | 1 | | 8 | 1 | 2014-12-25 | 0 | + --------------------------------------- + अगले घटना के साथ प्रत्येक आयोजन को प्रदर्शित करने के उद्देश्य: उसकी अगली तारीख अगर मौजूद है और यदि बुक करने योग्य है खाली अगर कोई भी इसी परिणाम नहीं यदि आज 2014-10-17 है तो ऐसा कुछ होना चाहिए: 'event2', '2014-10 -28 '' इवेंट 3 ',' 2014-11-30 '' इवेंट 1 ',' '(या नल) - मुझे वास्तव में इसकी आवश्यकता है एक ही प्रश्न ...

java - logback loading all appenders -

मेरे पास 3 एपेन्डर में एक लॉगबैक.एक्सएमएल फाइल है: 1 कंसोलएपैण्डर और 2 फाइलफेपर & Lt;? Xml संस्करण = "1.0" एन्कोडिंग = "UTF-8"? & Gt; & LT; विन्यास & gt; & Lt; एपेन्डर नेम = "स्टडआउट" वर्ग = "ch.qos.logback.core.ConsoleAppender" & gt; & LT; लक्ष्य & gt; System.out & lt; / लक्ष्य & gt; & LT; एनकोडर & gt; & Lt; पैटर्न & gt; [% d {yyyy-MM-dd HH: mm: ss}]% msg% m% n% ex & lt; / pattern & gt; & Lt; / एनकोडर & gt; & Lt; / appender & gt; & Lt; एपेन्डर नेम = "बफेकर" वर्ग = "ch.qos.logback.core.FileAppender" & gt; & LT; फ़ाइल & gt; लॉग / b.txt & lt; / फ़ाइल & gt; & LT; संलग्न & gt; सच & lt; / संलग्न & gt; & LT; एनकोडर & gt; & Lt; पैटर्न & gt; [% d {yyyy-MM-dd HH: mm: ss}] - [% t]% -4 आर% -5 पी% c:% n% m% n & lt; / pattern & gt; & Lt; / एनकोडर & gt; & Lt; / appender & gt; ...

PHP imagettftext center text -

I have to focus a text in the image using imagepng; The imagettftext function in php. Here is my code: Include "config.php"; Header ('content type: image / png'); Between functions ($ src, $ start, $ end) {$ txt = explosion ($ start, $ src); $ Txt2 = Explosion ($ end, $ txt [1]); Return trim ($ txt2 [0]); } $ Genuine = "http: // $ _ server [HTTP_HOST] $ _SERVER [REQUEST_URI]"; $ Background1 = "file / bg page"; $ Background = imagecreatefrompng ($ background1); // phones $ Tahma = "file / tarahoma.tff"; $ Bebas = "files / BebasNeue.otf"; $ Italic = "file / taahoma italic.TTF"; $ Bold = "files / TahomaBold.ttf"; A // COLORS $ gray = imagecolorallocate ($ background, 76, 76, 76); $ Dark_shadow = imagecolorallocate ($ background, 16, 181, 188); // NAME Fictional ($ background, $ 32, 0, 181, 173, $ gray, $ twentybus, urlcode (between $ real, "name =", "|"))); Imagepng ($ background); I...

SQL Server run Multiple SQL Table Create Scripts -

So I have a lot of tables which I need to run on a fresh database, they are all in one folder, and their There are more than 250. Is this a good way to go about using SSMS? option 1: use the batch file [to run all the scripts in one click] of the batch file Use but CMD will inherently use sqlcmd. Option 2: Submit multiple SQL files in a single SQL file and then execute in SSMS in one shot Create a simple batch file under the folder (in which your 250 table Creation script live) type * .sql & gt; Allinone.sql Note: open the top of the txt document and then copy the above content and then save it from extension .bat (ex: merge.bat) just that batch Double click on the file will give you a single SQL file that you can run in single go in SSMS.

sorting - Using SORTORDER to sort x.x.x values SQL -

Let's say I'm trying to sort the column "number" numbers = "1, 1.1, 1.1.1, 1.1.2, 1.1.10" when I do ORDER BY numbers, resulted in resolved columns numbers = "1, 1.1, 1.1.1, 1.1.10, 1.1 2 " I know the original column has already been sorted, but it is only for this example ... why not .10 shows before .2? (count the numbers as column type). Because 1.1.10 alphabetical order is before 1.1.2. Quote: The result of setting words or stars in alphabetical order is that all the stars starting with the same letter are grouped together; And all the words beginning with the same two-letter sequence are grouped together in grouping; And so on. Thus the system goes to maximize the number of common initial letters between adjacent words.

javascript - giving buttons in an array an own ID -

I need help for a project doing for school, we need to make a booking system for a cinema chairs I created an array to create but how can I give each button my identity? This is my code: function chair () {for (i = 1; i & lt; = 10; i = i + 1) {if (i & Gt; 3 & amp; amp; amp; & amp; amp; & amp; amp; amp; amp; & amp; amp; amp; amp; amp; amp; amp;; & amp;; 8) {document.write ("& gt; Button & gt; Button & lt; / button & gt;"); } Other {document.write ("& lt; Button & gt; Hi & lt; / button & gt;"); Good, you can do this: Document.write ("& lt; Button ID = BTn +" + i + "& gt; Button & lt; / button & gt;"); Side notes: You & nbsp; & Amp; Mdash; Declare your i variable. In addition to the reason for doing something else, we start with 0 in the programming 1 : For (i = 0; i & lt; 10; i = i + 1) you don ' i = i + 1 can b...

sql - Remove white spaces from string and convert into title case -

Here's the example that I want in output ... I have this Input = " Automated Email Sent " But I need Output = " AutomaticEmailSent " Thanks in advance! is stealing a function from which one takes input text and makes it a suitable case (Otherwise known as title case): make the function proper (@ varchar (8000) as text) varchar (8000) starting @ resat bit; Announce @rate varchar (8000); Ii declared int; Declared @ c char (1); Select @Reset = 1, @I = 1, @reset = ''; Select (@i & lt; = len (@Text)) @ c = substring (@ text, @ i, 1), @rate = @reset + case when @reset = 1 then UPPER (@c) else LOWER (@ c) end, @reset = case when '[a-zA-Z]' like @c, then 0 and 1 end, @ i = @i +1 return @ rate end Then you can add this function to this task: choose REPLACE (dbo.ProperCase (column), '', '') from MyTable

php - Retrive values of array from wp_option table of wordpress -

I've added some values ​​in the wp_option table of WordPress in the Associate array, the result is given below. array ($ computer = & gt; $ mouse, $ mouse = & gt; $ keyboard); Get_option ('policy_number'); Array ([0] = & gt; array ([comoperuter1] = & gt; mouseguo [mouse]] => keyboardview)) Output: / code> How do I get the value of mouseview ? KeyboardWhole You have an array within the array. You want the first item of the original array (index 0), and you want to return your key to value : $ value = Get_option ('policy_number'); Forex currency ($ value as $ value) {resonance $ value ['mouse value']; }

How do i add documents to elasticsearch using NEST Bulk Api -

I have to index 5000 documents from the table below is the code that I use for bulk indexing. Generate Public Action CreateBulk () {var descriptor = new bulk descriptor (); Foreach (db.Attendance.Take test on (5000) .toList ()) {discriptor.Index & LT; Appearance & gt; (Op = & gt; op.Document (new presence {AttendanceId = test.AttendanceId, AttendanceDate = test.AttendanceDate, Estates = test.Estate, Division = test.Division, FieldNo = test.FieldNo, employee = test.Employee, Activity = Test.Activity, volume = test.Quantity})); } Var bulkresult = Elastic client. Bullock (descriptor); Return Redirect Action ("Index"); } But when I run the code, I am getting the following error: System.NullReferenceException user code HRESULT = - + 2147467261 without message The verb = object is not set according to the frequency of the object. is. Source = Nest StackTrace: On the Nest.NestSerializer.SerializeBulkDescriptor (IBulkRequest bulkRequest) i...

java - Is it possible to find an image file extension from its byte array contents? -

इस सवाल का पहले से ही एक उत्तर है: 3 उत्तर पहले से संग्रहीत एक छवि फ़ाइल होने बाइट सरणी के रूप में एक डेटाबेस में, क्या बाइट सरणी सामग्री से छवि फ़ाइल एक्सटेंशन खोजना संभव है? मैं डेटाबेस से बाइट सरणी प्राप्त कर सकता हूं मुझे छवि फ़ाइल को स्क्रीन में दिखाने की आवश्यकता है। इसे प्रदर्शित करने से पहले, मुझे छवि फ़ाइल एक्सटेंशन, जैसे कि .png , .jpg या .jpeg , आदि। अधिकांश फ़ाइल स्वरूपों में एक "मैजिक नंबर" की शुरूआत में कुछ बाइट्स के रूप में जो इंगित करता है कि यह फ़ाइल क्या है। GIF "GIF89a" या "GIF87a" से शुरू होता है, यानी बाइट 47,49,46,38, जेपीईजी एफएफ, डी 8 के साथ शुरू होता है और एफएफ, डी 9 के साथ समाप्त होता है पीएनजी 89 से शुरू होता है, 50,4 ई, 47,0 डी, 0 ए, 1 ए, 0 ए मैजिक नंबर के बारे में अधिक देखें अन्य प्रारूपों के लिए आप जादुई नंबर को Google कर सकते हैं कुछ के पास कोई भी नहीं है।

linux - How to write a program called biggest that takes any number of arguments -

So I'm trying to write a program that argues in a large number. For all the arguments in the file, this file gets most of the words in it, and prints a line such as: The file is the largest number (37) There are 37 words in the file named "whatever", which is in the form of another file in the more (or similar) current directory. If no arguments are valid files, then the following line should be printed in stderr: Largest: A valid file name was not specified The command looks like wc thanks following Keep in script and enjoy: for i; Wc -w $ i; Did Sort-N | Tail-1 Cut-D "-f2 PS: When you do not help yourself, no one wants to help, this was a time group for me; -)

c# - Is WP Silverlight 8.1 application installed on SD card or on internal phone memory? -

I have a Windows Phone Silverlight 8.1 C # project I I know that users can choose That can be used to install new store applications or that application from SD to phone and vice versa. I also know that I can include in the package to restrict the SD card installation. But this is only available for Windows Phone 8.1 projects. Either way, I would like to check if the application was installed on the SD card or on internal phone memory, at run-time.

javascript - Ui Router - nested view not showing up ($viewContentLoaded not fired) -

दृश्य / index.jade: लेआउट ब्लॉक सामग्री डिवेल (UI- दृश्य) विस्तारित करता है दृश्य / आंशिक / उपयोगकर्ता। जेड h1 मार्ग 1 घंटा एक (ui-sref = "। प्रोफाइल") सामग्री डिव दिखाएँ (ui-view ) js / appStates.js 'सख्त उपयोग'; Var ऐप = कोणीय। मॉड्यूल ('myApp'); App.config (['$ stateProvider', '$ urlRouterProvider', फ़ंक्शन ($ राज्य प्रदाता, $ urlRouterProvider) {$ urlRouterProvider। अन्यथा ("/ उपयोगकर्ता"); $ stateProvider .state ('उपयोगकर्ता', {url: '/ उपयोगकर्ता ', TemplateUrl:' आंशिक / उपयोगकर्ता '}) .state (' user.profile ', {url:' / प्रोफ़ाइल ', टेम्पलेट:' & lt; h1 & gt; मेरे संपर्क & lt; / h1 & gt; '});}])); 'मेरे संपर्क' कभी भी दिखाई नहीं देते ध्यान दें लिंक सही लगता है और मैंने देखा कि $ viewContentLoaded को नेस्टेड दृश्य पर कभी नहीं कहा जाता है, यह सुनिश्चित नहीं है कि क्यों । कोई भी मामला कहां से बुलाया जाना चाहिए? आईआरसी चैनल में त्व...

jquery - How to include Password Strength Validator in MVC 4 -

I am struggling to find a way for working password strength testers, but have not found the solution yet. I have ajaxbasegenform in partial view for some simple input. Here's my view: @model EntryViewModel & lt; Style & gt; Input.input-validation-error, textarea.input- verification-error, select.input-validation-error {background: # FEF1EC; Limit: 1 px solid # cd 0aa; } .field-validation-error {color: # C55050; } & Lt; / Style & gt; @ (Ajax beniform ("create", "entry", new Ajax option {HttpMethod = "Post"})) {@ Html.AntiForgeryToken () @html. Validity valid (true) & lt; Div class = "editor-label" & gt; @htmllabelfor (model = & gt; model .title) & lt; / Div & gt; & Lt; Div class = "editor-field" & gt; @ Html.TextBoxFor (model = & gt; model .title, new {@class = "form-control"}) @html. Validation message (model = & gt; model. Title) & lt; / Div & gt; & ...

opentsdb - How do you create trend line in grafana charts -

I am using graphfan with opentsdb, I can create charts with average, max, minute etc., but I Do not see how a trend can be linked. Is it possible to put a trend line on graphs? I found a way to do this, use the moving average function, and for really much Set the size of the window, as in thousands. The higher you set it up, the easier it becomes trendline.

cocoa touch - iOS 8 bug with navigation stack / rotation? -

मेरे पास तीन UIViewControllers हैं: vc1 , vc2, और वीसी 3 जो एक UINavigationController पर उत्तराधिकार में प्रकट होते हैं। vc1 में निम्न रोटेशन गुण हैं: - (BOOL) चाहिएअयुरोटेट {वापसी हाँ; } - (BOOL) चाहिएअयुरोटोटेटटोइंटरफेसओरिएन्टेशन: (यूआईएनटरफेसऑरिएन्टेशन) सेइंटरफेसऑरिएन्टेशन {रिटर्न (इंटरफ़ेसओरिएन्टेशन == यूआईएनएटरफेसऑरेंटेशन पोर्टेट); } - (एनएसयूइन्टेगर) समर्थित इंटरफेस ओरिएन्टेशन {वापसी यूआईएनटीफ़ेरेशन ओरिएंटेशनमास्क पोर्ट्रेट; } - (UIInterfaceOrientation) पसंदीदा इंटरफेसऑरेंटेशनफॉरेंसिंग {वापसी UIInterfaceOrientationPortrait; } जबकि vc2 और vc3 में निम्न रोटेशन गुण हैं: - (BOOL) चाहिएअयुरोटेट {वापसी हाँ; } - (BOOL) चाहिएअयुतरोटेटटोइंटरफेसऑरेंटेशनः (यूआईएनटरफेसऑरिएन्टेशन) सेइंटरफेसऑरिएन्टेशन {रिटर्न (इंटरफ़ेस ऑरिएटेशन! यूआईएनपरफेसऑरेंटेशन पोर्टेटउपसाइडडाउन); } - (एनएसयूइंटेगर) समर्थित इंटरफेस ओरिएन्टेशन {वापसी यूआईएनटीफ़ाफ़ाइरेंटेशनमास्क AllButUpsideDown; } - (UIInterfaceOrientation) preferredInterfaceOrientationFor प्रस्तुतीकरण {वापसी स्वयं। PresentedViewCo...

javascript - How to display output of function from ng-init in div? -

trivial for most Well then I have this div I would have been set on the right to bind some values ​​after ng-if and stated after nG-Int .. being called my nG-Int on this point but the message is not binding. I can have the wrong tags but what do you mean by me .. I want the function to be called after my statement is true. & lt; Div ng-repeat = "field fieldData" in the model & gt; & Lt; Button class = "btn-xs" ng-show = "! ILock (field.id)" ng-click = "openfield (field)" & gt; & Lt; / Button & gt; Edit & lt; Div ng-if = "isLocked (field.Id)" ng-init = "msg = getLockMessage (field.Id)" ng-bind = "msg" & gt; & Lt; / Div & gt; & Lt; / Div & gt; See this plunker: There is a little example based on your HTML, and it works; Elements change the element changes inside the parent, because the same variable is changed if too many field data exists. JS: v...

php - How to edit the following script which grabs data from a text file? -

I want to do 2 things on my script below, in which I am currently struggling. Information about the function: Currently it takes the last 20 lines and displays information based on the requested columns. First) I want to ignore those lines, the same columns are 5 and 13. Example: (The two rows below should be ignored because the column in the first row corresponds to the 5 column 13 and the second row is similar to the first because the first name of column 5 corresponds to the name of the column 13) 1,42,16, 201, Satkovrflo_ugr, 1, 6762160, 39799, 9817242, 6762160, 39884, 10010545, Satkovrflo_ugr, 2, 1351147, 1165, 483259, 1351147, 1115, 241 630, 0 1, 46,27, 201, [StackhouseFlo_User | stackoverflow_userother], 1, 4,078,465, 286,991, 1,594,830, 4,078,465, 287,036, 1,643,156, stackoverflow_user, 2, 1,357,147, 1115, 241,630, 1,357,147, 1065, 120,815, 0 second) I want to include reserved words. Like the above, but I should specify the reserved word: Can say that the co...

How do you enforce unique across 2 tables in SQL Server -

आवश्यकताएँ : हर कर्मचारी को एक अद्वितीय आईडी है (ईपीआईडी) एक कर्मचारी केवल निम्न में से एक हो सकता है, एफटी - पूर्ण समय पीटी - पार्ट टाइम कोई भी कर्मचारी कभी भी एफटी और पीटी दोनों नहीं हो सकता है एफटी एंड amp; पीटी में कब्जा करने के लिए कई अलग-अलग फ़ील्ड हैं कार्यान्वयन : तालिका EmpFT बनाएं (ईपीआईडी ​​इंट प्राथमिक कुंजी, एफ 1, एफ 2, आदि) तालिका एम्पपीटी (ईपीआईडी) बनाएँ इंट प्राथमिक कुंजी, पी 1, पी 2, आदि) - यह दोनों ईपीएफटी और एम्पपीटीटी पर समान ईपीआईडी ​​को रोकता नहीं है। आप डेटाबेस में नंबर 3 कैसे लागू करते हैं? मैं SQL Server 2012 मानक संस्करण का उपयोग कर रहा हूँ। इस विधि को आज़माएं: बनाओ टेबल इम्प (इपिड इन्ट प्राइमरी) कुंजी, टी सीआर (2) नल, अद्वितीय (ईपीआईडी, टी)); सारणी EmpFT (EPID INT प्राथमिक कुंजी, ... अन्य कॉलम टी CHAR (2) नल चेक (टी = 'एफटी'), विदेशी कुंजी (ईपीआईडी, टी) संदर्भ एम्प (ईपीआईडी, टी)) बनाएँ; तालिका EmpPT (EPID INT प्राथमिक कुंजी, ... अन्य कॉलम टी CHAR (2) नल चेक (टी = 'पीटी'), विदेशी कुंजी (ईपीआईडी, टी) संद...

Mysql Query ignoring and where clause -

I have a simple mysql query as shown below. SELECT` om_user`. Id`, `om_user`.`username`,` om_user`.`firstname`, `om_user`.`lastname`,` om_user``role`, `om_user`.email`,` om_user`.status` (Like 'administrator'% id) or (like 'admin'% name) or (password like 'administrator'%) or ('administrator'% salt) or ('role like admin'%) or ' Om_user` or ('first name like' Admin% '') or (like 'admin'% 'like admin admin') or (like 'admin admin') or (like 'admin admin') or address manager (like 'admin%') or Address line 3 'Admin%') or ('admin' like city '%') or (such as' system APK% ') or (or postcode like' admin% ') or (country like' admin '%) or (like' admin% ') or (no contact like' admin% ') or (avatar Like 'admin%') or ('admin%' like the status, 'administrator%') or ('admin%' like passwordRequestSta...

How to make a file whose name contains every printable character in bash? -

I have a little weird problem, I am moving on the NFS file system, it seems that all the hyphens have been translated into large has gone. For example "a-b" "a: b" and "a -b" becomes "a :: b" I would like to test what else he can translate. There is a way to create a file whose name is every ASCII printable character and see what it is. How can this be done in Bash? This is an attempt on a pure bit solution: For name = ((Chernum = 1; chernum See excellent information about converting between letters and numbers in bash.

How to get the number of hours between start and end time when start time greater than endtime in SQL Server? -

How do I start time = '23: 00 by getting the number of hours 00.0000000 ' and expiration time = '07: 00: 00.0000000' SQL server In? I tried to select the DATEDIFF (hour, '23: 00: 00.0000000 ',' 07: 00: 00.0000000 ') but it returns the negative hour -16 . I have to have the result 8 hours. This is a way to: Select when DATEDIFF (HOUR, '23: 00: 00', '07: 00: 00 ') & lt; 0 to 24 + DATEDIFF (HOR, '23: 00: 00', '07:00:00') LSEDED (HOR, '23: 00: 00 ', '07: 00: 00') ED / Pre>

html - Firefox: floated containers don't shrink-wrap responsive images properly? -

This is a very strange issue; I hope I remember some special CSS moves, but I'm thinking that this is a firefox bug. Setup is this: A # frame is DIV which is positioned on all four sides. Inside it, there is a # viewerview DIV, which is set to scroll overflow-X and its height is set to 100% (this has become the last important one.) In it, there is a #Paper_ container DIV, which The initial and white space is: aboper. Finally, inside it, there is a bunch of responsive images, whose maximum height is set to 100% - that is Their height never exceeds the height of the container. This setup is complex because the idea is that #viewport is scrollable, and # Page_ container (which should remove all interior pictures and their total width should be represented) moves inside left and right (I'm hoping to use iScroll on this setup, so #page_container needs the correct width.) #page_container is the right width in Chrome, and when you scroll the # viewport all the way to the right Y...

Python. Shouldn't this work? Error says "NameError: name 'off' is not defined" -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब यह मुझे एक क्यों देता है त्रुटि जब calc == बंद? def calc (): i = "i" जबकि मैं == "i": calc = input ("Enter आपका गणना ") यदि calc! =" Off "या" off ": ans = eval (calc) प्रिंट (ans) अन्य: i =" a " मुद्दा यह है कि आप eval को calc में स्ट्रिंग कर रहे हैं। जब हम खराब वाक्यविन्यास के विषय पर होते हैं, तो यह काम नहीं करता है: यदि "calc" = "बंद" या "बंद": आप इसे इसके बजाय चाहते हैं: अगर calc नहीं ("बंद", "बंद" ): या आदर्श: अगर calc.lower ()! = "बंद":

flask - OperationalError Lost connection to MySQL server at 'reading initial communication packet' DigitalOcean -

I have trouble connecting to my SQL server on digital SF through my flop webpage. The ISSF flask is using the flask-kekeleki to bind the mysql database. I am able to use mysql server via phpmyadmin interface on MyPaddle: 5000 / phpmyadmin Since IGN (I built it in port 80). 5000 / phpmyadmin In my flask app, I specify myipaddress: 5000 / phpmyadmin > SQLALCHEMY_DATABASE_URI = 'mysql: // root: password @ myipaddress: 5000 / databasename' When I use Shell with DB on my database I try to make tables .create_all () - This is not the only answer The cursor blinks forever and then I get the operational error that I quote on the title a few minutes ago To walk Able to obtain similar installation. So I do not know its a flask configuration problem, but there is only one mysql access problem. My webpage is on DigitalAsian (Not sure if MySQL server is behind a firewall or something that makes it inaccessible for the Tie-Address under the Mysql_d section on /...

ruby - Chef::DataBag and RSpec-mocks -- undefined method `recieve' -

मैं list को शेफ़ :: डेटाबैग वर्ग निम्नानुसार है: $ cat spec / spec_helper.rb को "rspec" RSpec.configure {| config | config.mock_framework =: rspec config.mock_with: rspec} $ बिल्ली कल्पना / test_spec.rb की आवश्यकता होती है "spec_helper" की आवश्यकता होती है "महाराज" RSpec.describe "परीक्षण" का वर्णन है "साधारण परीक्षण" इसे "महाराज databag का मजाक उड़ाता है" की अनुमति नहीं (बावर्ची :: डेटाबैग)। को प्राप्त करने के लिए (: सूची) .औंड_रेतन {} अंत अंत अंत $ grep "rspec \ chef" Gemfile.lock | सिर -n 2 मणि ​​"महाराज", "11.16.4" मणि "rspec", "3.1.0" जब क्रियान्वित निम्न त्रुटि rspec मैं मिल । $ बंडल कार्यकारी rspec कल्पना / test_spec.rb एफ विफलताएं: 1) परीक्षण साधारण परीक्षण का मजाक उड़ाता है महाराज databag विफलता / त्रुटि: की अनुमति देते हैं (बावर्ची :: dataBag) करें.अभियान प्राप्त (: सूची)। and_return {} NoMethodError: अपरिभाषित विधि `recieve '# & lt; RSpec :...

java - commandline agument to expand jdbc timeout -

I have to maintain the Java code that has time out with a SQL call. Error: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communication link failure, the last packet was received successfully server 7706.043 milliseconds before. Last packet was successfully sent to server 2 milliseconds ago. I think the program should do so that it takes 2 hours to process the full return value with a SQL call! I've already written a patch which will fix the timeout issue, and other issues, but it will be a month before we can release it to the production server. Is there a way I can configure JDBC to use more timeout windows? I can not touch the code, but is there any way I can use the attribute file or a command line argument to configure the default JDBC timeout? This can be done by updating the URL that is used to connect to SQL. The logic used to extend the exact URL is linked to DB, but this webpage presents them in detail: Here is a copy of the relevant facts; ...

Why is the ArrayList import not working? (Java) -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब निम्न कोड संकलित नहीं होगा , जाहिरा तौर पर क्योंकि "एक ही फाइल में परिभाषित एक प्रकार के साथ आयात का विरोध होता है।" यह काम क्यों नहीं करेगा?! आयात करें java.util.ArrayList; सार्वजनिक श्रेणी के अर्रेइलिस्ट {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {ArrayList & lt; Integer & gt; एएलआईआईटी = नया अर्रेलिस्ट & lt; पूर्णांक & gt; (); }} बस अपनी कक्षा को कुछ और तरह बदलें, जैसे MyArrayList

debugging - No symbols loaded error after installing Update 3 for Visual Studio 2013 -

After updating VS 2013 update 3, now my web service is broken every time I run it in debug mode. I get this error every time because it is VS .. Trying to load the system. Web. PDB file and can not find it or it can not be loaded: System.StackOverflowException was unmanaged Message: System.Web.dll symbol An unrestricted exception of the type 'System.StackOverflowException' type in load information. C: \ Program Files X86) \ IIS Express \ System.Web.pdb: Can not locate or open PDB file. C: \ Windows \ Microsoft.Net \ Assembly \ GAC_32 \ System.Web \ v4.0_4.0.0.0__b03f5f7f11d50a3a \ System.Web.pdb: PDB file can not locate or open. C: \ Windows \ System.Web.pdb: PDB file can not locate or open. C: \ Windows \ symbols \ dll \ System.Web.pdb: PDB file can not locate or open. C: \ Windows \ Del \ System.Web.pdb: PDB file can not locate or open. Some time ago it is a separate .pdb file but it is always one. PDB file that has failed to load. Why is this also trying to...

angularjs - Angular Directive Two-Way Binding Issue -

I am making a custom input directive for some additional features. app.directive ('MyTextInput', [function] {var Directive = {}} Directive. RTE = 'A'; Director.Squipe = {TextualDom: '='}; Directive .link = function ($ scope, element, etter) {/ FUnctionality}; directive.template = '& lt; input ng-model = "text mode" type = "text" & gt;'; return instructions;}] ); And using separate scope property textModel for binding in two ways. And the parent area is HTML: Variables in the control area $ scope.myScopeVariable = ""; is defined. When I do this The directive input that is typed in & lt; Span & gt; is able to print in the tag. It shows that it is updating. The problem is. In the field of parents. I have a method that will be executed on a button click. $ scope.do Some = function () {console.log ($ scope.myScopeVariable); }; Click the button The log is empty which is supposed to...

MySQL select AVG, ORDER BY, GROUP BY & LIMIT -

Statement statement does not work, but I have to find out why average Choose (___________________US_SEConds); I want to get the average of the most recent 1000 rows for each line type. created_at type DATETIME and ROW_TYPE type of VARCHAR is If you want only the 1000 most recent rows Regardless of Row_type, and then get the average of delay_in_seconds for each row_type, which is quite a straightforward question. For example: select t.row_type, AVG (t.delay_in_seconds) from (select r.row_type, by r.created_at DESC r from 1000 A_table R command LIMIT. Delay_in_seconds) T group by T I know that this question does not meets the requirements specified. (I know that it does not satisfy what I had understood as a specification.) If we want each the most recent 1000 rows for row_type , Whatever will be quite straightforward ... if we are using a database that supports analytical functions. Unfortunately, MySQL does not provide support for analytical functions. But it ...

javascript - Input Placeholders...Cross-Browser Compatible and Correct Form Validation -

I am currently trying this for placeholders for my input: & Lt; Input name = "user name" id = "register_username" onfocus = "if (this.value == defaultValue) {this.value = '';}" onblur = "if (this.value == '') {this. Value = defaultValue} "value =" username "/> Works great! :) Cross-Browser Compatible My problem though is this ... I have read that these default values ​​can mess with your form validation. For example: If you do not fill in the input, then it will pass validation to fill the input, even if the default value (and therefore not actually filled) in it. The other option I know is that placeholder = "", which is not cross-browser compatible ... bu :( but otherwise works just as I want! What is my second option? My first Javascript is my intention to verify? (I know that I can use the "if" statement in my PHP form process page ... saying that "If input value 'e...

php - Do I need to sanitize strings used to declare geometric shapes? -

I want a SQL function to get a string, such as point_str = "47.572820 -34.628906" . Inside the function, the string will be converted into a shape variable, for example SET xpoint = PointFromText (concat ("POINT (", point_str, ")")); Before sending this string from php to sql, do i need to hybridize it (for example floatval )? You can throw an error on both situations; Either when the text is read, then when it is read when the data is read and the function fails, then all the visitors of that page will see the error. If you put an error on creation, there is only one person who will never get the wrong data in your database as well as error. If input is dependent on input, make sure input is suitable for output and compress it.

java - Spring: calling method before injection -

मैं एक साधारण उदाहरण के साथ मेरी समस्या समझाऊंगा: सार्वजनिक वर्ग ए () {निजी बी बी; सार्वजनिक ए () {/ * ... * /} सार्वजनिक बी getB () {/ * ... * /} @ स्वामित्व वाली सार्वजनिक शून्य सेट बी (बी बी) {/ * ... * /} सार्वजनिक init (int x , Int y, float rx, float ry) {/ * ... * /}} और सार्वजनिक वर्ग बी () {निजी ए एक; सार्वजनिक बी () {/ * ... * /} सार्वजनिक ए getA () {/ * ... * /} @ स्वामित्व वाली सार्वजनिक शून्य सेट ए (ए ए) {/ * ... * /} सार्वजनिक init (int x , इंटैक्शन से पहले मुझे init () विधि की आवश्यकता है, क्योंकि तुरंत इंजेक्शन के बाद इंजेक्शन से इंजेक्ट किए गए घटक को प्रति सेकंड लूप एफपीएस समय में कहा जाता है, और निश्चित रूप से इसका आरंभ नहीं किया जाता है इसलिए मुझे NullPointerException मिलता है। मैं सेटर इंजेक्शन का उपयोग करता हूं और context.getBean ("ए") । क्या कोई तरीका है init () इंजेक्शन से पहले? मुझे विश्वास है कि आप जो खोज रहे हैं वह है @PostConstruct , जो JSR250 में निर्दिष्ट है, जो स्प्रिंग को चलाने के लिए कहता है विधि के रूप में जल्द ही ...

javascript - Passport js login from cross-domain? -

How can a user log in from another domain? The entry form and Ajax posts of the main site have been sent to a root on my NodesJS server. Submit form on node server (app) with // website $ ('# submit-project-form') .submit (function (e) {e.preventDefault (); var formData = $ (This) .serialize (); $ .ajax ({url: "http: // localhost: 3100 / login", data: formdata, type: "POST", crossDomain: true, dataType: "json", success : Function (feedback) {console.log (response.responseText);}, error: function (response) {var success = $ ($ .parsseHTML (response .responseText)). Filter ("body"); console.log ( Response.responseText);}});}); // Passport Post Method Methods Listen to the route to website postpay ('/ login', 'local login', {successRedirect: '/', // re-run user.index, which should be in the form of a user Should and provide profile failure again: '/ login', // redirect back to the signup page if there i...

ml - SML doesn't acknowledge ord or chr -

मैं इस उदाहरण का उपयोग मजेदार incFirst s = chr (ord s + 1) ^ उपस्ट्रिंग (एस, 1, आकार एस -1); लेकिन मेरे "मानक एमएल न्यू जर्सी v110.76 [निर्मित: मंगल अक्टूबर 22 14:04:11 2013]" इसे पसंद नहीं है। त्रुटि: ऑपरेटर और परिचालन सहमत नहीं हैं [टाइकॉन बेमेल] मैं यह भी नहीं कर सकता: & gt; Ord "c"; त्रुटि के बिना त्रुटि: ऑपरेटर और परिचालन सहमत नहीं है [टाइकॉन बेमेल] यह पहचान नहीं करता है लोड "चार"; या तो मैं क्या कर रहा हूं? आपको ord # "c" क्योंकि "c" एक स्ट्रिंग है और # "c" एक वर्ण है। आपके फ़ंक्शन में दो समस्याएं हैं: एक स्ट्रिंग पर ord का उपयोग करने की कोशिश कर रहा है एक बदसूरत हल यह है: मजेदार incFirst s = चार। टॉस्टिंग (chr (ord (स्ट्रिंग.sub (s, 0)) + 1)) ^ substring (s, 1 , आकार एस -1); मुझे लगता है कि आप शायद विस्फोट और implode का उपयोग करके एक सुंदर समाधान कर सकते हैं और एक चलो के साथ ब्लॉक करें एक पैटर्न मैच लेकिन मुझे यह करने के लिए मेरे सिर के ऊपर से पर्य...

c# - Xamarin.iOS SQLite db not inserting -

I am attempting to populate an SQL Light database on the iPhone. I am a parsed object that I re-invent my list. I am receiving list public class clinics {{PrimaryKey, AutoIncrement} public integer id {}; Set; } [Indexed] Public string name {get; Set; } Public String Address1 {get; Set; } Public string address 2 {get; Set; } Public string Data1 {get; Set; } Public String Data 2 {Received; Set; } Public String Data3 {get; Set;} public string PostCode {get; Set; } Public string latitude {get; Set;} public string long {get; Set;}} Then I'm using folloiwing to insert in db public override zero ViewDidLoad () {base.ViewDidLoad (); TblResults.Source = New Search ResultTableSource (tableItems); TblResults.AutoresizingMask = UIViewAutoesizing.All; // Figure where the SQLite database will be. Var document = environment Gatefolder Path (Environmental specialfolder. Personal); _pathToDatabase = Path. Cobain (document, "discoveryfizio.db"); PopulateFromParseLocalDB (); } Pu...

ios - XML Parsing and set variables to instance -

I have created a category called "Event". There are three variables in this class The main file of this class After starting an example, after parsing an XML file, but when I had to go to recover the created frequency, which I did not know Where am I wrong #import "mkViewController.h" #import "evento.h" mkViewController @interface () @end @implementation mkViewController - (zero) viewDidload {{Super Viewedload]; NSURL * url = [NSURL URLWithString: @ "http://xxxxx.it/xxx.xml"]; Parse = [[NSX Parser Allok] Init with content of URL: URL]; [Parser set deliaget: self]; [Parsets setSoldRSOLVXACATTTS: NO]; [Parser pars]; NSMutableArray * datiEvento = [NSMutableArray array]; Evento * eventoTrovato = [[Event Init]] Eloc; } - (zero) parser: (NSXMLParser *) parser didStartElement: (NSString *) elementName namespaceURI: (NSString *) namespaceURI qualifiedName: (NSString *) QName responsible says: (NSDictionary *) attributeDict {element = elementNa...

cuda - Do I really need MPS when running multiple MPI ranks on a single GPU, or Kepler's Hyper-Q itself is enough? -

Actually I would like to run multiple MPI ranks on a single GPU (NVidia K20c), and I know the existence And Kepler However, my question hyper-q is enough for my need? Or would I have to use MPS? According to the hyper-Q link above, "no additional coding effort is required to enable Hyper-Q. It takes all 20 GUUs of a Tesla, which has the CUDA5 installation and to determine the variables of the environment Many MPI ranks are ready to use GPU-Hyper-Q. " Does this mean that I do not need an MPS? ps, I am also aware of the following questions on a similar topic, but it seems that my question is not answered clearly thanks You can run multiple MPI ranks on a single GPU without MPS. In that case, all the rank (GPU) code will be sorted. The GPU code given will begin executing only after the GPU code associated with the previous rank completely expires and is out of the GPU. If you want to get an opportunity to rank GPU code from a rank with a GPU code, then MPS wil...

regex - match regexp against variable string in perl/sed/awk -

मुझे यह अभिव्यक्ति है: XX घंटे, वाई वाई मिन, जेड एस एस, XX, YY या ZZ 1 या 2 अंक हो सकते हैं। इसके अलावा "एक्सएक्स एच" या "एक्सएक्स एच, वाई वाई मिन," संभवत: मौजूद नहीं है। मैं किसी भी भाग्य के साथ कुछ मिलान समूह regexp की कोशिश की है। धन्यवाद संपादित करें: उदाहरण 1: 12 घंटे, 23 मिनट, 2 s, आउटपुट 1: 12 23 2 उदाहरण 2: 3 मिनट, 59 s, आउटपुट 2: 3 59 गूंज "12 घंटे, 3 मिनट, 56 s , "| Tr -cd "0-9" आउटपुट: 12 3 56 गूंज "12 घंटे, 3 मिनट, 56 एस," | Tr "," "\ n" | एके '/ एच / {प्रिंट $ 1}' 12 प्रतिध्वनि "12 घंटे, 3 मिनट, 56 एस," | Tr "," "\ n" | Awk '/ min / {print $ 1}' 3 गूंज "12 घंटे, 3 मिनट, 56 एस," | Tr "," "\ n" | Awk '/ s / {print $ 1}' 56

javascript - can't access object elements after pushing into 2d array? -

यह अजाक्स कॉल से जेसन डेटा {"वाहनआईडी": 1, "ट्रैक्स ": [{" TrackID ": 1," ट्रैकपाइंट ": [{" अक्षां ": 36.25514030456543," LNG ": 33.501180542295344}, {" अक्षां ": ३६.२५५१४०३०४५६२," LNG ": 33.5011805422952}, {" अक्षां ": ३६.२५५१४०३०४५६१, "LNG": 33.5011805422951}]}, { "TrackID": 1, "ट्रैकपाइंट": [{ "अक्षां": 31.25514030456543, "LNG": 31.501180542295344}, { "अक्षां": ३१.२५५१४०३०४५६२, "LNG": 31.5011805422952} { "अक्षां": ३१.२५५१४०३०४५६१, "LNG": 31.5011805422951}]}]} Google पटरियों और प्रत्येक ट्रैक में अंक से अधिक पुनरावृत्ति के लिए नक्शे छोरों के लिए दो, मैं क्या कर रहा हूँ के सबसे मुद्रण का उपयोग कर मैं कंसोल के लिए (var i = 0; i & lt; numtracks; i ++) में {var numpoin Ts = परिणाम.ट्रैक [i] .trackPoints.length; Arr [i] = नया सरणी (numpoints); // अंक console.log के लिए 2d सरणी बनाना ("*****...

c++ - Return an iterator to an STL container from a template function -

I was trying to return a vector to a template function with a template function (not yet template class members - I'm still writing that the compiler kept me errors (originally copied below to facilitate Google searches). I basically knew what was the problem, but the exact syntax was elusive. I've read the Internet, searched the SO, but did not find any answer in it which worked. I thought I should ask questions and answer myself here. (signed) The original code is as follows: #include & lt; Vector & gt; # Include & lt; Algorithm & gt; // std :: low_bound template & lt; Typename T & gt; Std :: vector & lt; T & gt; :: Iterator insertIntoVector (std :: vector & lt; T & gt; vec, const T & amp; val) {itr = [some study :: vector & lt; T & gt; Iterator]; Return IRR; // return iterator back to val in vec} // insert insert intersector (); Compiler errors: error C2145: syntax error: missing ';' Identifier ...

apache - MAMP vhosts stopped working after a restart -

I have been using MAMP for a long time now, and by this week everything has been quite pitching. I have seen through SEO and Google (inside and out), but I can not understand this for my life that why can not I reach my site after I restart my computer for a sudden update. .. Nothing has changed, I still have the proper name in the host and httpd-vhosts.conf files. Has anyone had their vhosts with MMP suddenly stop working together all at once? This is driving me mad! & lt; VirtualHost * & gt; DocumentRoot "/ Applications / MAMP / htdocs / hoh / public /" servername hoh.local & lt; / VirtualHost & gt; and host file: ## # Host database # # Local Host is used to configure loopback interface # when the system is booted Used to be. Do not change this entry ## 127.0.0.1 Localhost 255.255.255.255 Broadcastost :: 1 Localhost 127.0.0.1 Ho.Local Learning.dev mvc.dev The site on which I really do work today It was Hoh. The local one (it was hoh.dev, bu...

xcode - How do I change the WKWebview's user agent in OS X Yosemite? -

How do you change the user agent used by WKWebview ? The old WebView , I can write the following to change the user agent: MyWebView Set CustomUserAgent: @ "Macintosh ; Intel Mac OS X 10_9_4) Apple WebKat / 537.77.4 (KHTML, like XBOX) / 7.0.5 Safari / 537.77.4 "]; Swift is very easy to simply navigate your app didFinishLaunchingWithOptions NSUserDefaults.standardUserDefaults (). RegisterDefaults (["UserAgent": "Custom Agent"]) If you want to add an existing agent string: UserAgent = UIWebView () . StringByEvaluatingJavaScriptFromString ("navigator.userAgent")! + "Custom Agent" NSUserDefaults.standardUserDefaults (). RegisterDefaults (["UserAgent": userAgent]) Note: You must uninstall and restore the app to avoid adding an existing agent string.

html - Display one letter as another in page while copying untransformed text -

सीएसएस में, .someclass {text-transform: uppercase} वर्ग के साथ सभी पाठ का अनुवाद कुछ वर्ग अपरकेस पर, लेकिन जब मैं पाठ का चयन करता हूं, कॉपी करता हूं, और किसी पाठ संपादक या ई-मेल में पेस्ट करता हूं, तो अक्षरों में उनके मूल केस को बरकरार रखा जाता है। क्या कुछ क्लाइंट-साइड वेब स्टाइलिंग टेक्नोलॉजी सीएसएस के अलावा अन्य किसी दस्तावेज़ को एक कस्टम टेक्स्ट ट्रांसफ़ॉर्मेशन को परिभाषित करता है ताकि मामले के अलावा अन्य चीजें बदल सके, जैसे r से w या f से ꝼ , जब उपयोगकर्ता पाठ की प्रतिलिपि बनाते हैं तब परिवर्तन लागू किए बिना? अनुशंसित जावास्क्रिप्ट की उत्तर मैं कुछ कारणों के लिए स्क्रिप्ट के बजाय कुछ (गैर-सीएसएस) घोषणात्मक स्टाइलिंग तकनीक का उपयोग करना पसंद करता हूं: मैं मूल पाठ को वापस लाने के लिए कॉपी-और-पेस्ट चाहता हूं, ट्रांसफ़ाल्ड टेक्स्ट नहीं , जैसा कि text-transform संपत्ति के समान होता है। मुझे काम करने के लिए "पृष्ठ में खोजें" (Ctrl + F) चाहते हैं यदि उपयोगकर्ता बिना ट्रांसफॉर्मेड अक्षर को लिखता है। मुझे अपनी साइट के कितने दर्शकों ने नोटिफिकेशन या कुछ अ...

javafx 2 - NPE in FXMLLoader -

I have a hybrid of Swing (legacy) and Java FX components is one such application. It worked fine until I threw the same as using a preloader place, now all my JavaFX components that fxml files in place and FXMLLoader try do not work because of an NPE New FXMLLoader () (with or without parameters), or FXMLLoader.load () . I am using 64-bit Java 7u67. stack shows trace: On javafx.fxml on javafx.fxml.JavaFXBuilderFactory (JavaFXBuilderFactory.java:85) javafx.fxml.JavaFXBuilderFactory (JavaFXBuilderFactory.java: 53) but java.lang.NullPointerException ... FXMLLoader.load javafx.fxml.FXMLLoader.load on (FXMLLoader.java:2782) (FXMLLoader.java:2771) His work is square before putting a preloader, a start And after that the main application of the main () method calls it basically the same thing in Preloader, where the main () method of application is called under the preloader () method. I am stumped as to what is the reason. Any ideas? I want to review the source code, ...

sql azure - Blocking Database access from test server to production database and vice versa -

We have set up two sites and two databases on Ajur. A test site and a production site, we had a recent issue where a developer made a mistake and deployed the code with a connection string on our production website, which indicates our test SQL Server. I am thinking that it is possible to limit access to production SQL Server so that it can only accept connections from the production web site. Limit testing and SQL Server so that it can only accept connections from the testing web site. I would eventually like to configure it so that it is again, the site will not work just because it will not be certified properly, I am in the process of creating an additional set of configuration files so that we have a set that can test related settings There is one for points and output, but how do you prevent someone from touching the bad environment strings from a bad environment? All the database activity on the site is going through the Web API.

Solr Nutch integration on Cloudera -

Has any Claudera been able to work together on the cluster? Get the general education from nk to schema.xml and change the original to a solver. After that, /opt/apache-nutch-1.9/bin/crawl urls crawl http: // localhost: 8983 / solr 2 -depth 3 -topn 100 Will list the crawled pages in Solar, however, in Claudera cluster, sits in the schema.xml zoochipper. After changing the zucheeper copy from one of nutch to one, the solr cluster does not work any longer, after the restart, one of the two solr servers in the cluster crashes after the resume I can not get any directions on the web Is anyone know about this?

java - Blocking FixedThreadPool -

I have an application that uses a fixedTrappull with 10 threads to run database queries if a constant high It starts using significant amount of memory to query the number and begins to take more time to execute the questions. Is there a way to create a FixedThreadPool block in all threads, or when the queue reaches a certain size so that I do not end up with this problem?

ruby - Rails app with basic symmetric encryption -

I am a fairly new developer and I have had to face my first project where it will definitely be able to store Encrypted field in database. I am on the most current version of Ruby / Rail, hosted on Heroes and using GIT for source control. I have installed the simetric-encryption gem and sorted it to work. But, when it comes to security, I know that "sort" is not cut. Therefore, I installed the env variable with a key inside the hierarchy and created a column in my database which : encrypted_access_code . When I submit a form, when passing the : access_code parameter, it stores an encrypted version inside the : encrypted_access_code column. If I call the .decrypt method on that string, then the method decrypts it properly and returns the original value. It seems, what I can tell, all are working properly. The problem is that I am still able to call MyModel.access _code in the console, and it returns the unencrypted value that column is now my database Does not ...

perl - DateTime::subtract_datetime returns zero for difference in hours -

यहां एक न्यूनतम कामकाजी उदाहरण है: #! / Usr / bin / perl का उपयोग सख्त; चेतावनियों का उपयोग करें; दिनांक समय का उपयोग करें; मेरा $ अब = दिनांक समय- & gt; नया (दिन = & gt; 17, महीना = & gt; 10, वर्ष => 2014,); मेरी $ तारीख = दिनांक समय- & gt; नया (दिन => 3, महीने = & gt; 10, वर्ष => 2014,); मेरी $ डर = $ अब- & gt; घटाव_डेटाइम ($ तारीख); प्रिंट 'घंटे =', $ dur-> घंटे (), "\ n"; जब मैं इसे अपने सर्वर पर चलाता हूँ तो मुझे यह मिलता है: hours = 0 यह गलत है। सही उत्तर 14 दिन = 336 घंटे है। कोड में क्या गलत है? सभी दिनों में 24 घंटे नहीं हैं, इसलिए 14 दिन हमेशा 336 घंटे नहीं होते हैं। यदि आप घंटों में अंतर चाहते हैं, तो आपको विशेष रूप से उस (या ऐसी कुछ चीज़ों के लिए पूछना होगा जो मिनटों में घंटों तक परिवर्तित हो सकता है) delta_ms ऐसा करने की विधि है। मेरे $ अब = दिनांक समय-> नया (दिन => 17, महीना = & gt; 10, वर्ष = & gt ; 2014,); मेरी $ तारीख = दिनांक समय- & gt; नया (दिन => 3, महीने = & g...