Posts

Showing posts from February, 2010

css - Font loaded using StyleManager.loadStyleDeclarations is not applying in Flex4.11 -

Fonts are embedded using @ font-face in CSS and are generated as .swf files. In the application, the generated SWF file is loaded using the StyleManager.loadStyleDeclarations () method. Embedded fonts are not applied for the first time control but this application applies when reloading / refreshing. Ex: CSS file: @ font-face {src: url ("font \ GOTHICB.ttf"); EmbedAsCFF: True; FontFamily: Gothic; FontLookup: "embeddedCFF"; FontWeight: Normal; } In the ActionScript file: StyleManager.loadStyleDeclarations ("styles.swf", true, incorrect); Please tell me that I do not remember anything. Please share your thoughts thank you in advance. Use the Filters source module URL to load font SFF: Or you can write your own custom preloader and do it yourself.

ruby on rails - Production site kept in public repository. How secure it is? -

To test, I cloned a github repo for private from the public. There were details of API keys and credentials in Readme. Reported about this by a stranger. Then I removed the public repository.Now what should I do so that there is no attack on the production site? Changing the API key, changing the password, etc. like Your site is not more secure in personal security details made public You have to change all your secrets, including the API key and password, which includes database connection details. Along with this, make sure to make your clone repo private or to remove it completely Adding only one commitment which removes the personal details No Support If you keep the repo public If you want, you have to follow.

osx - Application crashes when saving managed object context -

My app crashes while saving managedobjectcontext of the main data. The crash log is as follows: Code type: X86-64 (native) Basic Process: Launch [182] Responsible: Clean [9540] User ID: 835384806 Date / time: 2014-10-15 18: 55: 11.890 +0530 OS version: report of Mac OS X 10.9.4 (13E28) version: 11 Anonymous UUID: B7542E2A-7E0A-9BF4-4026-642BC0899AEA passive / active UUID: D3DA262A-ADFC-4D46-8793-1153578CC1D2 crashed thread: 0 Dispatch queue: com .apple.main thread exception type: EXC_BAD_ACCESS (SIGSEGV) exception code: EXC_I386_GPFLT application-specific information: objc_msgSend () Cynkart Name: Release Thread Crashed: Dispatch queue: com.apple.main thread 0 libobjc.A.dylib 0x00007fff87619097 objc_msgSend + 23 1 com.apple.CoreData 0x00007fff8ad8f797 - [_ PFManagedObjectReferenceQueue _processReferenceQueue:] 1575 2 com.apple.CoreData 0x00007fff8ad969f7 - [Nsmnagedobjektkntest (_nsinternlchageprosssing) _prosssrekentchanges:] 3575 3 Com.applkkrdata 0x00007fff8ad6e5c4 _prformr...

javascript - readAsText on json file return [object] -

