Posts

Showing posts from August, 2013

redhat - Drupal core - SQL injection aftermath procedures -

What we are running is likely compromised because we have seen a big spike in network traffic, Which brought the site down. / P> Since the possibility of theft from our patching has already taken place, so what steps should we take to inform our customer? Do they need to change any password for admin login, etc., whatever is relevant? Do we need to change the DB password on our server etc? Basically, all of the above [a stream on Drupalgeddon project page] The chart is () which you can follow to help tackle a clean site. Good luck

windows - command line argument to a batch file -

I want to run a script in the command line as follows: xxxx Bat param1 = some 1 absolute 2 = some 2 param3 = saomething3 I can do this with the following script: close Elko cls @echo first , Second argument:% 1% 2 set% 1 set% 2 @ a ech oa :::: ak bit b ::::% b% I use the following I will run the script on the command line, the command xxx.bat "a = 1" "b = 2" My question is, what is the I can pass the logic without quotation and I use the namespace in the script without the following: set% 1 set% 2 If you want to enable the script to be able to use them, then you have to set the variable inside the script. However, you can pass only the values ​​in the script like this: @echo off cls param1 =% 1 set param2 =% 2 Also, unless there is no free space in the argument, you do not need quotation marks.

performance - 301 redirects Apache: It is better to do it in httpd.conf or in .htaccess? -

I'm planning to make adjustments to your website's URL for better SEO and server performance, which is a problem I like a lot of care I do not want to overload the .htaccess file with several 301 redirects. Is it better to do it instead of .htaccess in httpd.conf? The .htaccess file is read in every HTML request, however, the httpd.conf file only loads once the Apache starts. Is that right? If so, will this server performance load redirection rules be improved only once? The HTAC file is not modified until it (depends on some extent on the host OS and filesystem ), So it is not being loaded for every request, however, the documentation of the APA says that the instructions in general are as fast as possible in the server / vhost configs as opposed to the instructions in the HTACAC file. See: In general, you should only use .htaccess files when you do not have access to the main server configuration file. For example, a common misconception is that user authent...

vim-go: How to open files returned by GoFiles -

The Vimeo-plugin has one: the GoFile function to show the dependent source files on the current file is output looks like this : ['/ home / tretkow / tut / main.go', '/home/tretkow/tut/test.go'] list How to open files from? : gofile only by the look of your snippet go # tool # Files () . It is possible to extract only one file name in some way: : E & lt; C-R & gt; = Know # device # files () [0] & lt; CR & gt; Or put that list in the scratch buffer: : vnew and gf to jump on file under cursor Please. Here's a more sophisticated solution: : GoFile is the command to edit through the custom tab for : GoFiles Lets choose file - news command command! -nargs = 1 -complete = customlist, GoFilesComplete GoFile Call GoFile (& lt; f-args & gt;) "Full Function Function! GoFilesComplete (ArgLead, CmdLine, CursorPos) Return Filter (# Tools # Files (), Go to 'v: val = ~ a: ArgLead') "Edit: Edit Cover F...

python 3.x - Reshaping in julia -

If I resize in Python then I use it: Import nppy np y = np .asarray ([1,2,3,4,5,6,7,8]) x = 2 z = y.reshape (-1, x) print (z) and get it & gt; & Gt; & Gt; [[1 2] [3 4] [5 6] [7 8]] How do I get the same thing in Julia? I tried: z = [1,2,3,4,5,6,7,8] x = 2 a = reshape (z, x, 4) println (a) And he gave me: [1 3 5 7 2 4 6 8] If I Resize (z, 4, x) to give it [1 5 2 6 3 7 4 8] Is there a way to reshape without specifying another dimension such as reshape (z, x) , or is the secondary dimension more ambiguous? how about z = [1,2,3 , 4,5,6,7,8] x = 2 a = reshape (jade, x, 4) ' which gives julia & Gt; A = reshape (z, x, 4) '4x2 array {int64,2}: 1 2 3 4 5 6 7 8 For your bonus question "However, is there a way to reshape without specifying the second dimension such as reshape (z, x) or the secondary dimension is more ambiguous?" The answer is not at all, because it would be unclear: reshape 3d, 4d, ......

python - Processing musical genres using K-nn algorithm, how to deal with extracted feature? -

I am developing a small device that is able to classify music genres. To do this, I would like to use a K NN algorithm (or some other, but it sounds great) and I am using python-yaafe for convenience. My problem is that, when I remove a feature from my song (example: mfcc) because my songs are 44100 hj-samples, I have lots of 12-value-array (sample window Number), and I really do not know how to deal with it. Is there a way to get the value of only one representative per attribute and per song? One approach would be to take at least RMS energy value as a parameter for classification. Instead of using the full music file for classification, you should use a music section. Theoretically, part of the 30-second music, starting after the first 30 seconds of music, is the best representative for style classification. So instead of taking the entire array, you can consider the time that this time is related to the window, 30sec- 59sec. Calculate the RMS energy of different si...

ios - Swift: '()' is not convertible to '[String : AnyObject]' -

I used a custom extension to combine two dictionaries But Defined Dictionary Extension in AppDelegate Extension dictionary {mitting mixing & lt; K, V> (Q: as in the form of key)}}} The way to use this new extension Class func addFbTokenParameter (json: [string: anyObject]) - & gt; [String: any object] {If key manager. Gate string (chicane manager. Static wars kfb token)! = Blue {let token = chanachan manager. Gate string (chicane manager. Static wars kfb token)! Var tokenParams: [String: AnyObject] = [kFacebook: [kToken: Tokens]] var Last Paramars: [String: AnyObject] = Token Param. Merge (JSN) Final Returns Last Paramos} and {Jason Back}} I'm getting this error on this line: var Last Paramars : [String: any object] = token param. Merge (JSN) What does this error mean? And how do I fix it? Thank you! token param. Merge (JSN) is return zero aka () . You can decide only this code by: tokenParams.merge (json) var finalParams: [...

clojure when-let alternative for an empty array? -

