Posts

Showing posts from March, 2010

php - I don't get why my form isn't working -

इस सवाल का पहले से ही एक उत्तर है: 24 उत्तरों मेरा कोड कुछ मिनट काम करता है पहले। मैंने कुछ भी नहीं बदला, मैंने परीक्षणों के लिए फिर से कोशिश की, अब कुछ भी काम नहीं कर रहा है। मैं बस ई-मेल करने के लिए एक बहुत सरल रूप करना चाहता हूं: HTML & lt; form action = "mail.php" method = "post" id = "inscription" & gt; & Lt; input name = "nom" type = "text" id = "nom" प्लेसहोल्डर = "नोम" & gt; & Lt; input name = "prenom" प्रकार = "text" id = "prenom" प्लेसहोल्डर = "प्रीनम" & gt; & Lt; इनपुट नाम = "ईमेल" प्रकार = "ईमेल" आईडी = "ईमेल" प्लेसहोल्डर = "ई-मेल" & gt; & Lt; input name = "tel" type = "tel" id = "tel" प्लेसहोल्डर = "01.23.45.67.8 9" & gt; & Lt; input name = "company" type = "text" id = "company" प्लेसहोल्डर = ...

html - Is it possible to format the code as it makes Chrome Developer Tools in the tab "Elemets"? -

उदाहरण: पहले -> बाद -> "post-text" itemprop = "text">

Track all logins on to a single SQL Server database -

Thanks in advance for any help. We have a special database on a SQL Server 2012 box with about 20 other databases. What do I need is a method / script / audit (open brain about solution) which just to track someone (successfully / unsuccessfully) because this is a special database server (single database key) The end user does not want information on any other database that sits on the server), it will also be time logging the attempt was made and it must be tracked through the SQL Server login or application which Once we have this information that we need to store it in any way, I say in some way that the share of storage depends on the solutions suggested to me, So I also openly think about it. Any help will be great because I am scratching my head over it. This is actually a tool created in a SQL Management Studio. Please refer the attached link in this regard Once set up, all events will be recorded in the error log.

php - Searching MySQL database using volley -

I tried to retrieve all the data from a MySQL database using a php and in doing this in my app Success was achieved. Now I tried to use an editor to pass a string on php but I am unable to do this. I was successful but without using the volley library. Is there any way to add a "keyword" after the URL using the volley, because I need the only thing to work for? Example and Code: In the previous version, I have JSONObject json = jParser.makeHttpRequest (url_search, "GET", parameter); want to pass it as a url string: http: //myip/myproject/search.php? Keywords. I am using this code, such as: field on edittext -> searchIntent.putExtra ("keyword", txtkeyword.getText (). ToString ()); In my search activity: increases the public class AllEmpresasActivity activity {// tag personalized last string TAG = AllEmpresasActivity.class.getSimpleName (); // Empresas json URL personal static final string URL = "http://192.168.1.90/android_connect/s...

Upload Image on Facebook using sdk 3.19.0 from android -

I use this code to share links and images from the URL Private UILifeHelper UI Helper String FB Photo Attoder = Faucet; Protected void onCreate (bundled saved instenstate) {super.onCreate (SavedInstanceState); UiHelper = New UiLifecycleHelper (this, blank); UiHelper.onCreate (savedInstanceState); } Zero btn_clicked (see view) {FacebookDialog Share Dialog = New FacebookDialog.ShareDialogBuilder (this) .setApplicationName ("Fiver"). SetLink ("https://play.google.com/store/") .setPicture ("http://www.sweetkidsapps.com/wp-content/uploads/2013/02/cool-coloring-great-kids-app .jpg ") .build (); UiHelper.trackPendingDialogCall (shareDialog.present ()); } And this is working fine but the issue is that I want to upload an image to Facebook and send it to the set in the picturePicture, how can I do this? Po Things I've investigated on Google are mostly old. I'm not sure that you're thinking it's right. Facebook Share Dialog allows ...

objective c - Keyboard Type Decimal Pad - Decimal point background is not in full rectangle - iOS8 -

Image
If you selected the keyboard type decimal position by running an app, the decimal digit background is not in full rectangle in iOS 8 . it's so weird. Is there any solution in any body? Many thanks.

regex - Overcomplicating regular expression -

मेरे पास निम्न नियमित अभिव्यक्ति है ^ (?: \ / Foo \ /) ([A-Za-z0 -9 -] {0,}) | ^ (?: \ / Foo) को / foo से मेल खाना चाहिए, / foo / , / Foo / abc-123 लेकिन / foobar नहीं यह काम करता है, मैंने इसका परीक्षण किया है, लेकिन मुझे यकीन है कि कुछ चीज़ों का उपयोग करके एक सरल तरीका दिखता है। मैं इसे सरल कैसे कर सकता हूं, या मुझे क्या करना चाहिए? हो सकता है कि यह सिर्फ मुझे इसके बारे में कुरूपता के बारे में पागल हो रहा है। हो सकता है कि ^ \ / foo \ / ([A-Za-z0-9 -] {0,}) | ^ \ / foo अभी भी सही नहीं दिखता नोट लक्ष्य को abd-123 पर कब्जा करना है, लेकिन / या रिक्त स्ट्रिंग कैप्चर नहीं करना है ^ \ p>

restriction - how to make mpirun only be run from PBS -

As an Administrator of HPC, I want to restrict users from running the terminal to MIPUON. But the user should be able to use the MIDI command from the PBS script. Is there any way to do that? Thanks ... Different administrators take different perspectives on this: Using PAM is configured to allow only a few users to SSH on a host. Use something like a script from pbstools This script can be configured to kill either processes that may not be related to the active function or just can notify you. Other administrators catch only a user who does this (given that there is a lot more on the load node, jobs are running slow, etc.) and then severely punish them. So that they do not do it again. Maybe different people use it in other ways, but these are those that I come most often.

