Posts

Showing posts from May, 2013

android - Unable to convert bitmap image into byte[] -

I want to convert my captured image to byte [] When I capture the image using the camera It is captured and preview is also shown and images successfully save successfully on my external storage. But when I try to change my preview image it does not store anything in the byte array. The following is my method which is called the preview image button on my phone. public static zoom previewed image () {try {Static ByteArrayOutputStream stream = null} imgPreview.setVisibility (View.VISIBLE); Bitmapfactor Option option = new bitmapfile the option (); Options.inSampleSize = 8; Last bitmap bitmap = bitmapfile Decodefile (fileUri.getPath (), option); ImgPreview.setImageBitmap (bitmap); Stream = new byteOutStream (); Bitmap.compress (CompressFormat.JPEG, 100, Stream); Byte [] Biteire = Stream. To Batere (); } Hold (NullPointerException e) {e.printStackTrace (); }} Convert image to string & amp; Byte array, use less than code. Bytereutputstream baoos = new byteOnputstream (...

How to put multiple forms in the same page using joomla? -

I am using CecForm to create 3 forms, so far, they are independent components, I want them to keep them I'm the only one page. This manual can help: In a Joomla page Many examples of the same component , you have to check that a module or a plugin is available. If there is an option for a module, then you can publish each instance in a module state. If there is a plugin, you can create an article (or in some cases a module) and plugin code can be added to load the plugin instance. Checking the CKForms site I could see that both options are there. Hope this helps

Google Drive Android API - list of files from folder is ALWAYS outdated / cached, not fresh -

I am trying to list files from my Google Drive. I am using the official copy method from Docs, but it does not return valid results - it lists some recently deleted files and does not list some recently created files It seems that this Is cached and takes enough time (minutes, sometimes even hours) to show any changes. Anyone know how to get real time and valid - old and not cached - Drive the list of files from Google I am using this method: // I need to get Root directory query list of the files that were trashed = new Query.Builder () addFilter (Filters.eq (SearchableField.TRASHED, wrong) .build (); DriveFolder folder = Drive.DriveApi.getRootFolder (mGoogleApiClient); MetadataBufferResult filesMetadata = folder.queryChildren (mGoogleApiClient, query) .await (); if (filesMetadata.getStatus () isSuccess () !.) {log ( "failed"); return false;} iterator & LT; metadata & gt; it filesMetadata. getMetadataBuffer = (). iterator (); while (ItkhasNext ()) {metadata ...

load testing - Does JMeter support to test mobile application? -

क्या हम मोबाइल एप्लिकेशन या तो आईओएस / एंड्रॉइड (मूल / हाइब्रिड) ऐपache जेएमेटर का उपयोग कर ऐप परीक्षण कर सकते हैं? यदि हाँ, तो क्या तरीका है? आप सीधे मोबाइल एप्लिकेशन का परीक्षण नहीं कर सकते हैं, यह लोड करने में कितना समय लगता है , जेएममीटर के माध्यम से यह कैसे संवेदनशील है, आदि। जेएमटर के साथ आप क्या कर सकते हैं कि आपके बैकएंड सर्वर से प्रदर्शन करने के लिए बड़ी संख्या में मोबाइल उपकरणों का प्रदर्शन करना और यह सुनिश्चित करने के लिए कुछ क्लाइंट-साइड का दावा भी लागू होता है कि सर्वर का प्रतिसाद गलत नहीं है मोबाइल एप्लिकेशन नेटवर्क गतिविधि को इस प्रकार से रिकॉर्ड करना संभव है: उपरोक्त HTTP (एस) टेस्ट स्क्रिप्ट रिकॉर्डर और कार्यक्षेत्र को जोड़ें सुनिश्चित करें कि मेजबान, चल रहे जेएमेटर और मोबाइल डिवाइस एक ही नेटवर्क पर हैं (यानी वाईफ़ाई का उपयोग करें, सेल्युलर डेटा प्लान नहीं) और मेजबान चलने वाला जेएमेटर सुलभ है (अर्थात फ़ायरवॉल सॉफ़्टवेयर पोर्ट 8080 ब्लॉक नहीं करता है) जेएमेटर की प्रॉक्सी प्रारंभ करें जेएमेटर के प्रॉक्सी का उपयोग करने के लिए उपकरण कॉन्फ़िगर करें अ...

java - Whether a thread in WAITING state can be in indefinite waiting -

We have a multi-threaded Java based carba server application and receive notification being sent through one of the other applications in the thread to be responsible for corruption the problem is that notifications are not being processed information through the responsible application to send I used to dump many threads Jestak Has taken and the following threads I have seen the same waiting condition in all the gestacks. I know that the first thread that is a worker thread created by VC Broker will indicate the second thread (Notification Consumer Yarn). But my suspicion is the first thread (first shown below), which is in a waiting position on an object monitor, perhaps a Unix process that extends with the receiveBatchEvent () method. Unix Process Ended Process Has Finished, Will Thread Always Be In Waiting Mode? "VBJ = ThreadPool worker id = 4 = unsafe SCM = iiop_tp shell = 419d05" daemon prio = 3 tid = 0x087c3c00 LWP = 62 NID = 0x3e in Object.wait () [0xea6ee0...

How not to show transpiled files in Chrome Developer Tools when Ctrl + O -

Image
Both original & amp; The transfiled file is displayed while opening the file. I would like to show only the original files (Firefox Dev Tools do this) is possible? Firefox 23+ has the option of showing the original source instead of a transparent script: Unfortunately, it seems that you have it in Chrome Can not enjoy it. You can enable script mapping, or not, but you will always see successful files included in the source HTML file. All of these tutorials and references agree: (Chrome, Windows) (Chrome, OSX) (Chrome, Windows) (Chrome Developers Video) (Chrome, Windows) It seems that the real In one wants to hide mutual javascript files in DevTools, Firefox is now the way to go (as in Chrome Canary 49).

java - Ignore symbols on String.contain -

I am working as a search in my app and need to check whether my text includes that word The user who has entered has entered. Currently my code is: if (textToCheck.toLowerCase (.) Contains (input.toLowerCase ())) { That works perfectly well. But, I want to search my search wisely, and only search for letters, for example if the app has other symbols (instead of as), then the app will ignore them: Example: If this is my text and this is my input, then I need a match. textToCheck = "will not work with search, comma, bracket, or any other symbol" input = "work with comma brackets" You / ** * @surf * @seer Http://stackoverflow.com/questions/15190656/easy-way-to-remove-utf-8-accents-from-a-string * / Private static string strip accents (strings) {string s1 = normalized.Normalize (s) , Normalizer.form.nfd); S1 = s1.replaceAll ("[\\ p {InCombiningDiacriticalMarks}]", ""); Return s1; } Private Static String only alphabets (s...

datetime(6) works on XAMPP but not on latest Ubuntu MySQL server -

I have an API which I can use only 1000 times per day. So every time I call API, keep a timestamp in a database. Now if I put a timestamp in a database in the same database, and this is the primary key, then I get an exception, causing the problem ( 6) The problem has been solved by adding number of each other) create tab 'epical' (`timestamp) day-time (6) tap default cURRENT_TIMESTAMP (6), primary key (`Timestamp`) engine = InnoDB DEFAULT CHARSET = latin1; If I use workspace and keep it from Xampp on Windows in my MySQL, this is fine and without problems. If I add the exact same code in the workspace of my Ubuntu lamp server, it says that there is a syntax error. Does anyone know why, why are documents, why link to a blog? Or perhaps more important, is a suggestion for a positive solution? A version difference between mysql is Local and Ubuntu Server. At least you have MySQL 5.6.4 in your locality where it is less than in Ubuntu, and datetime (n) ...

wordpress: wp_delete_post in uninstall.php doesn't delete my custom posts -

Hi :) I am working on my first plugin .. I have registered my custom post types, its meta box And its classification .. Everything works fine except that when I uninstall the plugin, then uninstall my. Function in the EPP does not remove the post. Here my uninstall.php // If the uninstallation is not called from WordPress, then exit (define (' WP_UNINSTALL_PLUGIN ')) {exit; } Global $ wpdb; // Delete all custom post types $ posts = get_posts (array ('numberposts' =>, 'post_type' = & gt; 'my-custom-post', // $ post_type 'post_status' = & Gt; any ')); Foreign Currency ($ post as $ post) {wp_delete_post ($ post-> ID, true); } I have seen everywhere - even inside other plugins - and it seems that this is the right way to do it ... someone can tell me why this does not work is? Or even if there is any other way? from codecs, register_uninstall_hook uninstallers Hook registers that is said to be the user who cli...

css - Responsive HTML Emails need tables? -

I have to create an email template and make it responsive. Need to use media queries and CSS styles on how to get the layout that you are not able to get a heading etc. I was thinking the tables are no longer required (they are quite Are upset anyway). But I explain to blog how to create responsive HTML emails with tables, so I wonder why they have used CSS? Is this some kind of compatibility approach? So that the old system will still show the layout, even if not right and new ones will look better? Cheers. "Text" itemprop = "text"> Email clients really use the old rendering engine if you have the option to use the divisions rather than tables. If you choose, you will see your email break almost everywhere (especially the approach). By using tables you have to support those old email clients as those that make it responsive to your email, as well as support. There are good tutorials that you can start with templates that you can start a lot of, I...

python - Sharing code between two almost identical widgets PySide -

I have two widgets that are almost identical, the difference is one of them is an extra button, both of them have a bunch of methods. Which are exactly the same. Is it the code to share between them? The best option here is subclassing? Some day I would like to change the superclass with the procedure in the sub-class. Just use regular legacy. class A (QtGui.QWidget): def __init __ (self): super () .__ init __ () self.x = 1 self._initProperties () # values ​​in legacy Special method for change # End manufacturer def _initProperties (self): "" ". Special inheritance properties start" "" self.setLayout (QtGui.QVBoxLayout ()) # end_initProperties def do_something (self): return self.x class B (A): # def __init __ (self): # super () .__ init (__) # # self.y = 2 # # Because we have _initProperties that will be at the proper time we really do not need # __init__ Is just using _initProperties A. # However, I will still use __init__ I just comment it o...

dll - Where is the version and publickey token information stored in an application? -

I load a project from TFS on my local machine. But this requires log4Net Libary, and I downloaded it from the Internet. It has been successfully rebuilt but when it runs, an exception occurs. The file or assembly could not be loaded 'log4net, version = 1.2.10.0, culture = neutral, public keychone = 1B44A14942115821' or one of its dependencies A clear definition of assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040) I know that this version and publisher have a problem mixing token. But my question is, when the code runs in the studio studio, how can it detect that it requires Log4N in version4.2? Can anyone help? Thank you. There is a Log 4 Net assembly with this version in your project which is here; It may be a direct reference or an indirect reference (your project reference A.dll which may refer to the log4net.dll reference) Look through your projects to find the referenced assembly, and So complete the context (correct ver...

Docker daemon config file on boot2docker / docker-machine / Docker Toolbox -

Where can I find the Docker Daemon config file on a boot2dock machine? According to this topic: I want to set "code" in "code", but I want to configure it in the file / etc / default or Somewhere else boot 2 docker ( boot2docker ssh ) / docker-machine ( Docker-Machine SSH ) or open the file / var / lib / boot2docker / profile and add the following line: EXTRA_ARGS = " - DNS 192.168.1.145 " Also works for: EXTRA_ARGS =" - After the change you need to restart the Docker daemon : sudo /etc/init.d/docker restart code> or leave boot2docker / docker-machine and complete virtual machine Restart: boot2docker restart # docker Default Runtime for Machine Docker Machine Information taken from: Regards

android - Unable to get currently connected WiFi supported encryption type information -

Text after " I'm using the code below to regain the associated WiFi encryption type, Code snippet: list & lt; WiFi configuration & gt; WifiConfigs = wifiMgr.getConfiguredNetworks (); {WifiConfiguration config: wifiConfigs} {if (! Config = null & amp; ssid.equalsIgnoreCase (config.) For (wifiConfigs = Null & amp; wifiConfigs.size ()> 0!) SSID) {if (Config.allowedKeyManagement.get (KeyMgmt.WPA_PSK)) {encryptionType.append ("WPA_PSK"); } If (config.allowedKeyManagement.get (KeyMgmt.WPA_EAP)) {encryptionType.append ("WPA_EAP"); } If (config.allowedKeyManagement.get (KeyMgmt.IEEE8021X)) {encryptionType.append ("IEEE8021X"); } Else {if (config.wepKeys [0]! = Null) {return "WEP"; } And {return "no"; Problem: As of "802.1x EAP (CCKM)" in Android device, showing currently connected WiFi access points. encryption type. But the above code always returns "no" as a result How do I get rea...

java - How to get a unique method identifier? -

I need to get a unique method identifier to use as a key on a hashmap. I am attempting to do something to use stacktrace and reflection and the user to use the method signature. But the problem is that I did not find any way to get back the signature (to avoid methods overload). edit I like that some things like this work: public class class 1 {Hashmap & Lt; String, Object & gt; Hm; Public Class 1 () {Hm = new Hashmap & lt; String, Object & gt; (); } Public Object Method () {if (! ContainKey ()) {Object Value; ... put (value); } Return (); } Public object method (string request 1) {if (! Contains any ()) {object value; ... put (value); } Return (); } Public boolean () (if (hm.containsKey (Util.getUniqueID (2)) {Back true;} Other {return false;}} Public zero entry (object value) {hm.put (Util.getUniqueID ( 2), value);} get the public object () {string key = Util.getUniqueID (2); if (hm.containsKey (key) {return hm.get (key);} else {return null;}}} Class Ut...

python - Delete an instance of a class -

I have already asked a similar question and I have received quite a useful answer. But since then I have modified my code, now it is more favorable, I think, it should be more flexible, but the same problem persists. I can not remove an event in class What am I trying to do to create a circle (on the left click) and then I hope the program will have to destroy the circle (right-click on the right). My code: to tkinter import * class Application: def __init __ (self): self.fen = Tk () self.fen.title ('Rom-rom-roooooom') Self. Butt1 = button (self.fen, text = 'quit', command = self.fen.quit) self.can1 = canvas (selfie, width = 300, height = 300, bg = 'ivory') itself .can1.grid ( Line = 1) self.butt1.grid (line = 2) self.fen.bind ("& lt; button-1;", self.create_obj) self.fen.bind ("& lt; button-3" ", Self.delete_obj) self.fen.mainloop () def create_obj (self, incident): self.d = oval () self.can1.create_oval (self.d.x1, sel...

Jquery Rule validation for allowing integer and space -

पूर्णांक स्वीकार करने के लिए मेरा वर्तमान सत्यापनकर्ता $ ("#UserForm")। Validate ({नियम: {संपर्क: {अपेक्षित: सच, संख्या: सत्य, मीनलाइन: 6,}}}); यह ठीक काम करता है लेकिन अब मैं इसमें बदलाव करना चाहता हूं ताकि रिक्त स्थान स्वीकार कर सकें। मेरा कोड क्या होना चाहिए? कृपया jquery में शुरुआत कर रहा हूँ कृपया आप pattern नियम का उपयोग कर सकते हैं अतिरिक्त- method.js फ़ाइल में परिभाषित jQuery (फ़ंक्शन ($) {$ ("# UserForm")। मान्य करें ({नियम: {contact: {आवश्यक: सच, पैटर्न: / ^ [\ D \ s] + $ /, minlength: 6,}}, संदेश: {संपर्क: {पैटर्न: 'कृपया अंक या स्पेस वर्ण केवल'}}})}};); & lt; script type = "text / javascript" src = "http://code.jquery.com/jquery-1.11.1 .js "& gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.12.0/jquery.validate.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt;...

github - Git on Yosemite keeps asking for remote username and password -

I updated on OS X Yosemite, the terminal asks for my user name and password (on remote geotherm) GIT commands have to be run with remote rio (bridge, fetch etc.). If I execute these actions from GitB client for Mac, then it does not ask for credentials. My GIT config file is okay my SSH key is also okay I tried to restore the git command line tool without success from the github app. Any suggestions? Go to the command line. git config --global credential.helper osxkeychain Then run your git command. Here's the link that helped me out.

fabricjs - While using Fabric lib, how to set a cursor during isDrawingMode to a custom cursor file -

I use Fabric Lib and I want to change the cursor to an external cursor file. I usually use the canvas CSS by changing the cursor for the URL of the cursor file. Any way to do this in clothes? I tried: canvas.free drawing cards = 'url ()'; But does it work any thoughts? To add a cursor file as a resource, you have to use the following syntax: canvas.freeDrawingCursor = 'url (http://ani.cursors-4u.net/movie/mov-2/mov130.cur), default'; By default, the freight drawing cursor has two arguments when you deal with external resources: 1. The URL of the resource or file 2. The type of cursor in that file

angularjs - AngularFire: how to set $location.path in onAuth()? -

I am creating an angular + firebase app with user authentication (0.8 with an angle). I need to use on the author (orthos) event handler because I will provide multiple authentication paths, include social and want to avoid code duplication. Inside the OnAuth callback, I have to reset the location.path to '/'. Usually everything works well, but, if the pre-certified session ( & lt; F5 & gt; , for example), at $ scope $ Applied () me "Error: [$ rootScope: inprog] $ already running" (If I do not use $. $ Apply (), Does not apply to location path area, and no page changes occur). I suspect that I make some stupid mistakes, but I can not recognize it. .. This is my workflow: app.controller ('AuthCtrl', function ($ radius, $ rootsecope, user) {var ref = new firebase (MY_FIREBASE_URL) )); $ Scope.init = function () {$ scope.users = []; User.all. $ BindTo ($ scope, 'user'). Then (function () {console.info ('$ scope.users binding...

regex - Capturing string into multiple properties with Ant -

I need to map the standard ivy dependency tag to my three properties (org, name, rev). & lt ;! - & amp; Dependency \ s + org = "([^" +) "\ s + name =" ([^ "] +)" \ s + revenue = "([^"] +) "* /> -. Gt; & lt; regexp id = "ivyPattern" pattern = "& amp; Lt; Dependency \ s + organ = & amp; Quot; ([^ & Amp; quot;] +) & amp; Quot; \ S + name = & amp; Quot; ([^ & Amp; quot;] +) & amp; Quot; \ S + Revenue = & amp; Quot; ([^ & Amp; quot;] +) & amp; Quot; *. / & Amp; Gt; "/> Target name =" Capture "depends =" Ivy cadence "> propertyregex Selects casesensitive = "false" regexp = "ivyPattern" input = "$ {dependency}" = "\ 1" property = "organ" /> gt; propertyregex casesensitive = "incorrect" regexp = "ivyPattern" input Select = "$ {Dependency}" Select = "\ ...

c# - VS2008 - Outputting a different file name for Debug/Release configurations -

When creating a C # application with Visual Studio 2008, is it possible to set a separate output filename for every configuration? such as MyApp_Debug.exe MyApp_Release.exe Attempting to change the name of the file by adding the configuration has tried a post-build phase, but it seems that there is a scraper approach. In addition to this, Visual Studio can no longer find the file by pressing F5 to start debugging. You can get it by hand by editing your project file & lt; AssemblyName & gt; Find the node and add conditional attribute to it: & lt; Assembly name condition = "'$ (configuration)' == 'debug'" & gt; MyApp_Debug.exe & lt; / AssemblyName & gt; & Lt; Assembly name condition = "'$ (configuration)' == 'release'" & gt; MyApp_Release.exe & lt; / Assembly name & gt; You must duplicate it to add another conditional feature to the release version. Although it is possible, t...

internet explorer - InternetExplorer | IE.au3 get all the cookies of a session -

I tried to create an automatic login for one page. I wanted to login with InternetExplorer and give me a session to request WinHTTP-to work with it. To do this, I need all the cookies but I have found a few examples here: And it's a function that I use to get cookies: function _ iGATE cookies (ByRef $ oIE) $ oIE.document.cookie Return to EndFunc; ==> _IEGetCookies I think the problem is that the function receives only local cookies and other chrome screenshots are "HTTP" but I do not know whether there are HTTP-cookies and they are autocomplete How is it achieved? It is impossible to get the cookie with the HTTP tag. / P> When your cookie is only with the HTT flag, it tells the browser that this specific cookie should be accessed by the server only.

kdb - Get substring into a new column -

I have a table with one column in which the data is in the following format - if the column "title" and call the table Is "s" title ab.123 ab.321 cde.456 cde.654 fghi.789 fghi.987 I am trying to get a unique list of characters that are "." So that I end up with: ab cde fghi I have tried to select the initial column in the table, then to create a Trying to update is a new column which is the status of the dot using "ss". Update something like: t: thedot: (title ss `) [0] by T I Then I was trying and the third column will say the number of characters from "letter" to "n", where n is the "thedot" column. When I try to update, I get a "type" error. Any thoughts? I am very new to KDB, so there is no doubt that in a very simple way to simplify something. The reason you get an error is because ss works only on string type Does not symbolize Plus ss is not a vector-based funct...

sql - how to display parent record and children from multiple tables -

I have three tables, 1 parent with 2 parents 1-to-1 relationship with parents. Table 1: People I want a report that looks like this : Person1: First_Name ------- Last_name Phone 1: ------ 12345 ---- Home - Phone 2: ----- - 54321 ---- Work Mail 1: ------- first@mail.com .work Mail 2: ------- first@mail.com .work Mail 3: ---- ---first@mail.com .work Person 2: ------- First_nem ------ - Last_name Phone 1: ------ 12345 ---- Home - Phone 2: ------ 54321 ---- Work mail1: ------- first @ Mail.com-- --work Mail 2: ------- first @ mail.com @ w Ork Mail 3: ------- first@mail.com.twork I love using this reporting services. EDIT: I know how to add all the tables with the left join, I have no idea how to get it done. OK, this is a type of summary that you need to contact. I can not give you a step-by-step because it will be impossible long, but you should start it. (Also keep in mind that I am doing this with memory): You will need three datasets, for each one, ...

windows - Passing parameters to a custom URI -

I have such a custom uri: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT \ demo] @ = "URL: demo protocol" "URL protocol" = "" [HKEY_CLASSES_ROOT \ demos \ DefaultIcon] @ = "\" D: \\ demo.bat \ "" [HKEY_CLASSES_ROOT \ demos \ shell] [HKEY_CLASSES_ROOT \ demo \ shell \ open] [HKEY_CLASSES_ROOT \ demos \ shell \ open \ command] @ = "\" D: \\ demo.bat \ "\"% 1 \ "\"% 2 \ "\" \ "\"% 3 For the command prompt being running, I use this command: D: -ip \ demo.bat% 4 \ "" -ping 172.18 .102.65 But to run the same from the browser, if I use the custom URI as the demo: then I'm asking to pass the parameters I know that the custom URI How to pass the parameters of if I run it to run How to pass parameters when running this custom Yuri from the browser? Please advise. When using a custom URL, the entire URL has passed The app / script needs to extract t...

PayPal Mobile SDK, payment to other merchant account -

Both the mobile express checkout and the adaptive payment have explicitly allowed me to specify an account for the money received. I need to set up Express checkout or PAYMENTREQUEST_n_SELLERPAYPALACCOUNTID for receiver. Receiver (0). Email for Adaptive Payments Is the same functionality for PayPal Mobile SDK? It seems that I can only pay in my account (linked to client_id in PayPalConfiguration), not on other merchants' accounts. Am I missing something? "post-text" itemprop = "text"> Dave from PayPal here. You are right: At this time, paypal mobile sdk does not allow you to choose in runtime which will be paid. We expect this ability to be added to the PayPal REST API in the coming months, depending on which mobile SDK depends; When this happens, we will definitely add this functionality to the SDK.

objective c - Image orientation issue AVCaptureOutput delegate iOS sdk -

I'm working on performance face detection and am receiving buffer at the bottom of Representatives, but when I Siaimaj with attempts to create Uaimej am, I only portrait orientation I have app is getting the image in landscape code,: 1) - just trying to build, Portrait mode session: // previewLayer is a kind of AVCaptureVideoPreviewLayer ([self.previewLayer.connectionVideoOrientationSupported Land]) [self.previewLayer.connection setVideoOrientation: AVCaptureVideoOrientationPortrait]; 2) - Representative: - (minus) captureOutput: (AVCaptureOutput *) captureOutput didOutputSampleBuffer: (CMSampleBufferRef) sampleBuffer fromConnection: (AVCaptureConnection *) connection 3) - UIImage turn image.CGImage nil as to turn is not CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer (sampleBuffer); /// CVPixelBufferRef pixel buffer = [auto rotate buffer: sample buffer]; Siaffhastraf attachments = Simseepiadiasnof attachments (Kesifaeloketr default, Pikselbfr, Kesi...

module - Magento Tupertine authentication error -

I have set up a module in its Magmeno (1.9.1) store called varnish to cache pages Tchartin, but I can Found problems with it After installation I inserted in the file: / etc / varnish / secret and secret key, so I went back to the backend and pasted this key, although the following message was sent to me to save the system show : failed to apply Visiel on L27k0k0kl:6082: unexpected response from varnishes found code: 107 ftfavpxpdqciyfzwuwtddrefouwffsdl certification is required module read the document: Check that the key is in a line Then it is recommended to put / n at the end of the key in the backend When the following message is displayed while trying to insert the key in the backend system: Failed to apply VCL to 127.0.0.1:6082: Varnish data varnish ASI syntax is not set to the right to write the length of the total length from 122 characters, please correct these alerts to correct these instructions. See. key at: b6736327-be5e-4b52-a05a-875ea9271424 an...

regex - python re sub vs findall -

मेरा कोड: आयात urlib आयात पुनः xml = urllib.urlopen ('url' ) .read () मुझे XML टैग से कुछ टैग और उनकी सामग्री को हटाने में दिलचस्पी है, इसलिए, मैं नियमित अभिव्यक्तियों का उपयोग करने की कोशिश करता हूं। उदाहरण के लिए: पुनः.फंडॉल (आर 'और एलटी। अंजीर (। *?) & Lt; / fig & gt;', xml, re.DOTALL) मेल और खाली नहीं है। हालांकि, re.sub (r '& lt; अंजीर (। *?) & Lt; / fig & gt;', '', xml, पुनः। DOTALL) कुछ नहीं करता है, XML स्ट्रिंग अपरिवर्तित है। मैं क्यों भ्रमित हूँ, कृपया मदद करें। का चौथा पैरामीटर नहीं है flags , लेकिन एक की गणना । का मूल्य 16 है (कम से कम पायथन 2.7 / 3.4 में) तो re.sub (.., re.DOTALL) केवल 16 बार बदल देगा। एक कीवर्ड तर्क के रूप में flags निर्दिष्ट करना आपकी समस्या का समाधान करेगा : re.sub (r '& lt; अंजीर (। *?) & Lt; / fig & gt;', ', xml, flags = re.DOTALL) उस के अतिरिक्त, re.sub एक प्रतिस्थापन स्ट्रिंग लौटाता है, तीसरे तर्क को जगह में नहीं बदलता है सुनिश्...

json decode and get value using PHP -

I have a JSON string and I want to get value. "[Local]", "contextResponses": [{"contextElement": {"attribute": [{" Name ":" temperature "," type ":" centgread "," "" "" "" "" ":" "" "" "" "cell", "hasppattern": "wrong", "id" : "Room 1"}, "status code": {"code": "200", "dueframe": "right"}}]} '; Here is the code which I have used, but it did not work. $ result = json_decode ($ s, TRUE); // Decode Jason String $ B = $ Result ['Reference Reference'] ['Reference Element'] ['Value']; // get value ???? Echo $ b; Text after the ContextResponses contains a numerically indexed array of only one (Item) and value property is nested more deeply than you are trying to reference (this propert...

c++ - Non-blocking user input for commands in server application -

How the user can command input that will not block the application loop. As it is done in the game server, admin-user can press the players by issuing the console command or remove the eggs. I have read that I can make it by creating a new thread for it. But if I do, then call it, the input thread which will block from std :: cin , and then the main thread will end, due to the input thread std :: cin is not included Will be blocking. If there is a way to kill such input thread, when the main thread is going back - this would be my preferred solution but I think there is no such way, or if it exists, So it is not safe or secure. In addition to that I have read about the implementation of the file descriptor set and the basis of the select function, but it does not work on Windows. It would be great if the solution would not require me to control the arrow, backspace, delete and encode.

html - HTML5 CSS Liquid Layout Issue -

Image
I am trying to design a layout that looks something like this: I should use the whole layout instead of percentage of PX. I think I am quite close, but I am having problems with margin or something here is my current code: css html, body {width : 95%; Margin: 0 auto; Height: 100%; } #header {margin: 0; Background color: # 000000; Height: 5%; Width: 100%; } #wapper {height: 95%; Margin: 0; } # Content {width: 100%; Hidden flurry; Height: 95%; Margin: 0; } # Left {margin: 0; Width: 25%; Height: 500px; Swim left; } #right {float: left; Width: 75%; Height: 100%; Margin-right: 0%; Display: Inline; }. Box {margin: .5%; Width: 48%; Height: 48%; } #topleft {float: left; } #full {float: left; Display: Inline; } #Botmand {float: left; } #BotMoit {float: left; Display: Inline; } HTML & lt; Html & gt; & Lt; Body & gt; & Lt; Div id = "header" & gt; & Lt; / Div & gt; & Lt; Div id = "wrapper" & gt; & Lt; Div id = "...

Java Eclipse Git team-->(sub menu for git) lost -

Image
IAVA is new to Eclipse and while working with my workspace, I had to delete everything and I had to recreate my workstation with GIT. Now I was able to download the latest code and its compiling, but I lost the sub items for the team menu that you right click on the project workspace in Package Explorer. Please note that the GIT perspective is working properly as shown in Figures. The possibility of Git WORKS Fine .... but package explorer-team-menu do not work Please verify that the path to your methodology in Package Explorer view It is from the path of your project. Maybe this is not the same folder.

python 2.7 - show in different lines -

मैं अलग लाइनों में जवाब दिखाना चाहता हूं def f (k, e) : यदि ई == 0: रिटर्न '*' रिटर्न के * '' + '*' + ई * '+' * '+ एफ (के, ई -1) परिणाम : * * * * * * * * * * * * * * * लाइन ब्रेक जोड़ने के लिए, आप बस \ n का उपयोग कर सकते हैं हालांकि, उपर्युक्त कोड अभी भी ASCII "V" को इंगित नहीं करेगा। यह एक उदाहरण है जो आप प्रयास कर रहे हैं के करीब हो सकता है: # संकेत दिए गए वर्ण और लाइनों की संख्या के साथ एक एएससीआईआई 'वी' बनाइएनिर्माण वि (लाइनकाउंट, चार): लाइनों = [] वर्तमान लाइन = 1 जबकि वर्तमान लाइन & lt; = lineCount: indent = currentLine * '' यदि वर्तमान लाइन & lt; LineCount: अंतर = ((लाइनकाउंट - वर्तमान लाइन) * 2 - 1) * '' लाइनों .append (इंडेंट + चार + अंतर + चार) अन्य: lines.append (इंडेंट + चार) currentLine + = 1 वापसी '\ n'। प्रिंट (बिल्ड वी (6, '#')) प्रिंट (बिल्ड वी (2, '*')) आउटपुट: VVVVVVVVVVVVVVVV ###### * * * *

php - Custom Form Handling in Wordpress and GAE -

I am trying to impliment a custom form in a WordPress page, I have set up the form and in this way : & lt; Form method = "POST" action = "/ handleForm.php" & gt; & Lt; Input type = "text" name = "userName" /> & Lt; Input type = "submit" / & gt; & Lt; / Form & gt; handleForm.php: resonance ($ _ POST ['username']); Echo ('fire'); app.yaml (except for the default Wordpress stuff): - url: /handleform.php script: handleForm.php handleForm.php file app.yaml is in the root folder next to the file. When I submit the form, it goes to the correct URL, but nothing happens ... I have it at least fire on echo I hope Is there any information about what is happening here? Do I remember something about Wordpress or GAE additional .php should be in the root / wordpress folder and prefixed with wp - . For example: root / wordpress / wp-handleForm.php then v...

How to ignore 2 break lines in HTML and CSS? -

I am debugging an existing Java / JSP / quick application, somehow it generates 2 break lines and one Big place page: & lt; Br> & Lt; / Br & gt; & Lt; Br> & Lt; / Br & gt; So I searched around and found that I could use the following in CSS to ignore the break lines: br {display : None; } See my previous questions: But this causes the cause to ignore all the break lines in the app, and not the ideal solution I am looking for. It seems that BR is produced by the Straits and is strict for control, so I wonder if there is no way to define 2 breaks in CSS [to ignore], maybe something like that? brbr {do not display anything; } Br.br {display: none; } I tried, did not work, should be in the wrong format, any CSS expert can answer my question? Simple: br + br {display: none;} It follows another br using a br that code + selector. Ref: and

r - Read data from multiple CSV files into single ffdf object -

Is it possible to load the data of multiple files once in the FF data frame (FFDF)? I think I can load each CSV file on a different FFDF object and then FFDFBIDID big_file_part2.csv big_file_part3.csv Fill them together. But it seems in an inefficient way, the stuff is loading twice. Is there any more direct route? How did I do this (note that my source data is not any headers). The first step - to make sure that all your files are in the same folder, set up your working directory in the folder. # Load a #ffbase library library (ffbase) # create a vector of # files that I want to load temp = list.files (pattern = "* .css") # I = To create the first FFDF object for 1, it is necessary that the FF dataframe is left in mydata (1 in) & lt; - read.csv.ffdf (file = temp [i], header = FALSE, VERBOSE = TRUE, first.rows = 100000, next.rows = 100000, colClasses = NA) through the remaining objects in #loop (i 2: length (temp) mydata & lt; - read.csv.ffdf (X = myd...

Django-How to deny access to a logged user directly to a specific URL -

We need some sort of system to allow / deny access to some of my URLs. For example, we want to make some kind of magician. The user inputs the first item (one screen) on the first screen, and then press "continue" Now we get the data And redirect to a second screen (B screen), where we should enter the second object to the user. The wizard goes ... The problem is that if we do this, then the user can write a B URL on the browser and B can access the screen. The user has made a login, but still, we do not want him to go there without going through a screen. We do not know how to achieve it or to find it in the internet. We only know about the user session to do this. Is there any other way? Some help? Thanks in advance. I think the foreign key solution is you get 'A' as the foreign key of 'B' And the 'A' id in the 'B' URL in the form of the argument 'code' url (r '^ a / (? P & lt); a_id & gt; [0- 9] +) In ...

c++ - Explicitly forbid a concrete class template specialisation -

मेरे पास एक क्लास टेम्पलेट है: टेम्पलेट & lt; टाइपनाम ... bounded_types & gt; संरचना संस्करण {}; लेकिन बाध्य प्रकारों की खाली सूची को नकारना चाहते हैं, जैसे कि variant & lt; & gt; को संकलन समय पर मना होना चाहिए। मैं निम्नलिखित कर सकता हूँ: टेम्पलेट & lt; & gt; संरचना प्रकार & lt; & gt ;; लेकिन यह बहुत स्पष्ट नहीं है: अगर मेरे संस्करण लाइब्रेरी में बहुत सारे हेडर हैं, तो यह स्पष्ट नहीं है कि क्या ऊपर की विशेषता आगे की घोषणा किसी वर्ग के नीचे, नीचे कहीं परिभाषित। मेरे मन में, आदर्श काल्पनिक समाधान होगा: टेम्पलेट & lt; & gt; संरचना संस्करण & lt; & gt; = हटाना; यह स्पष्ट रूप से बड़ी हद तक दिखता है, लेकिन दुख की बात है, बदले में, C ++ वाक्यविन्यास द्वारा मना किया गया। वर्णित इरादों को पूरा करने का सबसे स्पष्ट तरीका क्या है? टेम्पलेट & lt; typename ... bounded_types & gt; संरचना प्रकार {static_assert (sizeof ... (bounded_types)> 0, "खाली संस्करण अवैध है"); }; देखें कि यह कैसे विफल रहता...

javascript - Why doesnt Bootstraps panel collapse work with JSF? -

मेरे पैनल के लिए कोड है: & lt; div class = "panel- ग्रुप डिस्टिन "आईडी =" एडेरियन "& gt; & Lt; div वर्ग = "पैनल पैनल-डिफ़ॉल्ट" & gt; & Lt; div वर्ग = "पैनल-शीर्षक" & gt; & Lt; h4 वर्ग = "पैनल-शीर्षक" & gt; & Lt; डेटा-टॉगल = "पतन" डेटा- parent = "# accordion" href = "# collapseOne" & gt; & LT; h3 & gt; & lt; p & gt; अवलोकन & lt; / p & gt; & lt; / h3 & gt; & Lt; / a & gt; & Lt; / h4 & gt; & Lt; / div & gt; & Lt; div id = "collapseOne" class = "पैनल-पतन में पतन" & gt; & Lt; div वर्ग = "पैनल-शरीर" & gt; & Lt; p & gt; यहां कुछ पाठ & lt; / p & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" ...

jquery - jssor arrow navigators used to change slide? -

I have a jssor slider while dragging the main slide, to highlight thumbnail list updates Slideshow When clicking on the left or right arrow sliders, thumbnails run from the offset amount I would like for the first slide that appears in the new thumbnail list to show as the active slide. I have seen and do not have an option for this, what would be the easiest way to achieve this effect? Here's my current option setup: var option = {$ Autoplay: incorrect, // [optional] Automatically run to enable slideshow, The option should be set to the right, the default value is false $ AutoPlayInterval: 6000, sliding the default value is $ 3000, / / ​​(Optional) Interval (in milliseconds) Slider auto running before the slide closes before going to the previous slide Duration: 500, // [Optional] for slides in milliseconds The default period (swipe) specifies, the default value is $ 500, the drawRentation: 3, // [Optional] Orientation to drag the slide, 0 is not a drag, 1 horizonta...

Escaping Lucene Characters using Javascript Regex -

I am using elastic search in a nodesjs project, which by entering one of the lucene keywords in the search box Is breaking. The best way I am looking for a simple implementation to avoid my special characters is regex? I am now negligible with a little regdiction, and I felt like some others have already gone through this process. Just Bella needs more. var escaped = query.replace (/ ([\! \ * \ + \ & Amp; \ | \ (\) \ [\] \ {\} \ ^ \ ~ \? Change all the places globally, lucene will yell about your escape version. / P>

sql server - SSIS Flat File Source Row Restructure -

A flat file source of thousands of record albums (> in some cases> 100K) The source is externally purchased , And I can not request layout modification. In this flat file, each row has four columns: | User ID | Position_1 | Position_2 | Position_3 | 1337 | Green | Yellow | Lal 1234 | Lal Lal Green The destination table was designed to accept two columns: | User ID | Status code 1337 | Green | 1337 | Yellow | 1337 | Lal 1234 | Lal 1234 | Lal 1234 | Green So far, I have run 3 different SSIS packages for each position column in my destination table, flat file. What to mirror, and the destination table to use a single SSIS package I want to either create a flat file destination or a temporary table, and imported from there. Is it worth achieving? If so, then simply UPDATE & amp; What are the best practice tasks to use instead? Temporary table for set . looks like a case for saying good OLE SQL. I will use a UNPIVOT on this That link is a great ex...

I have a Facebook app running in a Page Tab -

I have a Facebook app running in the One Page tab (Facebook page for an organization). The Page Tab URL (and Secure Page Tab URL) points to a URL on my own server that contains a PHP page that has Google Calendar's IFRAME. When I open the page the app works perfectly well, using the administrator account (both http and https). But when I 'liked' the page, the app does not appear at all (both http and https) when the page is opened using that user's user account. Any suggestions? Thank you.

unit testing - Mocking Directory Structure in Python -

I have some code under which I input the files to open and process and then to output some data I am using. I have got working functionality and I am testing this unit now, is an example of the code given below def foo (dir):. Path_to_search = join dir ( "/ baz / foo") isdir (path_to_search) if: (path_to_search #path exists when things fname in listdir ...): do_stuff () else: print "The path does not exist "I am able to prepare a test where the past is not adequately present, but as you can see above, I claim that the directory structure" / Baz / foo "part is present (in the directory structure the output should be in the file, in some cases It will not and we will not have to process it.) I have to create a temporary directory structure using TempDir and try to join, but the code is always said that the path does not exist Is it possible to duplicate the output of oslistdir that I will not need to create a temporary directory structure which fo...

python - Group overlapping arrays -

I have a list of the arrays, which I want to put in the group of overlapping values. My motivation is to use itertools.group, but I'm not sure how it works. Some sample data: a = np.array (category (10)) b = np.array (category (90,100)) c = np.array (category (50,60)) d = np.array (range (815)) e = np.array (range (55,80 I overlap (or non-narrow) arrays I want to end with three groups: groups = [[a, d], [b], [c, e]] Can I use itertools.groupby to do it? For , g itertools.groupby ([A, b, c, d, e], lambda x: SOMETHING ?): Groups.append (list (g)) But I'm not sure whether to sort and group Any suggestions that use this or any other method? Thanks! Update: Thank you for the solution given below @Bernart You are right that this There is not a large number of arrays, so killing the animals works just fine. I did this with the understanding of some clunky list: X [0])) [ 0]): Group.Append (X), IDX.Append (n) Group.Append (group) If your list of catego...

mergesort - Merge sorting with linked chains in java -

I'm looking for a template to merge two linked chains already sorted. I'm still quite new to Java, and this is a very challenging task to complete with limited knowledge. I understand how to unify an array, but when it comes to linked lists, I think that is to paint the blank space. I can give you all with any help, this is real The code can be done or just where to start from, it will be highly appreciated. Thank you for your time! If two linked lists have already been sorted, then merge them together It's so easy I'll tell you the algorithm, but you have to write your code because it seems that this is a school project. First of all, you create a new linked list, and then assign the head of the new list to reduce the list 1, Lead 2 and List 2 head, then you just run on two lists, each time from the current list Make the minimum selection of the list and add the newly created list, make the current. Next if it was chosen. If there are no more nodes in the li...

html - Apply style only to anchors defining links -

मेरे पास यह है & lt; a href = "http: //www.lipsum .com / "target =" _ blank "& gt; LIPSUM & lt; / a & gt; & Lt; h1 & gt; & Lt; a href = "# पहले" & gt; अध्याय 1 & lt; / a & gt; & Lt; / h1 & gt; & Lt; h1 & gt; & Lt; a href = "# सेकंड" & gt; अध्याय 2 & lt; / a & gt; & Lt; / h1 & gt; & LT; h2 & gt; & Lt; एक नाम = "पहले" & gt; पहला भाग & lt; / a & gt; & Lt; / h2 & gt; & LT; h2 & gt; & Lt; एक नाम = "दूसरा" & gt; एक दूसरा भाग & lt; / a & gt; & Lt; / h2 & gt; प्लस यह a: होवर {रंग: नारंगी} मैं इसे कैसे सेट कर सकता हूं ताकि & lt; h2 & gt; टैग (पिछले 2) जब मैं उनके ऊपर घुमाते हैं तो क्या वे रंग नहीं बदलेगा? क्योंकि मुझे अभी भी एंकर टैग की आवश्यकता है। एक विकल्प & lt; h2 & gt; अभिभावक "झूठे" डेटा-बैबल = "झूठे"> : नहीं (h2) ...

java - Primavera Integration API cannot create user license -

I am trying to create a user who works like a magic but I do not give him a user license can. I get an error message field object ID is not loaded or set. What field object is not set? User User = New User (_sessionHelper.getSession ()); User.setName (importResourcesData.getSsoID ()); User.setPersonalName (importResourcesData.getFirstName () + "" + importResourcesData.getLastName ()); User.setEmailAddress (importResourcesData.getEmailAdress ()); User.setPassword (importResourcesData.getSsoID (), importResourcesData.getSsoID ()); User.setAllResourceAccessFlag (wrong); User.setGlobalProfileObjectId (getDefaultGlobalSecurityProfile ()); Object idiid = user.credit (); // Works !!! BOIterator & LT; UserLicense & gt; LoadResources = _sessionHelper.getElm (). LoadUserLicenses (new string [] {"licenseTip"}, "LicenseTip = 'Timesheets'", blank); Islesinaes ul = loadersource.net (); // it fails! User.createUserLicense (UL); Generally speaking...

insert - Efficient way for adding music to ringtone on Android -

I have a problem connecting music to Android ringtones (stored in SDCD) I have here to include it The code is: ContentValues ​​value = new content value (); Values.put (MediaStore.Media Column.DATA, filePath); Values.put (MediaStore.Media Column. Title, song title); Values.put (MediaStore.MediaColumns.SIZE, file.length ()); Values.put (MediaStore.MediaColumn.MIME_TYPE, "audio /" + fileType); Values.put (MediaStore.Audio.Media.ARTIST, singing name); Values.put (MediaStore.Audio.Media.DURATION, Duration); Values.put (MediaStore.Audio.Media.IS_RINGTONE, true); Values.put (MediaStore.Audio.Media.IS_NOTIFICATION, Truth); Values.put (MediaStore.Audio.Media.IS_ALARM, true); Values.put (MediaStore.Audio.Media.IS_MUSIC, true); / * Deleted bug here * / Uri Yuri = MediaStore.audio.media.vsententurphorpath (filepath); URI newUri = context.getContentResolver (). Insert (Yuri, Mann); If (Earrington) ringtone manager.SetUtualDial RingingTurn URI (Reference, RingtoneManager.TYPE_RINGT...

c# - Trying to set a non-null string to type 'System.Int32' -

itemprop = "text"> The unit's outline is throwing this exception: 'BranchIdentity' running 'PasswordIterations' property Could not set to a 'system.String' value You must set this property in non-null value of type 'System.Int32'. This is throwing on this line: // Validate specificity or email and user name var user = sqlStorage.BranchIdentities.FirstOrDefault (i = & Gt; i.Username.ToLower () == View Model.User. TOLower ()); Exception only throws when one unit matches the query. . If there are no matches, then there is no exception My BranchIdentity Model: Namespace Branch.Models.Sql {Public Sector BranchIdentity {[Key] Public Integer ID { get receive; Set; } [Required] Public String Username {get; Set; } [Required] Public string passwordHash {get; Set; } [Required] Public string passwordSalt {get; Set; } [Required] Public et Password Retention {Receive; Set; } [Required] Public String Email {get; Set; } [Require...

javascript - This inline svg won't display -

I am using js to convert SVG into images with inline SVG loadInlineSvg: function (className) {var svgImgs = [] .slice.call (document.getElementsByClassName (className)); SvgImgs.forEach (function (img) {var svg = document.createElement ('svg'), src = img.getAttribute ('src'), request = new XMLHttpRequest (); req.addEventListener ('readystatechange', function (evt ) {If (req.readyState === 4) {if (req.status === 200} {svgXML = req.responseXML.getElementsByTagName ('svg') [0]; for (jar j = 0; j & LT; svgXML.children.length; J ++) {svg.appendChild (svgXML.children [J]);} (for verb = 0; I & lt; svgXML.attributes.length; i ++) {svg .setAttribute (svgXML.attributes [i] .name, svgXML.attributes [i] .Value);} svg.setAttribute ('width', img.getAttribute ('width')); svg.setAttribute ('height', img .getAttribute ('height')); Img.parentNode.replaceChild (SVG, IMG);}}}); Req.open ('post', src, true); req.send ();...

ubuntu - bash: mongodb/bin/mongod : No such file or directory -

I'm trying to install and run some basic commands from it on mongodb . So far, I downloaded a 32-bit ZIP file from I will unzip the file in the following locations I have created data called a folder, then another db I have created a filename in which I would like to store my data, where it will be mongodb / data / db . But when the path of the folder occurs then mongodb.config I run the command to start the server: user1 @ user1-virtualbox: ~ $ mongodb / bin / mongod --dbpath ~ mongodb / data / db I get the following error: bash: mongodb / bin / mongod: any such file or directory Am I missing something is? unavailable '/', it should be ~ / mongodb / data / db, not '' Mongodb / Data / db '

MongoDB $project to pluck certain property (return it as array) -

मेरे पास इस तरह एक MongoDB संग्रह है {taskType: 1, client: {name : "मो", ...}, ...}, {टास्क टाइप: 1, क्लाइंट: {name: "लैरी", ...}, ...}, {टास्क टाइप: 1, क्लाइंट: {name: " Curly ", ...}, ...} मैं उस पर निम्नलिखित $ परियोजना क्वेरी चला सकता हूँ {$ project: {_ id: 0, ग्राहक: "$ client"}} और मुझे यह परिणाम मिलता है: [{क्लाइंट: {नाम: "मो", .. ।}}, {Client: {name: "लैरी", ...}}, {client: {name: "curly", ...}}] वास्तव में इस तरह से एक परिणाम की तलाश कर रहा हूँ: [{नाम: "मो", ...}, {नाम: "लैरी", ...}, {name: "curly" , ...}] मैं यह कैसे कर सकता हूँ (यदि मैं बिल्कुल भी कर सकता हूं)? अग्रिम धन्यवाद। आप client.name फ़ील्ड को ऊपर ला सकते हैं $ परियोजना का उपयोग करके शीर्ष स्तर: {$ परियोजना: {_id: 0, नाम: "$ MongoDB 3.4 अद्यतन अब आप का उपयोग करने के बजाय एक मंच के साथ और अधिक सीधे यह कर सकते हैं $ परियोजना : {$ replaceRoot: {newRoot: '$ client...

linux - how to start nc over a remote machine in a screen -

I need to start NC on the remote machine on the screen and transfer the file to another remote machine screen So, I Remote machine 1 or tester1: ssh -tt mysql @ tester1 'screen d -m this deployment with Bash script nc machine (Jenkins ) - L-Y 60 5555 | Wire xvif - 'remote machine 2, the tester 2 : ssh -tt tester2' screen d -m-sudo -u mysql innobackupex - -stream = tower - database = "sample" / mysql-backup / prodfullbkp | NC-WA 30 Tester 5555 ' While the above two order deployments are not working while running from the machine. Can someone give me a better way of doing this? You may have a better solution like Ssh user @ host & lt; & Lt; To avoid EOF / EOF the order will be the tester 1 ssh -tt mysql @ tester1 & lt; & Lt; EOF screen-D-MNC-L-Y60 5555 | Tar xvif - EOF will be tester 2 ssh -tt tester2 & lt; & Lt; Iof screen-de-M pseudo U Maiskil Inrbakpaks --strym = tower - Database = "Samplbab...

java - What information is gained not starting an edge detection method with a Gaussian? -

Complete disclaimer, this is my first attempt to find the edge, when I think I know about software but not necessarily about computer vision / related areas I am reading about ways to find different edges, many of them have a natural first step, which is to move the image smoothly. It sounds reasonable because you do not want random noise to interfere with any high level logic. My question is, what useful information can be lost due to Gaussian stigma? (If any?) Useful Contrast information lost for any reason The blurred technique (not only the gaussian stigma) is the reason that the blurred average neighbor image intensity, which naturally kills the opposite. In the context of signal processing, this action can be seen as a low-pass filter. An example of what happens to a very violent blurring:

Finding transformed image within image c# -

Imagine that I have an image with a rectangular canvas of three identical squares, all the parallel sections on the side of the image canvas. The problem of finding images within an image is not easy to get more answers than SO () that matches a given image. However, images are sometimes rotated inside the image, and they are not matched due to this. Taking our initial example, and rotating a square 25 degrees and not maintaining any class overlap, I will not only face two non-rotated squares, along with the rotating class? You want to take the same view of finding an image within another, but with your coordinates again Run the search from rotated 90 degrees or rotate several degrees. You feel that the internal image can be if you are doing a direct scan of the image, then pixel by pixel, left your search instead of left to right, or above From below

javascript - Loading specific markers by checkbox? -

I'm loading this marker from a database to display it on a Google map below. It's working fine, But I want to apply the option by pressing on a particular button elsewhere on the page, and then the map will dynamically change to show only clicked markers. Actually, I would like to filter in my database by the 'type' column, but still keep looing by default in every way. like. Shows page loads, map loads and all types, the user clicks on a button, due to which the map is visible only to the marker, which shows type 1 as value in DB. Like toggle with a check box like There is no idea to move forward with it, I do not think it is the most effective way to reload markers with DB, should I just hide markers Can I have this property for whom? Map = New google.maps.Map (document.getElementById ("google_map"), googleMapOptions); // load markers from XML file, check (map_process.php) $ .get ("map_process.php", function (data) {$ (data) .find (...