Posts

Showing posts from February, 2015

C - char pointer and char pointer string management -

I have to input a string and display it in standard out. The ideal solution would be to get the string in the four pointer array, though I get an error on scanf, I think because the four indicator string solution is not the allocated space for it. #include & lt; Stdio h & gt; # Include & lt; Stdlib.h & gt; #include & lt; String.h & gt; Int main (zero) {char * charString; Printf ("Input String - Max% i caratteri:", CHARARRAYSIZE); Scanf ("% s", four strings); Printf ("% s", charString); Return EXIT_SUCCESS; } So I tried to get a sting in a four array and then put a copy in the four indicator string (strakpy). In this case I got a warning that on the strcpy call, that strcpy is used without being initalized, how do I fix it? Please refer to the code below for this second issue. #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; #include & lt; String.h & gt; # Define 16 int main (zero) ...

javascript - Getting the object instance from a prototype -

I am trying to reach members of an object from within an object function. Sorry if I'm doing the wrong thing, then I'm starting one :) I have something like this: function my object {canvas} {this. Value = 'hello world'; This.canvas = canvas; This.canvas.addEventListener ('mousemove', this.mouseMove); } MyObject.prototype.mouseMouse = function (evt) {// This canvas is hostile reference = this.getContext ('2d'); Context.fillText (/ * How to get the value of MyObject? * /, 0, 0); } Thanks. Callback function needs to be called in context of the object example you can use for modern browsers , Which is bound to a particular context, which returns the function: this.canvas.addEventListener ('mousemove', this.mouseMove.bind (this)); In simple words, when a call is made from MyObject.prototype.mouseMove to addEventListener , this value > function, the canvas example would be the value of the MyObject example instead of ...

r - Group dates by bimester -

Here's a sample of data, on which I'm currently working: x & lt; - Structure (list (secs = C (0, 0, 0, 0, 0, 0, 0, 0, 0, 0), min = C (59 L, 32 L, 23 L, 26 L, 20 L , 14 L, 1 L, 5 L, 32 L, 2 L), Hour = C (10 L, 15 L, 12 L, 12 L, 16 L, 18 L, 18 L, 9 L, 14 L, 12 L ), MAD = C (9L, 15L, 2L, 15L, 20L, 26L, 11L, 22L, 9L, 16L), Mon = C (4L, 11L, 10L, 7 L, 9 L, 8 L, 10 L, 8 L, 8 L, 4 L), Year = C (111 L, 111 L, 111 L, 111 L, 111 L, 111 L, 111 L, 111 L, 111 L, 111 L), wday = C (1 L, 4 L, 3 L, 1 L, 4 L, 1 L, 5 L, 4 L, 5 L, 1 L), Yd = C (128 L, 348 L, 305 L, 226 L, 292 L, 268 L, 314 L, 264 L ("seconds", "minute", "hour", "25", "l", "LCD", " This is because" Monday "," Mon " , "Year", "wday", "yday", "isdst"), class = c ("POSIXlt", "POSIXt")) > X [1] "2011 -05-09 10:59:00 "" 2011-12-15 15:32:00 "" 2011-11-...

Socat and systemd -

I need to run a script, which is running one of the many sockets, running the script properly from the command line Now, what I need now is that this script is being run as a service. I have this script: #! / Usr / bin / env sh set -e TTY = $ {AQM_TTY: - / dev / ttyUSB0} / reg_seion / DESTINOS = (http://127.0.0.1) LOG_DIR =. / Logs-aqm mkdir -p "$ {LOG_DIR}" ### Added ### Allo $$> /var/run/colector.pid socat -b 115200 $ {TTY}, resonance = 0, crnl - | Grep - line-buffered "^ RS" | During posting; For Destino, make $ {DESTINOS [@]}; Do wget --post-data = "$ (echo" $ {post} "| tr -d" \ n ")" \ -O / dev / null \ --no-verbose \ - background \ --append-output = "$ {LOG_DIR} / $ {destino //}} log" \ "$ {destino} / reg_sesion / create" has been echo "$ {post}" | TE-A "$ {LOG_DIR} / Aquim.log" and service file: [unit] Description = colter [service] type = simple PIDFile = / var / run / co...

html - What is the and elements for? -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मैं कोड कैसे सीख रहा हूँ वेबसाइटों और अन्य लोगों से HTML यह एक साइट ने & lt; div & gt; और & lt; span & gt; तत्व का उल्लेख किया है लेकिन वास्तव में उनमें अच्छी परिभाषा नहीं दी है क्या कोई मुझे बता सकता है कि वे क्या कर रहे हैं और उनका उपयोग कैसे करें? "post-text" itemprop = "text"> ul> उदाहरण: पैराग्राफ, शीर्षक दोनों बहुत ही एक ही काम करते हैं (आप div का अधिक बार उपयोग करेंगे)।

html - Sticky footer, but with a twist -

Therefore, I already know that to create a sticky footer, mainly using this method: He said, I'm trying a bit differently: Currently, I try to keep all the contents of my website at the bottom of the Stick page The footer above it, it looks like something: Header Blank space (this gap stops because more content Od is) | | | | | The content (sticks to the top of the footer) The footer (sticks at the bottom of the page) The more content is added, the more content gets UP to the top, while the footer sticks to the bottom is quite simple. I am trying to figure out how I can do this so that once the content is sufficient (and at the bottom of the header) to reach the top of the page, Turn off the footer from the bottom of the screen, then start. As far as the code happens, I really do not know where it starts, though I would like to avoid the script and if possible it should put the pure CSS. Any ideas? I have no way of completing css wit...

java - Android - after splash scrren app stuck - can open ads - only on Android 4.4+ -

Image
I'v created app, which has a splash screen, and after loading the app ad, the splash screen has gone and The ad is open (full screen). Its working on Android 2.3 to 4.2 (made for APK 8), but it is stuck at 4.4+ - it only displays the Splash Screen logo but does not let the advertisement itself ( 5/4, Nexus 4/5 check). BTW - I have 4.4 Jar: splash_screen_logo.java public class splash_screen_logo activity {personal interstitial ad interstitial; @ Override Protected Zero (InstanceStat saved from bundle) {// Todo auto-generated method stub super. Connet (Saved Instantstate); SetContentView (R.layout.splash_screen_logo); // Create intermediate interstitial = new interstitial (this); Interstitial.setAdUnitId ("*****"); // ID deleted // create ad request AdRequest adRequest = new AdRequest.builder (). Build (); // Start your interstitial loading. Interstitial.loadAd (adRequest); // Start your intermediate loading displayInterstitial (); Interstitial.setAdListene...

java - Notify when web content change -

I'm new to Java and working on a simple application that monitors a URL and when a table Notify me if updates new things Viewing the entire page will not work because the ads are changed all the time and they give false positivity. My idea was to bring the URL line from the line in search of elements. For each element, I want to see that the element is already in an array list. If the element is not added to the array list and the notification is sent. The support I need is not the exact code, but advice if this is a good way and if I have an array array of elements or if I should use a file, because in each element the text "text"> To check the site, it will probably be more stable to parse the HTML and the dom's object presentation Area will work with. I have never had to do this, but in the suggestions suggested by another user, maybe you can take a look at it. To store information (which you currently do in your archieist): It really depends on w...

Command working in cmd prompt, but not in batch file -

I'm trying to run this command: mshta Javascript: alerts (" Thanks for taking a look at my question! D;); Close (); This runs fine in CMD prompt, but when a batch is placed in the file, The error is found: close () was unexpected at this time. In the batch script, the semi-colon is ending the MSTA command, instead of The HTA command like you want it to be quoted to the HTA command, or to provide a script on mshta.exe. I think this should work : mshta "javascript: alert ('Thanks for taking a look at my question !: D'); Close (); "

c# - Inlining an implicitly declared out variable compiles but doesn't get Visual Studio support -

निम्नलिखित परिदृश्यों पर विचार करें: वर्क्स: सिमेंटिक मॉडेल सिमेंटिक मॉडेल ; document.TryGetSemanticModel (बाहर अर्थिक मॉडल); काम नहीं करता: var सिमेंटिक मॉोडल; document.TryGetSemanticModel (बाहर अर्थिक मॉडल); काम करता है: दस्तावेज़। ट्रीगेटमॅडमिक मॉोडेल (सिमेंटिक मॉडेल अर्थमोडेल से बाहर); वर्क्स, लेकिन: document.TryGetSemanticModel (बाहर अर्थ अर्थमॉडेल); लेकिन : कोड को संकलित करता है, लेकिन मंडराना पर कोई भी जानकारी या दस्तावेज़ नहीं है। क्या पिछली विधि दूसरे एक (जो नीचे त्रुटि का कारण बनती है) के लिए वाक्यविन्यास चीनी माना जाता है या क्या इससे अधिक है? इम्प्लिस्टिक-टाइप वैरिएबल को आरम्भ किया जाना चाहिए क्या मैं कार्यान्वयन या विज़ुअल स्टूडियो में एक बग देख रहा हूं? मुझे यह संदेह है सी # 6 कंपाइलर समाप्त हो जाने के बाद संभवतः काम करेगा। अभी, यह संकलन करता है, लेकिन रोज़्लिन अभी भी एक काम प्रगति पर है, और वर्तमान में निर्माण के लिए इंटेलिसेंस की सीमाएं हैं। क्या मैं कार्यान्वयन या विज़ुअल स्टूडियो में एक बग देख रहा हूं? / P> यह दृश्य स्...

javascript - Meteor variable scope -

I know about the scope of What is the reality, so this meteor event is helpful to me: Template.test.events ({'click .selector': function (e) {e.preventDefault (); var someArray = [ 1,2, 3,4]; var Some variables = "jquery slector data"; console.log (some variables); // This work expects some range. Reed (function (index, L) {console.log (SomeVariable); // not defined?}}}}) I was under the impression that any variable declared outside any of my ceremonies would be available inside it? Although I'm not being defined, is this a typical meteorite thing or javascript? Also, how can I access Val inside the .each function without making the global? I do not think my variable would be considered ideal within .each loop because this means that there will be many visits to the DOM. Thank you. The problem is that you try to use the each () method , Which is not present on Array.prototype . I believe you are looking for Array.prototype.forE...

c - SDL_Mixer: Mix_FreeChunk() crashing on sample created in memory -

I was working on adding random pitch to the samples, and it works just fine, but Mix_FreeChunk ( ) The part after using it while trying to free the accidents. I did a simple test to recreate this issue (SDL 1.2.14 and SDL_mixer 1.2.11): Mix_Chunk * S1 = rexResourceMgr-> GetSoundFromFile ("Data / Audio / UI / ALARM.ogg"); Use Mix_LoadWAV_RW / SDL_RWops to load the sample Mix_Chunk * s2 = (Mix_Chunk *) Molec (Mix_Chunk); S2-> Allocated = 1; S2-> Allan = s1-> Ellen; S2-> Abuf = (Uint8 *) Mallow (s2-> Allen * Volume (Uint8)); Memcpy (S2-> abuf, s1-> abuf, s2-> allen); S2-> gt; Quantity = s1-> Volume; Mix_FreeChunk (S1); // & lt; - Mix_FreeChunk works fine (s2); // & lt; - Accidents are loaded anywhere in SDL / SDL_Mixer using the S1 Mix_loaded_rW file, and is the exact copy of the S1 created in S2 memory. The latter does not precede the accidents, but the former does. Someone also realizes why this can happen? I've spent a ...

arrays - Java: Date conversion output error -

इस सवाल का पहले से ही एक उत्तर है: 23 उत्तर इस कार्यक्रम पर मुद्दों होने से आउटपुट सही मैंने उन मापदंडों को शामिल किया है जो एक वैध तिथि इनपुट (यानी 3/22/2014) बनाम एक अमान्य इनपुट (यानी 3/57/2014) बनाम समझने में सहायता करते हैं। ये I स्टेटमेंट में पाश के लिए मेरे भीतर स्थित हैं I हालांकि, जब मैं प्रोग्राम चलाता हूं, मैं और कथन का आउटपुट प्राप्त करता हूं और मुझे यकीन नहीं है कि क्यों। मैंने स्ट्रिंग और कोई भाग्य के साथ इंट से सरणी प्रकार स्विच किए हैं I क्या आप मेरी त्रुटि देखते हैं? धन्यवाद आयात करें java.util.Scanner; आयात javax.swing। *; सार्वजनिक वर्ग कन्वर्टडेट {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {स्ट्रिंग प्रविष्ट दिनांक, महीने, दिन, वर्ष; अंतिम स्ट्रिंग [] महीनेआईडी = {"जनवरी", "फरवरी", "मार्च", "अप्रैल", "मई", "जून", "जुलाई", "अगस्त", "सितंबर", "अक्टूबर", "नवंबर" , "दिसंबर"}; अंतिम पूर्णांक [] महीनेआईडअरे = {1, 2, 3, 4, 5, 6, 7, ...

java - Math behind a 3rd person camera -

I am trying for some time now and I think nothing about the third person's camera . I just want to create a simple 3 person camera but it becomes difficult because I am in 3D. So far, I can do a camera on 1 plane, but after that it's messed up. If I know any person then I am using libgdx with model libgdx. I do not need to give you codes for this, I just need help about the information in which I have information. I know the velocity in x and z, the rotation of the object x y z, and its position at x y z I can keep an eye on the camera for the object, so what I have to do, behind it and in the after it does not matter what the orientation is for the object. Any link or explanation is highly appreciated :) Solution: In the comment, Xoppa posted a link to its tamper proof The camera provides and it's amazing because it was not an answer, so I accepted it, but what did I want for it? In response to this question, Expo gets all credit links, it is easy to find. ...

excel - Automatically repeating values in Word -

I have a Word Doc where I keep a matrix listing date and other data. I would like to see some of the data appearing in other parts of the document. Obviously, this can be done manually, but if this data is being inconsistent, then in other areas where the data is displayed as well Need to update the need to run the risk of not remembering Does anyone know any way to tell the word to repeat the same data in a specific location? I am afraid that the source of data is a matrix that, in fact, to make reference to which reference the post is to be added, a layer of complexity must be added. If this was Excel, it would be a lot easier. Excel equivalent formula = A1 ... So whatever value I enter in A1, it will be duplicated in the cell that takes the formula. Hope this analogy explains my problem. If my tourism is not up to the top you can use a custom value. You can create / define from the menu: file - & gt; Information - & gt; Properties - & gt; Advanced - & g...

javascript - Slice path into two separate paths using paper.js -

Image
I need to 'slice' a big path into two small paths by using a line. For example, your The following configuration can be: path.split function to divide the rectangle, but I do not understand the paper.js API completely and I'm sure The best way to do this is to use the paper at all .js API For example, I split the original rectangle by the following commands: var Start_shape = new paper.Path.Rectangle ([paper.view.center.x - 200, paper.view.center.y - 200], 400); Start_shape.strokecolor = "#aaa"; Start_shape.strokeWidth = 2; Start_shape.fully selected = true; Var p1 = start_shape.split (start_shape.getNearest location ([paper.view.center.x - 40, paper.view.center.y - 250])); Var p2 = initial_ship.plit (start_shape.getNearest location) ([paper.view.center.x + 50, paper.view.center.y + 250])); And I get the following: I tried to do the following: p1.closed = true; P2.closed = true; P1.position.x + = 10; I found the required result: B...

linux - configuring yeoman for ubuntu 14.04 grunt command wont work -

I am using the following when I tried to use the raucous, yo, arbor Ikt no error line now IVE install each dependency I can think of so I do not know what my terminal to check below Any ideas justin @computer: ~ / documents / gitRepos / GitRepo2 $ cd learningnangular / justin @ justincomputer: ~ / documents / gitRepos / gitRepo2 / Sikneanjyulr $ Kdhakr service Justin @ Justin companies Computer service: ~ / Documents / GitRepos / GitRepo2 / Sikneanjiller $ parings Justin @ serve justin computer: ~ / Documents / GitRepos / GitRepo2 / learning angle serving $ Gntana Justin @ Justin computer: ~ / Documents / GitRepos / GitRepo2 / learning engine try your learning analog directory Run npm inside and then Hour service inside.

Using Javamail for Android to send an email -

Here is the code I am using: error is in GMail.sendMail where the line Attempts to transport Gmail with a valid username and password. I can not find any way around this and it is weird because almost a month ago, this code worked perfectly 04-23 21: 21: 41.526: I / System.out (27546): Delete: getProvider () Returns Jawks. similarity. Provider [TRANSPORT, SMTP, com.sun.mail.smtp.SMTP Transports, Sun Microsystems, Inc., 1.4.1] 04-23 21: 21: 41.526: I / System. Out (27546): Debug SMTP: Use is still correct, use true here 04 -223 21: 21: 41.526: I / System. Out (27546): DEBUG SMTP: "smtp.gmail.com" to host, port 587, ISLL false 04-23 21: 21: 41.526: D / Android runtime (27546): VM is shutting down Logkat: 04-23 21: 25: 53.651: E / Android Random (28125): java.lang IllegalStateException: The method of operation could not be executed 04-23 21: 25: 53.651: E / Endrumi Druntime (28125): Reason by: java.lang.reflect.InvocationTargetException 04-23 21: 25: 53.651: E /...

c# - Cannot press the advanced button in wpf toolkit color picker -

I'm used to add a color picker in your application. I have a problem that I could see the simple mode color picker without any problem at runtime, but when I click on the Advanced button, then I always get an exception: File or assembly could not load 'WPFToolkit, PublicKeyToken = 31bf3856ad364e35' or a "WPFToolkit, PublicKeyToken = 31bf3856ad364e35" I checked in dependency and make sure that the assembly is in the correct folder. How can I see the first part, but I can not see the second part? Any idea is appreciated. tells error that you disappear WPF Toolkit, which is different than the Extended WPF Toolkit. In the download page of the Extended Toolkit, you are mentioned that you need to install WPF Toolkit. .NET Framework 4.0 or require 4.5 is a build for .NET 3.5, but it also requires WPFToolkit to install. WPF Toolkit can be found here:

Windows Phone 8 navigation -

I just started developing wp8 apps coming from Android. What is the equal UI control for the app drawer (Android), which can be changed from page to page fast? I'm looking for the control used to convert from one page to another page in OneNote Edit: I found out that the Windows Phone 8.1 offers freeads to look like an app drawer can be made. The equivalent of the Android app drawer is probably the Windows Phone app, but the window is not used for app navigation in the phone - / div> In the window phone, navigation is mainly done through its own interface, with heavy use of back button to go to the previous page. The main code you use in Windows Phone is Navigation Service I do not think OneNote uses standard UI components, so you probably have to make your own There are several solid resources in it that should help start here:

c++ - same printf gives different results -

This is my first post and hopefully it is not a repost, I have to compile the following C ++ program on Mac For G ++ used. #include & lt; Iostream & gt; int main () {double b = 1; Printf ("% x \ n", b); Printf ("% x \ n", b); Printf ("% x \ n", b); Printf ("% x \ n", b); Return 0; } Why does the program give me different results of the same code? Here's the output. 5ca5ebf8 100 200 300 This behavior is not shown in the VS on Windows. Thank you. This is a warning that you should meet with a decent compiler: Warning: the format specified Type 'unsigned' int 'but the argument is type' double ' So you get undefined behavior, anything can happen :)

html - hide or display field based on the checkbox value. if check box is selected display the label and field if not selected hide itin playframework -

I have a form where I want to show some fields based on the value of the checkbox. Below is the code in my view @checkbox (userModelForm ("isstudent"), '_label - & gt; & lt; font color = "gray" & gt; ; Student & lt; / font & gt; '_showConstraints - & gt; false) If this checkbox is selected I need to show the following input text if it does not hide @inputText (userModelForm ("Student ID"), '_label - & gt; font color = "gray" & gt; Student ID & lt; / font & gt; Class - & gt; "form-control", '_help - & gt;' Realtors, please enter your student ID, '' Terror -> UserModelForm.globalEr Ror) thanks I have a in a div I'll put @inputtext , which is hidden, Use Javascript to show / hide it. If you have many hidden divisions, then I will apply the style to a .css file (inline is not very good) & Gt; Students & lt; / f...

php - ZF2 Get ServiceManager from Controller Plugin Factory -

I am trying to create a new controller plugin using a factory for a dependency injection. public function createService (ServiceLocatorInterface $ serviceLocator) {$ services = $ serviceLocator- & gt; GetServiceLocator (); / ** @ War \ Zend \ MVC \ Controller \ PluginManager * / $ Plugin = New MyPlugin (); If ($ services- & gt; ('my_service') is) {$ plugin- & gt; Set service ($ services- & gt; receive ('my_service')); } $ Plugin returned; The problem is that $ services can not get 'my_service' I've added the appropriate configuration to my service manager 'Services' = & gt; Array ('invokables' = & gt; array ('my_service' = & gt; 'application \ service \ myswive')), 'admin_plugin' = & gt; Array ('factory' => array ('my_plugin' => 'application \ controller \ plugin \ factory \ myplugin')) I think that in this plugin manager It's a bug, it...

java - Is scribe service immutable? -

I'm just thinking that the service made with the service builder is irreversible and therefore once it is safe for the institute and many times Is it used to serve multiple authentication for user signup in your webpage? The author library is irreversible, see: / P> threadsof Hit hard as many threads and as many as you want.

c - Using two textures in OpenGL -

I am writing a program in which I have to use two different textures. I can read a file and use it as a texture, but by now I'm unable to get two textures to work. I have my code to set a texture which I have: FILE * fd; Int k, nm; Four c; Int i, i; Four b [256]; Float S; Int red, green, blue; FD = FOPAN ("AILAPPPM", "R"); Check the first line for // p3 fscanf (fd, "% [^ \ n]", b); if (b [0]! = 'P' || b [1]! = '3') {printf ("% s is not a PPM file \ n", b); System ("pause"); Exit (0); } // leave comments fscanf (fd, "% c% c", & amp; c, & c); While (C == '#') {fscanf (fd, "% [^ \ n]", b); FSACNF (FD, "% C% C", and C, and C); } // First put the first character of the non comment line ungetc (C, FD); // file file information fscanf (fd, "% d% d% d", & amp; o, & amp; m; & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; Nm = o * m; // Image o...

No Mapping Specified Error in Entity Framework 4 with Asp.net MVC3 -

I am working with ASP.NET MVC3 with Entity Framework 4, I updated my model and when I compile my solution, the show has succeeded in the status bar but error is showing the following error in the dock window No mapping specified for the following entity / association set - Categories, Users, Roles. The first page (a login panel) without any errors or warnings, but when I click on login after entering the credentials, I give the following exception: Command Definition An internal error occurred while doing an error while doing the error. I am not very familiar with the institution structure, so please help me solve this problem ..... To correct the error, follow the steps below: Click Update Model, delete the wrong table, then click on Update Model Add deleted tables, create your project and it will now work

PHP: Replace city name -

I want to match an array against the string and want to change the name of the city in a string with a dash (-) For example: $ str = 'French tuition in New Yorker' or $ str = 'French Tuition New York'; $ ArrCity = array ('Newyork', 'Washington'); I want to change the following strings below, $ str = 'French tuition - New York' and $ str = 'French tuition - New York '; Thus if the last word is a city then it should be added before the dash (-). Or if the last word is the city and the last word is "IN", then "IN" should be replaced by a dash (-). You can just do it with it. & lt ;? Php $ str = 'French Tuition in New Yorker'; $ Str2 = 'French Tuition New York'; $ ArrCity = array ('Newyork', 'Washington'); $ Temp = array (); $ Partition = explosion ("", $ str); $ Last word = $ partition [count ($ partition) -1]; $ FirstListworld = $ partition [count ($ p...

javascript - Issue in the jQuery code -

मैंने jQuery कोड का पालन किया है: $ ('। BtnAdd')। ('& lt; tr id = "row2" & gt; & lt; td & gt; & lt; इनपुट प्रकार = "टेक्स्ट" नाम = "पैक []" (कार्य () ($ (' # ब्लैकलिस्टग्रिड & gt; मान = "" वर्ग = "फॉर्म-कंट्रोल" आकार = "8" /> gt; & lt; / td & gt; & lt; td & gt; & lt; इनपुट प्रकार = "टेक्स्ट" नाम = "मात्रा []" मान = "" वर्ग = " फॉर्म-नियंत्रण "आकार =" 8 "/> gt; & lt; / td & gt; & lt; td & gt; & lt; इनपुट प्रकार =" टेक्स्ट "नाम =" मात्रा [] "मान =" "वर्ग =" फ़ॉर्म-नियंत्रण "आकार =" " 8 "/ & gt; & lt; / td & gt; & lt; td & gt; & lt; div वर्ग =" बीटीएन-समूह "& gt; चुनें नाम =" इकाइयों [] "वर्ग =" फॉर्म-नियंत्रण "& gt; विकल्प मान = "" {if $ all_volume_units.id == ...

ffmpeg - Encode video for ipod classic -

I have finished installing ffmpeg on debian wheezy using these instructions - now I I want to play on my video. The video contains the following information: $ mediainfo in.mp4 General full name: in.mp4 format: mpeg-4 format profile: base media / version 2 codec id: mp42 File size: 1.21 GiB Duration: 55 Mn 10 S Overall bit rate mode: Variable Bit Rate: 3 130 Kbps Encoded Date: UTC 2010-08-25 23:38:59 Tagged Date: UTC 2010-08-25 23:38 : 59 Video ID: 1 Format: AVC Format / Info: Advanced Video Codec Format Profile: High @ L3. 2 format settings, cabac: yes format settings, reframe: 2 frame codec id: avc1 codec ID / info: advanced video coding duration: 55 mn 10 s bit rate mode: convertible bit rate: 3 000 kbps maximum bit rate: 5 000 kbps Width: 1 280 pixels height: 720 pixels Display aspect ratio: 16: 9 frame rate mode: continuous frame rate: 29.970 fps standard: NTSC color space: YUV chroma Submooling: 4: 2: 0 bit depth: 8 bit scan Car: Progressive Bits / (Pixel * Frame): 0.10 9...

Video Game on C++ with MFC visual studio -

I do not know that this is all wrong, so I'm asking for instructions here. For example, back to college, when you learn C ++ and compile Turbo C ++ or GCC, you get a low-level programming language information. Now we say that I want to create the original 2D video game, just as a private project, nothing is fancy, and I want to develop it using C ++ . I will use it with Visual Studio because it is a very good IDE Is there a right to say "I am going to use MFC" for this kind of project? (Consider the fact that I am using OpenGL) MFC is a C ++ frame That is what encapsulates the key elements of the Windows API. This is intended to create an primarily standard, window-based application that user interacts on the desktop. It comes with a built-in graphics framework: the GDI that was introduced with Windows, is revolutionary for its time, because it separates hardware-specific details, Allows write that runs on any machine Windows ran but this was not partic...

java - Determining the element that occurred the most in O(n) time and O(1) space -

Let me start by saying that this is not a question of homework, I am trying to design a cash whose removal policy Depends on the most happening entries in the cache. In software terms, let's say we have an array with different elements and we want to find the element that is the most. For example: {1,2,2,5,7,3,2,3} 2 should be returned. Since I'm working with the hardware, the solution for the naive O (N ^ 2) will require a tremendous hardware overhead. The smart solution to use the hash table works well for the software because the hash can change the size of the table but in the hardware, I have a fixed size hash table, maybe this is not big, so the collision wrong decisions Will cause. My question is, in the software, can we solve the problem of O (n) time of complexity and o (1) space? a o (n) time, o (1) Space solution, not least for generic case As we resolve this, we get its solution (to determine whether all the elements in the list are different or not),...

asp.net - How to get client site control id without added runat="server" in vb -

How to obtain client site control ID behind vb.net code without run rate = "server". & lt; Div id = "flip" & gt; & Lt; / Div & gt; You can run div / html elements without running Can not access the = "server" on the server side, you can better make it runat = "server" and use ClientID for client side scripts. If you have a frame 4 or above, then you keep the client ID unchanged.

grep - selecting different values from two lines in shell -

मैं चल रहा हूं गूंज "dis clusqmgr (*) निलंबित" | runmqsc QMGR1 निम्न आउटपुट प्राप्त करने के लिए, लेकिन मैं इसे से कुछ निकालना चाहूंगा। मैंने egrep और कट का उपयोग करने का प्रयास किया है लेकिन वांछित परिणाम प्राप्त नहीं कर सकता मूल आउटपुट: 1: dis clusqmgr (*) निलंबित AMQ8441: प्रदर्शन क्लस्टर कतार प्रबंधक विवरण। सीयूएसयूएमएमजीआर (जीडब्ल्यूडी 1) चैनल (टी.जीडब्ल्यूडी 1। एसएसएल) क्लस्टर (सीयूएसडी) निलंबित (एनई) एएमक्यू 8441: क्लस्टर कंट्यूम विवरण विवरण विवरण सीयूएसयूएमएमजीआर (जीडब्ल्यूडी 2) चैनल (टी.जीडब्ल्यूडी 2। एसएसएल) क्लस्टर (सीयूएसडी) निलंबित (कोई) वांछित आउटपुट: सीयूएसयूएमएमजीआर (जीडब्ल्यूडी 1) निलंबित कमांड मैं इसे प्राप्त करने के लिए उपयोग कर रहा हूं: गूंज "dis clusqmgr (*) निलंबित" | runmqsc क्यूएमजीआर 1 | उदाहरण के लिए 'सीयूएलयूएमएमजीआर | निलंबित' | tr ')' '\ n' | Grep "CLUSQMGR (" | कट -f 2-डी ")" $ बिल्ली t.txt 1: dis clusqmgr (*) निलंबित AMQ8441: प्रदर्शन क्लस्टर कतार प्रबंधक ...

python - getting multiple parameters from url using flask -

Configure import from flask import flask, jsonify, request ## defined by model on the model of the app and the DB model Import db, app, PLAY_STORE @ app.route ('/ app-api', methods = ['GET']) def listapp (): If request.method == 'GET': store = request.args.get ( 'Store') category = request.args.get ('category') result = PLAY_STORE.query.filter_by (store = store, category = category). All () json_results = [] As a result of results: d = {'rank': result Rank, 'store': results. Store, 'category': results Category, 'Type': Results. Type 'title': result. Tetal} json_results.append (d) back jsonify (item = json_results) if __name__ == '__main__': app.run (debug = true) I left one at the top of mysql database I am trying to create an API which is using a flask. In the above program, I am trying to get the store and category from the URL. Even if I use request.args.get , store value is empty, that ...

powershell - Building an automated script to copy a page of text, translate it in Google Translator and paste it in Word -

So, as the title says, I would like to create an automated script which will take all the text from a PDF page, it Copy, paste it into Google Translate and then copy the translated text to another Microsoft Word document. Since there are so many pages in the PDF (150+), I thought it might be easy to do this, to do this, an automated script. Which language do I have to use, is it necessary for me to do this and in the end, will I actually save time by using this script (which means that I have to know it first For, but I have some programming experience (I know C ++, Javascript, PHP), but I do not have a strong understanding of algorithms (like Flood Phil, ...)) Thanks In advance! EDIT: I have found that I can use autight for scripting ... but I do not know if I would prefer to use AutoIt or PowerShell ... I also want to learn something Enable me to create other scripts (for example, to automate some process, do I do it in Cmatia Studios) ... then, automatic or powerhole? ...

matrix - How to convert from Eigen::Affine3f to Eigen::Matrix4f -

मेरे पास दो प्रश्न हैं क्या ईजीन :: एफ़िन 3 एफ और ईजीन :: मैट्रिक्स 4 एफ में कठोर परिवर्तन का प्रतिनिधित्व किया जाएगा? हम कैसे कर सकते हैं Eigen :: Affine3f से Eigen :: Matrix4f और इसके विपरीत के लिए परिवर्तित करें? आपकी मदद के लिए धन्यवाद! हां, आंतरिक रूप से एक Affine3f एक MatrixXf स्टोर करता है, ताकि आप कर सकते हैं: Eigen :: Affine3f A; ईजीन :: मैट्रिक्स 4 एफ एम; एम = एमैट्रीक्स (); ए = एम; // मान लें कि M.row (3) == [0 0 0]

free UML sequence diagram reverse engineering eclipse plugin working out of the box - does such a thing exist? -

ModelGoon (class and interaction diagram available only) I have tried a lot (though a lot Comprehensive no)), objectide (class diagram only), euml free version (an unlucky "license not found" error on first use), MoDisco (Browse the same model element with the only option on the menu) and some standalone tools - Ago UML and BOUML Don't provide or at least I was not able to find it. Jsonde I started after fixing an msvcr71.dll-error and then they were unable to connect to VM for unknown reasons ... Java call tracer only files There is a bunch of Jvm with no option to apply directly to Jvm and no executable ... I have also read the following posts on the subject: ,,, By working out of the box, I mean - the default installation is not broken and in this "sequence I have an option like "Generate Diagram" or similar result (Resultant would be great) sequence diagram. I am doubting that there is no such thing as a free UML sequence diagr...

php - Print new row after n divs -

I'm struggling to find a solution to this problem: & lt; Php $ counter = 1; While (has_sub_field ('company_members')): echo' & lt; Div class = "row" & gt; '; While ($ counter & lt; = 3): get_template_part ('team-member-box'); ++ counter; Endwhile; Echo & lt; / Div & gt; '; $ Counter = 1; Endwhile; ? & Gt; The code I need to do is print out 3 "Team-Member-Box" and then create a new line. So far all the boxes are composite in the same row. The code prints the same box for three times, instead, I want to take it 3 elements in the repeater field "company_members" and print the next 3 elements in a new line. Thank you in advance for your help. Not sure what it is that you try to do but here in the 3 line of data A common way to display a list is: $ counter = 0; Echo & lt; Div class = "row" & gt; '; While (has_sub_field ('company_members')) {echo ($ ...

eclipse - two equal array lists but java does not see equal -

इस सवाल का पहले से ही एक उत्तर है: 11 जवाब यहां मैं दो सरणी सूचियों को घोषित करता हूं अर्रेलिस्ट & lt; स्थान & gt; संभवमॉव्स = नया अर्रेलिस्ट & lt; स्थान & gt; (); PossibleMoves.add (नया स्थान (0, 1)); PossibleMoves.add (नया स्थान (1, 0)); ArrayList & LT; स्थान & gt; possibleMoves1 = नया अर्रेलिस्ट & lt; स्थान & gt; (); PossibleMoves1.add (नया स्थान (0, 1)); PossibleMoves1.add (नया स्थान (1, 0)); यह स्पष्ट है कि उन 2 सरणी सूचियाँ एक समान हैं, लेकिन जब मैं इसे चलाता हूं, तो यह हमेशा विफल रहता है। यदि (संभवमहोव == संभवमहोवा 1 ) {System.out.println ("lol"); } मैंने भी इसे करने की कोशिश की है और इसे विफल assertTrue ("प्लेयर 1 पहली टुकड़ा बाएं और नीचे तक चला सकता है!", सरणी सूचीएं (संभवमॉव्स , संभवमव 1)); यह सरणी सूची की पद्धति है निजी बूलियन सरणी सूचीएं (अर्रेइस्ट & लेफ्टिनेंट; स्थान & gt; एक, अर्रेइस्ट & lt; स्थान & gt; बी) {यदि (a.size )! = B.size ()) {वापसी झूठी; } int size = a.size ()...

javascript - Upload files with node.js -

itemprop = "text"> I have this code to upload files with Node.js: application. Use (express.bodyParser ()); // or, as the `req.files` is only provided by multipart middleware, you can add // if you are not worried about parsing non-multipartual uploads, like // like: app .use (express.multipart ()); App.get ('/', function (request, race) {fs.readFile ('uploadHTML.html', function (hey, data) {res.writeHead (200, {'content-type': 'text / html' , 'Content-length': data.length}); res.write (data); res.end ();});}); App.post ('/ upload', function (req, res) {console.log (req.files); fs.readFile (req.files.displayImage.path, function (mistake, data) {// ... var Newpath = __dirname; fs.writeFile (Newpath, data, function (mistake) {res.redirect ("back");});});}); Here is the HTML file: & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Upload an example & lt; / Title & gt; & ...

android - Listview inside popup window height is not changing -

I am using a listview within a popup window and the list view shows some dynamic content. Wish, depending on the material, but it should not exceed any particular height. Since I could not set the maximum height in that list view, I changed the height from the review of the adapter and the layout The list view height is changing when the list size is increasing. But the shape is not changing, while the size of the material is decreasing. if (co_get> 11) {layout parameters parameters = new layout paragraph (layout parama.MATHPARNR, 600); Parameters.Set margin (10, 10, 10, 10); parent.setLayoutParams (parameter); } And parameters (LayerPerms = New LayerPrime (Layouts Paramah.MATHARNRT, LayoutPrem. WRAP_CONTENT); Parameters.Set Margin (10, 10, 10, 10); parent.setLayoutParams (Parameter);} And this is the code that I used in getview. I have informed that when it If you are notified then levelparam is set and that problem is resolved.

symfony - Sonata Admin - Boolean editable not working after update -

The Sonula admin bundle for Boolean edition Dev-Master from the list is no longer working. I can not click on the field Here is my admin class Protected functions configured LstField (ListMapper $ listMapper) {$ listMapper - & gt; Add ('Highlight', 'Boolean', ["Editable" => True]); } Here's my musician. "Sonata-project / core-bundle": "dev-master", "sonata-project / block-bundle": "god-master", "sonata-project / exporter" "Sonata-Project / Cache-Bundle": "God-Master", "Sonata-Project / India-Bundle": "Sonata-project / jquery-bundle": "God-Master", "Sonata-Project / Cash-Bundle": " God-Master "," Sonata-Project / Admin-bundle ":" Dev-Master "," Sonata-Project / Principle- orm-admin-bundle ":" Dev-master " My question is: Is this a bundle version problem? Is not the version now...

c# - PropertyChanged events need to fire once per click -

I am sitting in a scenario where I believe my system is starting to start scaling issues and I believe that this is caused by not doing anything "right way" Basically I have a silverlight project and in this particular domain there are many dependencies in my model int_Wight; Public gut weight ({return _Wight;} set {if (value! = _Wight) {_Weight = value; RaisePropertyChanged ("weight"); then} After that model, My app also pastes an additional event on the converted event in the property myObject.PropertyChanged + = UpdateUI; My update does a bunch of updated UI graphic content It produces images that bindings are used. And it works well. But now suppose that my weight Property also has an effect on other properties, they also close the changing events of their properties (as they should, so all UI areas to be bound to those qualities will be updated), but then update the Ui all the time It means that if a property also affects 3 other propertie...

jinja2 - How to write dynamic variable in Ansible playbook -

अतिरिक्त वार्स पैरामीटर के आधार पर मुझे ansible playbook ansible-playbook playbook.yml -e "param1 = value1 param2 = value2 param3 = value3" यदि केवल param1 param1, param2 पारित यदि param1, param2, param3 पारित किया जाता है तो वैरिएबल वैल्यू होगा myvariable: 'param1, param2' Myvariable: 'param1, param2, param3' जब मैं टेम्पलेट के माध्यम से गतिशील रूप से चर बनाने की कोशिश करता हूं तो मेरी प्लेबुक हमेशा पिछले वैरिएबल वैल्यू लेती है। लेकिन अंदर dest = roles / myrole / vars / main.yml इसके लेखन सही मूल्य। मैं यहाँ एक कोशिश करता हूं - मेजबान: स्थानीय उपयोगकर्ता: रोप इकट्ठा करें: कनेक्शन: स्थानीय कनेक्शन: - टेम्पलेट: src = भूमिकाएं / मैरोल / टेम्पलेट / माइवर .j2 dest = roles / myrole / vars / main.yml - debug: var = myvariable भूमिकाएं: - {role: myrole} तो अंदर myrole निर्देशिका I टेम्पलेट और वार्स - भूमिकाएं - मैरियोल - वार्स / मुख्य.इंम - टेम्पलेट / myvar.j2 बना दिया है टेम्पलेट / myvar.j2 {% यदि परम 1 ...

android - Size of a TextView within a widget -

I want to squeeze as much text as possible into a textView of a widget, so I want to hyphenate that text content The easiest way to retrieve the textView size, I think, will display the entire widget with the size of the display. Then I'll increase textual text content and when the number of lines changes, I know where to place the hyphen ('-'). It works to measure off-screen, but it seems that I am setting some dimensions incorrectly because the off-screen method shows new rows , I.e. the actual widget looks more extensive than the reproduction of the off-screen. What am I doing wrong? Or is there another way of getting what I want? Here are some code: 1) Off-screen text measurement string optimization text (string text) {display display = ((window Manager) getSystemService (reference .windows_SERVICE)) .getDefaultDisplay (); // I know these methods have been deprecated, but the results are the same / when I'm using the new method: display.getSize (point...

c# - while updating grid view not updating all table -

After I am working on windows from application..i am filling my data grid view like this: SqlCommandBuilder = new SqlCommandBuilder (adapters) as as an adapter = new SqlDataAdapter ( "c.cid, c.CompanyName, l.LocName location, department called Deeditiaidi, Dkdtn, Deeditifon phone As d.dtEmail Email, join the CompanyMaster_tbl from l.Locid c DepartmentMaster_tbl d c.Cid = d.cId to join the location_tbl L at l.Locid = c.locid where d.Deleted = 0 and c. Deleted = 0 Order Cia D. ", con.connect) dt1 = new Detatabl bSource = new binding Associate Adaptrkfil (DT-1) dB Bisoarskdetasors = DT 1 Jivikdetasors = Bisoars GV. Fill DT with information from the column ("CID"). Visual = False gv.Columns ("dtId") Viewable = false gv.Columns ("Locid") Viewable = false update button I have code like this: .. adapter = new Skyueldataadaptr () Dijib CID integer integer as dim Ditiaidi as string dim Ditianan as dim cmpname String em dtphone string slow dtEm...

r - Match number within list of different length vectors -

I want to match a number within the vector list of different lengths. Nevertheless, my solution (nothing below) does not match anything beyond the first item of each vector. seq_ & lt; - seq (1:10) list_ & lt; - List [seq_ [1: 3]], Seq_ [4: 7], seq_ [8:10]) List_ # [[1]] # [1] 1 2 3 # # [[2]] # [1] 4 5 6 7 # # [[3]] # [1] 8 9 10 but for (i seq_) {print (match) (I, list_)) # [1] 1 # [1] NA # [1] NA # [1] 3 # [1] N # [1] NA # [1] N # [1] NA # [1] NA # [1] NA which edit: rewrite to show full looping on values. seq_ & lt; - seq (1:10) list_ & lt; - List (seq_ [1: 3], seq_ [4: 7], seq_ [8:10]) matchlist & lt; -list (length = length (list_)) in (j in 1: length (list_)) {matchlist [[j]] & lt; - List (sapply (seq_, function (k) which (list _ [[[j]] == k)} He will return the position of all matches if you select my.list & lt; - list (sample (1: 10, 4, replace = TRUE), create an input such as sample (1: 10,7, replacement = TRUE), then this i...

html - fixed navigation with image repeat-x -

Image
I am struggling to fix my navigation bar and at the same time repeat "repeat-x" should be. Below is an image of the result while using CSS. Here's the CSS code (navigation bar) included in the TopLink. .toplinks {/ * float: right; * / {Vb: stylevar right}: {vb: math {vb: stylevar padding} * 2}; Color: {vb: StyleWire toplinks_link_color}; Font: {vb: stylevar header_font}; Align text: {vb: stylevar right}; Background: {vb: StyleWire toplinks_background}; Padding-top: 10px; Height: 35px; Background-attachment: scroll; Background-image: url ({vb: stylewire_exe_miss} /top-links-bg.jpg); Double-repeat: repeat-x; Background-position: left top; Background color: # 633f24; Z-index: 20; Status: fixed; } The navigation bar was not created by me, but I added "status" and "z-index". I want to go to the page with the repetitive x Is it possible, if you can help me? Try setting the element containing the position: relative; Then set the left: 0;...

Orthographic projection of 3D shape libgdx -

मैं इस सरल ट्यूटोरियल को कार्यान्वित कर रहा हूं blog.xoppa.com/basic-3d-using-libgdx-2/ परन्तु परिप्रेक्ष्य कैमरे को एक यातायात के साथ स्थानांतरित करने की कोशिश कर रहा है। हालांकि, मुझे समझने में कुछ समस्या है कि कैमरे की स्थिति कैसे काम करती है: मैंने जोड़ा कैम 2 = नया ऑर्थोग्राफिक कैमेरा (जीडीएक्स। ग्राफिक्स .getWidth (), जीडीएक्सजीआरफ़िक्स.गेटहाइट ()); Cam2.setToOrtho (सच, Gdx.graphics.getWidth (), Gdx.graphics.getHeight ()); cam2.position.set (0,0,10); Cam2.lookAt (0, 0, 0); Cam2.update () और मुझे एक बहुत छोटा वर्ग मिलता है। अगर मैं स्थिति बदलता हूं। cam2.position.set (0,0,100); मुझे कुछ भी नहीं दिखाई दे रहा है, और मुझे आश्चर्य है कि ऑर्थोग्राफिक कैमरे को जेड की अनदेखी क्यों नहीं की जानी चाहिए। मूलतः मुझे क्या चाहिए एक 3D आकार बनाने और इसे उसी पर प्रदर्शित करना है दो अलग-अलग दृश्यों में समय, एक परिप्रेक्ष्य का उपयोग करने वाला एक आया और दूसरा एक ऑर्थोग्राफिक कैमरा का उपयोग कर रहा था। धन्यवाद! यह पूर्ण कोड है सार्वजनिक वर्ग MyGdxGame लागू ApplicationListe...

javascript - Resolve in router is not updating scope in time -

Hello there I have issue of tampering with scope variables (With resolution in router) before angular visual content renderer I am using AngularJS 1.2.16 I have where DIV is displayed on the basis of Scope Variable. & lt; div ng-hide = "data.show" & gt; & Lt; / Div & gt; Text to show; I have a controller with scope variable $ scope.arived and seeing this variable, so when it will change, the function toggleText ( ) $ scope.data.show will be set correctly / incorrect in the clock timer. app.controller ('view1Controller', function ($ radius, arived) {$ Scope.arived = arived; // About this next paragraph $ Talking $ $ diameter . $ Watch ('arived', toggleText); Function toggle text (newVal, oldVal) {$ scope.data.show =! $ Scope to see base content;}}); This problem is usually working as a quote, when I use data injection from the router trough solution method. Let's say I have this router: $ routerprovider When ...