c# - FileUpload inside jquery dialog, hasfile false -

I have a jquery UI dialog on my page, there is nothing more than an ASP file UPolod control: & asp: fileUpload runat = "server" id = "foo attachment" /> 1 button in the dialog is "OK". Those buttons just close the dialog. $ ("# attachment-dialog") Dialog ({height: 300, width: 400, modal: true, resizable: false, autoOpen: false, button: {"OK": function () {$ (this) .dialog ("closed")}}}}) ; Pressing the Save button on my page. The method which has an ASP.NET button is called SaveAttachement. The problem is that fuAttachment.HasFile (fileupload control) is false back. If I move the fileupload control out of the jQuery UI dialog HasFile = true But should be inside the control dialog. There is no updatepanel within the specific page The issue is happening because the dialog is out of the form $ ("#nectment-dialog"). Dialog ({appendTo: " form", height: 300, width: 400, Mod...

android - An existed Layout can not be resolved to a field -

I have a customized view, and in this moment of the game I am developing, I want to show a confirmation message. Am the user For confirmation message, I have created a new XML file in the Layouts folder, and in the cistomised view and in the game I am trying to refer to that layout: Private Zero Show Confirmation ( ) {Layout Inflator MLUUIF = Layout Inflator. From (this.mctxtext); See ConfMSG_View = mLayoutInf.inflater (R.layout.confirm_msg, null); ............ But, at this stage, the eclipse underlines R.Layout.confirm_msg with red and Says

sorting - Go: Sort array, dropping elements if error caught in `Less(i, j int)` -

निम्न struct प्रकार बिंदु संरचना {datetimeRecorded को देखते हुए Time.Time} // रिटर्न सच है अगर बिंदु तुलना बिंदु से पहले दर्ज किया गया था। // यदि दिनांक समय उपलब्ध नहीं है, तो वापसी झूठी और त्रुटि फ़ंक्शन (p1 प्वाइंट) रिकॉर्ड किया गया है (पी 2 पॉइंट) (बीनियर बूल, गलती त्रुटि) {if (p1.datetimeRecorded.IsZero ()) || (P2.datetimeRecorded.IsZero ()) {अं = ErrNoDatetime} else {isBefore = p1.datetimeRecorded.Before (p2.datetimeRecorded)} वापसी} [] बिंदु द्वारा datetimeRecorded विशेषता मैं निम्नलिखित (जो काम करता है): प्रकार ByDatetimeRecorded [] प्वाइंट समारोह (एक ByDatetimeRecorded) लेन () पूर्णांक {वापसी लेन (क)} समारोह (क ByDatetimeRecorded) स्वैप (i, j पूर्णांक) {एक [i], एक [जे] = एक [जे], एक [i]} समारोह (एक ByDatetimeRecorded) कम (i, j पूर्णांक) bool {स्वैप, _: = एक [I] .कॉर्पोरेटेड / कोड> पकड़ा जाएगा और अंक बदले नहीं होंगे (रिटर्न false )। क्या यह त्रुटि को पकड़ना और इसे सरणी से छोड़ना संभव है? की तरह कुछ: समारोह (एक ByDatetimeRecorded) कम (i, j पूर्णांक)...

excel - How to get workbook filename of opened XML file? -

I tried to see it on the internet, but it did not get any solution. I'm exploring a way to get a file named XML. My code opens in such a way: Workbook. OpenXML filename: = pliczek, load option: = xlXmlLoadImportToList variable pliczek is the path of the file and when the code is executed the new file, for example Sheet1 is opened. I want to know the file name - I want to execute some code on it, but there is no indication of how to get that name. It is risky to try to activate the next window, Works for sub-tester () dim wb as workbook set wb = workbooks. OpenXML (filename: = "C: \ _stuff \ test.exml", _loadopation: = xlxmlload importlist list) debug Print wb.Name, wb.Sheets (1) .name ending sub

openedge - Why do we get time-stamp issue in progress database? -

We've upgraded from version 9.1 to version 11.3. It was working fine for two days and later the database was down. It has been mentioned in the log file. FIE has been removed. We are getting the following error when we do old qhn -c truncate BI OpenAge release 11.3 According to Mercury July 17: 16: 45:17 ADT 2013 ** Monday 13 12:15:15 2014 database was last used. (886) ** Prospect of the first image file Tuesday 14 October 12:48:47 2014. (887) ** These dates do not match, so one of them is the wrong copy of you. (888) We have restored DB from backup. For future reference, we want to know the root cause analysis of the issue below. You have one or more files that make DL (which includes two files) To manipulate the .lk file is removed and maybe used the OS tools. This is common in "cowboy" stores, where administrators do some work like remove the .lk file or use "kill-9" on users. The root cause is simple - the progress of manipulating anot...

javascript - How can I get the data from hidden field in jQuery? (hidden field has class in place of id) -

मुझे डेटाबेस से डेटा प्राप्त हो रहा है: & lt; table & gt; & Lt;? Php $ select_data = mysql_query ("डेटा_table` से * चुनें '') या मर (mysql_error ()); जबकि ($ data_row = mysql_fetch_array ($ select_data)) {? & Gt; & LT; टीआर & gt; & LT; टीडी & gt; & Lt; img src = "../ स्टफ-साइट_डेटाइमज / & lt;? Php $ data_row ['data_image_name']? & Gt; चौड़ाई = "100" ऊंचाई = "100" / & gt; & Lt; / टीडी & gt; & LT; टीडी & gt; & Lt;? Php $ data_row ['data_image_name'];? & Gt; & Lt; / टीडी & gt; & LT; टीडी & gt; & Lt;? Php ईको $ $ data_row ['data_description'];? & Gt; & Lt; / टीडी & gt; मुझे यहां से डेटा प्राप्त करना है: & lt; td align = "center" class = "row_id" & gt; & Lt; इनपुट वर्ग = "आंतरिक_रो_आईड" प्रकार = "छिपा हुआ" मान = "& lt;? Php echo $ data_row ['data_id...

internationalization - GWT - Execute another URL in a event -

I am trying to implement an internationalization in GWT. I ended up and it works but I want to execute the URL with the parameter and when I click on a button. For example: Original URL -> / * http: // 127.0.0.1:8888/MyApp.html?gwt.codesvr=127.0.0.1:9997 * / When I click on the button, I want to execute this URL -> / * Http://127.0.0.1:8888/MyApp.html ? Gwt.codesvr = 127.0.0.1: 9997 & locale = de * / Is there a way to do this? Thanks for the attention! Try it in the button handler window place. Location (windows.place tag (+) + window location tag string (+ + "& locale = d");

python - How to make POS n-grams more effective? -

I am text-texturing with SOM, as features using POS N-Gram. But I only take 2 hours to complete POS Unigram. I have 5000 lessons, each lesson has 300 words. Here's my code: def posNgrams (s, n): '' 'Calculate POS n-gram and return a dictionary' '' text = nltk.word_tokenize (s) text_tags = Text_tags: tag_lot (textlist -n + 1) for i in pos_tag (text) taglist = [] output = {}: g = '' .join for item in text_tags: taglist.append (item [1]) (Taglist [i: i + n]) output.setdefault (g, 0) output [g] + = 1 return output I used the same method to n-gram Have tried and it only took me many minutes to make me fast about my POS ngram Can you give some information? Using the server with inxi -C with these things: / p> CPU (s): 2 hexa-core Intel Xeon E5-2430 CPU V2S (-HT- Mseepi- SMP-) cash: 30720 KB flags (lM NX SSE SSE2 SSE3 sse4_1 sse4_2 SSSE3 VMX ) Clock speed: 1: 2500.036 MHz Generally, using batch tagging with canonical answer pos_tag...

android - OnClick crashes my application -

I have a text view in the dialog and I think that when I click to do this text view something. I want to do this when clicking on something to textview I have clickable and click onClick in my layout. Here are my codes Public class activity increases two action activity {@ Override public zero On Crate (Bundle Saved Instantstate) {Super. Contents (Saved Instantstate); // working code // working code // working code // working code} // to show this a dialog // it does a good job! Public Zero Share (View View) {sharedialog = New Dialogue (Activity Two.); Sharedialog.requestWindowFeature (Window.FEATURE_NO_TITLE); Sharedialog.setContentView (R.layout.postdialog); Sharedialog.setCanceledOnTouchOutside (true); Shareialog.getWindow (). Setbackground driveable (new color depth (android.graphics.color.TRANSPARENT)); Sharedialog.show (); } Public void facebookp (views) A // for {// TextView (onClick) it does not work ..}} This is my layout (postdialog.xml ) & lt; Relative la...

SQL table joins query -

I am trying to calculate responses to a questionnaire system. I want to show results in a table (questions, options, number of reactions) I wrote a question which works just fine but it does not display all the options and if there is no response for them. My query SELECT R.QuestionID, Q.QuestionName, A.OptionName, (R.OptionID) as answer, as A.OptionID COUNT response Include R Inner Question Q.QuestionID = R.QuestionID on the Q as an option R.OptionID = A option included in the OptionID WHERE (R.QuestionnaireID = 122) Group R R QUESTONID, Q Question Questionnaire, A. Ocean, R. Question ID, AOSPIDID database structure Question (questionnaire PK, questionnaire name) Question ( Questionnaire PK, Questionnaire FK, questionnaire name) Option (Option ID PK, Question ID, FK, Response (Response ID PK, Questionnaire FK, Question ID, FK, Value) Table Definition Create Table [DBO]. [Questionnaire] ([Push (Questionnaire name) NVARCHAR (100) faucet, primary key class (...

VB.NET Getting Value On Dynamic Control -

I am new to VB and participate in some problems. I have created a sub-rule that automatically adds a control to each panel when I click on the button, so it can make as much as you want. Here is the code for sub-routine. Create a private sub CreateControl () 'TEXTBOX ITEMNO Dim i_Itemno as integer = TextEditItemno.Length Radem TextEditItemno (i_Itemno) Save TextEditItemno (i_Itemno) New TextEdit with TextEditItemno (i_Itemno) Name = "Txtitemno" & amp; I_Itemno.ToString () If TextEditItemno.Length & lt; 2 And .SetBounds (0, 0, 32, 20) or .Left = TextEditItemno (i_Itemno - 1) .Left .Top = TextEditItemno (i_Itemno - 1) .Top + TextEditItemno (i_Itemno - 1) .Height 4 .Size = TextEditItemno (I_Itemno - 1). Tag I_Itemno End with Add.Handler TextEditItemno (i_Itemno) After the text, the edit command at the address of the textManotext Changing PanelControl5. Control. Add TextEditItemno (i_Itemno) 'TextGet PRICE dim i_Price as an integer = TextEditPrice.Lengt...

MongoDB MMS automation agent for windows -

I'm looking at setting up an MMS automation agent but found out that there is no download for windows. Is not it available for windows? Thank you! Right, the MMS automation agent is not available on Windows yet on a roadmap for future Windows version (Nothing is not solid at the time of writing it), but now if you want to use automation agent then you have to move.

xampp - Issues loading data from Deployd using Angularjs -

Image
I'm just starting to learn some programming and I'm studying Professor Angel J. by Adam Freeman. In the pursuit of one of the examples, the authors have shown in the book that I have created my own, I have an XMP server and data is posted in it. The data ( http://192.168.1.40; 500 / CARS ) contains both servers in a virtual XP machine (VMware) such as: [[" Brand: "", "Color": "Blue", "Price": 20000, "Year": 2010, "ID": "95d78d0090f3ab62"}, {"Brand": "Kia", "Color": " "", "Value": "10000", "year", "id": "47e180e828b2297a"}, {"brand": "toyota", "color": "black", "value": 22000, "year": 2013 , "Id": "19ab0a96f80c29ab"}, "brand": "book", "color": "silver", "price": 25000, "y...

asp.net mvc - Setting value for a textbox MVC 4 ASP -

मेरे पास मेरे कोड में निम्नलिखित कोड है। Cshtml ... & lt; td वर्ग = "Centrado" & gt; & Lt; इनपुट वर्ग = "प्लेटो" मान = "" आईडी = "टीकॉमीडा" & gt; & Lt; / टीडी & gt; .... और मैं एक ऐसा मान सेट करना चाहता हूं जो नियंत्रक से आता है, मान कॉममीडा संपत्ति मूल्य से है, । ... @ मॉडेल यूटिल। कॉमेडा यूटिल। कॉमडा मेनू = नया यूटिल। कॉमिडा (); मेनू = (यूटील। कॉमिडा) देखेंडेटा ["कोमिडा"]; .... > मैं मान मेनू सेट करने के लिए क्या कर सकता हूँ। मेरे इनपुट वर्ग = मूल्य के लिए मूल्य = "प्लेटो" मान = "" आईडी = "टीकॉमीडा" सीएसएस शैलियों को खोए बिना Thx to my class = "plato"? मैंने जांच की है कि ऑब्जेक्ट मेनू नियंत्रक से डेटा के साथ ठीक से आबादी है। मेरी अंग्रेजी और थेंक्स के लिए अग्रिम धन्यवाद। यह वास्तव में नहीं है कि आप में क्या करना चाहिए देखें: @ मॉडेल यूटिल। कॉमेडा यूटिल। कॉमडा मेनू = नया यूटिल। कॉमिडा (); मेनू = (यूटील। कॉमिडा) देखेंडेटा ["कोमिडा"]; ...

java - Simple SWT Alert Message with custom icon? -

Image
I am new to SWT, I am creating a GUI and warning message after I click on the user "OK" button Want to give Preferably, I did a little searching with the " check " icon, as well as the "Your parameters are incorrect" and "Code is correct" and it's MessageBox () It may be possible but it does not have a check or tick icon, I do not even want to bother creating a custom image and then want to apply it in the dialog. With MessageBox () I will have to create a new message box object, set text and then open the text ... does not have a simple, one line solution like this in swing? StaticClass.showmsg (type, "string"); for example? If possible, I would like to avoid JFAC because there is another library and I found many mistakes with JFAS, it can not be difficult ... It is also that I have got the code with MessageBox () . Do not look moral. EDIT: I Added and also in the GPS there is no checkbox (message delay) It seems t...

c++ - Assigning value for a class variable -

कुछ कोड निम्नानुसार हैं: class A {private: int a, b ; सार्वजनिक: ए (इंट एक्स): ए (एक्स), बी (ए * ए) {} इंट एमएसीए () {वापसी; } Int getB () {वापसी b; }}; Int main () {ए एक = 13; Printf ("% d% d \ n", a.getA (), a.getB ()); वापसी 0; } लाइन ए एक = 13 , मैं समझ नहीं सकता कि यह कन्स्ट्रक्टर कैसे कॉल करता है और क्यों? मुझे लगता है कि कलाकारों के बारे में कोई परिभाषा नहीं है और संकलित नहीं होगी, लेकिन यह अच्छी तरह से चलता है और कन्स्ट्रक्टर फ़ंक्शन को बुलाता है। ऐसा लगता है कि आप रूपांतरण निर्माता से अनजान हैं एक कनवर्ज़न कन्स्ट्रक्टर एक कन्स्ट्रक्टर है जो बिल्कुल एक तर्क में लेता है और उस वर्ग के ऑब्जेक्ट का निर्माण करता है। यह कुछ प्रकार से आपके वर्ग में रूपांतरण की तरह काम करता है, इसलिए नाम रूपांतरण कन्स्ट्रक्टर । अप्रत्यक्ष रूपांतरण , जो मुझे विश्वास है कि आप यहां भ्रमित हैं , तब होता है जब संकलक दो अलग-अलग प्रकार देखता है और संभव रूपांतरणों की तलाश करके उन्हें संगत बनाने की कोशिश करता है। जैसा कि आप देख सकते हैं, अंतर्निहित रूपांतरण बहुत भ्रम का कार...

Solr Suggester only adding first value from multivalued fields to suggest dictionary -

I'm using Solr suggestion to return the suggestions for a field that is stored multivalued. . Problem: This document is only added to the first entry dictionary database of documents for documents & lt; SearchComponent name = "Suggestion" class = "solr.SuggestComponent" & gt; & Lt; Lst name = "suggester" & gt; & Lt; Str name = "name" & gt; Suggest skeleton & lt; / Str & gt; & Lt; Str name = "lookupImpl" & gt; Org.apache.solr.spelling.suggest.jaspell.JaspellLookupFactory & lt; / Str & gt; & Lt ;! - org.apache.solr.spelling.suggest.fst - & gt; & Lt; Str name = "dictionary emple" & gt; DocumentDictionaryFactory & lt; / Str & gt; & Lt ;! - org.apache.solr.spelling.suggest.HighFrequencyDictionaryFactory - & gt; & Lt; Str name = "field" & gt; Skills & lt; / Str & gt; & Lt; Str name = "weight field" ...

java - Eclipse is not working in windows 8 -

Image
इस सवाल का पहले से ही एक उत्तर है: कल मैं ग्रहण का उपयोग कर रहा था मेरी प्रणाली आज, जब मैं अपने सिस्टम पर ग्रहण चलाने की कोशिश कर रहा हूं, तो मुझे निम्न त्रुटि मिलती है मुझे नहीं पता कि यह कैसे हुआ? कृपया इसे हल करने में मेरी मदद करें। इस उत्तर से देखें: मेरे पास एक ही त्रुटि थी जब eclipse.ini को JRE6 का उपयोग करने के लिए विन्यस्त किया गया था। निकलता है कि मैंने गलती से एक्लिप्स को 64 बिट जेवीएम का उपयोग करने के लिए गलती से ईक्लीपस 3.7 का एक 32 बिट संस्करण चलाने के द्वारा इस त्रुटि का कारण बना दिया। सही कॉन्फ़िगरेशन की आवश्यकता के लिए eclipse.ini -vm तर्क "C: / Program Files (x86) /" के बजाय "C: / Program Files /"। सुनिश्चित करें कि आपके द्वारा उपयोग किए जाने वाला JVM संस्करण (32/64 बिट) एक्लिप्स संस्करण (32 / 64 बिट)।

opencv - Secure streaming audio/video in JAVA -

I am projecting my university and I am struggling with many problems. This is a team project, so we have prepared an app, which will stream the main stream of AV stream from some cameras (our destination target IP camera). We have assumed that JMF is not enough for us, so we have found OpenCiv Library which is the Java API, which is ideal for us as Java because Java is our language of choice but I know that like C ++ It would be better for such a work in languages, but we do not have enough experience and some time is left. What have we done so far: We found the ZRTP protocol implementation ZRTP4J and checked it and we want it to be used for safe transmission (any Also should not be able to handle the conversation and now we are also thinking about authentication so that we can authorize the caller) We can capture the frame with webcam using OpenCV but we have problems Are We can encode frame-occupied encodings in specific formats using Xgler Library and can pack it in Med...

google app engine - Gmail Java API Using GAE Service account -

I am trying to read Gmail messages using a GAe service account. The code below works well to read Google Calendar but fails for Gmail I have only one user in the domain (which is also an administrator account). I'm trying to reach that user's Gmail). Email (read / write / send) https: // /mail.google.com/ https://www.googleapis.com /auth/admin.directory.user.readonly Calendar (read-write) https://www.googleapis.com/auth/calendar https: //www.googleapis.com/aprofit/https://www.googleapis. Com / auth / userinfo.email https://www.googleapis.com/auth/userinfo.profile i enabled in the Google app engine below the API: admin SDK Calendar API drive API Gmail API Google Cloud SQL Google Cloud Storage Google Cloud Storage Jesoan API the code below Gmail Ewa Makes: // HTTP transport HTTP transport to httpTransport = GoogleNetHttpTransport.newTrustedTransport (); Create JsonFactory using // com.google.api.client.json.jackson2 Jacksonfactor Jasonfattery JasonFactor = N...

java - Is it proper style to have blank lines tabbed properly? -

After In Java, let me assume I have two method declarations in a class: Class MyClass {Public Zero MyMethod () {// Some Code} Public Zero myOtherMethod () {// Something else}} In between my methods, I can choose to Either there is a completely empty line or a space character with tabs to "OK" tab. I have noticed that my GIT diffs sometimes changes in other unchanged files that are purely white space (either adding or wiping the white space mentioned above). It was just thinking to me: Is there any right direction that what is right? Anyone here official style creates your free space The direction for is being said ... I remove the unnecessary tab / spaces - that's just because my preference However, I will never tell anyone else to do this .. ( OK, OK - except this time )

TCP Socket communication between iOS app and Android app -

Samsung Galaxy S is the need to communicate with each other over WiFi for iOS app on iPhone and Android app on the 3 network. I am using cocoaSinks socket library in the iOS app and java.net.Socket in the Android app. == iOS App part == - (minus) socket (Jiseedisinksset *) from didAcceptNewSocket: (GCDAsyncSocket *) newSocket {[clientSocketList addObject: newSocket]; NSMutableDictionary * newClientInfo = [[NSMutableDictionary alloc] init]; [NewClientInfo setObject: @ "0" for: @ "status"]; [Client Infight Add Object: Nuclear Inc]; [New Socket ReidataToddata: [GCDAsyncSocket CRLFData] with timeout: -1 tag: 0]; } - Write (zero) data: (NSDT *) for data: (gcdsynxset *) sock {NSMutableData * dataWithLine = [data incorrect cop]; [DataWithlineEpendance: [GCDDConsetCRLFdata]]; [Hundred data to write: timeout with datawithline: -1 tag: 0]; } {/ Code> == Android Part == Public Boolean Connect Server (try {socket = new socket (SOMEIP, SOMEPORT); BinaryInp...

visual studio 2013 - Why is my BottomAppBar no longer displaying? -

AppBar below me was displayed first I have not changed the XML, which is in the mainpage.exml: & lt; Page BottomAppBar & gt; & Lt; AppBar x: name = "bottom app" padding = "10,0,10,0" & gt; & Lt; CommandBar & gt; & Lt; CommandBar.SecondaryCommands & gt; & Lt; AppBarButton Icon = "BrowsePhotos" label = "Browse" Automation Properties. Name = "Browse photos" = "btnOpenImgFiles_Click" /> & Lt; /CommandBar.SecondaryCommands> & Lt; CommandBar.PrimaryCommands & gt; & Lt; AppBarbutton icon = "Openfile" label = "Open" Automation Properties. Click on the name = "Open file" = "BTN Openmankelic" /> & Lt; AppBarButton Icon = "Save" Label = "Save" Automation Properties. Click on the name = "Save File" = "btnSaveMap_Click" /> & Lt; /CommandBar.PrimaryCommands> & Lt; / CommandBar ...

extjs - ExtJS4: Use Panel, Window, or Container? -

I am working on an application where I need to develop the following screen: Add screen to accept user input (form panel) Show details screen to display user input (grid panel) To edit user input Edit the screen (Not sure form or window should be). I have the 'itemdblclick' listener for the grid panel. So when the user double clicks on the grid line, the editing screen will open with details, the fields are populated. I want to use a common square to add and edit both screens , but here's the issue, if I increase the window, the edit screen comes but Do not add the screen, but if I expand a panel, the add screen opens, but the editing screen is not visible. Ext.define ('ELM.view. Cl.Edit ', {extension:' extension.window ', ... extension. (' ELM.view.cl.E Dit ',' Expand: 'Extensions.Planel, ... ... Note: I have a tab panel in which I can add AD Adding the view screen as separate tabs, while the editing screen is just a...

java - Arrays from method -

मेरे पास एक विधि MethodA वर्ग ए पर है जो एक अर्रे देता है 10 तत्वों के साथ मैं MethodA को class B से बुला रहा हूं और मैं किसी तरह कक्षा B में सरणी को संग्रहीत करना चाहता हूं। क्या मैं ऐसा कर सकता हूं? मैं जावा का उपयोग कर रहा हूँ हां सबसे आसान तरीका होगा कक्षा बी के अंदर विधि कॉल करने के लिए और एक सरणी फ़ील्ड में रिटर्न मान सेट करें। एक अलग तरीका है ClassB में एक सेट विधि है पैरामीटर मूल्य के लिए, आप विधि A के बदले मूल्य में पास होंगे।

bash - Why cant I have a space between option and optional argument using getopt? -

When using the getopt to parse the command line parameter, you can add arguments between the option flag and the required argument , But for this to be corrected after alternative logic options, alternative arguments will only be parsed. TEMP = `getopt -op: q :: -n 'mkqueue.sh' -" $ @ "` If [$? ! = 0]; Then "Termin ... ..." & gt; & Amp; 2; Exit 1; Note the quotation marks around Fi # $$: they are important! Eval set - "$ TEMP" # Now is the right to go through all the options; In the case of "$ 1" -p) echo "option p; logic \ '$ 2'"; Shift 2 ;; -q) "echo" in "$ 2"), "option q, no logic"; Shift 2 ;; *) Echo "option q, argument \ '$ 2'"; Shift 2 ;; ASAC ;; --) Shift ; break ;; *) Echo "Internal Error!" ; Exit 1 ;; Esac (based on this): When I run the script without optional arguments, then it works: ./ Mkqueue.sh -p adfsa -q option p, logic `adf...

Ant LineContains comma separated Value -

I have a property that has a string and now to change it from a comma to a separate list, test the lines in a file Want to do Currently works the following with one value: & lt; Loadfile property = "content" srcFile = "output.log" & gt; & Lt; Filterchain & gt; & Lt; Linecontains & gt; & Lt; Contains value = "$ {findvalue}" & gt; & Lt; / In & gt; & Lt; / Linecontains> & Lt; / Filterchain & gt; & Lt; / Loadfile & gt; So if a file has a row: Hello World! and the value of findvalue = 'World' will find this line. Now we want to find all the rows that can match many words, so if there are lines of a file then Hello World ! By all people! We want to find the property = set = World, both the lines of each and the pickup file. I hope that I understand this, it is very hard to explain completely to me, any ideas about how to accomplish it best? One way is the linecontain...

android - Notification Icon is orange -

Image
Im अधिसूचना जारी करने के लिए अधिसूचना प्रबंधक का उपयोग कर रहा है, लेकिन जब आप यूआई मेनू पर स्क्रॉल करते हैं, तो उसका पूरा नारंगी होता है, किसी को भी पता है क्यों? बिल्डर मॉन्टा नोटिफिकेशन = नया अधिसूचना.बिल्डर (संदर्भ) .setContentTitle (टिकर टेक्स्ट) .setContentText (संदेश) .setSmallIcon (R.drawable.icon) .setContentIntent (aoSelecionar); हल हो, आपको अपनी छवि को 36px x 36px

php - Join SQL query that has single id/row in 1 table, but links to multiple rows(same id) in another table? -

Sorry for the first long question title. My question / status is like this. 1.) I have 2 tables in mysql 2.) In the first table, each list has a unique ID (each list is in 1 row) 3.) In the second table, its name / tag is for the ID listed from the first ID, the first table 4. ) Each entry can have multiple images (multiple lines in the second table). What I'm trying to do, is to drag all the lists from Table 1 and then use the pulling list.id one from the table, from Table 2, all the lines of pictures that are listing.id I am confused at this time because there are several rows, whose list contains the same list. Table 2 And I tried to display * * *, but it only resonates the last image (row) from table 2. When I am in 2 tables, it does not seem to work. And I am not sure if I ask it twice, then press the array together. Thank you for your time $ result = mysqli_query ($ con, select "listing" from listingpic ON (listing.id = listingpic.listingid) W...

php - Is file() good for average of 5,000 - 6,000 lines or I must edit it for better performance? -

Text after " This is an exact copy of the question: 1 answer text file (from which of my Fashion grab information) is being built at 00:00 every day and my application starts slowly during the day to add lines to lines as a log file. The file is approximately 1MB and there are approximately 6,000 lines at the end of the day, so it is not really a small file for a game / kills and the script can be accessed by a lot of users checking the log statistics to display the latest 21 deaths The function is grabbing the latest 21 lines from the text file. My question is how can I create scripts with better performance because file () is actually reading the entire file through lines, so do the What is a better way? If many people use log pages to display this information from text file or for 6000 lines it can affect performance, should it be all good? The file is in plain text form .txt format and these are an example lines from the file: 1,42,16, 201, stackoverflow...

compilation - Intel Fortran 11.1 Long Compile Times For Sources with Over 140 Modules -

How long do I have "too long" when Fortran executables are compiled and linked with multiple modules? , But it seems that Intel Fortran v11.1 for Linux takes approximately 1.5 hours to compile a single .FF90 file, which includes more than 140 modules. To provide more background information, I use this exe Intel Build Chain and in the Eclipse Photon using the default compiler option. I see that anyone can answer the following: Is it normal for Intel Fortran to create .mod files and then link files? To take long (more than 1 hour)? Is not I taking advantage of the installation of build order or compiler options to speed up the process? New versions of Intel Fortran to solve this problem (if this is normal) Can other compilers, such as compiling multiple modules fast? Thanks to any FORTRAN JEDI that already od OD!

Could any user account damage windows? -

I have a new PC with Windows 7 with no restrictions, admin accounts are password protected. Can the random person use my PC (not the normal account, administrator), can he use CMD, or whatever can edit / damage / delete the file in the Windows folder or any other file or program There are cysts Become unstable or do not work well? Can he uninstall Google Chrome or Internet Explorer for example? Can he install a virus that I can not restore the window? A DVD in the computer and the current power on / off can take it. The first principal of computer security locks it. Windows has military grade security. It only works, while the window is running. But in case of unauthorized access to hardware, you can encrypt the hard drive, then the person can do anything beyond reading and writing (purposeful) They can still corrupt or format the drive.

Trouble with else if statements in C combined with a calculation -

Ok guys, I'm a hell of a time with this. At present, if I am working on other statements in my C Class (Introduction to Programming, clearly) and I can not get the syntax for further statements. I have browsed the web and I have not received any relevant answer. I currently get the error: | 47 | Error: Expected ')' before the numeric constant. #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Math.h> Float p (float r, float v) {returns (v * v) / (r); } Int main () {float r, v, answer; // User puts a print for the title of the input and values ​​("Enter Voltage:"); Scanf ("% f", & amp; r); ("Enter resistance:"); Scanf ("% f", & amp; v); Answer = P (V, R); Printf ("PD =% 9F \ n", answer); Return 0; Scanf ("% f", answer); If (condition> = 0.25) / / If the condition is correct then print the following * / printf ("Warning: Power immersion should no...

How to put data from multiple rows into one row array in MySQL -

Suppose I have a table day for breakfast and dinner for each day The meal specifies the food ID which points to a table food in which food names are included. How do I get breakfast and dinner meals using a single question? Actually I want to add the following to a query: SELECT days *, Food.name AS breakfast_name From day to day, where food is from .breakfast_id = food.id and days.id = '12 'SELECT days. *, Food.name is the name of the food as a day of eating, from day to day, where food is, day, day, double, food, food, and day. Id = '12'. You can do this in a single query by connecting twice to the food table on individual IDs. SELECT days. *, Join the meal as BF Day, as Bf name AS breakfast_name, df.name, as the BF day from the day of the night. Breakfast_id = bf.id Include food as dd on days.dinner_id = df.id ;

Direct import from Oracle to Hadoop using Sqoop -

When I import data from Oracle - I want to use direct parameters, using data dump / pump utility Is it possible to use the --direct option? Do I need to install an Oracle utility on my shell? If so, please suggest what I need to install? Unfortunately, there is no Sqoop connector that utilizes the DataPump utility Oracle has its own (closed source) big data connectors. I believe the SQL loader for Hadoop uses the datapump format.

javascript - retrieve Json Object's property returned from $.getJSON -

I'm unable to parse property from the JSON object. Since this is just a JSON object, I'm not sure if I'm $ Every needs to be done or I can get the properties directly in the form of data.d.property . Can anyone tell me how do I take about grabbing properties from this object? I have it: jq (document) .ready (function () {var listDataURL} = ""; root root = getParameterByName ('RootFolder'); On the rootFolderID = getParameterByName ("id"); docSetTitle = root.substr (root.lastIndexOf ('/') + 1), listDataURL = "http: // SomeSite / sites / TestWF / _vti_bin / listdata.svc / resumeBank" "+ RootFolderID +"); // Jquery jQ.getJSON (listDataURL, function (data, status, jqXHR) {use the getJSON mehtod of console.log (jqXHR .responseText); // all items jQ.each (data .d.results, repeat through function (i, result) // // get item count for the latest set childItemCount = result.ItemChildCount; NumOfItemsApproved = result....

random - Faster calculation of whether an unlikely event occurs, in Python -

I have a simulation in which I have to check more when an unexpected event occurs If the barrier of the event is 1 in n, then my code looks like this: if random.randint (1, int (n)) == 1: do_stuff That is, randomly generate an integer from 1 to n, and check that it is 1 (can choose any value in the range). I doubt that it can be slow, does it look like a clear way to do somebody differently? Hmm should have tried before asking this question, but I have come to know that: / P> If numpy.random.randint (1, int (n)) == 1: do_stuff Two or three times faster, of course, I still I am interested in seeing if there is any better way.

mysql - Select only 1 row when multiple max values -

I want to select maximum value in column A. Now, I have more than one value in column A. How do I just take 1 row with the maximum value and close the bar smoothly? Tried to use separate and boundary 1 without success. Expected : Only 2 rows, 1's message is "srth" and the other has "same-ts-1" or "one-s-t2", but both Not only that, because they have the same maximum TS 1413588888 My query: SELECT A. *, as the URL U.K., DU An Inner Join (Active Tootstamp) TS, User, Partner FD DB_chats Group by User, Partner from Thumbnail DB_AATATS on TT Timestamp = TTS. And Ausser = T. User Left Job DB_UUzers DU on Tea PARTNER = DU.ID WHERE AUSER = 'UTQ 8 WDXD 66 SSRLIA 5 QT FOAAA 4H' Wired: If you do not care that the line that stays the maximum time stamp has been returned, you can add the group to the user, Partner, Timestamp at the end of your query. SELECT A. *, as the URL DU Join User, DU Thumb, DB_KATS Join an Inner (Select M...

android - setting custom adapter in listview is causing the screen to load for too long -

I am developing a game for Android and my activity is a lot of time to load a list view with a custom adapter is feeling. I was already trying to pass acictsc to the acictsc list and was using progression digital to wait for the user, but even long after the list components were loaded (screen) Loading screen) is freeze. What's worse, after loading the screen, scrolling through the list view is very slow and can be the famous "left 60 frames"! This application can be working very well on its main thread, in which my activity causes, Suddenly, Reset list view will have only 30 components, but how can I make this list, not too much time to load You can not freeze the loading screen, and how can I remove "60 frames left"! The application may be working too much on its main thread when "I load the list?"

c - Returning a pointer of string arrays from a function -

So I need help returning an indicator of string arrays from the function obtained from a file. The wire is not bigger than 10. Input file: 3 102 a3b 50 The first number is the wire I need, the following numbers give me the stars Are required to be stored in. Function: char ** buildArray () {int x, i; Fscanf (FP, "% d", and;); Four answers [x] [10]; For (i = 0; i I can get the values ​​stored correctly on the string array 'Answer', I can not return it correctly. Main Function: int main () {char * answers; Fp = fopen ("data.txt", "r"); If (fp == NULL) {printf ("The file was not found. \ N"); Exhaust (EXIT_FAILURE); Answer = BuildAnsure (); Printf ("% s", answer [1]); // is used as a test to see if I have correctly fckose the array of stars; Return 0; } When I try and value a value in the main function, it crashes, or touches strange symbols Assuming there is some taste of C, you are trying to retur...

c# - automatic open new window without timer WPF -

I need help with some problems. In the main window WPF reads the position from the device and 0 is normal work, 1 The other situation is When I get the position = 1, I want to open a new window and when I get 0, I close it. I try to do it with a timer and showdial. A new window has been created but the status does not change in the main window until I close the new window manual. How to do this without any timer? Maybe some sample. Thank you in advance. Main Window - Timer Tick: Public Zero T1_Tick (Object Sender, EventArgs E) {HttpWebRequest request7 = WebRequest.Create ("http: // LocalHost: 8080 / HttpWebRequest as DataTap / Rest / Teatomater Server / UCard "); (HttpWebResponse response7 = HttpWebResponse as request7.GetResponse ()) {StreamReader Reader 7 = Using new streamreader (response7.GetResponsestream ()); String json7 = reader7.ReadToEnd (); // message box. Show (JSN); Jobbject o7 = Jobbject.Parse (json7); Int Statement = Convert. ToInt32 (o7 ["Resul...

ssh - golang: Execute shell commands on remote server -

I have some 50 Linux machines (RHELs) I have some commands on a machine running a central machine on these machines Want to run I have a password-less SSH authentication setup for all remote machines from a customer machine. Even though I am also open to non-SSH solutions, although some are safe choices. The order will change with the running time. I would also like to process the output and would like to send the commands that run on the remote machines in my script running on the central machine. I found only that which supports the password authentication method, which is not good You are using the public key using the go.crypto / ssh package. A detailed example is in the surrounding line 114. Another example using SSI agent @

python - Confused as to which data needs to be passed to login (using requests) -

I have taken a look at the log data on the forum, even I am trying to login, but it still Makes me confused What information is required to pass through POST Is this the html id field? Name field? type? In addition, when you successfully log on, then "Login is successful!" Quick redirect page, then you continue to redirect to index.php. The results I get are index.php, but this is not an example of me logging in. I believe that I am passing the cookies correctly? I believe this is the wrong data that is being passed on the login. Import import request from BS 4 import Beautiful Soup Import Jason Import String Header = {"User-Agent": "Mozilla / 5.0 (Windows NT 6.3; Win64; x64) AppleWebKit / 537.36 (like KHtml, Gecko) Chrome / 37.0.2049.0 Safari / 537.36 "} Payload = {" Action ":" Login "," Username ":" myusername "," password ":" ********** "} session () s In the form: s0 = s.post ("http...

html - XSL Displaying a message to the user if an element's count is 0 -

I have a channel that has value in XML files. What I want to do is that when there is no channel in the XML file, display the message to the user. Here is my code & lt; H2 & gt; Channel Subscription: & lt; / H2 & gt; & Lt; XSL: Templates & gt; & Lt; Xsl: if test = "& lt; xsl: select value =" count (subscription / channel) "/> == 0)" & gt; & Lt; P & gt; You have no channels & lt; / P & gt; & Lt; / XSL: If & gt; & Lt; / XSL: Templates & gt; The above code does not work, then the second part is in the table. When a user has a channel or above it is displayed & lt; Xsl: each selection = "subscription / channel" & gt; & Lt; XSL: Select & gt; & Lt; Xsl: when test = "@ favorites = 'true'" & gt; & Lt; H3 & gt; Channel name: & lt; / H3 & gt; & Lt; H3 style = "color: green;" & Gt; & Lt; Xsl: Select the value...

sparql - Compare temporal variables in virtuoso -

I work on virtuoso and receive a problem with comparison of the temporary variable My data is in a ttl file, very simple, as follows: @prefix attr: & lt; Http: //my.com/attr_> . @Prinfix: & lt; Http: //my.com/> . @PrinxXSD: & lt; Http: //www.w3.org/2001/XMLSchema#> . : T99255 Atri: TS "2007-01-14 20:01:55" ^ ^ XSD: Datetime: T 99255 At: Te "2008-10-04 14:33:09" ^ ^ XSD: Datetime: T 99257 atr : TS "2009-05-02 04:35:11" ^ ^ XSD: Datetime: T 99257 Att: Te "2099-12-31 15:59:59" ^ ^ XSD: Datetime Then I load it in a graph by the name of the test. I run the query "choose sparql 'from where {? S? P? O};" And get up to 4 records. However, when I run the following query: sparql PREFIX: & lt; Http: //my.com/> PREFIX attr: & lt; Http: //my.com/attr_> PREFIX xsd: & lt; Http: //www.w3.org/2001/XMLSchema#> Choose? Triple_0? T_T? By T_AT & lt; Gstest & gt; WHERE {{triple_0 attr: ts...