यह मेरा कोड है window.requestFileSystem (विंडो प्रासंगिक, 100 * 1024 * 1024, फ़ंक्शन (फाइल सिस्टम) {fs = filesystem; fs.root.getFile ('library.json', {create: true}, फ़ंक्शन (प्रविष्टि) {console.log (प्रविष्टि); प्रविष्टि। Createwriter (फ़ंक्शन (लेखक) (लेखक। लिखना (नया ब्लॉब (पुस्तकालय)); प्रविष्टि फ़ाइल (फ़ंक्शन (फ़ाइल) {var fileReader = नया फ़ाइल रीडर (); fileReader.onloadend = function () {console.log (fileReader.result );} FileReader.readAsText (फ़ाइल);});})}}}}}, नल; ऐसा कुछ ऐसा वापस करना है: [{prop: '2342', prop2: 'awqe'}, {prop: '1231' , [एड्स ऑब्जेक्ट] [ऑब्जेक्ट ऑब्जेक्ट] [ऑब्जेक्ट ऑब्जेक्ट] [ऑब्जेक्ट ऑब्जेक्ट] कोड> मैं यह व्यवहार कैसे बदलूं? मैं क्रोम पैक एप के साथ काम कर रहा हूं

sql - Find last match with latest inserted name in table -

मेरे पास एक टेबल है PersonalInfo जैसे कॉलम जैसे आईडी, नाम, पता । मान लें कि मेरा डेटा निम्न है 1 जॉन यूएस 2 मार्क यूके 3 जॉन यूके 4 डेविड यूएस अब जब मैं नया रिकार्ड निम्न सम्मिलित करता हूं 5 जॉन चीन मैं पिछले रिकार्ड को उसी नाम के रूप में अद्यतन करना चाहता हूँ जैसा कि उदाहरण के लिए नया है जैसा कि यहां दिखाया गया है 3 जॉन यूके को 3 जॉन चीन पर अपडेट कर दिया जाएगा। जब मैं 5 वीं रिकॉर्ड को सम्मिलित करता है तो तालिका 1 जॉन यूएस 2 मार्क यूके 3 जॉन चीन 4 डेविड यूएस 5 जॉन चीन मुझे किस SQL ​​क्वेरी का उपयोग करना चाहिए? आईडी मान लेना ऑटो-वर्धित है, यह उस नाम और पता संयोजन के लिए सबसे अधिक मूल्य होगा। सेट पता personalinfo अद्यतन = 'अमेरिका' कहां आईडी = (चयन मैक्स (आईडी) personalinfo से जहां नाम = 'जॉन' और पता = 'ब्रिटेन')

TypeScript - Propertie includes a class -

टाइपस्क्रिप्ट में, निम्न वर्ग के तहत शो के रूप में: Oferta.ts: मॉड्यूल ऑफ़रटस {निर्यात वर्ग कीर्टा {VMVivienda: ofertas.Vivienda (); कन्स्ट्रक्टर () {this.VMVivienda = नया ऑफ़रट्स। विविन्दा (); }}} Vivienda.ts मॉड्यूल ऑफ़रटस {निर्यात वर्ग विविंड्डा {viviendaID: number; निर्माता () {this.viviendaID = 0; }}} संकलन करते समय, कंसोल त्रुटि फेंकता है: त्रुटि TS0294: संपत्ति 'विविंडैंड' प्रकार के प्रकार पर मौजूद नहीं है 'typeof ऑररेट्स ' जोड़ /// & lt; संदर्भ पथ =' vivienda Ts '/ & gt; से oferta.ts पर क्लिक करें

ruby on rails - Please help me converting this code to haml -

note :: I try to include file uploads system in my rail project I am doing But I am getting problems with this EJS code. Please convert the code below to HAML code. & lt; Script id = "b-file-ejs" type = "text / ejs" & gt; & Lt; Div id = "file- & lt;% = FileAPI.uid (file)% & gt;" Class = "js-file b-file b-file_ & lt;% = file.type.split ('/') [0]%>" & Gt; & Lt; Div class = "js-left b-file__left" & gt; & Lt; Img src = "& lt;% = icon [file.type.split ('/') [0]] icon.def% & gt; width =" 32 "height =" 32 "style =" margin: 2px size : KB & lt; / div & gt; & lt; div class = "js-progress b-file__bar" style = " Display: None "& gt; div class =" b-progress "& gt; & lt; div class =" js-bar b-progress__bar "& gt; & lt; / div & gt; & lt; / Div> & lt;...

html - how to move div1 when hovering div2 -

I want to create a "escape" button, let me know, when you try to click on the button, Get out .. I want to hang the button down, when you hover the div1, move on, when you hover the div2 etc. ... this is what is made: & lt ;! DOCTYPE html & gt; & Lt; Html lang = "cs-cz" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Meta name = "generator" content = "pace" & gt; & Lt; Link rel = "stylesheet" href = "Web8.css" & gt; & Lt; Title & gt; Rostik & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "button" & gt; & Lt; Button name = "button1" value = "link" & gt; Tlačítko & lt; / Button & gt; & Lt; / Div & gt; & Lt; Div id = "div1" & gt; & Lt; / Div & gt; & Lt; Div id = "div2" & gt; & Lt; / Div & ...

nsarray - Changing line of word numbers into numbers objective c -

Hi, I'm starting an object and it is played with just a code that I'm getting from a developer Words number (two hundred and thirty two) in numbers (232) I have managed to get one word to change another word, but I can not understand how to link words with intervals. So changed to twenty-20, but twenty two does not return anything. ? do any suggestions happy // text recognition NSArray * value = [[NSArray alloc] initWithObjects: @ "0", @ "1", "2" @, @ "3 ", @" 4 ", @" 5 6 ", @" ", @" 7 8 ", @" ", @" 9 ", zero]; NSArray * key = [[NSArray alloc] initWithObjects: @ "zero", @ "a" @ "two", @ "three", @ "four", @ "five", @ "six" @ "Seven" @ "Eight", @ "nine", zero]; Numbers = [[NSDO official] initWithObjects: value keys for: key]; In the (item.attachments NSItemProvider * itemProv...

c - Compile time constants as floats -

To change the compiler (MSCV 2005) after changing the file with the pair double Warns about conversion from float to code constant ... float r; R = (q1 + q2) * 0.5; ... Even q1, q2 both floats 0.5 as double Is considered in. How to optimize this behavior, so that all in-code stabilizations are considered as float s? Use a f suffix for Code>: float q1 = ...; float q2 = ...; float r = (q1 + q2) * 0.5 f; The standard (§6.4.4.2 floating constant) states: An unrecognized floating continuous type is double if the letter f or F , then its type is float if the letter sticks with L or L , its type is . Fixed your question is not a suffix and therefore type is double .

Sample code for Paypal Adaptive Chained Delayed payment in Python / Django -

I am trying to implement the Adaptive Payments API in my marketplace, but I have a hard time with the API IPN etc .. Any chance someone has some code samples that can help me anyhow? Thank you very much.

swift - Dynamic vars copy object -

एक वर्ग में एक गतिशील var घोषित करते समय गतिशील var चयनित एलेमेंट: तत्व? और फिर कॉलिंग self.selectedElement = e एक अपवाद में परिणाम - [एप। एलेमेंट कॉपी विथ ज़ोन:]: अज्ञात चयनकर्ता को उदाहरण के लिए भेजा गया गतिशील वार्स हमेशा कॉपी किए गए हैं - और यदि हाँ, तो यह दस्तावेज कहां है?

linux - bash if statement expected unary operator -

I'm trying to do something on the lines of , if (regular file Continue What have I so far st1 = $ (-f "$ {ARRAY [$ i]}" ) If I am receiving the "expected error operator error" Post-text "Itemprop =" text "> You do not need to create the intermediate st1 variable just use: if [[! -f "$ {ARRAY [$ i]}" || -H "$ {ARRAY [$ i]}"]] ;; Your use of "$ {ARRAY [$ i]}" st1 = $ (-f "$ {ARRAY [$ i]}") is available "first / Code> is incorrect and the reason for the syntax error will be: -f: command not found because on the shell f Think of it as a command name.

terminal - Connecting with ssh from OSX to VHM centos server -

Image
मेरे पास निम्न स्थिति है: VHM cpanel सर्वर (Centos का उपयोग कर) पीसी मैक: ओएस एक्स मैवरिक्स मैं अपने पीसी से vhm सीपनल सर्वर से एसएसपी कनेक्शन सेटअप करने की कोशिश कर रहा हूं। । मैंने निम्न चरणों का पालन किया है: ओएस एक्स में: मैंने इस तरह एक सार्वजनिक / निजी कुंजी उत्पन्न की है: $ cd ~ / .ssh $ ssh-keygen -t rsa मैंने एक पासफ़्रेज़ से सफलतापूर्वक उत्पन्न किया है: id_rsa id_rsa.pub वीएचएम में: एसएसएच पासवर्ड प्राधिकरण से बाहर निकालें रूट की एसएसएच कुंजी> आयात आयात करें मैंने सार्वजनिक कुंजी बॉक्स में मेरी id_rsa.pub कुंजी चिपकाई है। मैंने कुंजी को अधिकृत किया ओएस एक्स टर्मिनल में: $ ssh 111.111.111.11 (जहां 111.111.111.11 सर्वर एड्रेस है) पासवर्ड दर्ज करें: xxxxxx अनुमति अस्वीकृत है, कृपया पुनः प्रयास करें। मैंने भी कोशिश की है $ ssh root@111.111.111.11 लेकिन एक ही परिणाम मैं कुछ गलत कर रहा हूं? एसएसएच पहुंच देने के लिए ये सही कदम हैं? एक .txt फ़ाइल और लॉगिन उस कमांड का उपयोग कर: ssh -i key.txt -l रूट & lt; आ...

java - using AsyncTask for multiple actions -

I'm working on Android. There is a parcel class in my main activity. Java that extends asyncTask: The class parses a URL and does some work with it. Private Class ParseURL AsyncTask and String, Zero, String & gt; {@Override protected string doInBackground (string ... strings) {stringbuff buffer = new stringbuffer (); Document document; Try {Log.i ("Output", "Trying to Connect .."); Doc = Jsoup.connect ("http://sirim.co.il/") .get (); Log.i ("Output", "Connect"); Elements meteillems = doc.select ("a [class = mainlevelmatkonim]"); (Element Metaelem: MetaLames) for {string c = metaelem.txt (); Buffer.Append (C + "\ r \ n"); }} Hold (IOException e) {// TODO auto-generated cal block e.printStackTrace (); } Return buffer. Tosting (); } @OverridePostExecute protected at zero (strings) {super.onPostExecute (S); HttpInfo.setText (s); }} My question is - If I want to use an asynchronous tool to parse a ...

Android Development: Transfer App wireless -

Is it possible in some way to transfer and launch an app that I am developing wireless? For example via WiFi or Bluetooth. I'm developing with Android Studio (Beta) 0.8.9. You have to remove your .apk file. You can do this by right-clicking on your project directory and then, Android Tools> Export the Uncinified Apps Package Then send it the way you want it

c# - Combo box autocomplete blanks when enter key pressed -

I am working with Visual Studio 2013 (winforms) with C # I have a combo box in which one of the shop names The long list is the complete property set on 'suggestion suggestion' according to the MSDN article in the combo box: The program displays the name of the shop on the selection-theme event. The combo box list can start typing the first letter of the user name, and the combo box has narrowed the selection accordingly. It also shows another drop down menu of items that can match user selection. (Suggest to facilitate autocomplete) Combo box will also fill the items with the most likely items to match the user's typed characters (autocomplete feature) in the text box if it The item is being found by the user, they press 'enter' to select it. Instead of choosing it, the text field is empty. In addition, if the user uses the arrow keys to move the suggested list down, then press 'Enter' (logical thing to confirm a suggested selection), combo box ...

javascript - Check which variable is undefined in a JS Array -

I am trying to check how the variables (s) are not defined in a variable and their How to do something with Alex (window ['user' + i] == undefined) {window ['user' + i] = / var /> There is nothing with two types of undefined properties : those which are not defined, and which are set to undefined . If you object properties have not been defined (or array), then Object.prototype.hasOwnProperty () use, such as: for (var i = 0; i & lt; result.length; i ++) {if.! (Object. Prototippi. HasOwnPropertykcall (window, 'user' + i)) {window [ 'user' + i] = // nothing to do with the different determine}} Since window is an object, so you can directly call the hasOwnProperty , if you trust that it ( or Object.prototype.hasOwnProperty , which window is inherited) have a set code for this looks like this: (Var i = 0; i & lt; result.length; i ++) {if (! Window.hasO WnProperty ('user' + i)) {window ['user...

Javascript RegEx - Start and End of String Anomalies -

So I'm trying to exclude some real benefits and I have been told that the beginning and end of the string . In a way, ' \ A ' will be & amp; ' \ z ' and the other would be ' ^ ' & amp; ' $ ' For some reasons when it is running in JS, there is only one option that actually works. var str = "123456", pattern 1 = new RegExp ("^ \ \ d \ 6 $ $"), does anyone know why this could happen? Pattern2 = New RegExp ("\ A \\ d {6} \ Z"); If (pattern1.test (str)) {Warning ('Pattern 1 match!'); } And {warnings ('Pattern 1 no match!'); } If (pattern2.test (str)) {Warning ('Pattern Match 2!'); } And {warnings ('Pattern 2 is no match!'); } I think that nobody tells you that \ A and \ z should have worked incorrectly Based on, only ^ and $ should work.

xml - XSD expects right element of wrong namespsace -

I want to define a schema in the namespace "foo", which means "schema" And what makes me remember to verify the types of "bar" types? MWE down Root schema: & lt ;? XML version = "1.0" encoding = "ISO-8859-1"? & Gt; & Lt; Schema xmlns = "http://www.w3.org/2001/XMLSchema" elementFormat = "Qualified" xmlns: f = "foo" xmlns: b = "bar" targetNamespace = "foo" & gt; & Lt; Import schema location = "import.xsd" namespace = "bar" /> & Lt; Element name = "root" type = "f: root" /> & Lt; Complex type name = "root" & gt; & Lt; Sequence & gt; & Lt ;! - & lt; Element ref = "b: imported" /> - & gt; & Lt; Element name = "imported" type = "b: imported type" /> & Lt; / Sequence & gt; & Lt; / ComplexType & gt; & Lt; / Schema & g...

backbone.js - getting Backbone collection size? -

Image
मेरे पास एक बैकबोन संग्रह है var users = backbone.collection.extend ({ Url: 'https: // localhost: 2222 / उपयोगकर्ता', मॉडल: उपयोगकर्ता}); नियंत्रक में मुझे उपयोगकर्ताओं की संख्या प्राप्त करने की आवश्यकता नहीं है। var usersList = नए उपयोगकर्ता (); UsersList .fetch ({से पहले: सामान्य यूटीएसएंडएडिट एटिफिकेशन, डेटा: $ .परम ({समूह: समूह.आईडी}}}); मैंने उपयोगकर्ताओं की कोशिश की है। लांट यह लाता है 0 लेकिन कंसोल 'usersList' में कुछ डेटा दिखाता है मैंने लॉग इन किया console.log (usersList); console.log (usersList.length); 'बच्चे' वस्तु लंबाई में 0 के रूप में दिखाया जाता है, लेकिन उस लंबाई के अंदर 4 है। क्या आप सुनिश्चित हैं कि आप लाने के के आने के बाद लंबाई की गिनती कर रहे हैं? याद रखें कि आकर्षित करने में कुछ समय लगता है और आपका जावास्क्रिप्ट इसके लिए इंतजार नहीं करेगा।

php - get image contain not download again -

Image
Using the III framework. I have created a function / controller, which checks the image file, is present in the directory, if the file is using the file_gate_contents () function, then pass the image and set the background of the div tag. If the file does not exist, the default image file is passing. syntax php: - header ('content-type: image / png'); Echo file_get_contents ($ location); And in Javascript I create a function to attract ADV and set the background of that div syntax: - function drawDiv () { $ ('. DivID'). HTML ("& lt; div id =" test "> " $$ ('# test'). CSS ({background-image: url ('http: // location / test / Getimage ')}}} Whenever I redesign the division again, the image is downloaded every time. If I download url absolute path once. What do I need if the image is present or does not exist then should download one time plz problem. If you have another solution tell me. I use From a quick...

api - Android Google maps v2 are blank on emulator but work on real device -

I have an Android app that uses Android Google Maps API v2. This application runs fine on my Xperia real device but empty map with zoom buttons on one of my Galaxy Nexus AV9 (Google API V9). I'm using Android Studio. I have set all necessary permissions on the API key along with the Manifest. I logcats get the following errors: The class 'gpq' could not be referenced from the method gpr.a. Class 'com.google.android.gms.location.internal.ParcelableGeofence' could not be found, referenced

php - Javascript display based on Date -

I have a page which is already calling in a SQL database, and I'm based on a condition One of the entries I want to display to div. I can not find enough to do this for me, and I am struggling to find the right answers. To display me with javascript, I want a Div called #expiryDate , if the end date column entry on the database is one month away. I & lt ;? Can display DB entry with Php echo $ data ["expired"]; ? & Gt; But I want to do something like this .... & lt; Script type = "text / javascript" & gt; $ Function () {var subvalue; Yield = $ data ["end"]; If (..........) {$ ('# end date'). Show (); } And {$ ('# end date'). Hide (); }}}; & Lt; / Script & gt; But if I can not work a little bit. I want to be it if the date is a month away from "date" in "date" ["expired"] ... what am I missing? $ data ["expires"] demo: / code > Is a date string; ...

node.js - Adding a SSL certificate to an Express Site -

I have a small site on which I have been working to add an SSL certificate This code #! / Usr / bin / env node var debug = runs in Express with the expected ('debug') ('one-end-end'), app = ('../app'), fs = require ('Fs'), http = need ('http'), https = ('https'), express = require ('express'); Var keyPath = '../ssl/key.key'; Var certPath = '../ssl/cert.crt'; Var caPath = '../ssl/cert.crt'; Var ports = 3000; If (app .get ('env') === 'output') {port = 80; } If (fs.existsSync (keypath) and fs.existsSync (certPath)) {port = 443; Var option = {key: fs.readFileSync (keyPath), cert: fs.readFileSync (certPath),}; Var server = https.createServer (option, app) .listen (port, function) {console.log ("listen on express server port" + port);)); } Else {var server = app.listen (port, function) (); Console.log ('server port was started on port); Debug ('listen to express server on ...

ios - isEqual: and isKindOfClass: - Which is faster? -

For various reasons, to keep order indexed with other things, I have [NSNull null] Inside the array. Like this: NSArray * arr = @ [obj1, obj2, obj3, [NSUAL tap], Ojavi 4]; In two ways I am thinking of using the code again to ignore the value of the null value, But I'm not sure which is fast. (For Method 1 {id obj} / (for arr in obj } {If ([obj isKindOfClass: / [link]} method 2 MyObject class]]) / Do stiff}} My question is this: Since I am running through this array to handle a tiled scroll view in a proper manner (hence executed it several times The user is going to scroll and it is important that it runs as soon as possible), which of these One of the best methods is fast? [NSNull null] is a singleton, so the easiest thing to do is whether the object pointer is the same or not. If you really want to be fast, do this: (OBG in IR) (if ([NSUUL tap]! = OBJ) {// do stu}} But it is unlikely that you can get a visual interface Look at the ...

rest - Office 365 API EWS calendar not expanding recurring events -

I am using REST services with the new Office 365 API preview. The following requests are "non recurring appointments and recurring master appointments", but all "single events of recurring series" are unavailable: https://outlook.office365.com / Ews / odata / Me / Events? $ Top = 30 & amp; $ Select = theme, start, end and amp; $ Filter = end + g + 2014-12-01T01% 3a 0% 3a + + + + + + and + start + take + 2015-02-01T01% 3a 0% 3a z There is a method in the EWS managed API ExchangeService.FindAppointments which increases a series of recurring calendar items and "gives non-recurring appointments, single events of recurring series, and recursive exceptions Series ". By using the Office 365 REST API, what criteria do I need to use to get "Exceptions of Single Events and Recurring Series of Recurring Series"? Thank you for your interest in the Office 365 Calendar API! At present, we are preparing APIs to expand a specific meetin...

php - Woocommerce - Need to send email to specific address based on zip code -

Basically, you have the option to input more than one email address (separated by commas) in woocommerce, in WooCommerce -> Settings -> Email -> New Order. But I want a way to send only one of these recipients based on the zip code of the customer ordering the product. Or overwrite woocommerce mode to manage it completely. How do I add a functional function to send it to the right recipient? Basically, is there a hook defined for this or does a plugin exist for something like this or do I have to edit the main WooCommerce files? If editing for core files is required, can someone tell me in the right direction, which file would be required to edit? Each email has a filter that allows you to adjust the recipients of that email. The filter name is essentially woocommerce_email_recipient _ {$ email_id} . will filter the address "to" for the following "new_order" email add_filter ('new_order', 'so_26429482_add_recipient', 20, 2); ...

android - How to get R class from other project? -

I want to get the accepts from the other projects for the resource ID but not the import of the R file into my file but the mobility I I want to do a function with reference parameters and get the R class dynamically. Is this possible? The reason I'm asking for, I want to achieve similar effect on the Facebook API Library. What do they do, you add Facebock_app_id string to your project and the library gets "somehow". You can not use R from other projects if you import it from the same project and separate package can do. import com.yourpackage.R;

Qt C++ Android compilation bionic header error -

I am trying to compile a simple C ++ static library for Android with QT creator. Although I am getting this error: #Terror Bionic Header CTEP does not define either _U nor _CTYPE_U I Android NDK R10b, Java jdk1.8.0_20, ATT-Bundle-Linux-X86-20140702 I am compiling with Android 6.5 and Qt 5.3 for Android GCC (Arm-4.8). I am including several Linux libraries: jsoncpp, libuuid, libblutetooth and libzmq. The above libraries Path for If someone can point me in a certain direction, then I appreciate it. Yes, because you are included in your system, the path is not included, the path in the Android system is included is. If you build for Android then there is no reason to include it. If you need a library for yourself then the Android environment requires you to compile and install it in your Android toolchain. For example, see how I install Android Labs:

angularjs - ng-blur in Karma on Firefox -

Karma for an Angular.js instruction. In the JS unit test, face strange oddities in the behavior between Chrome and Firefox Had it The director has a template, and this template contains a form with some input. I want to test the unit that there will be some scope methods called after the input first. Then, I have this test: Description ('Firefox quibble.' (Function) () (module ('template'); module ('app') ; Injection (function $ collection, $ rootsecope) {$ scope = $ rootScope. $ New (compiled) $ compile (template) ($ radius); angular.imment (compiled) .appendTo (document.body); $ scope . $ Apply);}};}); ('Iirdness Shows.', Function () {var i1 = compiled.find ('input [name = "i1"]'), i2 = compiled.find ('input [name = "I2"]'), executed = Incorrect; // This is never called on Firefox. // It works on Chrome without any delay. $ Scope.doStuff = function () {execed = true;}; // First focus the input, So the seco...

shell - Variable handling in Shellscript -

मेरे पास param.txt नाम की एक फाइल है, जिसमें निम्न की तरह है: मुझे अलग-अलग वैरिएबल की तरह पैरामीट्रीज करना है, जिसमें अलग-अलग मान शामिल हो सकते हैं: निर्यात COUNT = 1 - $ में पीएन (बिल्ली /home/hadoop/rahul/param_test.txt) के लिए #echo "$ PN" वी $ COUNT = $ PN $ `$ $ $ V $ COUNT}` COUNT = 'एक्सप्रेशन $ COUNT + 1' किया इसे गिनती के अनुसार चर का नाम देना चाहिए। मुझे कोई त्रुटि हो रही है। कोई भी सुझाव दे सकता है। कई वाक्यविन्यास त्रुटियां हैं यहां सही है: count = 1 जबकि read -r लाइन; क्या प्रतिध्वनि "v $ {count} = $ line" count = 'expr $ count + 1' किया & lt; /home/hadoop/rahul/param_test.txt

java - Why does this recursive method work? -

I am writing a function to meet these needs: Given a string, if it is zero or more pairs of parentheses Like, (()) or ((())) . Tip: Check the first and the last characters, and then repeat there that is inside them. → right nestParen ("(((())" → right nestParen ("(((())") → incorrect The correct solution is shown on the site: public boolean nestParen (string str) {if (str.equals ("")) is true; if (str. CharAt (0) == '(' & str.charAt (str.length () - 1) == ') back nestParen (str.substring (1, str.length () - 1)) ;;; ); I do not understand why this works. If ( as " , in the given string Will not be killed on the second case and next ( ? Definitely will not work if there is anything other than ( and ) in the input string, then this function just calls another function call this function Before doing: clear (string str) {string str = "(((X + y) + z);" string string for TST = ""; (int i = 0...

c++ - Read and change global std::map in executable through injected dll -

I have some function hooks installed in implementing DLL. In the Executive is the Global Study :: Map variable, which std :: map & lt; Int, int & gt; Has been declared as. G_lenMap; I know its address is from disassembly. I need to insert the key / value combination in this map (or somehow hook: search () function, which looks very different to me). However, the most obvious way does not work: std :: map & lt; Int, int & gt; * G_lenMap; G_lenMap = (std :: map & lt; int, int & gt; *) 0x4D7480; Int result = (* g_lenMap) [100]; This throws the "map / set iterator incompatible". I can easily read and change other global variables / structures, but not std :: map. What am I doing wrong?

javascript - jQuery on mouse move target selects all similar elements -

I have (for example) 6 elements, with all the same classes and different materials, they all have backgrounds too. Which are a bit zoomed in. Depending on them, their background is required while moving the mouse. My problem - Once when I hover on a single element then all the backgrounds go any help? This is my code: HTML (of one element): & lt; A href = "/" class = "project" style = "background-image: url ('link_to_image');" & Gt; & Lt; P & gt; Project & lt; / P & gt; & Lt; Span & gt; Details & lt; / Span & gt; & Lt; / A & gt; CSS (again, single element): .project {status: relative; Display: Inline-block; Margins: 10px; Height: 400 pixels; Width: 400px; Background: #bcc; Color: #fff; Text-decoration: None; Box-shadow: Inset 0 px 0 r px rgba (0,0,0,0,0,0), inset 0 px-50px 100px -40px rgba (0,0,0,0.6); Transition: Box-Shadow.5S Easy-In-Out; Hidden flurry; Swim left; White-space: Initia...

jsf - Triggering Ajax event when an object changes its state -

I have a small university project in which I have to show how some algorithms work. Decided to use JSF for a simple webpad and to save all the algorithm-generated data in the database. I thought, 'Hey, it would be good if I can show the user how the algorithm works by step, nothing is fancy, only plain formatted text, when the algorithm talks about it . An output text field should work with Ajax! ', But I did not get enough of my head about a certain problem. Ajax triggers when there is a certain event, like 'click' or 'keys', but is this a way to trigger when an object changes in my Manbadden class? I do not know if I have explained well enough, here's an example of what I want to do: An ArrayList is empty in the managed bean, output Text does not print anything After a certain time, a new object is saved in ArrayList, Ajax triggers and output text prints its onstring () string Then some After a while, the same object that was printed before ...

c# - how does XMLReader work -

If I use XMLReader.Create, and gives it a stream, then XMLReader lets me do any call Read the entire way to read the entire stream first, because the status of the stream varies to match the length of the property stream. Does XMLReader store entire XML in memory? It will look like I can call XmlReader. Read and the status of the stream never changes. Is XmlReader not possible to consume full stream? XmlReader does not read the whole stream at once, it only On the stream (or more if async is set to true), reads the block of 8192 bytes at once and stores them in internal byte buffer. Obviously, if your stream has less byte than that, then they will all be read on the read () call. It's likely that you are experiencing.

bash - shell script: time difference -

This is my script that is the time difference between my date and time to make the operation more efficient Is there any other way? #! / Bin / bash mydate = 20141224 # yyyymmdd mytime = 00: 00: 00 #hh: mm: SS current = $ $ ((Diff / 86400)) = $ ((diff - (day * 86400)) diff = $ (( Left =) $ = ((diff / 3600) left = $ ((diff - (* 3600 hours)) diff = $ ((left)) min = $ ($ / diff / 60)) left = $ (( Diff - (min * 60) diff = $ (left)) sec = $ ((diff)) echo "d" $ hour per day "h" $ min "minimum" $ sec "seconds"

java - Android - Change SimpleDateFormat template -

New enough for Android / Java language; Lots of experience with Obj-c Is it possible to change the initial template given to the simplest format, so that you do not need to create a new event every time you need to change it? I ask because it is something that is done to be able to do it in obj-c. I have seen the documents for a simple document and did not see anything there, but thought I'll check here two times. An example of what I am trying to achieve: // * I have left the attempt / simplification for simplification SimpleDateFormat sdf = New SimpleDateFormat ("Yyyy-dd-MM"); Sdf.parse (someDateObj); If (someDateObj == faucet) {// * setTemplate is not real, // * Example of what I'm trying to do ... sdf.setTemplate ("MM-dd-yyyy"); Sdf.parse (someDateObj); } Is such a thing possible? thank you in advanced. You can use to provide a new pattern. Example: SimpleDetermutation SDF = New SimpleDateform ("YYA-MM-DD"); Println (s...

javascript - Password in sessionStorage -

I have a single-page anglejs app, and any web site uses cookies to authenticate my website . This means that a fresh user logs out. How bad is it to save passwords on SessionStorage, so they can refresh during the session? (The username will be in the local storage, and I do not want full login to be in the middle of the session). Thank you! Edit: Do I have more interest in this if there is any real security risk for storing this way? Is it no less secure that Chrome store plain password? Keeps in the text, or how cookies are unencrypted? Are you trying to avoid local storage or just cookies? You can store session IDs in the storage of sessions, and can authenticate using that user, in no circumstances do I keep users password clearetax.

html - Render a table with the number of columns and rows depending on the container dimensions -

The HTML "table" tag allows us to display data with certain columns and rows. But there are situations where the number of columns and rows should vary according to the browser window. For example, if each cell lives in 200 x 100 pixels, then we have 4 columns when the container width is 900, but with a width of only 450, 2: "expand" window : [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] "cellphone": [1] [2] [3] [4] [5] [6] [7] [8] [9] [ 10] [11] [12] What is the best way to render it? Is it possible, without javascript, to render using this table tag? Or using divs on css? Without entering a never-ending argument between the use of tables or CSS, where the columns and rows The number depends on the container, the Javascript-less solution seems to be using DIV. The following approach uses the "float" CSS attribute. CSS: .container {...} .dynamicTable {...} .dynamicTable div {width: 200px; Swim left; ...} HTM...

Android Studio - Lollipop, ADB, & Genymotion issues: Devices won't show up. "adb server is out of date. killing..." -

Image
अपडेट (11/10/14): Genymotion ने 2.3.1 जारी किया है जो इस समस्या को हल करता है। अपडेट (10/21/14): जेनोमॉशन ने मेरे समर्थन ईमेल पर उत्तर दिया और संकेत दिया कि नीचे @प्लेमेकर ने सुझाए गए समाधान का सुझाव इस समय ठीक सुझाव है। वे इस मुद्दे से अवगत हैं। लॉलीपॉप में अपग्रेड करने के बाद से, मैं एक जीन्यूमोशन इम्यूलेटर का उपयोग करते समय एडीबी मुद्दों को लेकर रहा हूं। एंड्रॉइड स्टूडियो में डिवाइस दिखाई नहीं देते हैं, और मुझे adb devices : $ adb devices adb सर्वर को चलाने की कोशिश करते समय निम्न त्रुटि मिलती है तिथि का हत्या ... नहीं बाध्य कर सकते हैं 'टीसीपी: 5037' एडीबी सर्वर एसीके नहीं * डीमन शुरू करने में विफल * त्रुटि: मुझे यकीन नहीं है कि यह लॉलीपॉप उन्नयन या संयोग के कारण है । संपादित करें / अपडेट करें : क्रिस सट्टन की टिप्पणी के अनुसार, मैंने जांच की है कि एकाधिक एडीबी प्रक्रिया चल रही थीं ( ps aux | grep adb ), और ऐसा लगता है कि यह एक Genymotion संघर्ष (?) है इसमें एडीबी का अपना संस्करण शामिल है। ग्रेग 72550 0.0 0.0 611164 1508 ?? एस 4:14 अपराह्न = 0: ...

c - Why can't gsl_vector_alloc be called before main starts? -

From Book 21st Century: Fixed variable, even one Inside the function, when the program starts, before the main starts, you can not start them with a non-fixed value. // This fails: gsl_vector_alloc () can not call the gsl_vector_alloc () before the main () static gsl_vector * Scratches = GSL_Vector_loc (20); Why can not you say gsl_vector_alloc before the main startup? What you quoted from the book is the answer, that is because it will not be consistent with the standard. For the continuity of an object, all the spec reserves in the beginning will be continuous expression or string literals. However, I believe that something like this is possible in C + + under certain conditions.

c# - Why does Response.Redirect throw the ThreadAbortException in VS 2013 but not in VS 2010? -

I am researching the issue regarding the response. Redirects a threadbortexation . Part of it in which I have not got any answers, this is VS. Why in 2013 and not in VS 2010? I can open and run the same project in each and Response.Redirect call only VS. Can throw exceptions when running in 2013. Thanks for any feedback. Kevin

Graphhopper returns "not found" -

I am testing the graphhapper for a few days, but there is a strange problem when one place is away for the next road The graphhap error "did not get" "The strange thing is that it works on the graphhapper-demo-server, I try with the Alps, Europe and now with the whole planet - the error resembles the same So here it works: but not on my server: In my configuration is there any problem? I played index.highResolution ad with index.maxRegion search but without any changes other routes are working thanks for the help :) You can try to play settings with "ready.minOnewayNetworkSize = 200" or reduce "ready.minNetworkSize" Thus, the island (Oneway) does not get stuck in the router.

java - Circular references in Nation-Town-Citizens chain -

मेरे पास तीन वर्ग हैं, राष्ट्र , शहर , और नागरिक । एक देश कस्बों में रहते हैं, और एक शहर में नागरिक होते हैं। सार्वजनिक वर्ग राष्ट्र {सेट & lt; टाउन & gt; कस्बों; } सार्वजनिक वर्ग टाउन {सेट & lt; नागरिक & gt; नागरिकों; } सार्वजनिक वर्ग के नागरिक [} कभी-कभी मुझे उस देश को जानना चाहिए जो नागरिक का है। हालांकि, उपरोक्त क्रियान्वयन के साथ, यह जानने का कोई तरीका नहीं है कि, जब तक कि मैं ऐसा न करे: सार्वजनिक वर्ग राष्ट्र {सेट & lt; Town & gt; कस्बों; } सार्वजनिक वर्ग टाउन {सेट & lt; नागरिक & gt; नागरिकों; अंतिम राष्ट्र राष्ट्र; सार्वजनिक शहर (राष्ट्र राष्ट्र) {this.nation = राष्ट्र; }} सार्वजनिक वर्ग के नागरिक (अंतिम टाउन शहर; सार्वजनिक नागरिक (टाउन टाउन) {this.town = शहर; } सार्वजनिक राष्ट्र getNation () {this.town.nation लौटें; }} मुझे अक्सर "परिपत्र संदर्भ" से दूर रहने का चेतावनी दी जाती है। क्या यह एक परिपत्र संदर्भ का गठन करता है? और यदि हां, तो क्या इसे टालना चाहिए? और अगर इसे टाला जाना चाहिए, तो इस समाधान का कोई विकल्प क्या ...

datetime - Correct php date/time pattern -

मेरे पास यह दिनांक / समय प्रारूप है: शुक्र, 17 अक्टूबर 2014 22:12 : 51 +3: 30 मुझे पता है कि सही पैटर्न है: 'डी, डी MYH: i: s P' लेकिन इस त्रुटि के साथ इस मुठभेड़ का उपयोग करते समय: तिथि प्रारूप अनुमान लगाने के लिए असंभव: शुक्र, 17 अक्टूबर 2014 22:12:51 +3: 30 मुझे लगता है कि यह त्रुटि इसलिए होती है क्योंकि +3: 30 (जीएमटी) सच नहीं है और सच है +3: 30 मुझे पता नहीं कैसे इसे हल करने के लिए ?! (मैं आरएसएस पढ़ने के लिए सिम्फनी में डीब्रिल_आरएसएस_टॉम का उपयोग कर रहा हूं, साइट्स की आरएसएस का प्रकाशन दिनांक विशेषता है, और डिब्रिल के पास एक प्रारूप के अनुसार एक प्रकाशन तिथि पढ़ने का एक हिस्सा है:) सार्वजनिक फ़ंक्शन लोड (सरणी $ configs, कंटेनरबिल्डर $ कंटेनर) {$ कॉन्फ़िगरेशन = नया कॉन्फ़िगरेशन (); $ Config = $ this- & gt; प्रक्रिया कॉन्फ़िगरेशन ($ कॉन्फ़िगरेशन, $ configs); $ लोडर = नया लोडर \ एक्सएमएलफाइल लोडर ($ कंटेनर, नया फाईललाओकेटर (__ डीआईआर__। '/../Resources/config')); $ Loader- & gt; लोड ( 'services.xml'); $ Default = array (\ Date...

why does pymongo's find_one fail silently? (nginx/uwsgi/flask/gevent/pymongo) -

Summary: In my flask + javant + uwsgi + nginx, Pampo silently for no reason Have to feel the app I'll get some hints, where should I look I'm a newcomer to web application programming (and python), please stand by me, I'm porting an app to the OpenStock provider for everyone , And I think that the code that works well at first fails later and silently later. I wonder if someone can put some light on it. This is the question in question: Emergency is a Pimpo collection. This is correct immediately. user_id is the user ID I'm looking for. this is right. 22 def get_emergency_by_user (user_id): 23 print "The user is going to find an emergency:" + user_id 24 print emergency 25 print emergency drawer.user_id 26 try: 27 emergency = emergency ('EmergencyDict.user_id: user_id}) except 28: 29 Print' Mongo Fail '30 Print' This Must Appear '31 Print' Emergency -% s'% Emergency 32 Return Emergency Here is the output from ...

ios - Table cell constraints breaking on row insert -

Image
I have a UICollectionView in the table view cell, I have put some constraints on the cell so that the eclipse value can be made square. One button will insert another view into the above cell, effectively pressing the UIColving cell to go down to make room for the new cell. When I do this, obstacles on the UICollectionView are ignored. When I insert a line, why should the barriers be ignored? What should I say to keep the barriers? I have tried to reconnect the obstacles and call the layout IFNeeded (), but he did not add them back. Edit Before: after: In the game board class I came to framing the frame with obstacles after ending the problem, I have to set the frame of the gameboard layout to see all the scenes I override the. Later, I Programming constraints determine the obstacles, by removing the frame. overcode fonts layouts preview () {superlutubeviews () // gamieboard? .frame = self.contentView.bounds} Day Lesson: Do not frame with obstacles.

Android how to cancel AlarmManager.setAlarmClock() -

In API 21, this is what sets a new alarm and the status bar displays the alarm icon. I use it like this: AlarmManager AM = (alarm manager) context.getSystemService (Context.ALARM_SERVICE); Intent = Intentional Intent (ALARM_ALERT_ACTION); Pending delegation sender = pending content.thebredcast (references, 0, feedback, pending entity.FLAG_CANCEL_CURRENT); Am.setAlarmClock (new AlarmManager.AlarmClockInfo (time, sender), sender); The problem is that I do not know how to cancel this alarm, because this code does not work: am.cancel (pendingIntent GetBroadcast (Reference, 0, New Intent (ALARM_ALERT_ACTION, Pending Provider.FLAG_CANCEL_CURRENT)); The alarm has been canceled (my broadcaster receiver's receiver is not called), but the status bar alarm icon is still displayed and the alarmmanager.getNextAlarmClock () this alarm gives. pending agent FLAG_CANCEL_CURRENT says, "Cancel current pending . Conflicts AlarmManager when you go to cancellation , and...

In Python ,how do I merge lists element wise? -

इस सवाल का पहले से ही एक उत्तर है: 16 उत्तर मेरे पास [ [1,2,3], [5,6,7]] और सूची बनाना चाहते हैं [[1,5], [2,6], [3,7]] । मैं इसे पायथन में कैसे कर सकता हूं? & gt; & gt; & gt; ज़िप ([1,2,3], [4, 5, 6]) [(1, 4), (2, 5), (3, 6)] कनवर्ट करने के लिए एक सूची में प्रत्येक तत्व & gt; & gt; & gt; ज़िप में ([1, 2, 3], [4, 5, 6]) [[1, 4], [2, 5], [3, 6]] के लिए [सूची (ए)

JavaScript for video source is causing jssor slider to display all caption at once -

I have created a website with a JS slider, the page is loading, for one second before working All slider captions start displaying normal To get a little out of the page, to see what actually causes the reason, some javascript is loading a video link from another website, the reason is this. & lt; Script type = "text / javascript" src = "js / vm_open.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Client = "1111"; Openthis = "A_e2343ccc"; Lang = "n"; Menuaccess = false; Autoplay = false; Width = 450; Vm_open (); & Lt; / Script & gt; Originally, the Fast Script Line was full of video websites but I did put the script on my server to avoid long loading through the Internet. Although the loading time was small, the result is still not satisfactory. Is it possible to add delay to that specific function so that the video loading before loading JSRO slider, slider...

vba - create new query based on access form -

This is my problem. I am working with a database which is very easy, with a table of 21 fields and a series of values. I have created a simple select query that selects 2 fields and generates a total value based on a query count field. What I would like to do is an input form with a combo box, which allows the user to enter the field in which they want to select the field, basically to run the query yourself Creating a GUI less in comparison (if possible) to a GUI Currently I have 21 potential areas, should I try to write 21 x 21 questions and then try to write some types of code which is linked to the appropriate query if criteria are chosen from the combo box Were? Is there some type of VBA script that can generate queries on the fly over and over again? Any sign on the way forward will be very useful, I have never used VBA but are not ready to tell anyone in the right direction. According to the comment, below = SQL for query SELECT paddling.Paddling, sailing. Boat, [...

django - South not detecting new model file in model folder -

I am working with a current project that projects south. Within each app there is a model folder where the model is stored in separate files. I've added a new file (shown below), but when I try to create a migration file for the model, the south fails to detect the new file and says: "Nothing has changed. " My question is, what is the correct way to find this new model in South? Thank you. Import Django.contrib.auth.models, Import groups from django.contrib import model to django.db import admin class. AdgroupEmailRecipients (models.model): users = models.ForeignKey (user) class meta: app_label = 'wifipromo' class ad-group email correspondence admin (admin.model admin): list_display = ('user_first_name', 'user_lost_name', 'user_mail ') DEF user_first_name (auto, obg): return obj.users.first_name user_first_name.short_description = "first name" def user_last_name (self, obj): return obj.users.last_name user_last_name.short_desc...

express - Automatically Refresh an 'app.get()' in Node.js -

I tried to find this topic everywhere, unsuccessful. I have an app.get () code, really simple, which receives a notification from the variable that is constantly changing ("Equus [ID] .status"), I Want to check if variables change from time to time? Other options Keep a track on this variable, and when it changes the app again. Get () again. My code: I want to refresh this: app1.get ("/", function (rick, race) {id = 1; res.render (__DERNAM + '/ Connected HM', 'Device:' Estima 1 ', Status: Equip [ID]. Stats, Historical: Equipped [ID] .hist});}); And this is what "status" changes app1.get ("/ open", function (req, res) {id = 1 ; [Current] "time = date format (now," H: celebrity, MM: ss "); console.log (time +" - the device is connected to 'Astera 1' port 3001; res.end}); App1.get (Ric, Race) {ID = 1; Preparation [ID] .status = 'desconectado'; [ID] Equip it with .hist = equ...

android - Delete item in listview and then refresh it -

I have the following code that uses a button which removes in a list view I values ​​(url) To store, I use a shared environment variable that indicates images displayed in the list view. Each image has this button that allows it to be removed from the list view: viewHolder.buttonHolderBorrar.setOnClickListener {NewOnClickListener} {@Override Click Public Zero (see V) {// TODO Auto-generated Stub ShareProfiction.Aditor Prefetch = MC.StextGetSharePrians ("Prefthth", ListaiimensSubidasMan.MODDPRIVAT) .edit; Prefthths Revove ("url" + position); PrefthHDTT (); Shared References. Shared Senders = Preference Manager. Gate default shared references (MContext). Edit (); Shared References Extract ("URL" + position); Shared references. Notify dataet ();}}); I suggest that the dataet update changes the list view and repeats it again after the button is pressed. In this case, what do I have to do to refresh the list view? Thank you in advance

jquery - remove specific json object from $.cookie -

I have a simple shopping cart where the user adds products to their car. Each added product is saved as a $ .cookie object. When a user removes a product, the product object is removed from the cookie or the quantity decreases after one. P> My problem is that I am not using the piece correctly, and I did not know how to make this work as a result. What originally happens is the first product object, which is kept from $ .cookie in contrast to the specific object where a match is removed. Below is my code. I am hoping that one can solve the problem. I suspect that this is "1" (the first element) that is causing the issue >> current_objs.splice (current_objs [i], 1) this is my code I $ ('body'). ('Click', '.remove_me', function (e) {var productid = $ (this). Data for ('productid'); var current_objs = $ .cookie ("obj") (i = 0; i & Lt; current_objs.length; i ++) {if (current_objs [i] .productid === productid.toSt...

objective c - Can anyone provide me an example of how to sort an array by date? -

I have an array that stores events received through an object; I want to sort them according to date I have read that "sortedArrayUsingSelector: on the array, to provide the selector for comparison: the method ', but I do not know how to use it at all. Does anyone provide me an example ? P> Once you take your array, consider: NSArray * sortedArray = [Event sortedUruseingcomputer: ^ NSCOPER ARIAN RESULT (EKEVENT * EVENT 1, EKEVENT * EVENT 2) {Return of Event 1. Start Date: Event 2. StartDate - sortedArrayUsingComparator NSComparator block, which is defined as the following: Type-cap NSC transit Result (^ nscampiator) (id ogje1, id ogje2); You can basically think about it as a block (a lambda-function) There are two logic arguments, and you tell a NSComparisonResult member that the order of two objects given is dependent on the type of object that you have in your array. Inclined, in this case, EKEvent s depends on you how you sort them; For ...

clojure - Partition specific sets -

I want to use Closer to split a specific set: For example: a Vector is [1 2 3 4 5] . Apart from this, there is also a map, such as {2 1, 3 1} , which means that 1 set generates 2 elements, and 1 set that contains 3 elements. (some_function {2 1, 3 1} [1 2 3 4 5]) ;; I only want this: (([1 2 3] [4 5]) ([1 2 4] [3 5]) ([1 2 5] [3 4]) ([1 2] [3 4 5] ) ([1 3 4] [2 5]) ([1 3 5] [2 4]) ([1 3] [2 4 5]) ([1 4 5] [2 3]) ([1 4] [2 3 5]) ([1 5] [2 3 4])) Earlier, I thought that all the cases should be used to generate, and then the basis of the situation Filter on, but it is very disabled when you have a big vector like [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17] and such as { 5 1, 6 2} (Generate 1 set containing 5 elements, and 2 sets containing 6 elements) . I just want to generate for the first time, how can I do this work? In these specific examples you give, there are 5717,712 divisions that meet those constraints , And there are not enough chances with any obstacles. ...

osx - Laravel/Homestead configuration: update aliases -

In the process of learning Laravel, I am following the tutorials Make Labrices from Scratches (Larrag) In the fist video, we are setting everything up, Eniretter asks to update the alias with the following command: sudo vi ~ / .aliases And explains: Just remember that this file will not be present on your machine, so it is possible that Bash profile. What does this mean? Open the file only to the ~ / .aliases Vi editor If you have not used this file before using it, then it probably does not exist yet, so you need to create it. To make it, you can easily run these commands: sudo touch ~ / .aliases sudo vi ~ / .aliases Or if you can use some other text editor of the preference that you can run: Sudo pstorm ~ / .aliases (for phpStorm IDE) When the file is opened, just paste it that tells you the statement.

telerik - Kendo Datasource.Data() equals Datasource.View() -

I've been working with the Kendo UI for a while and I'm stumbling on behavior, I can not understand When you go to the grid, you can see the total 830 elements. When you run the console $ ("# grid"). Data ("candrog") Datasource.view () You get an array of 20 elements (as expected). And when you run $ ("# grid") data. Data ("candrog") Datasource.source () You receive the array of the same 20 elements I tried to play with filters and from my experience. The data () actually looks the same (), which is strange. As far as I understand the documentation, I should get 20 elements while using (), but when using the data, I should get all 830 Am I doing something wrong? What is the data filter element on the backend (and paginated)? For reference, this is my backend method, which gives data for my grid. Public Performance Index Data Source ([DataSourceRequest] DataSourceRequest Request) {var customer = this.GetViewModel (...

python - the requested URL was not found on this server django -

I'm following a YouTube tutorial, and getting an error ... An error occurred The requested URL / Hello was not found on this server site / urls.py Urlpatterns = pattern ('', url (r '^ hello / $', article.views.hello), ...) article / views.py submit django.http import from HttpResponse def hello (request): name = 'mike' html = '& lt; Html & gt; & Lt; Body & gt; Sup% s & lt; / Body & gt; & Lt; / Html & gt; '% Name return HttpRequest (html) site / settings.py INSTALLED_APPS = (...' article ',) / Hello has no trailing slash ( / ). You / optionally ? : url (r '^ hello /? $', Can you create a URL pattern match by adding articles? Views.hello),

ggplot2 - R: calculate and superimpose on a ggplot graph minute-based totals for an event series -

Image
Consider a data frame df from a web server access log, with two fields ( Sample below, period is in milliseconds and to make the example easier, let's ignore the date). Time, Duration 18: 17: 26.552,8 18: 17: 26.632,10 18:17: 26.681,12 18: 17: 26.733,4 18: 17: 26.778,5 18: 17: 26.832,5 18: 17: 26.889,4 18: 17: 26.931,3: 18: 17: 26.9 9 3 18: 17: 27.040, 5 18: 17: 27.157,4 18: 17: 27.20 9,14 18: 17: 27.249,4 18: 17: 27.303,418 18: 17: 27.408,13 18: 17: 27,450, 3 18: 17: 27.506,13 18: 17: 27.546,3 18: 17 : 27.616,4 18: 17: 27.664,4 18: 17: 27.718,3 18: 17: 27.796,10 18: 17: 27.856,3 to 18: 17: 27,90 9,3 18: 17: 27.974,3 18 : 17: 28.029,3 qplot (time, duration, data = df); gives me a graph of the period I want to add the number of requests for each minute to a line to be displayed. Ideally, this line will have a point point in one minute: 30sec point if it is very complex, then an acceptable option is a phase line with the same value (number of requests) in one minute. ...

How to logout from google plus account in google plus integration in android -

I have worked but it is not working after logout, login it again in the app private zero signOutFromGplus () {if (mGoogleApiClient.isConnected ()) {// clearCookies (); Plus.AccountApi .clearDefaultAccount (mGoogleApiClient); .mGoogleApiClient.disconnect (); .mGoogleApiClient.connect (); }} This may be the old question, but I want to clear that here Probably the most freshers who made a Google login for the first time. They may face a problem with the Google Account auto-login after calling the following method. Private Zero SignOutframe (if (mGoogleApiClient Isconnected ()) {// clearCookies (); Plus.AccountApi .clearDefaultAccount (mGoogleApiClient); .mGoogleApiClient.disconnect (); .mGoogleApiClient.connect ();} } Solution: Make sure your mGoogleApiClient has not already disconnected anything, so why the reason is not entering the loop Hope this will help someone.

Getting correct MIME Type using PHP -

मैं चार मैजिक फाइलों को C: \ xampp \ php \ extras फ़ोल्डर को सही माइम प्रकार प्राप्त करने के लिए ( $ finfo = finfo_open (FILEINFO_MIME_TYPE, 'C: / xampp / php / extras') )? अंत में मुझे एक जवाब मिला ... निम्नलिखित में मैंने उपयोग किया हुआ कोड है। सूची ($ चौड़ाई, $ ऊँचाई, $ image_type) = मिलनसारण ($ _ फ़ाइलें ["फोटो"] ["tmp_name"]); $ Mime_photo = image_type_to_mime_type ($ image_type); विवरण getimagesize () फ़ंक्शन का उपयोग चौड़ाई, ऊंचाई, छवि प्रकार आदि के लिए किया जा सकता है। तब मैंने छवि_टाइप_टो_मेम_प्रकार () फ़ंक्शन पैरामीटर के साथ $ image_type का उपयोग किया था। यह फ़ंक्शन सही MIME प्रकार देता है। यदि आप ($ _FILES ["photo"] ["प्रकार"] == "छवि / Jpeg ") के लिए छवि प्रकार की तुलना करें और मान लें कि आप फ़ाइल के विस्तार को बदल रहे हैं, तो 'myprofile.txt' को 'myprofile.jpg' से तुलना करें, यह वास्तव में 'छवि / जेपीजी' के रूप में पढ़ा जाएगा, लेकिन अगर आप एमआईएमई प्रकार का उपयोग करके ...

java - Resolving dependencies in Eclipse for Fitnesse -

मेरा डेटा फ्लेक्स स्लिमरनर कार्यान्वयन का परीक्षण करने के लिए fitnesse.responders.run.slimResponder में यूनिट परीक्षण चलाने के लिए मेरा लक्ष्य है। इसलिए मैंने फ्रीटेनी स्रोत कोड को डाउनलोड किया, और इसे एक्लिप्स में एक नया जावा प्रोजेक्ट बनाया। मैं build.xml फ़ाइल पर रन एंट चींटी बिल्ड (2) का चयन करके इसे संकलित करने में सक्षम था। लेकिन हल करने के लिए एक्लिप्स में समस्याएं देखने में त्रुटियों को शामिल करने के लिए, मैंने अपने हाथों से दर्जनों बाह्य JARs को मैन्युअल रूप से जोड़ा। मुझे पता चला कि मैवेन / आइवी ने एंट बिल्ड के हिस्से के रूप में जार को जाहिरा तौर पर डाउनलोड किया था लेकिन किसी तरह इन्हें जावा बिल्ड पथ में जोड़ा नहीं गया। मुझे लगता है कि जावा बिल्ड पथ को मैन्युअल रूप से JAR फ़ाइलों को मैन्युअल रूप से जोड़ने के लिए सेट अप करने के लिए आसान तरीका होना चाहिए। .xml जाहिरा तौर पर पहले से ही यह सब जानकारी शामिल है। मैं क्या याद कर रहा हूं? फाइटिएने निर्भरता प्रबंधन के लिए अपाचे आइवी का उपयोग करते हुए उल्लेख किया है। एक्लिप्स मार्केटप्लेस से आईवीडीई डाउनलोड करें, और इसे सेट ...