I am generating json literally because I can do it in closure. My problem is that some branches of JSS Only if present given parameters are given Here is a sample of such condition (Name name [uuid & [generated-UUI]] {: message {: id ( Gener-uuid): Details {: name name}}: Metadata {: batch (merge {: id uuid} (when generated-UUD (batches (Map # (Aram-Map: ID%) generated-UUD)] {: GenerateAts batches})))}}}) Unfortunately, when / Part is quite ugly. This can be done only when used as the following, but it does not work because my map returns [] to a zero. (defn message-for [name uuid & [generated-wou]] {: message {: id (gener-uuid): description {: name name}: metadata {: batch (merge) {: Id uuid} (When-Two [batches (map # (array-map: id%) generated)] {: generates bat batches}}}}}) if Any way I can create any idea - empty list / array / seak is wrong. Can I clean my code a little bit? No-empty returns the argument if it is not empty. To maintain th...

Can I create Excel Graph with width proportional to the date period? -

उदाहरण के लिए, मान लीजिए ए, बी और सी अंक: तालिका: एक 01/01/2001 1 बी 01/01/2002 1 सी 01/01/2010 1 ए और बी के बीच अंतर बी और सी से कम होना चाहिए, और यह स्थान तिथियों के बीच की दूरी के लिए आनुपातिक है। यह ग्राफ की उम्मीद है: ग्राफिक: 1 1 1 हे ---------- ओ ---------------------- ----------------------------------- ओ 2001 2002 2010 यदि आप एक एक्सेल लाइन चार्ट बनाते हैं, तो एक्सल शायद एक्स मानों को तिथियों के रूप में पहचान लेगा और अंक की साजिश के रूप में आप यह करना चाहते हैं। यदि ऐसा नहीं होता है, तो आप अक्ष को प्रारूपित कर सकते हैं और यह सुनिश्चित कर सकते हैं कि यह एक तारीख प्रकार अक्ष है। बस चार्ट बनाने से पहले तिथियों और मूल्यों का चयन करें। यदि वास्तव में ए, बी, सी के साथ एक कॉलम है, तो चार्ट बनाने से पहले इसे चयन में शामिल न करें।

apache as reverse proxy to tomcat -

I have Apache configured as a reverse proxy for Tomcat: Proxypass / demo / ajp: //demoserver.local:8009/demo/ ProxyPassReverse / demo / ajp: //demoserver.local: 8009 / demo / Great Works I Access I can not and I spoil the page of the app. I need to make changes to the URL:. So I changed the proxy configuration like this: ProxyPass / Demo 123 / AJP: //demoserver.local: 8009 / Demo / ProxyPreserve / Demo 123 / AJP: // Demosverver. Local: 800 9 / demo / I can not work it though. What happens is that send a redirect to TomT App / demo / login.htm and my web browser tries to bring that URL from the web server. Can I possibly modify the apert config and resolve without touching the Tomcat app? / html>

beanstalk - Websocket client getting 200 response code -

I have a node server to serve both http and websuck at the same port setup works fine on the local host , But when Amazon is posted on Benstock (which has a LoadBaseless and NGNX), the WS Client throws an error while establishing a YS connection: "Unexpected response code 200" I'm not 100% sure about this, but I Seem to Because nodejs server errors as the http request in some way and thus gives 200. Here is the code for my server: var WebSocketServer = Required ('websocket'). Server; Var http = Required ('http'); Var FS = Requirement ('FS'); Var indexPage = "loading index page, try again later?"; Fs.readFile ('./ index.html', function (mistake, data) {indexPage = data;}) var server = http.createServer (function (request, response) {}); Server.listen (1337, work () {}); // server vs. server = create new web server ({httpServer: server}); // websseket server wsServer.on ('request', function (request) {console.dir (req...

android - Recycle bitmaps used in XML layouts -

मैं ऐप के SplashScreen और MainActivity को दिखाने के लिए एकल XML फ़ाइल का उपयोग कर रहा हूं ... स्प्लैशस्क्रीन में ऐसी छवियां हैं जो मेमोरी ढेर को बढ़ने के लिए पैदा कर रहे हैं ( मेमोरी एनालाइज़र का उपयोग करके परीक्षण किया गया है ...) अब मैं स्प्लैशस्क्रीन की दृश्यता "चला गया" सेट करता हूं .. > एक्सएमएल जैसे parent.removeChild (splashScreen); से मेमोरी मेप पर कोई प्रभाव नहीं पड़ता क्या कोई रीसाइक्लिंग में मदद कर सकता है? स्प्लैश स्क्रीन या कोड के माध्यम से SplashScreen लेआउट बनाने के लिए XML या में बिटमैप्स मैं के लिए अन्य गतिविधि का उपयोग कर रहा हूं? > SplashScreen एक अलग गतिविधि बनाओ, एक्सएमएल के माध्यम से छवियों को सेट करें, एंड्रॉइड काफी कुशल लोड हो रहा है और संसाधनों का निपटारा कर रहा है। , और जब आप अपनी होम गतिविधि पर नेविगेट करते हैं तो गतिविधि को समाप्त करें या आप देख सकते हैं छवियों को कोड में मैन्युअल रूप से विज्ञापन करें और आपके छप को छिपाने के बाद उन्हें रीसायकल करें और अब उपयोगकर्ता को दिखाई नहीं देगा।

How to copy a 1D array to 3D array efficiently in C#? -

I have a linear array that I need to resize as a pile of 2D data. In the case, the stack contains only one element so that there is an array with the output dimension (height, width, 1). This is related to one, where I was asking about the same operation from the other direction (1D to 1D). What is the fastest way to map this data into a 3D array? I was planning to take it (byte [] buffer, int w, int h) {byte [,] buff 3d = new byte [h, w, 1] ; For (int i = 0; i But it seems possible to take advantage of how data is already stored in the memory to copy more than one element at a time. Is there some other mapping approach that can be employed in C #? It is likely to be somewhat faster: public stable byte [,] ToBuffer3Da (this byte [ ] Buffer, int w, int h) {byte [,,] buff3d = new byte [h, w, 1]; Buffer BlockCopy (buffer, 0, buff 3d, 0, h * w); Return Buff 3D; }

php - Yii2 dropdownlist WITHOUT $model -

I searched the web far and wide to solve this problem. I already know the way Yii2 dropdown: but I want to dropdown without the $ model ... is there any way to do this? Thanks in advance! You can also use Html :: dropDownList ( ) & lt ;? = Html :: dropDownList ('s_id', blank, ArrayHelper :: map (standard :: find () - & gt; all (), 's_id', 'name'))? & Gt; View

c++ - How to read the initial state of a MIDI Foot Controller? -

I understand that MIDI allows me to read the status of a MIDI Foot Controller, in which a MIDI message control control Indicates But what if the user has not changed control yet? Am I still able to read the state / value? What will be the way to do this? This is my code that is used to capture midi messages using OSX's Coremidi zero Init MIDI (MIDIlientRef midiClient; MIDIPORRef ​​inputport; Ossetatus status; MIDIEndpointRef src; Status = MIDICLientCreate (CFRert ("test"), faucet, zero, and media client); If (status! = NoErr) NSLog (@ "Error creating MIDI client:% d", position); Position = MIDIInputPortCreate (media client, CFRT ("input"), MIDI input callback, faucet, and input port); If (Status! = NoErr) NSLog (@ "Error creating MIDI input port:% d", position); MotherCount numOfDevices = MIDIGetNumberOfDevices (); // Simply try connecting to each device (Madcount i = 0; i numpackets; i ++) {const MIDIPacket * packet = & amp; Li...

bash - Filter before copy in shell -

I have a directory with files from January 2014 to November 2014. Regrettably, there are no dates in the name of the files, so only by the way I can know what file is from the file, using the ls -lrt and checking the month there. Used to be. The file was created so I have to copy these files to the second place by month. ls -lr | Grep oct will give me all October files. Now, I tried ls -lrt | Grapes October CP * /../../oct2014 This clearly did not work. Can anybody do this anyway? EDIT: Thank you very much for responding with such great responses, complete with explanations. I'm really humble. I'll try them on tomorrow morning. In addition to this, I am working with all the files which do not have any particular characters in its name. Thanks again. This is a method ls -ltr | Awk '/ Oct / {print $ NF}' | Xargs -i {} cp {} Newdir or you can use the search find type- f-newermt "Oct 01"! -November "October 31st" |...

Rasbian, java and gstreamer -

I have to generate a jar with my eclipse on the mac, and it has to be used on raspberry pi (with raspben) I use webcam-capture to take a snapshot with the USB webcam, with Driver-Gistemar But, after all the installation of Raspberry, when I launch a jar, I have an error. Exception in thread menu: java.lang.UnsatisfiedLinkError: Unable to load library 'gstreamer-0.10': the original library (linux-arm / libgstreamer-0.10.so) was not found in the resource path ( [File: /home/pi/Desktop/test.jar]) com.sun.jna.NativeLibrary.loadLibrary (NativeLibrary.javaociety71) com.sun.jna.NativeLibrary.getInstance at com.sun.jna.Library. And lt; Init & gt; (Library.java147) at com.sun.jna.Native.loadLibrary (org.gstreamer.lowlevel.GstNative.load (GstNative) at org.gstreamer.lowlevel.GNative.loadLibrary (GNative.java:45) org. Gstreamer.lowlevel.GNative.loadNativeLibrary (at GNative.javaHTML) .java: 42) at org.gstreamer.lowlevel.GstNative.load (GstNative.java39) org.gstreamer.Gst. On ...

asp.net mvc - ASP MVC prevent submit form with jquery function on separate js file -

I am trying to submit a form via AJAX using the following code: $ (document) .on ('submit', '# form-discount', function (e) {e.preventDefault () $ .ajax ({cache: false, async: true, type: 'POST' , Url: $ (this) .attr ('verb'), data: $ (this). Serialize (), preceded: function () {}, success: function (data) {},})}}); But it is reaching the controller before reaching this JavaScript code, so this takes twice the controller action. How can I avoid this behavior? You need to return a false return with your call to stop the page from completing postback. I Some: $ (document) .on ('submit', '# form-discount', function (e) {e.preventDefault () $ (action), data: $ (this ). Serialize (), preceded: function () {}, success: function (data) {},}); Returned; // stop postback});

c# - Reduce size of image after Scan? -

I scan the file and save it on my path: scan the public imagefile () {Var device = this._deviceInfo.Connect (); Var item = device.edit [1]; Imagefile = (imagefile) item.Transfer (FormatID.wiaFormatJPEG); Return image file; } Protected Zero btnscan_Click (Object Sender, EventArgs e) {foreach (Scanner Object In Object Scanner) {if (ddlSelectDevice.SelectedItem.ToString (.) Equals (scanner.ToString ())} // ddlSelectDevice as // d = scanner .SelectedIndex; Var device = scanners as scanners; If (device == faucet) {return; } Var image = device.Scan (); Var path = "~ / scanner / scan.jpeg"; If (File.Exists (Server.MapPath (Path))) {File.Delete (Server.MapPath (Path)); } Image.SaveFile (Server.MapPath (Path)); break; }}} I can convert this image into a byte in the database: byte [] image2Byte () {string filePath = null; Byte [] bytes = null; If (File.Exists (Server.MapPath ("~ / scanner / scan.jpeg")) {FilePath = Server.MapPath ("~ / scanner / scan.jpeg...

firefox os - TCPSocket.send() doesn't send immediately? -

While I was developing an app on Firefox OS I used the TCPPS reset.Set (). But it does not work well, the server can not immediately obtain data, only when I turn off the simulator, the server can get data. Buffer problem?

Prolog: Choosing NOT to insert an element during list recursion -

I have made a bill which takes 2 lists as logic and with the product of "recipes" Adds the list, although I need to create a third rule that refuses to insert the product if the product at hand is an empty list. Then the first list can look like this: recipe ([component (rice, 4), component (salt, 3), component (water, 5)] ). and the other is: content ([ingredient (rice, 3), constituent (salt, 4), constituent (water, 4)) , At this time it comes back: list = [ingredient (rice, 1), [], component (water, 1)] I want to return it to: list = [ingredient (rice, 1), component (water, 1)] need_to_buy ([], _ , List): - list = []. Need_to_buy ([H | HS], [X | X], [Difference list]: - H = ingredient (type, amount), recipes (type, zodiac, [x | x], difference), need_to_buy (hs, [ X | Xs], list). Below is how far I've got with the solution. recipes (type, type, sum, [], difference): - difference = ingredient (type, amount). Recipes (type, zodiac, [z | _...

Trying to install python package epydoc. Package shows up in help() but not in python itself -

I tried installing epydoc on Mac OSX10.10. I started 'sudo python setup.py install' ' from the epydoc folder as specified in readmeal. It seems to be setting up the file correctly. The strange thing is that when I fire the python and epydoc -help it does not epydoc Is getting, but when I am in help () and it works in comparison to EPDock which I think is set up but my dragon can not find it in some way. Do anyone know how I can get this package to run

objective c - Switching background according to time -

So I have seen the stack overflow for how to change the background image according to the current time with the IF statement; NSDateComponents: NSDateComponents * Component = [NSDateComponents new]; // AM NSInteger Hour06 = 6; // 1 Hourly Morning NSING Hour 0 8 = 8; // 2 morning NSInteger hour 11 = 11; // 3 light mornings // PM NSInteger Hour12 = 12; // 4Epionian NSINGG16 = 16; // 5LateAfternoon NSInteger hour 18 = 18; // 6 nsintester hour 20 = 20; // 7LateEvening NSInteger Hour21 = 21; // 8 Night NSINTV Hour 23 = 23; // 9 light knight if (components; hour & lt; hour 18) {self.backgroundImage = [SKSpriteNode spriteNodeWithImageNamed: @ "6Evening"]; Self.backgroundImage.position = CGPointMake (auto size.width / 2, self size. HEIGHT / 2); Self.backgroundImage.zPosition = 0.0; // Default bottom position [auto addChild: self.backgroundImage]; } But the image is not changed. I have read this & amp; It did not help either. Can anyone tell me what I am missing? ...

ios - How to animate an array of UIViews with a completion block being called after all UIViews finished animating? -

I am animating every UIView in an array and want to know when all animations will end. For example: I'm showing 10 UIViews on a View Controller with simple visual animation and a slight delay for each UIView. After all 10 animation ends, I would like to make another animation in the integer block. How do I know when all the animations will end? If your UIView s is delayed gradually, the last The queue will be the last to end you. Just do the block to complete your content. Alternatively, you can do something like this: __ block integer ended view = 0; [UIView Chet.Verticality: ... Completion: ^ (BOOL Finish) {If (++ Ended Views == NumberOffview) {// do stuff}}];

arrays - Select same elements matrix in R -

I probably have to select 5 elements as soon as possible, no. It takes a long time on large vectors: a = c (1,2,5,2,3) b = c (2,4,1,4,5) d = Results for the matrix (1: 25, nrow = 5, ncol = 5) = array (NA, dim = length (A)) (i in 1: length (a)) {result [i] = d [a [i] ], B [i]]} or (more slow) results & lt; -sapply (1: length (A), function (x) d d [cbind (a, b)] # [1] 6 17 5 17 23 For more details, remove , where you will find the following lines: A third form of indexing with a column for each dimension A numeric matrix is ​​done through: Each row of the index matrix then selects a single element of the array, and the result is a vector. On the same help page, "Example" In the section There are some examples.

AMPL error, duplicate number for set -

In AMPL, I have a set, which should store some similar values. But I have a "duplicate number" error Is there any way to do this? What is the easiest way to solve this problem? is set: set A; Data: set A: = 1 1 2; The element set in AMPL should be unique. To store counterfeit values, use the parameter instead: set s; Ultimate A {S}; Information; Ultimate: S: A: = 1 1 2 1 3 2;

jquery - Only allow listener event to run if class exists in Javascript -

I have created a progress bar javascript object which updates a progress bar when a user is left In which the "click" "event listeners tied them. I just want to trigger these click-click events if they have a specific class attached, in this case" progress-bar-right "class I am in my code I'm unable to think of a way to do this. Here's my code: Javascript object: // progress bar var progress bar = function (element, startwall , And val, step, adlaves, ederets) {this.element = element; This.endVal = endVal; This.currentVal = startVal; This.step = step; This.addLefts = addLefts; This.addRights = addRights; Var self- This;} ProgressBar.prototype.initializeProgressBar = function () {jQuery (this.element) for the progress bar ({value: this.currentVal, max: this.endVal, step: this.step}); (var i = 0; i & lt; this.addLefts.length; I ++) {this.addLefts [i] .addEventListener ("Click", this.removeAmount.bind (this), Incorrect); } (Var i = 0; ...

multithreading - How to share an Object Reference using Java Spring's Scheduled Task? -

I have an object that is used for storing jdbc connections. In simple, this object works as a JDBC connection pool manager. I have several quartz jobs and many schedulers that are configured with reference to spring applications. I want to be able to share this object reference with each object. This object is set with thread synchronized methods for security. I also have the establishment of each job to continue the data after the execution. I know that JobTatamap can be used only for primitives and strings, and it does not look like an option. I want to be able to create this object. Then I want to pass the object reference for each task. Each of the concurrent jobs will share this context. This prevents the unique object context for every job. Where can I see this goal fulfilled? Is this something completely outside the Quartz / Spring area? Thank you First and foremost, I made a big mistake I quartz Secondly, I was able to accomplish this by using bean with AutoWire....

java - Determine filesystem path of current JSP page -

Within a JSP page, I had to determine the current path of the page on the file system, for example: I want to be able to copy / paste the same code to many JSPs and each page should be aware of its file system. To reference other jsp pages (and for other utility methods for JSP), JSTL Use the library extremely convenient You can see the references to how to use it.

angularjs - Loading constant() value dynamically -

Is it possible to declare an angle? Constant ("myLabels", {}), then load it dynamically? In other words, the value of constants is a JSON blob back / set up by a web service? If so, it looks like (example pseudocode example). I believe that constant and value There is a difference between You can just use it: app.value ("myLabels", {});

How is Cassandra sorting static column families -

As far as I know, a comparator column has been specified at the family level. So far I have used it with dynamic columns (wide-line). What type of comparator is used when creating a static column family while using the ccl? Make tab songs (id uid primary key, title text, album text, artist text, data blob); And what happens if you throw an overall key in the mix. Make Table Songs (ID UIID, Title Text, Album Text, Artist Text, Data Blob, Primary Key ((ID, Title), Album); On a given physical node, the rows for a given partition key are stored in the order induced by the clustering column. So in the second case your partition key is (id, title) , and the clustering key is the album , which means that someone All the rows for the given partition key are album / html>

javascript - How do I disable predictive text for reCAPTCHA on mobile? -

I am using reCAPTCHA on a sign-up form. This is annoying on mobile devices because the phone constantly suggests the dictionary word while typing. I know how to turn it off for the common input field, and maybe it can do some JavaScript after running it and adding attributes to the input field - but ... of course It should be off by default (because it's 99% of time is useless) or is it easy to configure at least one 'off' setting? I can not find anything useful in the document. Thank you. Autocomplete on mobile device, auto correction, and automatically comes in the form of 3 features Which can be used on input areas: & lt; Input type = "article" autocorrect = "off" /> & Lt; Input type = "article" autocomplete = "off" /> & Lt; Input type = "text" autocapitalize = "off" /> You can also disable spell-checking: & lt; Input type = "text" spell check = "wro...

node.js - SMS Message getting weird characters -

We are sending an SMS to confirm the cell number, but one of these has arrived in a strange format, such as " ¿"Before every character Log on tamilillo says that it was sent as follows: direction -> Outgoing API status - & gt; Distributed Body - & gt; But we get something like this ¿HVA ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿ ¿¿¿¿¿¿¿¿¿¿T¿ This is a screenshot that we got Thanks in advance

css - Grunt, Bower and Bootstrap 3 -

My understand is that it has been compiled using Bootstrap 3. I mean, if I want to customize / view and feel the bootstrap theme, then I will modify the variable in many smaller files, and then compile my custom bootstrap. My Understanding This is a build system for javascript, which does things like mining, ugrification, etc.; And this is a plug-in architecture to define custom behavior. My Understanding This is a dependency management tool that can run as a standalone (from the shell) or a grunt plugin. If I have said anything that is not true or false, please start by correcting me! Considering that I am more or less right with my understanding, my question is: I use less, grunts and bowls to create a customized bootstrap-based app. How can i Will I use less for custom bootstrap, then use the bower to drag that custom bootstrap to my app as a dependency and then use the grint to compile / reduce your app's JS / CSS resources Will I use? Or am I here to track ...

mysql - How to select all items which the user didn't vote for yet (vote system) -

I have three tables: Video: ID, name, path ... User: ID, name, ... like: id, user_id, video_id, ... I want to select all the videos where my user did not vote. I have tried: SELECT `videos`. * Where 'id' does not select from 'video' (select 'Video_ID' where 'likes'. 'Yer_id' is not '1') Rand () ASC limit 10 by order I should also mention that my user can only see 10 items at a time, randomly selected, so I ordered them randomly and limited it to 10. Can anyone help me? Try it which is not existing : Select the video. * From where it is not present (from where choice of choice prefers 1. video = ID and choice.asser_id = USER_ID)

qt - Preserve non-ascii characters between std::string and QString -

Users in my program can either use a file name or QFileDialog on the command line . In the first case, I have a four * no encoding information, in the second I have QString . Use to store the file name later (recent files), I should call it as QString . But to open the file with std :: ifstream , I need the std :: string . Now the fun begins I can: filename = QString :: fromLocal8bit (argv [1]); Later, I can: std :: string fn = filename.toLocal8bit (). ConstData (); This works for most characters, but not all. For example, the word conversion will appear after this type of conversion, but in fact, there are different characters. Therefore, when I can have a RAITIVE.txt, and it will display the RiaTap, the file will not be found in the file. Most of the letters work, but no. (Note that when the file was selected in QFileDialog , it works properly. This does not happen when it is generated from the command line.) Is there a better way to preserve the file...

c# - Can we use SignalR with WebRTC video calling in WebForms -

I'm a newbie so it can be devious that I have registered with my ASP.NET webform project and used Signal for online users. I would like to include web rtc video calling facility. I tried to search for WebRTC with Signal R using WebRTC for more than one week through running / week but I always get an example in MVC. Can not we use Signal R in WebForms with WebRTC? If we can use, then anyone can provide / provide me, which is very simple and basic / example to me. The argument is very similar. Except your messages there are messages that need communication to connect to WebRTC. It does a broadcast for all customers connected through SignalRub. However, it is very easy to set up, where only a few users can communicate with others. . Basic Signaling Logic Client Side: & lt; Script type = "text / javascript" & gt; Var sign = $ .connection.webRTCHub; Var ready = false; // Set up our client handler signal. Client.broadest message = function (from, message...

c# - Nested ViewModels / Partial View problems in MVC -

I have two ideas: a partial view, and a scene that is partial view using @ html Surrounds "_PartialView") . Each has its own view modal: public square partial visual model {// property, etc} public class MainViewModel {public partial ViewModel p {get; Set; } // properties, etc.} When I load the second view (which uses the main visual model), then I'm getting dictionary errors, because this view and Partial view captures it Using two different view models, I can not use them with the same view modal, because partial views are presented inside many other different scenes. To be clear, in view of this, representing all the fields shared partially between the form, do I have an option, or am I trying to do something which MVC does not fit within the lack of design? You want to design it slightly differently. The main scene will have a model - lets call it mainmodel , and a partial view can be a model - we call it a partial model call Public Class Parti...

javascript - Placing instance properties in prototype constructors, good or bad? -

I have just finished reading very good articles on prototype succession in JavaScript, but amazed to see that the author is against the properties How strongly was defined in the prototype. A common mistake in creating objects for the prototype series, programmers who come from classical OOP anyway, define the same qualities above in the series because they exist for all instances. We feel the need to define the property as the intangible object describes an interface. Nevertheless, there is no point in defining a prototype in an asset that exists from the object that descends from it. Javascript is not like Java: You do not declare base object variables, which will be different from all instances of descent. It will be defined where you declare only those variables. Take the name of our animals as property Since every animal has a name, therefore it is natural to regard this property as normal for everyone, and it defines it as a common denominator, which is a prototype of a ...

java - Why deadlock is occuring intermittently in my code? -

is Below I wrote to a deadlock, but do not fall into the "code deadlock for" loop small, When I keep "loop" for 10 then there is a catastrophe. Is someone showing such behavior that why is he showing such behavior? public class CustomerUpdateDeadloackThread {public static zero main (string [] args) {customer CSTMR = new customer "Peter"); Address adrs = new address ("B-232, Bangalore"); // do not show deadlock for Loop 3 (Int i = 0; i & lt; 10; i ++) for (new Thread (new Tag object Tueac other (Sistimar, Aders)). Start (); new Thread (new tag object Tueacadik (Aders, Sistimar)). start ();}}} interface client updater {public boolean update (object obj);} class Tags implements object Tueakany Rnnabl {Grahkapdetr Taskitm object objToUpdateWith; public TagObjectsToEachOther (CustomerUpdater cspdtr, Objects Crop obj2) {this.taskItem = cspdtr; This.objToUpdateWith = obj2;} @ Override public wide run () {taskItem.update (objToUpdateWith); S...

Fixnum array memory consumption in Ruby 1.9.3 - are arrays getting compressed? -

I created a new array and use the "use code" . Fixnum (size: memory used in bytes): 100,000: 900 1,000,000: 1320 10,000,000: 17,552,240 Bagnum (Size: Memory consumption is possible for bitmate, although the consumption of fissom is very weird. I hope at least 4 bytes per element (more likely by 8 bytes because I am using a 64 bit machine) Expect to take in the array. Only logical explanation can come up for low memory consumption I have noticed that the Fixation arrays are being compressed as a bitmap, although I can not find the document that will support it. What's going on? Usage Code is: gc :: profiler. Enabled gc. Start gc :: profiler. Support A = [] 1_000_000.times one & lt; & lt; rand (2 ** 62 ) End: GC :: Profiler.Reports Result: Call the index time (seconds) Size size (bytes) Total size (Byte) Total commodity GC time (ms) 1 13.541 15700560 19223000 480575 68.00500000000120337518 2 14.017 15701880 19239360 480984 48.002999999999573...

indexing - find greater than/equal value in a column excel -

I am using INDEX and MATCH functions in Excel 2011 to know the precise date when stock value (contained in B2 = Index (A6: A24, Match (B2, IPL) D6: D 24,0)) In the example given below, Found: 9/5/14 12:45. And that's right because it actually matches that value. But if I try the same formula that matches the value of 1.40 9 64, then I got the NA value. And this is wrong because I should be bigger than 19/5/14 12:45 as it should be 1.40 9 64 1.40 9 63 and it means that the value has been done. How can I create a form that matches matches thanks In your test excel file, the D10 value is 1.40963, hence the N / A error occurs Try it - = INDEX (A5: A29, MATCH (B1, D5: D29,1))

C++ : member function pointers - Error C3867 -

मेरे पास निम्न श्रेणी है: वर्ग conditionStack: public stack {public: bool (int); बूल अजीब (इंट); बॉल्स पॉजिटिव (इंट); शून्य पुश (bool (*) (int), int); }; पुश समारोह: शून्य conditionStack :: पुश (bool (* p) (int), int a) {if (p (a)) स्टैक :: धक्का (क); } मैं निम्नलिखित तरह से main.cpp में फ़ंक्शन कॉल करता हूं conditionStack भी; यहां तक ​​कि Push (यहां तक ​​कि, यहां तक ​​कि, मान); लेकिन इसके परिणामस्वरूप निम्न त्रुटि है त्रुटि C3867: 'conditionStack :: even': फ़ंक्शन कॉल अनुपलब्ध तर्क सूची; मैंने इसे Even.push (& conditionstack :: even, value) के रूप में कॉल करने की कोशिश की; & amp; / कोड> लेकिन यह काम नहीं करता है: (क्या आप मेरी सहायता कर सकते हैं? वस्तु आवृत्ति के बारे में जानकारी को प्रतिनिधि कहा जाता है और सी + + में कोई मानक सुविधा नहीं थी। चूंकि सी ++ 11 में std :: function है। आपको इसकी एक नज़र रखना चाहिए: उदाहरणों में से एक से पता चलता है कि आप क्या चाहते हैं: // किसी सदस्य फ़ंक्शन पर कॉल करें: std :: function & ...

Get an array of images from a resx file C# -

I am having trouble getting images from my properties. In an array of resources Each image has its own name, but I can not find any way to manually put it into an array manually without typing them. System.Drawing.Bitmap [] imageArray = New system. Drawing. Bitmap [29]; ImageArray [0] = Properties. Resources.Corno; ImageArray [1] = Properties. Resources. BatteryNan; ImageArray [2] = Properties. Resources. Battermann Micro; etc. Is there any easy way to create an array from my resource.rex file without changing the names of files? You can use ResourceSet to generate an array: var resourcesset = properties Resources. resource Manager. GetResourceSet (System. Globalization. Cultural Information. Current Ukuret, True, True); System.Drawing.Bitmap [] imageArray = resourceSet.OfType & lt; System.Collections.DictionaryEntry & gt; (). Select (i => (System.Drawing. Bitmap) i.Value) .toArray ();

Passing a list of values using vb.net -

I am trying to figure out the best way to pass a list of values ​​of a function using vb.net . Actually I have to give a string, object, string, which can be a list of 10 or less. An example would be: string, object, string string, object, string string, object, string string, object, string string, object, string I am trying to find the best way to pass this type of data structure. I have used the arrays in the past but I am not sure that it will be the best solution of such things and if there is a better way then I really want to learn something new. Thank you. I will create a custom class or structure that holds these values: Public Class MyClass Public String as Public MyString1 Objects as Public MyObject String Excerpt category as MyString2 Then you can create your list with the collection of these items / You can populate and pass that collection in the method. Then make your method signature: Give me new list as my list (MyClass). > public sub...

c++ - Best approach to detect people in a STATIC camera images ( not using video stream ) - HOG, Haar, BackgroundSubtract in OpenCV? -

Image
So I'm planning to implement static camera images to human identities - the camera never runs, but light The situation of the person may be right or sitting. Question: In such a case, what would be better for people to find out? Horsescade is mostly related to the face and eyes and my images are taken from an angle, especially for those on the back side of the camera It is very difficult to trace the characteristics. HOG Features - I'm sure this one backgroundSubtractorMOG - does not seem to provide a very good result now Even by using several images to "create a background, to run it through subteacacters" Sample image with no one in it: It would be easy to find out that a picture And runs? Detecting the body, which can be in different positions, will be very difficult (especially if half of the body is hidden behind a table) I am writing a face detection algorithm in the moment using Horsscade - this is someone It can also deal with t...

html5 - footer text moved from footer background -

I have a layout with HTML elements like section & amp; Foot Note. The problem is that the footer is very oddly displayed: the footer (black text on the red background in the color below) is taken down and the footer is not displayed in the background color padding property also works incorrectly Does. HTML code: & lt; Section & gt; & Lt; Div class = 'post' & gt; & Lt; Div class = 'post-title' gt; & Gt; Title for 1 & lt; / Div & gt; & Lt; Div class = 'post-subtitle' & gt; & Lt; Div class = 'added' & gt; BY & lt; SPAN class = 'blue' & gt; Mark XXXX & lt; / SPAN & gt; & Lt; / Div & gt; & Lt; Div square = 'added-at' & gt; 10: 10: 00 12/12/2014 & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = 'post-body' & gt; & Lt; P & gt; Body body body body body body body body body body body body body body body body bod...

javascript - D3 animation (transition) does NOT work on Angular app -

I have cut a directive with a simple pie chart inside the instruction. It is an accurate sample in that work but once I Trying to move it to my web app, I get the graph created at the top of the last session (overlay), but there is no animation. I do not get any console error when I log a data for the data, the data is passing correctly Here is the software I am currently using: AngularJS v1.2.1, d3 version: "3.4.13", which is being hosted by Express and NodesJS. This error may be due to any suggestions I do not have to reset SVG every time when I get new data, I want a smooth transition. var app = angular Modules ('app', ['ngrut', 'ngcquis']); App.directive ('barChart', function ($ parse) {d3.edge = {}; d3.edge.donut = function module () {var width = 460, height = 300, radius = math. Minutes (width, height ) / 2; var color = d3.scale.category20 (); ............. // is similar to the rest of the JS bell Working angle connectors...

mysql - Complicated (my)SQL left join -

Is it possible to join a left, which will result in the following assumptions: Table A: ID value 1 foo 2 times 3 fobar saribb: foreign alien_arma 1 fish 1 soup The result of the inclusion should be the result of Table A (joining the left) and additionally the result included in A and B: SELECT * from a complex B Joining AID = B Forging: ID value foreign foreign_quality 1fu nail faucet 1fu 1 fish 1fu 1 soup 2 times nail faucet 3 foobar faucet shown examples - The first row of the result does not exist when adding a normal left. Is that possible? No, such a possibility is not possible, because you will not get the line before you. You can use a union such as SELECT a.id, a.value, b.foreign, b.foreign_value. . Select a union from a.id, a.value, null, null a This will give the expected results in your example, but I do not understand why you tried to do this We do . So I do not know that it gives the expected results in the normal case.

JavaScript calling a getter from its function -

is trying to do something that looks like pseudo-code will look like this: (function (scope) {scope.doSomenthin = function () {if (x === y & amp; this.onfinish) {// if present, run onfinish; Should return. ();}}}) (Scope); Window.scope = window.scope || (Window.scope = {}); Scope.doSomenthin () Onfinish = function () {return 'fin'} At run time if onfinish is present, try to run that function using gates / setter But at that time it will return the undefined. Works from time to time, but nothing has to do with it. Any other ideas? Thank you. I'm not sure if I fully understand the question, but I guess what you do Do you want to set a context for the tasks you have called below, what are you doing after you? // Create an object that accesses the properties of an object and with 'this' var doSomethin = function () {var result = "nonfinish"; If (this.onfinish) {// If present, run onfinish, then 'fin' result = this.onfinish (...

php - Displayin custom taxonomies in custom post type columns -

I have seen many posts about adding custom carbonos in CPT columns; I say that besides showing taxonomies (publication), I am capable of doing all the work. Here is my CPT code: add_action ('init', 'pb_custom_post_type'); Function pb_custom_post_type () {$ labels = array ( 'name' = & gt; _x ( 'press',' post type generic name '),' singular_name '= & gt; _x (' press' Post type singular name ' ), 'Add_new' = & gt; _x ( 'Add new', 'review'), 'add_new_item' = & gt; __ ( 'Add new press'),' edit_item '= & gt; __ (' edit Press ), 'Nya_aitm' = & Gt; __ ( 'new Press), "Sbi_itm' = & gt; __ ( 'the press'), 'Drishy_aitm' = & gt; __ ( 'Views Press'), 'Khoj_tms' = & Gt; __ ('search press',' no_found '=> (no' press no '),' not_found_in_trash '= & gt; __ (...

php - Retrieval of fba sellers from amazon (api) -

Can I get the count of FBA vendors for a product via API? User can input the product by name and Amazon API, we have to retrieve the FBA count for that product if yes you can refer to the documentation link please Tell me that you need more details ... The documentation has been given here: The operation you need to run is called GetCompetitivePricingForASIN and / Or GetLowestOfferListingsForASIN Here you can download many example libs: You will receive a part of the response (in GetCompetitivePricingForASIN) : & lt; NumberOfOfferListings & gt; & Lt; OfferLestingCount Status = "Any" & gt; 11 & lt; / OfferListingCount & gt; & Lt; OfferLestingCount Status = "used" & gt; 1 & lt; / OfferListingCount & gt; & Lt; OfferLestingCount Status = "New" & gt; 10 & lt; / OfferListingCount & gt; & Lt; / NumberOfOfferListings & gt; and GetLowestOfferListingsForASIN: & ...

jquery - Javascript: Using a method from model in javascript code -

I am trying to set up users on an asset, and I am not in the problem of ensuring that How to max_users method in asset.rb in my JS code The hardware will always be set with a maximum of 1gius, I'm trying to use the max_users method with the "coded gem" so that the "end more" button disappears. While the software never has a max_user value. Should work as Max_users, as is profile_type. JS works, but instead always stops at 1, I have to register it in the max_user, and show / hide based on it. Any help would be greatly appreciated. And thank you in advance. JS: $ -> Check_to_hide_add_link = - & gt; If $ ("# assets_users. Nested-fields") is a length of 1 $ ("# assets_users."). Hide () and $ ("# assets_users .a link"). Show () $ ("# assets_users") .bind "cocoon: post-enter", - & gt; Check_to_heide_ad_link () $ ("# assets_users"). Tie "Cocoon: Later-Delete", - & gt...

Is floating point division sufficient to determine bin number accurately? -

I'm trying to correctly account for the exact meridien crossing and I'm about IEEE floating point arithmetic Ran into the following question (Round for closest): Let n be an integer, and d is a small positive number. y = n * 360 - d & lt; n * 360 The guarantee is that floor ( y / 360) & lt; n All functions (* - & lt; / floor) should be treated as floating operations (for example, using double precision IEEE). What will happen if some other positive floating point number in 360 of this question (The same question arises when a floating point quantity is being specified in the same distance box.) N * 360 - D & lt; N * 360 -> 0 - d & lt; 0 -> D & gt; 0 is correct because " D (is) a shortened positive number". n is irrelevant till now. y = n * 360 - d -> y / 360 = n - d / 360 - -> with 0.0 & lt; = Q & lt; 1.0 , floor (y / 360) + q = n - d / 360 -> floor (y / 360) - ...

html - Can number of dashes be determined in css border bottom property? -

I have an input text box with the following requirements. with fixed size Input text: & lt; Input size = "5" maxlength = "5" /> & Lt; / Div & gt; I'm trying to say that is Bella. Is the number of dashes equal to the value of text box size possible? If yes, how can I do this? Firstly it is not possible . Each browser separates different borders. You can use a workaround. In the following example I have added a ul which simulates the number of characters that can be used input {border: none; Border: 0 px dashed; Letter-spacing: 2px; } Input: Focus {framework: 0} div {boundary: 2px solid #CCC; Padding: 50px; } UL {status: relative; Top: -35px; Correct: -30px; Height: 1px; } Li {Display: Inline; Margin: 0 2px; List-style-type: none; Font-size: 8px; } & lt; Div & gt; Input text: & lt; Input size = "5" maxlength = "5" /> & Lt; Ul & gt; & Lt; Li & gt; _ & L...

php - FTP corrupts files after certain delay and/or size -

I am creating some Excel files with PHPExcel and I'm storing them on a server running the script. This part works well. Then I try to send them to the ftp_put on my client's FTP server, but the file gets corrupted on the server. Opening them after opening them the FTP server with Filezilla, I get an error saying that there is a problem with the contents of the file and if I want, try to repair as much as you want. Are there. It does not help you do this. If the excel file is less than 100-120k, which has been sent brittle without it, larger than it becomes corrupted. Send via FTP $ conn_id = ftp_connect ($ hostFTP); If ($ login_result = ftp_login ($ conn_id, $ userFTP, $ passwordFTP)) {ftp_pasv ($ conn_id, true); If (ftp_put ($ conn_id, $ remote_path $ .output_filename, $ localpath. $ Output_filename, FTP_BINARY)) {$ log = new log ("listes.log", "uploaded $ output_filename"); } And {$ log = new logs ("listes.log", "Failed to u...

Android: Changing ActionBar background color Hex code -

ठीक है, इसलिए Google डेवलपर मार्गदर्शिका निम्न मैंने लागू किए गए क्रियाबार का रंग बदलने के लिए (और विफल) की कोशिश की है मैं वर्तमान में एक्लिपस के बजाय एंड्रॉइड स्टूडियो का उपयोग कर रहा हूं और हालिया रिलीज में बस कुछ भी अपडेट कर रहा हूं। मैं मूलतः "लाइट" रंग को कुछ भी करने के लिए एक्शनबार का रंग बदलने की कोशिश कर रहा हूं। / P> यहां कुछ सुंदर कोड है। मान / styles.xml & lt; संसाधन & gt; & Lt;! - बेस एप्लिकेशन थीम - & gt; & Lt; शैली का नाम = "ऐपथीम" पेरेंट = "थीम। ऐप कॉमपेट। लाइट" & gt; & Lt; / शैली & gt; & Lt; / संसाधन & gt; मान- v21 / styles.xml & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt; & LT; संसाधनों & gt; & Lt; शैली का नाम = "ऐपथीम" पेरेंट = "थीम। ऐप कॉमपेट। लाइट" & gt; & Lt; आइटम का नाम = "एंड्रॉइड: एक्शनबारस्टाइल" & gt; @ शैली / मायएक्शनबार & lt; / item & gt; & Lt; / शैली & gt; ...

python - django-admin.py makemessages fails -

मैंने django-admin.py makemessages -a के साथ भाषा-फाइल बनाई थी एक छोटा सा विकास बाद में *। Po फ़ाइलों को बनाने के सभी प्रयास विफल हो रहे हैं: django-admin.py makemessages -v 3 -ए एक्सटेंशन के साथ फाइलों की जांच करना: .html और .txt ट्रैसबैक (सबसे हाल का कॉल अंतिम): फ़ाइल "/usr/local/bin/django-admin.py", पंक्ति 5, & lt; मॉड्यूल & gt; Management.execute_from_command_line () फ़ाइल "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", पंक्ति 385, execute_from_command_line उपयोगिता में। Execute () फ़ाइल "/ usr / local / Lib / python3.4 / dist-packages / django / core / management / __ init__.py ", पंक्ति 377, self.fetch_command (उप आदेश) exec.run_from_argv (self.argv) फ़ाइल में" / usr / local / lib / python3। 4 / dist-packages / django / core / management / base.py ", पंक्ति 288, run_from_argv self.execute (* args, ** options .__ dict__ में) फ़ाइल" /usr/local/lib/python3.4/dist- संकुल / django / core / ma...

javascript - Bootstrap Carousel interval alteration -

I have a website that uses bootstrap carousel Here's my code: & Lt; Div id = "slider" & gt; & Lt; Div id = "carousel-bounding-box" & gt; & Lt; Div class = "carousel slide" id = "mycarousel" & gt; & Lt; Div class = "carousel-interior" & gt; & Lt ;? Php if ($ images = get_field ('image', $ design_id)) {foreach ($ image => image as the key of $) {$ active = $ key == 0? 'Active': ''; Echo 'item' data-interval = "1000" & gt; '; Echo '& lt; Img src = "'$ image [' image '] [' size '] [' big ']' 'echo' '/ div & gt;';}}? & Gt; & lt; / div & gt; & Lt; a class = "left carousel-control" href = "# myCarousel" role = "button" data-slide = "back" gt; & lt; span class = "glyphicon glyphicon-chevron-left" & gt; Lt; / s...