Posts

Showing posts from January, 2011

c - How can I use interrupt/kill signal with noncanonical mode? -

यह एक ऐसा कोड है जो बिना प्रवेश के बिना चरित्र मिलता है। int getch (FILE * सीएमडी) {int ch; संरचना टर्मिओस बफ़; संरचना अवधि जानकारी; टीसीजेटैट (0, और जानकारी); Buf = info; Buf.c_lflag & amp; = ~ (ICANON | ECHO); // नॉनानोनिकल बफ़ सीसीसीसी [वीएमआईएन] = 1; Buf.c_cc [VTIME] = 0; // buf.c_cc [VINTR]; // buf.c_cc [VKILL]; टीसीसेटएटट्रर (0, टीसीएसएफ़सएचएचएचएच, और बीएफ़); Ch = getc (सीएमडी); टीसीसेटएटट्रार (0, टीसीएएसएफ़एसएचएचएच, एंड इंफॉर्मेशन); वापसी च; } इस कोड में, मैं गैर-वैमानिक मोड के साथ इंटरप्ट / मार सिग्नल का उपयोग कैसे कर सकता / सकती हूं? आपको उचित रूप से c_iflag को संशोधित करने का प्रयास करना चाहिए BRKINT और IGNBRK झंडे देखें।

objective c - JSON parsing is sending error message in iOS 7.1 -

I checked my code, but what is not wrong with my code..I use the post method I am working on JSON parsing. The same code is working in Xcode 5, but it is not working in Xcode 6. Error error in my JSON serialization. parsingResultLogin = {"error_code" = "-1"; "Error_message" = ""; } My code is - - (zero) loginFromServer {NSString * strURL = [NSString stringWithFormat: @ "% @ login", GLOBALURLDOMAIN]; NSLog (@ "strURL =% @", strURL); NSDTA * Datapostalologin = Nil; NSDictionary * dicPostDataLogin = [NSDictionary DictionaryWide Objects Endcases: @ "qwertyuiwwqq", @ "user name", @ "qwertyuiop", @ "password", @ "1234567890987654", @ "device_token", @ "ios", @ "device_type" Zero] ; NSLog (@ "% @", [DCPostDataOg Description]); Datapostalogin = [NSJSnationalisationDatvidJSOnObadget: DictPostDataLogin Option: NSJSOnDritingPrettyprint ...

javascript - inserting iFrame to EmberJS templet gives "Metamorph that is not in the DOM" error -

मंदिर के लिए एक आइफ्रेम डालने के बाद: & lt; iframe id = "ytplayer" Type = "text / html" width = "450" ​​height = "275" {{बाइंड-एटिर src = "वीडियो यूआरएल"}} फ़्रेमबॉर्डर = "0" स्वीकार्यलस्क्रीन & gt; मुझे यह त्रुटि मिली: अनक्यूट त्रुटि: मेटॉम्रफ़ पर कार्य नहीं कर सकता जो कि डोम में नहीं है। मैं समझता हूं कि यह त्रुटि एचटीएमएल के भीतर हैंडलबार अभिव्यक्ति को लेकर आती है, लेकिन इसे बदलती है: & lt; iframe id = "ytplayer" प्रकार = "Text / html" width = "450" ​​height = "275" src = "someurl" फ्रेमबॉर्ड = "0" स्वीकार्यलस्क्रीन & gt; समस्या को हल नहीं किया केवल एक चीज जो समस्या का समाधान करती है वह मंदिर के पूरे आइफ्रेम को हटा रही है, जो कि वास्तव में एक इच्छा समाधान नहीं है। कोई मदद कृपया? सुनिश्चित करें कि आप iframes के लिए अंत टैग शामिल करते हैं। ऐसा लगता है कि जब आप अंत टैग को शामिल नहीं करते हैं, एम्बर उत्पन्न प्रारंभिक / अंत ट...

Default buttons of alert dialog are not working in Android -

I am using AlertDialog to show some data using XML data. But when I flip an XML into an alert dialog, the default buttons are not displayed. Please help Just add new buttons to your xml file and get that button's ID and on it Click the listener This button is working for me.

hamcrest - Test that either one thing holds or another in AssertJ -

I am in the process of converting some tests from Aspect J to Hetcrest. In the hamsterstest I use the following snippet: assertThat (list, either (tags (S.E.E.E.T.s.s., .high)) or (In .sps, tags. Rda))); That is, this list can be either, or how can I express it in AssertJ? The anyOf function (i.e. any either , but this will be the second question) a position ; I have applied myself, but it seems like this is a normal matter. No, this is an area better than Hamstrist assets. To write the following argument: set & lt; String & gt; GoodTags = NewLink Husheset ("OK", "Good"); Set up & lt; String & gt; BadTags = New Link HashSet ("Bad!", "Weird"); Set up & lt; String & gt; Tag = New Link HashSet ("OK", "Good", "OK", "?"); // is imported consistently // In any case, if one fulfills a situation (logical 'or'), then it succeeds. Tag (any included (good tag)...

Adding two instances to a common disk Azure -

I'm trying to deploy an app that has a frontend app and backend worker. The worker runs the CPU's intensive process, now my requirements are to run the web app in the example of Azure A, while the CPU runs in the intensive process D2 example. Now both the example files should be able to share. I have read those places where he talked about SBS. I tried to create Linux VMS in the same cloud services, but could not figure out how they use the same cloud service URL in different ways in the SSH. I did it to make the second VM. Can someone suggest me how to get this setup? If possible, how do I check that the discs are available for both instances? Azure docs are not useful as ASAS I: ( If two VMs just want to share files And in addition to coding for Blob Storage, you should consider the Ezur files that expose an SMB share against a Blob Storage back end, which allows you to perform a standard file IO operation instead of the custom blob storage code. See that in Wind...

c++ - Thread-safe Logger object using the singleton pattern -

I must apply a logger for an application and I should use the singleton pattern. In addition, since this application is multithread, this logger should be thread-protected. I want to say that I have to use C ++ 03 . I have seen using a QMutex still object in C ++ / QT to guarantee that only one thread allocates a unique example of singleton object. Why does everyone return a button as an indicator? I will return it as a reference, so I should not worry about releasing the memory used by a single object clearly. I read and I wrote the following implementation. // ========== Include Logger.h # & lt; QMutex & gt; # Include & lt; QString & gt; Class logger {public: steady logger & amp; Examples (); Zero Configure (Constest & Folder); Private: logger (); Logger (consort logger & amp;); Logger & amp; Operator = (Constellor & amp;;); Private: Incorrect QMutex _mutex; Caststring _ folder; }; // ========== Logger.cpp Logger :: Logger (): _mutex ...

python - Error in Sandman when using Postgres DB -

I am trying to create an API and using wrapper made by Jeff Nupup (thanks for the awesome book) I am trying to Anyway, Sandman is not really useful to me this time as it is called. This is what I am trying to do: sandman import app import psycopg2 app.config ['SQLALCHEMY_DATABASE_URI'] = 'Postgrescale + psycopg2: // user: pw @ ec2-54-235: -245-180.com Pat 1.amazonaws.com:5432/d1hvkbpmj6bpqu 'active from active sandman.model import () app.run () The feedback that I get It's been the following: sqlalchemy.exc.ArgumentError: Mapper Mapper | Schema_migrations | Schema_migrations could not collect any primary key column for mapped table 'schema_migrations'

android - video compression using media codec -

I have a video that needs to be compressed in Android, currently using FFMPEG and it's working fine, But I want Media codec and Media Muxar. I have already read the document and have tried these links too: Like many links about and media codec. Would anyone tell me how it works and what steps have been taken? Thank you in advance!

javascript - How to trigger a close event in lightbox_me -

I tried all things but none of them is working. Here is the code to call lightbox_me : $ ('# buynow'). Click (function (e) {$ ('# pop'). Lightbox_me ({centered: true,}); E.preventDefault ();}); and I am calling close function using the href link: function Close () {$ ('# Pop'). Trigger ('off'); } I am sending an AJAX request to get a car product $ ("# buynow"). Click (function () {// $ .ajax ({type: "POST", url: "displaycart.php", data: '1', cache: incorrect, success: work to submit ajax code form) ) {$ ('# Pop'). Html result);}}); Return false;}); I get all the values ​​from another file that contains the HTML code, this code is while ($ fetch_pro = mysql_fetch_array ($ pro)) {$ Product = mysql_query ("Select * from product where id = '". $ Fetch_pro [' pro_id ']. "'"); While ($ fetch_product = mysql_fetch_array ($ product)) {echo '&...

matlab - SSIM Coding Error -

I have a few questions, I try to follow some coding from Math Works: I = imread ('cameraman.tif'); SsimValues ​​= Nil (1,10); Quality = 10: 10: 100; For I write = 1:10 (I, 'compressedImage.jpg', 'jpg', 'quality', qualityfactor (i)); SsimValues ​​(i) = ssim (imread ('compressedImage.jpg'), I); Lastly, I simply change the image file which is a.jpg and b.jpg but I get this error from MATLAB : 'Ssim' error in SSIMTesting (line 6) ssimValues ​​(i) = ssim (imread ('logohalal1.') For the input arguments of type 'UIT 8'. Jpg '), i); Why is that so? Can someone explain me the code and error? Sorry because I'm new to MATLAB thanks. This function was new to R2014a if you have an older version of MATLAB , Or you do not need that toolbox, you do not have it. To check your version of MATLAB and the installed toolbox, type ver / code> on the command line. To check that the function can be found o...

ruby - What is a secure way for user to update password, can't get form_for to call the right action in Rails 4? -

I have a form where I want to make the user change my password. I do not like Devise or anything like that. Do not use Before changing your password, I want to enter my current password, and I want to do it safely. The form looks something like this: -------------------- I present password I --------- ----------- -------------------- I password I ---------------- ---- -------------------- I confirm the password I ------------------- - - ------------- I submit to --------------- My In UsersController, I have two ways, which look like this: def edit_password end def change_password # is probably not correct, but I have to make sure that the user is changing password First present pass Password is correct if @ user.authenticate (params [: current_password]) response_to do | Format | If @ user.update_attributes (user_params) format.html {redirect_to (@user ,: notice = & gt; 'your account was successfully updated'}} format.json {response_with_bip (@user)} and forma...

c# - How to dispose SQLiteCommands created internally by Entity Framework? -

मेरे पास System.Data.SQLite (v1.0.94.0) के साथ समस्या है "SQLite त्रुटि (5): डेटाबेस है एक नया कनेक्शन खोलते समय लॉग इन करने के लिए "बंद" ऐसा लगता है कि इकाई फ़्रेमवर्क (v6.0) सभी SQLiteCommands का निपटान नहीं कर रहा है। मैं इकाई फ़्रेमवर्क के साथ पहले कोड का उपयोग कर रहा हूं और इसलिए इसका उपयोग नहीं कर सकता। एक परिदृश्य, जहां SQLiteCommand का निपटारा नहीं किया गया है, IQueryable का उपयोग कर रहा है। IQueryable & LT; TEntity & gt; क्वेरी = संदर्भ.सेट & lt; TEntity & gt; (); Var परिणाम = क्वेरी.ToList (); मैं इन न सुलझा हुआ आदेशों का ट्रैक कैसे रखूं, इसलिए मैं मैन्युअल रूप से उनका निपटारा कर सकता हूं? मैं GC.Collect () कॉल करने से बचना चाहूंगा; यह चर्चा कहने लगता है कि इंटरॉप लीगेसी सेटिंग को परिभाषित करना एक पुराने संस्करण पर वापस काम करता है ... " इस मामले में मूल कारण यह है कि इकाई फ़्रेमवर्क अप्रत्यक्ष रूप से एक SQLiteCommand ऑब्जेक्ट बनाता है और बाद में इसे निपटाने में विफल रहता है। यह इन आंतरिक रूप से निर्मित कमांडों को...

r - Search and find values row-wise a dataframe -

मेरा डेटाफ्रेम इस तरह दिखता है: x1 & lt; -c ("a", सी ("बी", "सी", "जी", "कश्मीर") x3 & lt; - c ("b", "d", "h") "c", "f", "j" (एनए) x4 और एलटी; - c ("ए", "ई", "आई", एनए) डीएफ & एलटी; - डेटा.फ्रेम (x1, x2, x3, x4, स्ट्रिंग्सएफ़एक्टर्स = एफ) डीएफ x1 x2 x3 x4 1 Abba 2 ccde 3 fghi 4 jk & lt; NA & gt; & LT; एनए & gt; अब मेरे पास एक मनमाना वेक्टर है: vec & lt; - c ("a", "i", "s", "t" "Z") मैं डेटाफ़्रेम में प्रत्येक पंक्ति के साथ सदिश मानों की तुलना करना चाहूंगा और एक अतिरिक्त कॉलम बनाऊं, जो इंगित करता है कि कम से कम एक वेक्टर मान पाया गया था या नहीं। / P> परिणामी डेटाफ्रेम इस तरह दिखना चाहिए: x1 x2 x3 x4 मूल्य 1 एबा 1 1 2 सीसीडी 0 3 एफजी 1 4 जेके & lt; NA & gt; & LT; एनए & gt; 0 मैं बिना पाशन के लिए करना चाहता हूं। आपके समर्थन के लि...

java - returning just created id of insert query -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर क्या कोई तरीका है मेरे सम्मिलित क्वेरी से अभी तक आईडी का अधिग्रहण किया है? मैं java.sql पैकेज का उपयोग कर रहा हूं और मैंने सुना है कि इन चाबियों को फिर से पूछे बिना एक तरीका है। या नहीं? यदि आप एक स्वत: वेतन वृद्धि कुंजी मान की कोशिश करते हैं, तो आप पोस्ट देख सकते हैं: [PreparedStatement का उपयोग कर ऑटो-वेतन वृद्धि क्षेत्र को पीछे हटाना।] [1] [1]:

tcp - Exceptions while doing socket programming in java -

I am new in socket programming in Java while I face these exceptions in running client code. I do not understand how to remove it! Here is my client code import java.io. *; Import Java.net *; Public class SOCK_1_CLIENT {public static zero major (string [] args throws exceptions {SOCK_1_CLIENT Client = New SOCK_1_CLIENT (); Client.run (); } Public Zero Run () throws exceptions {socket sook = new socket ("local host", 5050); PrintStream ps = new printstream (sock.getOutputStream ()); Ps.println ("Hello to server from client"); InputStreamReader ir = New InputStreamReader (sock.getInputStream ()); BufferedReader br = new BufferedReader (IR); String msg = br.readLine (); Println (message); }} These are exceptions .. !! Exceptions to the thread "main" java.net.UnknownHostException: local host at java.net. Javascript on java.net.PlainsSocketImpl.connect (JavaScript) on javascript (unknown source) .net.SocksSocketImpl.connect (unknown source) at java...

php - Auto Language Translation Drupal 7 -

I am working on droplets 7 and I am stuck in language translation. I have social networking on the site on which I allow user to post data. I allow the user to post their data in three languages, the user has the option of selecting one of three languages ​​and posting data. Now my requirement is that if an English user posts a message / message in English, then another Chinese user should be able to see that message in Chinese. Therefore the requirement is that any language that is posted in any language should be visible to all users in their language. Can Drapers provide this automated facility? if so, how? I am trying many things but I have been successful in fulfilling this need. Thank you. Please see the answer about this post and the subject of Molot: It will never be good Human language is not completely clear and logical, so no computer software will ever be able to translate them completely Human languages ​​properly You need a human to translate. ...

ios - What is the correct syntax -

I want to define a block similar to NSArray enumerateObjects: usinglock My block is as follows typingf zero (^ MyBlock) (BOOL *); And I want to open it in a method so that the method will give me the value BOOL How do I stay from here? Edit: I want to do the following Something like BOOL; [Some of the rules themselves: MyBlock (and some change)] if (in some place) {anything} - (zero) some method: ^ zero (bool * stop) {stop = yes; When working with the block, the site is easy to remember and easy: The last part you are actually looking for is type (typed): typingf zero (^ MyBlock) (id, bool); MyBlock myBlock = ^ (id myId, BOOL myBool) {...}; PS Note that BOOL is not an object, but an initial type.

parsing - Adding users from CSV in Linux using BASH -

My CSV file contains the necessary information like this first name, last name, user-side. I have 5 users who will have to parse me with CSV I have hit a wall to create an account assigned to a group (Group 1) and assign an encrypted temporary password, any help would be awesome Thank you! #! / Bin / bash OLDIFS = $ IFS IFS = "," when first read lastname userid useradd -c "$ firstname $ lastname -d / home / $ userid -G group 1 -s / bin / bash $ userid" done IFS = $ OLDIFS Adding any user to script execution. It should help you. #! / Bin / bash OLDIFS = $ IFS IFS = "," The first name is read lastname userid Useradd -c "$ {first name} $ {lastname}" -d / home / "$ {userid}" -G group 1 -s / bin / bash "$ {userid}" & lt; File.csv Your script is okay, I've made some changes as below The variable is cited, it will prevent the unwanted extension. It is not necessary to reset IFS because the script r...

javascript - jasmine tests, how can I improve the performance? -

I use jasmine and work for my code testing I'm App, Almost 1000 tests currently, it takes up to 10 seconds. This is not a problem now, but in a few months the number of tests can be very large and I would like Jasmine Any object (object) I have found that there is anything that I can do to run them fast. > There is too much to compare to big objects. Change: Hope (some.method). For the Half Bin Called ("xyz"); In : is expected (some. Method.calls.argsFor (0) [0]). Tobe ("xyz"); Looks a little too much. Karma is beautiful but there is nothing like it that improves performance so far, although it is really useful for debugging ( report sliverathan ). Any other ideas how can I improve the performance of the tests? What type of performance are you looking at to switch from toHaveBeenCalledWith Are you I appreciate you what you are trying to achieve - you have a test suit that runs 10 seconds and you are right to try an...

message - Is messaging from two pools to one pool allowed in BPMN? -

I have three pools, sender A (a human work), B (a service function) and receiver C (no case ). The pools are asynchronous and there is no callback. Both pool A and B have to send message 1 to pool the C-startme's event. Is it a legitimate use for sending messages from sources in many ways? A receiver or do I duplicate the message and two start-up events? BPMN Speak Says Yes , it's valid (page 2.0 version) 246): "An initial event may be the target for the message flow, there may be zero (0) or more incoming message flows. An immediate mechanism for the message flow process to target an initial event (a Trigger). To start a new process, only one trigger is needed. (In your case you have a type of message 'Message1', then it is straightforward, just as it says. If you have different messages, then Speak is given the "Multiple Event" - which allows many event definitions behind the scenes - or as an option, you will need to display those separa...

java - Boolean return statement (To make it not print true/false) -

My program runs and compiles, however, I did not get the desired output. It produces all the necessary information, but it also prints some things which I would not like to print very true / false statements along with patrons, authors and books: / * The right (current print statement) is true. True Name: Ken Lambert Title: Cider House Rule Author: John Irving Title: Perfect Hurricane Author: Sebastian Juger Title: The Illusion Author: Homer Title: Hamlet Author: William Shakespeare True Wrong Name: Ken Lambert Title: Perfect Storm Author: Sebastian Juger Title: Iliad Author: Homer Title: Hamlet Author: William Shakespeare (Current Print Statement) Name: Ken Lambert (Desired Print Statement) Title: Cider House Rule Writer: John Irving Title: Perfect Storm Author: Sebastian Juger Title: Iliad Author: Homer Title: Hamlet Author: William Shakespeare's Name: Ken Lambert Title: Perfect Storm Writer: Sebastian Juger Title: The Illusion Author: Homer Title: Hamlet Author: William S...

android - Using GCM how to know message is arrived or not in the device? -

Message from the third party app server To allow me to push the message Google Cloud Messaging Service use Android device. I go through the implementation of the GCM service in my forum. I follow all the steps shown there. After creating the GCM-Demo-Client client application as mentioned above, the steps I follow are as follows: Install GCM-Demo-Client in my Android device. Register device with GCM server. Get the registration ID successfully. Send Message This gives me 200 statuses from my third party application server. OK This means that successfully sent messages to my registered Android device However, if the device is not capable of receiving any message then how can I know whether the message has arrived or not when the application is not running I'm now able to get the message using GCM. My mistake is that I work on GCM-demo-client's project I have some stuff, but what do I do is create a new Android project and The Uru nor am going to imp...

ios - Swift Cast AnyObject to Block -

So I am using Salesforce SDK for the entire SDK and created bridging headers. func sendRESTRequest (Request: SFRestRequest!, Failed Block: SFRestFailBlock!, Full Block: AnyObject!); Block Syntax, which is not translated into the most useful code. ) The complete block is AnyObject! I was able to get around this with Var block: @objc_block (DataRPS: AnyObject!) - & gt; Zero = {I handle the response in the data response} restService.sendRESTRequest (request, unsuccessful block: {(error: NSError!) - & gt; absolute in} block: unsafe bit cast (block, AnyObject.self )) So far it works fine, however, now I am trying to build unit tests for this code. I have created a mock class for SFRestAPI, which is the square where the function "sendRESTRequest" remains for testing purposes, I am passing the "document" and trying to fool the full divider: parameter which is from the REST service Will be back. MockSFRestAPI: SFRestAPI {override func sendRESTReq...

ios - Swift: add custom view inside CALayer -

I am trying to add a custom view inside the CALayer. And I want to put some buttons and labels inside, but I'm afraid I am not able to do this. I am creating CALabel like this: func addRectangleToLayer (x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat, layer: CALayer, index: UInt32) {var sublayer = CALayer () Sublayer.backgroundColor = UIColor.whiteColor (). CGColor sublayer.shadowOffset = CGSizeMake (0, 3); Sublayer.shadowRadius = 5.0; Sublayer.shadowColor = UIColor.blackColor (). CGColor sublayer.shadowOpacity = 0.8; Sublayer.cornerRadius = 12.0; Sublayer.frame = CGRectMake (X, Y, width, height); Sublayer.borderColor = UIColor.blackColor () CGColor; Sublayer.borderWidth = 0.5; // Give an example label = UILabel () label.text = "LOREN" sublayer.contents = label layer.insertSublayer (sublayer, at index: index)} Is it possible to do this I want Many thanks and sorry for my English level If you UIView , you will have access to its Layer proper...

Grep or egrep to exclude text in a line -

I would like some advice on how to exclude one word in a line using grep, but still the line Will I continue? So I have tried: grep -v '1.942134' results.tbl | Egrep '* .fits' results.tbl to try to list all the strings with the exception, but excludes "1.942134" in the sentence, but it still Gives the whole line. Any advice? or you awk awk '/. .ht; & Amp; Amp; ! / 1 \ .942134 / `results.tbl The PS should protect you from . in both sed and awk or otherwise it means only any character.

jquery - Assigning model instance attributes based on a checkbox value -

मेरे पास एक उपयोगकर्ता मॉडल है जिसमें stage_name और real_name स्ट्रिंग एट्रिब्यूट्स । मुझे क्या करना है मेरे _form.hmlt.erb में असली नाम इनपुट बॉक्स के बगल में एक चेकबॉक्स है जो पूछता है, असली नाम चरण का नाम है? यदि चेक किया जाता है तो मैं असली नाम को चरण नाम के रूप में निर्दिष्ट करना चाहता हूं और स्टेज नाम इनपुट बॉक्स को real_name` नाम के रूप में उसके मूल्य के रूप में अक्षम कर देता हूं। अब तक मेरे पास है: _form.html। एआरबी & lt;% = form_for @user do | f | & Gt%; & Lt; div & gt; & Lt;% = f.text_field: stage_name% & gt; & Lt;% = f.text_field: stage_name% & gt; & Lt; / div & gt; & Lt; div & gt; & Lt;% = f.text_field: real_name% & gt; & Lt;% = f.text_field: real_name% & gt; # इस चेकबॉक्स में मेरे मॉडल कोड को कैसे बाँट करने के लिए सुनिश्चित नहीं हैं & lt;% = f.checkbox% & gt; & Lt;% = f.label 'असली नाम चरण का नाम है?' & Gt%; & Lt; / div & gt; & Lt; div & gt; & Lt...

asp.net mvc - Javascript HTTP Error 414. The request URL is too long -

जावास्क्रिप्ट: फ़ंक्शन तालिकाटोएक्ससेल () {var कैलेंडर = Document.getElementById ("कैलेंडर")। InnerHTML; Window.location.href = "/ कैलेंडर / निर्यातडेटा? कैलेंडर =" + कैलेंडर; } नियंत्रक: सार्वजनिक कार्यवाही निर्यात डेटा (स्ट्रिंग कैलेंडर) {string headerTable = calendar; Response.Clear (); Response.AddHeader ("सामग्री-विवाद", "अनुलग्नक; फ़ाइल नाम =" + "कैलेंडर" + ".xls;"); Response.ContentType = "एप्लिकेशन / एमएस-एक्सेल"; Response.ContentEncoding = System.Text.Encoding.Unicode; Response.BinaryWrite (System.Text.Encoding.Unicode.GetPreamble ()); Response.Write (headerTable); Response.Flush (); Response.End (); नई रिक्त वापसी (); } अगर मैं document.getElementById ("कैलेंडर") भेजता हूं .internalHTML को निर्यात करने के लिए window.location.href का उपयोग करके url अपवाद नीचे अनुरोध यूआरएल बहुत लंबा HTTP त्रुटि 414. अनुरोध यूआरएल बहुत लंबा है। मैं पैरामीटर भेजता हूं लेकिन ब्राउज़र को पैराम...

c# - Geolocation doesn't work iOS PCL Xamarin forms -

I'm trying to get the device location with the help of this example. It works on simulators, but the iPad does not work on Air. My information containing all the necessary keys for the location. The filist file., NSLocationUsageDescription and NSLocationWhenInUseUsageDescription In the code if (this. Manager .RespondsToSelector (new selector ("requestWhenInUseAuthorization")) {this.manager.RequestWhenInUseAuthorization (); } The piece of code where geolocator is using the object. IGeolocator geolocator = null; Geolocator = dependency service Go & lt; IGeolocator & gt; (); If (geolocator! = Null) {if (geographical. Isoolocation enhanced) {try (if !! Geolocator.IsListening) geolocator.StartListening (1000, 1000); Var function = Dependable geolocator gatepsia sink (10000, cancellation token one); If (work! = Null) {this.Position = task; } But the location does not fire the event ever ... The location is on the device. If anyone has a similar pro...

jquery - Javascript - [object Object] means? -

मेरा एक चेतावनी उपरोक्त परिणाम दे रहा है [वस्तु वस्तु] इसका सही अर्थ क्या है? यह कुछ jquery प्रकार के ऑब्जेक्ट की चेतावनी थी। इसका अर्थ है कि आप किसी ऑब्जेक्ट की एक आवृत्ति को सतर्क कर रहे हैं । जब चेतावनी वस्तु को आईएनजी, toString () ऑब्जेक्ट पर कॉल किया जाता है, और डिफ़ॉल्ट क्रियान्वयन रिटर्न [ऑब्जेक्ट ऑब्जेक्ट] । var objA = {}; Var objB = नया ऑब्जेक्ट; Var objC = {}; ObjC.toString = समारोह () {वापसी "objC"}; चेतावनी (objA); // [वस्तु वस्तु] चेतावनी (objB); // [ऑब्जेक्ट ऑब्जेक्ट] अलर्ट (ओबीजेसी); // objc यदि आप ऑब्जेक्ट का निरीक्षण करना चाहते हैं, तो आपको या तो console.log चाहिए, JSON.stringify () , या इसके गुणों की गणना करें और इनका व्यक्तिगत रूप से के लिए का उपयोग करके निरीक्षण करें।

asp.net web api - RoutePrefix per controller that is relative to root/global route? -

I am currently declaring the routerprofix attribute on each controller, which defines the same pre-prefix for each controller. is. I have seen an example where the rootfix is ​​relative, but I can not reproduce it public class vehicle controller: ApiController {/ p> What do I have: and then be able to define the beginning of the root globally ("API / V {Version: At}" in the route registration. / P> Is it supported?

nginx - For an app hosted on meteor.com, would it be reasonable to use a proxy to add SSL and a custom domain? -

First of all, let me explain why I have participated in some peaky third party meteor hosting providers. But I do not really want to run my own servers (I have a meteor app that runs with SSL on the digital ocean, so I know how to do it, I just want to give as much detail as possible to the dedicated professionals as their infrastructure Not to run in) From what I can see, meteor.com hosting is amazing, with the warning of not having a custom domain with SSL. So, what does it mean to install a nginx server which is just my proxy service? For the beginning, will he do the work, and if it does, will it be displayed? For your information, in the Meteorite list in the list for 1.1+ In the list, there is a roadmap for rollout Galaxy (managed "Meteor deployed" on its own server) and it should be an ideal option for you here This is a commercial product of MDG - Meteorite is a managed cloud platform for apps deployment. You have control of built-in hardware (you ow...

php - Need IIS to open default document before URL rewrite -

I am making a Symphony app with classic ASP pages on an existing web server. If domain / com / *. If ASP is found, then it loads the page if a URL has been entered and is not found, then it has been passed through a PHP routing system /app.php to process. I set the URL to reinstall it in IIS and everything works great though, I need to create an exception for the default .asp and index.asp. I want to check the IIS default documents And loads them before deciding the URL and rewrites it at / ap.php. I can write code in PHP and load it to check in the file, but such It seems that there is something that should be controlled by IIS. Is this possible? If my explanation was not clear, then it is an example: User attempts to load if it exists, then load that page. Otherwise, URL rewriting should be loaded > I know that you double the rule overwriting , And add a condition with "no this path" or something like that (I can not remember the name), then add regular expre...

c# - Look at decompiled source and ran across byte* -

दुनिया में क्या है एक बाइट *? उदाहरण कोड: बाइट * numPointer = (बाइट *) 0; बाइट * numPointer1 = (बाइट *) 0; Uint * numPointer2 = (uint *) 0; ए बाइट * ( बाइट * ) एक सूचक को एक बाइट चर में है। आप लगभग सी # में पॉइंटर्स का प्रयोग नहीं करते हैं, इसलिए आपने इसे पहले कभी नहीं देखा है। अधिक विशेष रूप से, एक सूचक एक वेरिएबल है जो किसी अन्य चर का स्मृति स्थान रखता है। इसके बावजूद, इसके बारे में चिंता न करें जब तक कि आप सी + + या किसी अन्य मूल भाषा में जाने की योजना बना रहे हों। अधिक जानकारी के लिए देखें।

D3.js - secondary axis alignment -

I've been looking for a long time, it seems that I'm not the only one to ask, but no one works right now Answer: Normally, how can we align a secondary axis in D3 (Y2 tix in front of Y1 tix)? I am not specifically looking for a little code; Even a common idea or algorithm can help me? jsfiddle.net/jugal/3qdkc/ Any clues? You use the scale to convert the provincial (screen) coordinate values ​​back to the original domain You can. Keeping this in mind, the process get the estimated values ​​for the first axis, if you want them to be tick values, use scale.ticks () To convert them to screen coordinates, pass the scale first. Now assign those values ​​to the scale. Invert () for the second axis scale, it will value you in the domain of second scale. Pass those letters next to the .tickValues ​​() second axis.

java - How to set web look and feel only for a JCombobox -

Image
I want to set the web form and only want to feel for jacombobox in netbans. Image: Generally speaking in swing, you can not see for any specific component, but for the whole set Can feel. See. On the other hand, provides extensions for swing components that have a custom "look", which does not need to look and feel weblf for the entire app. In this situation, instead of using JComboBox you can use the WebComboBox which is an extension of the previous one although this custom look is limited and some features such as font (size , Weight and family), renderers, pop ups, etc., and are still similar to the configured format and experience. That's why I do not suggest you to do this and set the weblog to look and feel or use standard swing components. Consider the following pictures (Note: WebList is broken with Nimbus): MetLock Endfile Nimbus look endless Windows Look Endless WebLock Endless

xampp - upload_max_filesize from php.ini doesn't work -

I want to import a database which is 11MB size. I have installed the xampp local server to do it in php.ini up to 2m I had set it to upload_max_filesize = 128M and max_file_uploads = 128 . After that I used the phpinfo () function, which shows me that is set to 128 MB, but in phpmyadmin it shows me 8 MB and after import, I got this message: You may have tried to upload a file that is too large. Please see the documentation for resolving this limitation. Yes, I've restarted the server several times! I tried to find and answer other posts but due to no result, can anyone help me in this matter? Thx Also set the maximum size for the desired value. post_max_size = 128 m

java - What is a NullPointerException, and how do I fix it? -

What are the null pointer exceptions ( java.lang.NullPointerException ) and what is the reason for them? Which method / tool can be used to determine the reason so that you stop the exception due to terminating the program prematurely? When you declare a reference variable (i.e. one object), then you can actually declare an object Make an indicator. Consider the following code where you declare a variable of the primitive type int : int x; X = 10; In this example, the variable x is a int and Java will start it in 0 for you. When you give it for 10 in the second row, your value is written in 10 memory place, which is indicated by x. However, when you try to declare a reference type something different, take the following code: integer number; Num = new integer (10); declares a variable called the first line, but does not have a primitive value. Instead it has an indicator (because this type is the integer which is the reference type). Since you have not s...

extjs - Page not resizing in safari mobile when user opens a tab -

I'm not sure that this is relevant, but my app uses sencha touch 2.3.1, and the base element is a Have a 'vbox' with container Anyway, when there is no tab, the user loads the app in Safari Mobile and then opens a new tab, then the page is cut down, in addition to the "Size Change" event It has not been removed, even if the inner space has changed. Does anyone know that this is an army issue? Why is the "resize" phenomenon not removed / detected the change? Thank you!

python - How to list attributes that you defined in google protocol buffers? -

I have a Google protocol buffer definition that looks like a compliance: Message Foo {required string name = 1; Alternative string address = 2; Alternative string nickname = 3; Optional int32 height = 4; } Now in Python, I want to list all the above features, but only those features, though, interactive dragon, I think there are many fields defined by Google, so it seems problematic I have seen some stack overflow posts on introspection. What is the way to do this? What I want to do here here I have Python utility that fills the command line above field I I use argparse, and I will: parser = argparse.ArgumentParser (...) parser.add_argument ( "- -attribute_name ", blah) I want to place add_argument () in a loop and makes it dynamic based on proto file definition. Actually, I do not want to modify the utility code, whenever I change the proto file. It seems that I should be able to do this in dragon. I do not know how to Anyone have suggestions? Thank yo...

Playing a video after a video in Android's TextureView has issues -

Image
Using a MediaPlayer inside a TextureView to run the video, it works. One video ends and the other video must be played, I change the scene of the text to the aspect ratio of the video (example - 3: 4 to 9:16 and so on ..) I change to fit The problem is, the first video ends, this last frame is shown, the shape of the texture is changed, The last frame of the first video stays for the second part of a partition, But now with a poor aspect ratio , the other video is being played well Image 1: Video 1, (3: 4): Image2: Video 1, here we have 2 videos, videos 1 final fr It is between m, now it is (9:16) after the size change, but the rectangle is looking bad. The picture below is shown for the second: There is nothing special about using the code, here are some parts: // to init TextureView and MediaPlayer: mounted on public zeros (surface surface surface mix, integer width, height of intensity) {m_MediaPlayer = new MediaPlayer (); M_Surface = new surface (surface m...

ios - how to measure the speed of mobile broadband traffic on 3g or wifi cell programmatically on the iphone -

In my app, I'm already collecting traffic on the iPhone, now the way to measure the speed of mobile To check is 3G or WiFi cell programmatic broadband traffic. For example: every 1 minute or 10 minutes or more ...., it is necessary to know what the average speed is that data is being downloaded and distributed for both.

javascript - Bind jQuery Keypress() to Polymer paper-input -

I am using the framework for the site on which I am working, I want to bind keypress () a polymer & lt; Paper-input & gt; I HTML & lt; Paper input id = "whatever" label = "example" & gt; & Lt; / Paper-input & gt; JavaScript $ ("#Joe"). Keypress (function () {console.log ("this has worked!");}); I am aware of the fact that polymers use shadow DOM elements, and therefore & lt; Input & gt; tag is the actual & lt; Paper-input & gt; tag. One way would be to do something like $ ("# whatever"). Children () and somehow filter for a & lt; Input & gt; tag, but I think it is not the best practice for polymers. Either way, there is no need to force me to input keyboard input. It's been a while, but I had the same problem with the web component examiner. It has been found that polymer is now a clean component iron-testing-assistants, in which a script is mock-...

node.js - Heroku dynos not sharing the file system -

My Heroko web app has the ability to download pictures from S3. It works like this: There is an end point (A) to request an array of images, which returns the job id. Those images are downloaded by A tmp of my code to the Haraku folder and when all images are downloaded, a zip file is created. Whenever images can still be downloaded, the web client calls from second to second point (B) with job id. This second endpoint checks how many progressive images to be downloaded back to the images already downloaded. When the zip is already built, it is downloaded the "return" zip file and images. This approach worked well with 1 witch in Heroku. Unfortunately, after scaling 2 dyes, we realized that it does not work anymore. The reason for this is that Dion does not share the same file system in Heroku, and the end point A and B are managed by various dinosaurs. Therefore, Dino does not get any file in the end point B. Is my approach an easy way of working with many ...

upgrade - What is the correct procedure for upgrading a Grails project from version a.b.c to x.y.z -

I've been developing Grails Apps for the past five years, and I have yet to get a simplified process to upgrade Generally a project between Grails versions, I am starting the project from the beginning, by copying the code from the old project into a new project, in bit by bit Tying along the way to pass the tests. There are a lot of balls to stash up from the GREATS versions only to the STS / GGTS versions till GRV versions. They all seem inconsistent in the backward way. I actually worked with grails for a few years and never had this way . What do I have to do: Install a new version of Grails I use for it and I highly recommend it, but it depends on the platform of your choice Does. Read and release the release notes for this version is a very important step, often involving some Grails "built-in" plugins upgrade and so on. Collision using version number. Update IDE settings I use IntelliJ and it runs smoothly from most of the time. No / Targ...

c# - Add reference of a Windows Runtime Component to an existing project -

Image
मेरे पास विंडोज़ फोन 8.1 समाधान निम्न परियोजनाओं के साथ है: पोर्टेबल कक्षा पुस्तकालय (पीसीएल) (कुछ उपयोगी विधियों और whatnot के लिए) मुख्य अनुप्रयोग > विंडोज रनटाइम कंपोनेंट (विनआरटी) (पृष्ठभूमि कार्य के लिए) मैं PCL और WinRT एक .nuget पैकेज में, और मुझे पता है कि मैं PCL के साथ ऐसा कर सकता हूं, हालांकि, मुझे WinRT में कुछ याद आ रही है इसे मैन्युअल रूप से परीक्षण करने के लिए, मैं समाधान से परियोजनाओं को निकाल रहा हूं और उनका निर्माण संदर्भ के रूप में जोड़ रहा हूं, अर्थात, PCL एक .dll फ़ाइल का उत्पादन करता है I एक संदर्भ के रूप में मेरे मुख्य अनुप्रयोग में जोड़ें यहां समस्या यह है कि WinRT इसके बजाय एक .dll नहीं है, लेकिन इसके बजाय एक .winmd फ़ाइल नहीं है यहाँ यह बात यह है कि मुझे यह जानकारी नहीं है कि मेरे PCL पर एक संदर्भ के रूप में उस फाइल को कैसे जोड़ना है। यह सब योग करने के लिए, मैं संदर्भ के रूप में कैसे जोड़ सकता हूं एक WinRT प्रोजेक्ट बिल्ड का परिणाम? क्या यह .winmd फ़ाइल या कुछ अन्य? मैं हल करने में कामयाब रहा हूँ मेरी ...

r - non-numeric argument to binary operator -

I have the data frame T that is a mixture of numeric and string: T1 & Lt; -C (1,2,3,4,6) T2 and LT; -C (4,5, 5,7,8) T3 and LT; -C ("A", "B", "C", "D", "E") T4 and LT; -C (4,5, 5,7,8) T5 and LT; -C (4,5, 5,7,8) T & LT; -Data Frame (T1, T2, T3, T4, T5) When I work on the numerical value of each row using the follwong code: Apply P = (T, 1, Fun = function (x)) FLAC (x [1]> = x [4] + 2 * x [5], 1,0) ) It always gives an error message "Error 2 * x [5]: Non-numerical argument for binary operator" But if I replace T3 with all the numerical values, So it works perfectly. I'm surprised and wondering if anyone has any insight? Thank you! You get the force of each line because whatever T3 gets from your dataframe Has it been applicable . You can fix this with: P = apply (T [3], 1, FUN = function (x) ifelse (x [1]> = x [3] ] + 2 * X [4], 1,0)) The error is not in comparison with the comparis...

node.js - mongoose update a value in a document using model.update -

What am I doing wrong here, do I want to update the score? The problem is executed without the code of errors, but does not update the score. Team.findOne ({name: req.body.team}, function (fault, team data) {if (teamData) {var a = TeamData.score + 1; Team.update ({ Name: req.body.team}, {$ set: {Score: a}});} else {console.log ()}}}); As Muhammad Ali said, a callback function is required for the update, which is probably your problem. But there is an easy way to do this: Team.findOne ({name: req.body.team}, function (mistake, teamadata) {if (teamData) {teamData.score + = 1 teamData.save (function (mistake) {if (err) // something to do});} else {console.log (err);}});

AVR PINx.n not working -

मेरे पास folloving कोड है: #define F_CPU 8000000UL #include & lt; avr / io.h & gt; # शामिल करें & lt; util / delay.h & gt; Int मुख्य (शून्य) {DDRB = 0xFF; // B आउटपुट डीडीआरडी = 0x00; // डी इनपुट PORTB = 0x00; // एलईडी बंद PORTD = 0xFF; // पुल-अप सक्रिय करते हुए (1) {if (PIND.4 == 0) {PORTB & amp; = ~ (1 & lt; & lt; पीबी0); / * * / _delay_ms (100) पर एलईडी; PORTB | = 1 & lt; & lt; PB0; / * एलईडी बंद * / _delay_ms (100); }} वापसी 0; } हालांकि, जब इसे Atmel स्टूडियो में बनाने की कोशिश करते हैं तो यह एक त्रुटि देता है: त्रुटि 1 की उम्मीद ')' संख्यात्मक निरंतर से पहले रेखा संख्या को लाइन से संदर्भित करता है अगर (PIND.4 == 0) { यदि मैं 'PIND' और '4' के बीच बिंदु को हटाता है, लेकिन यह प्रोग्राम जीता काम नहीं कर रहा है क्या मैं गलत कर रहा हूं? रजिस्टर एक्सेस की PIND.4 शैली आपके विशेष ioXXXX.h फ़ाइल में परिभाषित नहीं किया जा सकता है। एक आसान प्रतिस्थापन है if (PIND & amp; (1 & lt; & lt; 4) =...

Rest: Passing an array of xml payload request -

इस तरह एक नियंत्रक विधि है: @ POST @ path ("/ {id } "@Consumes ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) सार्वजनिक प्रतिक्रिया postEntities (अंतिम डोमेन [] डोमेन, @PathParam (" id ") अंतिम लांग आईडी) अगर मैं डोमेन की एक JSON सरणी पास करता हूं तो यह ठीक काम करता है और मार्शल ठीक काम करता है। लेकिन XML अनुरोधों के लिए मैंने & lt; डोमेन & gt; & lt; / domain & gt; आसपास & lt; डोमेन & gt; & lt; / डोमेन & gt; , नियंत्रक फेंकता 204 - नहीं सामग्री वापस। उदाहरण: & lt; डोमेन & gt; & LT; डोमेन & gt; । । । & Lt; / डोमेन & gt; & LT; डोमेन & gt; । । । & Lt; / डोमेन & gt; & Lt; / डोमेन & gt;

Fatal Error: Unhandled Access Exception in AutoCAD C#.NET plugin -

I am writing a plugin that should read data from a binary file at startup. When starting, it should read the data from the file and ask the user to select a location to display the data in the table. The plug-in should be minimized as a program and then ask the user to select that point in the AutoCAD command line, where the table should be WindowsDoors f = ( WindowsDoors) WindowsDoors.ActiveForm; F.WindowState = FormWindowState.Minimized; Pr = ed.GetPoint ("Enter the table entry point:"); However, when trying to execute the midline code shown to reduce the form, AutoCAD crashes with a dialogue box saying, "Incorrect error: 206206 on ADH Unread access violation 0x0000 exception " I suspect that I need to programmatically correct the Windows DOS F object with a programmatic mess, but I'm not sure If I am right or do, then if I from within a form, if you are on the editor If you want to go back, you will need to call Editor.StartUserInteraction ...

c# - Error using unity in mapping objects in MVC -

I see a problem in using Unity in the controller constructor. Here are the details - In the unit configuration (unity.config) - here's what I am doing - container.RegisterType & lt; ISessionWrapper, SessionWrapper & gt; () In the Controller Creator Public OnboardingController (ISessionWrapper sessionwrapper) {SessionWrapper = sessionwrapper; } SessionBrapper Public Interface EsSespar {string brand {get; Set; } // string cranation culture {receive; Set; }} Public class session: Essentials {public string brand {get; Set; }} There was an error in doing this No parameter-defined manufacturer for this object is defined. Description: An uncontrolled exception occurred during execution. Current Web Request Please review the stack trace for more information about the error and where it originated from the code. Exception Description: System.MissingMethodException: There is no parameter label constructor defined for this object. Source Error: An...

Jquery Ui tooltip shows only one word -

I am using jqueryUi to display the tool tip for an image. In the tooltip, I only see the first word, what can be the problem? Look under the code I see tool tip as "high" instead of "high priority." back "img title = high priority src =@Url.Content (Links.Content.Images. High_png) />"; You can add quotation marks to title and escode attributes Change it returns "& lt; img title = High priority src =@Url.Content (Links.Content.Images. High_png) / & gt; back "& lt; img title = 'high priority' src = '@ Url.Content (Links.Content.Images.High_png) '/ & Gt; ";

recursion - T(n)=T(n-1)+O(log n)$is T(n)=O(n^2) or T(n)=O(n log n) -

Image
I have a recurrence relationship: T (n) = t (n -1) + o (log n) What is the solution? T (n) = o (n ^ 2) or t (n) = o (n log n) What I did: I think that T (n) & lt; = O (n ^ 2) ... And this I o (n ^ 2), am I right? Or is i mistake? (I have heard from someone that he has found O (n log n) and if i am right or do kiray ...) Thank you! If T (n) = T (N-1) + C logs for some C. => T (n) and lt; = T (N-2) + C Log (N -1) + C Log N => T (N) & LT; = T (N-3) + C Log (N -2) + C Log (N -1) + C Log N Type: T (N) & lt; = T (0) + sum_ {i = 1 .. n} c log I = O (n log n) but o (n ^ 2) is also true but less specific, because t ( N) = O (n ^ 2) means some A, M such that T (n) & lt; = All for n = 2 ^ n> = m

css - How to prevent the foundation 5.x top-bar from going width 100% -

Currently, I'm trying to find a way to reduce the top-bar scope as what the row would do I am able to get this work w / a simple div class row by dividing the div squared big-12 column by dividing it to ny square top- But ... but it seems as if I did not wrap it in this way Can I / should. Can someone help me to reduce the complexity that can help? * Note- Square my-custom-object is used to keep the background color in one place (sets the same color head-bar essentially) & lt; Div class = "my-custom-thing" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "large -12 column" & gt; & Lt; Nav class = "top-bar" & gt; & Lt; / Nav> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; If you want line and column properties you can go with it. X: Max-width line: 62.5m by default and padding of columns It looks fine and I do not think it looks complex As is also ...

ruby - Creating while loop for boolean status of a class method -

GuessingGame with a method called a code named "code>" is . I am creating some test codes and want to make a loop until the solution is correct: class GuessingGame def Initialize (answer) = Answer @ Hull = false end DEF estimate (guess_num) if estimate_num False says, "There is a number between 1-75" estimate_nank = gets.chomp.to_i end of game.guess (guess_num) Ruby does not like my While game.solved? Incorrect and saying that I have the wrong number of arguments. What am I doing wrong here? I'm running Ruby 2.1.1p76. At the top of your class, you need it: class Gearganggame attr_reader: solution attr_reader from the API doctor: You Attr_reader Creates an instance variable and the same method which returns the value of each instance variable. From here you can: class guessinggame attr_reader: solve def initialize (answer) @answer = answer @ solved = false end def estimate (Guess_num) if estimate_num & lt; ...

javascript - Select a radio input when the row is clicked -

I need to select a radio input when a user clicks anywhere on the line and exposes the row when the mouse Takes it to the trunk. I am working with some options but with nothing else to work with jquery / javascript, I can not find anything, but I am sure that it has no way of working with plain HTML / CSS. What I need is the first question of a survey here: I know that "table" or "display: label-line;" with label + input Or width but I'm just not able to work it. I appreciate any help. Use CSS on your tr as the hover effect Without a jquery or without a class: $ ("tr") (function () {$ (this). The book ("Input: radio: first") .prop (" Check ", is true). Triggers (" click ");});

Copy multiple files to different directories in Makefile -

I have a makefile where I currently have two files which should be copied to different directories Currently, I Tested resonant $ {dirs} | Xargs -n 1 cp $ {sources} So I think this will not work because it will try to copy one of the directories all in the source file at all times. But is there any way i can execute per command for each source file and directory? Best regards, Simon me It seems that what you want from what you wrote, but it is possible that other people said, then you should be more clear, so we do not have to spend time to spend it. Anyway, since you do not want to copy all the files in all the directories, you can call Make anyway, where you copy the files. Want the easiest way to select that you $ (COPIES) , and not only $ {dirs} as of full copies of variables. In this reply, I am going to accept the already existing destination directories. .PHONY: all: $ (copies) PERCENT: =% SECONDEXPANSION: $ (COPIES):%: $$ ($ $ (PERCENT) / $ $ Filter...

python - How to run f2py in macosx -

Hi, I'm trying to use f2py in Macaux. I have a Homebrew dragon instalation and I have installed numpy through pipes. . If I type f2py on the terminal, I get the -bash: f2py: command not found , but if I use the Python script import numpy.f2py Does it work well how can I solve this problem by running f2py directly from the terminal? Thanks! I had a similar problem (numpy installed with PIP on Macs, but got f2py not found). Names name / emà / library / Python 2/7 / bin), but there was no executed permission set. Once it was fixed that everything was fine.

racket - scheme how do you sum numbers in a list when you have structures and list of lists -

;; एटीओएम एक है:; -- प्रतीक ;; - स्ट्रिंग ;; - संख्या ;; एक एसईएक्सपी (एस-एक्सप्रेशन) इनमें से एक है:; - खाली ;; - (विपक्ष ATOM SEXP) ;; - (असुरक्षित SEXP SEXP) तो मैं SEXP में सभी नंबरों को योग करने की कोशिश कर रहा हूँ! यहां मेरा कोड है, ;; योग-संख्या: लिंग - - & gt; संख्या (सम-संख्या लिंग) (कोंड [(रिक्त? लिंग) 0] [(एटॉम? (प्रथम सेक्स)) (+ (परमाणु-संख्या-संख्याएं (प्रथम सेक्स)) (योग-संख्याएं (बाकी सेक्सपी)) )] [(एसईएक्सपी? (पहले सेक्सप)) (+ (योग-संख्याएं (प्रथम सेक्स)) (राशि-संख्याएं (आराम से सेक्स)))))) ;; परमाणु-राशि-संख्या: एटम - & gt; संख्या (एटम-सम-नंबर ए) (कोंड [(प्रतीक? ए) 0] [(संख्या? ए) (+ (एटोम-नंबर ए) (एटम-सम-नंबर ए))] [(स्ट्रिंग? ए ) 0])) हालांकि, एक त्रुटि cond कहते हैं: सभी प्रश्न परिणाम झूठे थे। मैं सोच रहा हूं कि वहां क्या हुआ। आप सूची में हेरफेर प्रक्रियाओं के साथ संरचना अभिगम प्रक्रियाओं को मिला रहे हैं, काम नहीं करेगा - आपको सुसंगत होना है, अगर आपको स्ट्रैक्ट्स का इस्तेमाल करना है तो आपको संरचना की अपनी प्रक्रियाओं का उपयोग करना होगा। ...

android - getMaxAmplitude() alternative for Visualizer -

In my app I let the user record audio using the phone's camera while recording is in progress. The generalized form of getMaxAmplitude () for the time and value of y as value. float amp = Math.min (mRecorder.getMaxAmplitude (), mmx amplitude) / (float) mxaxupltid; It works well. My problem occurs when I go back to audio (after transportation on the network). I want to recreate the generated waveform during the recording, but the same is not the same as getMaxAmplitude () method in the Media Player category. The framework I'm trying to use the visualizer class, but having a hard time getting a useful result for the y value. Back-byte array contains values ​​between -128 and 127 but when I look at the actual values, they do not represent the wave, because I hope this should be. How do I use values ​​returned from the visualizer to get the value associated with sound louds? Your byte array is probably an array of 16, 24 or 32 bit signed values. Assuming t...

mysql - How to speed up JOIN and GROUP BY from huge table - 10 billions rows -

I have a link table with two columns usergroup (user int, group int) , in which ~ 10 billion rows Each column has 100 million unique values ​​Indexes are made on both areas. I have found the majority of users belonging to a particular group. My query is select group_id, count (*) as cnt from usergroups join GM (select usergid from usergid where group_id = 74437 LIMIT 100) Group C (GM.user_id = G.user_id) being group_id on group cnt & gt; 10 CNT characters by order; This does not work without the limit of the subquery (timeout error) Is this query speed possible? Or maybe I should use some noxl database for this problem? No need for internal / sub queries. For the specific group_ID, if there are more than 10 records, then no group is required, then you are grouping for a specific group, it only gives a record, if and where Be satisfied with Select group_id, count (*) as cnt from usergroups where group_id = 74437 group_id group cnt> 10 Normally, group with ...