Posts

Showing posts from April, 2013

Is there a way to change the display name in email sent via Google Apps Script? -

I am testing an email sent from Google Apps Script and sending it with the display name of the email address. @). This is a business address: info@example.com and all that is showing is "information". I would like to like it: "Bob Example.com" Is there any way to do this in the app script? I have installed it for emails sent manually. Thanks in advance I did not get help from a Google search Try with options (advanced parameters), using the name More details are here

Import a function in haskell -

I have written a function in which I say which number is weird and then in another function, I want to say this What is strange from the given list is my question: How can I include a data file for the first function, e.g. In other data files, odd.hs, e.g. oddNbrs.hs. To use the first function in the second function? For example, "include" me in C as you know there is nothing like "included" in the shell, too? Or? EDIT: Both files are in the same directory. Is it enough, when I write the first function of the name in another function, or should I do a different job? I think the keyword you are searching for is module File: Odd.hs module where OD is :: int -> Bool isOdd x = x`Rim`2 == file: Even HS module where Also the import is weird isEven :: int - & gt; Bool isEven = isOdd file: numbers hs module numbers where import weird import even nigens :: [Int edit more beautiful in a module File: Predicates.hs Mod...

c# - How can I intersect two different .NET lists by a single property? -

I am trying to filter my first list of FU based on some values тАЛтАЛin a second list of ba. For example. Here is ... var foos = new list & lt; Foo & gt; New fu {name = "lea"}, new fu {name = "han solo"}, new fu {name = "chewacka"}, new fu {name = "luke"},}; var bass = new list & lt; Left & gt; New Ba (Elias = "AAAA"), New Ba (Elias = "BBBB"), New Ba (Elias = "Laya"), New Ba (Elias = "Luke"}}; // Expected Output: // List & See how I'm asking for: another list Alias тАЛтАЛ Filter by first list ( name ) by property. And will it return to a list of foo in 2 results? any clue? You can add baas to the list of any : foos. where (f => baas.Any (b = & gt; B. alias == f.Name)); or join (use cleaner in the query syntax): var from query = f to join foos b f. Choose an alias A complete working .net Bella.

android - How set Orientation Hint of file Image? -

Image
This image is captured by standard camera and opened by the gallery of Android This image capture by my app camera and opens by the gallery of Android How to set the orientation of image image (it displays the same standard camera Can) I try with the camera's saturation, but it does not work: Camera. Parameter parameter = mCamera.getParameters (); Parameters.setRotation (rotation); mCamera.setParameters (parameter); If I use recorded video: MediaRecorder.setOrientationHint (rotation); But the image I do not know can you help me? You need to implement your own photo capture activity to get the desired orientation for each Capture image on every device. I have implemented a capture activity, so you can take photos and set the orientation of photos. You can see my answer about the rotation of images on this topic: Implementation: Save the picture function for the answer given above : Save Photo Function: Public Zero Saved Photos (Bitmap BMP) {im...

php - fopen creates the file but fwrite doesn't write any data and returns 0 -

Below is the part of the OpenX server code (SmartP plugin) when called a phopan, the file is created successfully, but the fileta file Does not write any data and returns 0 (and not incorrectly). The folder has the following permissions: drwxrwxrwx none has been created with the following permissions: -R-R-R-A - None Here's the code. function smarty_core_write_file ($ params, & $ smarty) {$ _dirname = Dynamic ($ params ['filename']); If ($ params ['create_dirs']) {$ _params = array ('dir' = & gt; $ _dirname); need_once (SMARTY_CORE_DIR. 'core.create_dir_structure.php'); smarty_core_create_dir_structure ($ $ params, $ smarty); } // to write the tmp file, then rename it to avoid the locking of the file $ _tmp_file = tempnam ($ _ dirname, 'wrt'); If (($ fd = fopen ($ _tmp_file, 'wb'))) {$ _tmp_file = $ _dirname} DIRECTORY_SEPARATOR uniqid ('wrt'); If (($ fd = fopen ($ _tmp_file, 'wb'))) $ $ smarty-...

php - Get specific key values as an array from array of object -

рдпрд╣ рдореЗрд░рд╛ рдХреЛрдб рд╣реИ: $ a = рд╕рд░рдгреА (array ("a" = 1, "b" = & gt; 2), рд╕рд░рдгреА ("x" = & gt; 2, "a" = & gt; 2), рд╕рд░рдгреА ("d" = & gt; 100, "a" = & gt; 3, "рдмреА" = & gt; 2, "c" = & gt; 3)); $ MyArray = array (); рд╡рд┐рджреЗрд╢реА рдореБрджреНрд░рд╛ ($ $ рдХреЗ рд░реВрдк рдореЗрдВ $ arr) {$ myArray [] = $ arr ['рдП']; } Print_r ($ myArray); рдЕрд░рд╛ ([0] = & gt; 1 [1] = & gt; 2 [2] = & gt; 3) рдЗрд╕рд▓рд┐рдП, рдореБрдЭреЗ / code> рдХреНрдпрд╛ рд▓реВрдк рдХреЗ рд▓рд┐рдП рдмрд┐рдирд╛ рдРрд╕рд╛ рдХрд░рдиреЗ рдХрд╛ рдХреЛрдИ рдЕрдиреНрдп рддрд░реАрдХрд╛ рд╣реИ? рдЬреИрд╕реЗ рд╣реА рдПрдХ рд╣реА рдкреНрд░рддрд┐рдХреНрд░рд┐рдпрд╛ рдкрд╛рдиреЗ рдХреЗ рд▓рд┐рдП рдПрдХ рджреЛ PHP рд╕рд░рдгреА рдлрд╝рдВрдХреНрд╢рдВрд╕ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рд╣реИред рдЙрдкрд░реЛрдХреНрдд рд╕рд╣реА рд╣реИ рд▓реЗрдХрд┐рди рдлрд┐рд░ рднреА рдЕрдЧрд░ рдРрд╕рд╛ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХреЛрдИ рдЕрдиреНрдп рдмреЗрд╣рддрд░ рддрд░реАрдХрд╛ рд╣реИ рдЬреЛ рд╕рд░рд╛рд╣рдиреАрдп рд╣реЛрдЧрд╛! рдХреНрдпреЛрдВрдХрд┐ рдореЗрд░реЗ рдХреЛрдб рдореЗрдВ рдПрдХ рд╣реА рд╕рд░рдгреА $ a рдХреЛ рдХрдИ рдмрд╛рд░ рдкреБрдирд░рд╛рд╡реГрддрд┐ рдХрд░рдирд╛ рдЖрд╡рд╢реНрдпрдХ рд╣реИ рдЕрдЧрд░ рдореЗрд░реЗ рдкрд╛рд╕ рдРрд╕рд╛ рдХрд░рдиреЗ рдХрд╛ рдХреЛрдИ рдмреЗрд╣рддрд░ рддрд░реАрдХрд╛ рд╣реИ рддреЛ рдореИрдВ рдПрдХ рдФрд░ рдкреБрдирд░рд╛рд╡реГрддреНрддрд┐ рдХреЛ рдХрдо рдХрд░ рд╕рдХрддрд╛ рд╣реВрдВ (PHP рдЕрднреА рднреА рдЕрдВрддрд░реНрдирд┐рд╣рд┐рдд рдПрдлрдПрдирдПрд╕ рдореЗрдВ рдЖрдИрдЯреЗрд╢рди рдХрд░рддрд╛ рд╣реИ, рдореИрдВ рдЗрд╕реЗ рдкрд░реЗрд╢рд╛рди рдирд╣реАрдВ рдХрд░рддрд╛)ред рд╣рд╛рдБ (рдЪреВрдВрдХрд┐ рдЖрдк PHP 5.4 рдкрд░ рд╣реИрдВ, рдпрд╣ рдХреЛрдИ рд╡...

IntelliJ IDEA and Maven: creating a test resource in the same package -

I am using IntelliJ IDEA and my project has a default maven structure. I often need to create a new class or resource in the same package, but in different folders ( src / main / java , src / One of the main / resources , src / test / java , src / test / directory ). A case where I am editing a class in src / main / java and I need to create a test in src / test / java create test What about other scenarios? Often I write myself a unit test and I want to make a test resource in the test resource folder in the same package. Is there a quick way to get it? For my best knowledge (through 10 years of use) Any way to do this Has not been made. It was some recently desired to create the default spring test reference file. Your post has promoted me to open a spring text reference automatically, I request you to give a comment on that request, or open a separate feature request.

html - Is there any known problems with using box-sizing? -

рд╕рдорд╕реНрдпрд╛ рдореИрдВрдиреЗ рдЕрдкрдиреЗ рд╕реАрдПрд╕рдПрд╕ рдХреЛ рд╕реЗрдЯ рдХрд┐рдпрд╛ рд╣реИ; *, *: рдкрд╣рд▓реЗ, *: рдХреЗ рдмрд╛рдж {-рдореЛрдЬ-рдмреЙрдХреНрд╕-рдЖрдХрд╛рд░: рд╕реАрдорд╛-рдмреЙрдХреНрд╕; -рд╡реЗрдмрдХрд┐рдЯ-рдмреЙрдХреНрд╕-рдЖрдХрд╛рд░: рд╕реАрдорд╛-рдмреЙрдХреНрд╕; рдмреЙрдХреНрд╕-рдЖрдХрд╛рд░: рд╕реАрдорд╛-рдмреЙрдХреНрд╕; рдорд╛рд░реНрдЬрд┐рди: 0; рдкреИрдбрд┐рдВрдЧ: 0} рдРрд╕рд╛ рдХрд░рдиреЗ рд╕реЗ рдореБрдЭреЗ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдмреНрд░рд╛рдЙрдЬрд╝рд░реЛрдВ рдореЗрдВ рдПрдХ рдбрд┐рд╡рд╛ рдХреА рдКрдБрдЪрд╛рдИ рдХреЗ рд╕рд╛рде рдЕрд╕рдВрдЧрддрддрд╛ рд╣реИ, рдЬреЛ рдПрдХ рдирд┐рд╢реНрдЪрд┐рдд рдКрдВрдЪрд╛рдИ рд╣реИред рдкреНрд░рд╢реНрди рдХрд╛ рдбрд┐рд╡реАрдЬрд╝ рд╕реАрдПрд╕рдПрд╕ .content.one / * рдкреВрдЫрддрд╛рдЫ рдлрд╛рд░реНрдо * / {рд╕реНрдерд┐рддрд┐: рдирд┐рд░рдкреЗрдХреНрд╖; рдмрд╛рдИрдВрдУрд░ рддреИрд░рдирд╛; рдХреБрдЫ рднреА рдбрд┐рд╕реНрдкреНрд▓реЗ рдордд рдХрд░реЛ; рд╢реАрд░реНрд╖: 50 рдкреАрдПрдХреНрд╕; рдКрдВрдЪрд╛рдИ: 615 рдкреАрдПрдХреНрд╕; рдмрд╛рдПрдВ: -255 рдкреАрдПрдХреНрд╕; рдЪреМрдбрд╝рд╛рдИ: 960px; z- рдЗрдВрдбреЗрдХреНрд╕: 5; рдкреИрдбрд┐рдВрдЧ-рдмрд╛рдПрдВ: 50px; рдкреИрдбрд┐рдВрдЧ-рджрд╛рдПрдВ: 50px; рдкреИрдбрд┐рдВрдЧ-рдЯреЙрдк: 5 рдкреАрдПрдХреНрд╕; рдкреИрдбрд┐рдВрдЧ-рдиреАрдЪреЗ: 10 рдкреАрдПрдХреНрд╕; рдкреГрд╖реНрдарднреВрдорд┐ рд░рдВрдЧ: # 000000; } рдЖрдкрдХреЛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдЧреИрд░-рд╕реНрдЯреИрдиреНрдбрд░реНрдЯ рдЧреБрдгреЛрдВ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рд╣реЛрдЧрд╛ (рдЙрджрд╛рд╕реАрди рд▓реЗрдХрд┐рди рдХреЛрдб рдмрди рдЬрд╛рдПрдЧрд╛) рдЕрдорд╛рдиреНрдп, рдЙрдирдореЗрдВ рд╕реЗ: () -рдореЛрдЭ-рдмреЙрдХреНрд╕-рдЖрдХрд╛рд░: рд╕реАрдорд╛-рдмреЙрдХреНрд╕; / * рдлрд╝рд╛рдпрд░рдлрд╝реЙрдХреНрд╕ * / -рд╡рд┐рдмрд┐рдЯ-рдмреЙрдХреНрд╕-рдЖрдХрд╛рд░: рд╕реАрдорд╛-рдмреЙрдХреНрд╕; / * рд╕рдлрд╝рд╛рд░реА, рдХреНрд░реЛрдо * / рддреЛ рдкреВрд░реА рд╢реИрд▓реА рд╣реЛрдЧреА: div {width: 300px; рдкреГрд╖реНрдарднреВрдорд┐: #ccc; padding: 20px; -moz-box-sizing : рд╕реАрдорд╛-рдмреЙрдХреНрд╕; / * рдлрд╝рд╛рдпрд░рдлрд╝реЙрдХреНрд╕ * / -рд╡реЗрдмрдХрд┐рдЯ-рдмреЙрдХреНрд╕-рдЖрдХрд╛рд░: рд╕реАрдорд╛-рдмреЙрдХреНрд╕; / * рд╕рдлрд╝рд╛рд░реА, рдХреН...

jQuery UI Datepicker on ASP.NET Web Form -

ASP.NET рд╡реЗрдм рдлрд╝реЙрд░реНрдо рдореЗрдВ рдХрд╛рдо рдХрд░рддреЗ рд╕рдордп рдЖрдк рдХреИрд╕реЗ jQuery UI Datepicker validation рдХреЛ рд▓рд╛рдЧреВ рдХрд░рддреЗ рд╣реИрдВ? рдЗрд╕ рдорд╛рдиреНрдпрддрд╛ рдХреЗ рд▓рд┐рдП рдЖрдзрд╛рд░ рдЗрд╕ рд╕рд╛рдЗрдЯ рд╕реЗ рд╣реИ: рдореЗрд░реЗ рдкрд╛рд╕ рд╕рдорд╕реНрдпрд╛ рдирд┐рдпрдо рдХреЗ рд╕рд╛рде рд╣реИред рдЙрджрд╛рд╣рд░рдг: $ ('# validateform')ред рдорд╛рдиреНрдп рдХрд░реЗрдВ ({рддреНрд░реБрдЯрд┐ рдкреНрд▓реЗрд╕рдореЗрдВрдЯ: $ .рдбреЗрдЯреАрдкрд┐рдХрд╛рд░ред рдЕрдВрддрд░рд┐рдХреНрд╖ рдкреНрд▓реЗрд╕рдореЗрдВрдЯ, рдирд┐рдпрдо: {txtDatepicker: {рдЖрд╡рд╢реНрдпрдХ: рд╕рддреНрдп, рдбреАрдкреАрдбреАрдЯ: рд╕рдЪ},}, рд╕рдВрджреЗрд╢: {TxtDatepicker: 'рдХреГрдкрдпрд╛ рдПрдХ рд╡реИрдз рджрд┐рдирд╛рдВрдХ рджрд░реНрдЬ рдХрд░реЗрдВ (yyyy-mm-dd)',}}); "txtDatepicker" рдПрдПрд╕рдкреА: рдкрд╛рда рдмреЙрдХреНрд╕ рдЖрдИрдбреА рд╣реИ рдЬреЛ рдкреГрд╖реНрда рдХреЛ рд░реЗрдВрдбрд░ рдХрд░рдиреЗ рдкрд░ рдмрджрд▓рддрд╛ рд╣реИред рдореИрдВ рдЙрдкрд░реНрдпреБрдХреНрдд рдирд┐рдпрдо рд╡рд╛рдХреНрдпрд╡рд┐рдиреНрдпрд╛рд╕ рдореЗрдВ рдпрд╣ рдХреИрд╕реЗ рдирд┐рд░реНрджрд┐рд╖реНрдЯ рдХрд░реВрдВ? рдореИрдВрдиреЗ рдкреНрд░реЙрдкрд░реНрдЯреА рдирд╛рдо = "txtDatepicker" рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХреА рд▓реЗрдХрд┐рди рдпрд╣ рдХрд╛рдо рдирд╣реАрдВ рдХрд░рддрд╛ред рдФрд░ рд▓реЗрдлреНрдЯрд┐рдиреЗрдВрдЯ ; рдПрдПрд╕рдкреА: рдЯреЗрдХреНрд╕реНрдЯ рдмреЙрдХреНрд╕ рд░рдиреИрдЯ = "рд╕рд░реНрд╡рд░" рдЖрдИрдбреА = "рдЯреЗрдХреНрд╕рдЯреАрдбреЗрдЯ рдкрд┐рдХреНрдЪрд░" рдХреНрд▓рд╛рдЗрдВрдЯрдЖрдИрдбреЛрдб = "рд╕реНрдЯреЗрдЯрд┐рдХ" / & gt; рдмрд╕ рдХреНрд▓рд╛рдЗрдВрдЯрдЖрдИрдбреА рдореЛрдб рдХреЛ рдмрджрд▓ рджреЗрдВ, рдлрд┐рд░ рдХреНрд▓рд╛рдЗрдВрдЯ рдкрд░ рдЖрдИрдбреА рд╣рдореЗрд╢рд╛ txtDatepicker рд╣реЛрдЧрд╛ред

asp.net mvc - Trying to configure SMTP correctly in Web.config for Azure Website. Cannot get to work -

I am struggling to work on my SMTP email in Ezur websites. This works on my local setup : & lt; Mail settings and gt; & Lt; smtp delivery method = "network" & gt; & Lt; Network Host = "relay.myIsp.net" userName = "" password = "" port = "25" /> & Lt; / Smtp & gt; & Lt; / MailSettings & gt; I have changed the name of my ISP to "IISP", besides this it is the same. I've read some posts about insecure Azure.config, but I could not find it. I'm using ActionMailer.net, which looks good as my email message maker. Follows through the application, no error, I do not get any email yet. Thanks in advance. Edit: SendGrid Web.config Setup, therefore, no problems on port 25 or 587 Azure websites: & lt; System.net & gt; & Lt; MailSettings & gt; & Lt; Smtp = "test@domain.com" & gt; & Lt; Network host = "server" password = ...

c - Compiling the uIP library in Arduino IDE -

I am trying to compile a very simple Arduino program that connects to a server and it "fixes" \ N ". The program makes extensive use of the UIP library (in fact, it is a library based on the UIP, but it seems almost identical). Here's my sketch: #include & lt; uip.h & gt; Zero setup () {connect_example2 (); } Zero loop () {uip_send ("OK \ n", 3); } Zero connect_example2 (zero) {uip_ipaddr_t ipaddr; UIPPepader (& ipaddr, 192,168,1,100); uip_connect (& ipaddr, HTONS (8080)); } However, when I compile, I get the following error: test.cpp.o: `connect_example2 () 'in the function: C : \ Program Files (x86) \ Arduino / test.ino: 14: `Undefined reference 'for test_pict.o: function' loop 'for UIP_connect (unsigned integer (*) [2], unsigned int): C : \ Program Files (x86) \ Arduino / test.ino: 8: Undefined Reference '' for `UIP_SEND (Zero Cost *, Int) ', Arduino IDE Library Is properly connected to What can...

c++ - Copy constructor invokes infinite loop although having call by reference -

рдкрд╛рд╢ рдХреЛ рд▓рд╛рдЧреВ рдХрд░рдиреЗ рд╡рд╛рд▓рд╛ рдХреЛрдб: рдлреВ temp = Foo (token.substr (0 ,рдореИрдВ)); рдпрд╣- & gt; рдмрд╛рдПрдВExpression = temp; рд╣реЛрдиреЗ рдХреЗ рдирд╛рддреЗ рдлрд╝реВ рдШреЛрд╖рд┐рдд рдХрд┐рдпрд╛ рдЧрдпрд╛: рд╡рд░реНрдЧ рдлрд╝реВ {рдирд┐рдЬреА: std :: string expr; std :: vector & lt; рдмрд╛рд░ * & gt; рдЯреЛрдХрди; std :: vector & lt; std :: string & gt; stringtoken; рдФрд░ рд╕реАрд╕реАрдЯреАрдПрдЖрд░ рдиреЗ рд▓реВрдк рд▓рд╛рдЧреВ рдХрд┐рдпрд╛ рд╣реИ: рдлреВ :: рдлрд╝реВ (рдХреЙрдиреНрд╕реНрдЯ рдлреВ рдПрдВрдб рдП_ рдПрдХреНрд╕рдкреНрд░ред) {This- & gt; expr = a_expr.expr; рдпрд╣-> рдЯреЛрдХрди = a_expr.tokens; рдпрд╣- & gt; рд╕реНрдЯреНрд░рд┐рдВрдЧ рдЯрд╛ рдЯреЛрдХрди = a_expr.stringtoken; } рдХреНрдпрд╛ рдЗрд╕ рд▓реВрдк рдХреЛ рд▓рд╛рдЧреВ рдХрд┐рдпрд╛ рдЬрд╛ рд░рд╣рд╛ рд╣реИ? рд╕рдВрдкрд╛рджрд┐рдд рдХрд░реЗрдВ: рдЕрд╕рд╛рдЗрдирдореЗрдВрдЯ рдСрдкрд░реЗрдЯрд░: рдлрд╝реВ & amp; рдлреВ :: рдСрдкрд░реЗрдЯрд░ = (рдХреЙрдиреНрд╕реНрдЯ рдлреВ рдПрдВрдб рдП_рдПрдХреНрд╕рдкреНрд░ред) {рдлреВ рдЯреЗрдВрдк (рдП_ рдПрдХреНрд╕рдкреНрд░); std :: swap (* рдпрд╣, рдЕрд╕реНрдерд╛рдпреА); рд╡рд╛рдкрд╕реА (* рдпрд╣); } рд╕рдорд╕реНрдпрд╛ рдпрд╣рд╛рдВ рд╣реИ: std :: рд╕реНрд╡реИрдк (* рдпрд╣, рдЕрд╕реНрдерд╛рдпреА); std :: swap рдХрд╛ рдбрд┐рдлрд╝реЙрд▓реНрдЯ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдЕрд╕рд╛рдЗрдирдореЗрдВрдЯ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИ, рдЗрд╕рд▓рд┐рдП рдЕрдирдВрдд рд░рд░рдХреЙрдиреНрд╢рди рдХреЛ рдЕрдкрдиреЗ рдЕрд╕рд╛рдЗрдирдореЗрдВрдЯ рдСрдкрд░реЗрдЯрд░ рд╕реЗ рдмреБрд▓рд╛рддреЗ рд╕рдордпред рдпрджрд┐ рдЖрдк рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рдЕрдкрдирд╛ рд╕реНрд╡рдпрдВ рдХрд╛ рдЕрд╕рд╛рдЗрдирдореЗрдВрдЯ рдСрдкрд░реЗрдЯрд░ рд▓рд┐рдЦрдирд╛ рд╣реИ, рдлрд┐рд░ рдЕрдкрдирд╛ рдЦреБрдж рдХрд╛ рд╕реНрд╡реИрдк рд▓рд┐рдЦреЗрдВ, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП: void Fo...

ios - Creating a 300 dpi PDF context -

I am trying to create a multipage PDF document that is intended to be printed with an OSX app. The hard part is searching for a decent tutorial to understand the whole process This is a point. Every time a PDF reference is created, I see this line UIGraphicsBeginPDFPageWithInfo (CGRectMake (0, 0, 612, 792), zero); If I correctly understood, a PostScript point is 1/7 inches then 612 x 792 points = 8.5 x 11 inches = 215.9 mm x 279.4 = US letter letter size. But I see a problem here, this page will be printed on 72 dpi, right? Very low resolution How can I create something like 300 dpi ?, just increase the number of proportional points, or in that case create a context of 2550x3300 points? Is this the right way to do this? Another issue is: I am making a reference to the whole page, how do I know if I can really print? All fields printable in a PDF document Page 72 is not printed on dpi, is that only? coordinate system. PDF files (usually) are vector-based, a...

javascript - Drawing 3 lines html5 (alpha, beta, gamma via deviceorientation) -

Image
I would like to draw 3 rows through HTML5 using toolwd (alpha, beta, gamma data) & lt; Html & gt; & Lt; Canvas ID = "Mykennas" & gt; & Lt; / Canvas & gt; & Lt; Script & gt; window.addEventListener ('deviceorientation', function (e) {draw (imama, eb eta, a.lfa);}, false); Function Draw (G, B, A) {var gamma = Math.round (g); Var Beta = Math Plains (B); Var alpha = Math field (A); var canvas = document. getElementById ('mechanism'); Var cx = canvas.getContext ('2d'); // How can I draw these 3 lines? } & Lt; / Script & gt; & Lt; / Html & gt; Here is an example of three vectors: Display: [] I think I need your needs. Here are some suggestions: Three. Use Js, and drag the axis here is one. Attach your three.js control with DeviceOrientation. three. JS already provides three types of control. The device is an integration control here. Position your location in three places. Apparent...

c++ - Template Class Dependency Issue -

рдореЗрд░реЗ рдкрд╛рд╕ рджреЛ рд╡рд░реНрдЧ рд╣реИрдВ, DynamicCollection рдФрд░ рд╢рдмреНрджрдХреЛрд╖ ред рд╢рдмреНрджрдХреЛрд╖ рд╕реЗ рдбрд╛рдпрдирд╛рдорд┐рдХ рдХрд▓реЗрдХреНрд╢рди рд╕реЗ рдкреНрд░рд╛рдкреНрдд рд╣реЛрддрд╛ рд╣реИ рдФрд░ рджреЛрдиреЛрдВ рд╡рд░реНрдЧ рдЯреЗрдореНрдкрд▓реЗрдЯ рд╣реИрдВ рдЗрд╕ рддрд░рд╣ рджрд┐рдЦреЗрдВ: рдЯреЗрдореНрдкрд▓реЗрдЯ & lt; typename ValueType & gt; рдХреНрд▓рд╛рд╕ DynamicCollection; рдЯреЗрдореНрдкрд▓реЗрдЯ & lt; typename рдХреАрдЯрд╛рдЗрдк, рдЯрд╛рдЗрдкрдирд╛рдордирд╛рдо ValueType & gt; рдХреНрд▓рд╛рд╕ рдбрд┐рдХреНрд╢рдирд░реА: рдкрдмреНрд▓рд┐рдХ рдбрд╛рдпрдиреЗрдорд┐рдХ рдХрд▓реЗрдХреНрд╢рди & lt; рдХреАрд╡рд╛рд▓рдкреЗрдЕрд░ & lt; рдХреАрдЯрд╛рдЗрдк, рд╡реИрд▓реНрдпреВ рдЯрд╛рдЗрдк & gt; & gt ;; рдореБрдЭреЗ рдЬреЛ рдореБрджреНрджрд╛ рдЖ рд░рд╣рд╛ рд╣реИ рд╡рд╣ рдпрд╣ рд╣реИ рдХрд┐ рдбрд╛рдпрдиреЗрдорд┐рдХ рдХрд▓реЗрдХреНрд╢рди рдХреЛ рдПрдХ рд╡рд┐рдзрд┐ GroupBy рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП, рдЬрд┐рд╕рдХрд╛ рдШреЛрд╖рдгрд╛ рдЗрд╕ рдкреНрд░рдХрд╛рд░ рджрд┐рдЦрддрд╛ рд╣реИ: рдЯреЗрдореНрдкрд▓реЗрдЯ & lt; typename selector & gt; рд╢рдмреНрджрдХреЛрд╢ & lt; рдЪрдпрдирдХрд░реНрддрд╛, рдЖрдЗрдХрд▓рд┐рдВрдЧ & lt; рдореВрд▓реНрдп рдкреНрд░рдХрд╛рд░ & gt; * & gt; * рд╕рдореВрд╣рдмреА (рдорд╛рдирдХ :: рдХрд╛рд░реНрдп & lt; рдЪрдпрдирдХрд░реНрддрд╛ (рдореВрд▓реНрдп рдкреНрд░рдХрд╛рд░) & gt; рдореВрд▓реНрдпрд╛рдВрдХрдирдХрд░реНрддрд╛); рддреЛ рдореБрдЭреЗ рдЬреЛ рд╕рдорд╕реНрдпрд╛ рд╣реИ рд╡рд╣ рдПрдХ рдкрд░рд┐рдкрддреНрд░ рдирд┐рд░реНрднрд░рддрд╛ рд╣реИ, рдФрд░ рдореБрдЭреЗ рдирд╣реАрдВ рдкрддрд╛ рдХрд┐ рдпрд╣ рдХреИрд╕реЗ рд▓рд┐рдЦрдирд╛ рд╣реИ рддрд╛рдХрд┐ рдпрд╣ рдХрд╛рдо рдХрд░реЗред рдореИрдВрдиреЗ рдбрд┐рдХреНрд╢рдирд░реА рдХреЛ DynamicCollection рд╣реИрдбрд░ рдореЗрдВ рдЖрдЧреЗ рдХреА рдШреЛрд╖рдгрд╛ рдХрд░рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХреА рд╣реИ, рдФрд░ рдлрд┐рд░ рдбрд┐рдХреНрд╢рдирд░реА рд╢реАрд░реНрд╖ рд▓реЗрдЦ рдореЗрдВ рд╡рд┐рдзрд┐ рдХреЛ рдкрд░рд┐рднрд╛рд╖рд┐рдд рдХрд░рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХреА ...

html - Javascript: Div is opening but not collapsing back -

I have this div that I have created, I want to expand it when a link is clicked and it Click again It seems that it is expanding correctly, but it has not been eliminated. Please & lt; Script & gt; Function Set Display () {document.getElementById ('divCollapse'). Style.display = "none"; } Function expandselected () {if document.getElementById ('divCollapse') style.display = "none") {document.getElementById ('divCollapse'). Style.display = "block";} and if (document.getElementById) ('divCollapse') style.display = "block") {document.getElementById ('divCollapse'). style.display = "none";}} & lt; / Script & gt; To use == to compare you Your if / else if is the block you are currently using = which is setting a display, is not checking it. & lt; Script & gt; Function Set Display () {document.getElementById ('divCollapse'). Style.display = "non...

javascript - Angular error in loading correct children -

рдореЗрд░реЗ рдкрд╛рд╕ рдирд┐рдореНрди рдХреЛрдгреАрдп рдРрдк рд╣реИ: рдЬрдм рдЕрдЧрд▓реЗ + рдореЗрд░рд╛ рд╢реИрдХреНрд╖рд┐рдХ рдкрд╛рдареНрдпрдХреНрд░рдо рдХреНрд▓рд┐рдХ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ, рдЗрд╕рд╕реЗ рдЪрдпрди рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдкрд╛рдареНрдпрдХреНрд░рдореЛрдВ рдХреА рд╕реВрдЪреА рдкреНрд░рд╛рдкреНрдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдПрдХ рдирдпрд╛ рдкреИрдирд▓ рдЦреБрд▓рддрд╛ рд╣реИред рдпрд╣рд╛рдВ рд╣рдо ' рд╢реИрдХреНрд╖рдгрд┐рдХ ' рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░рддреЗ рд╣реИрдВ рддреЛ рдпрд╣ рдЕрдкрдиреЗ рд╕рднреА рдмрдЪреНрдЪреЛрдВ рдХреЗ рд╕рд╛рде рдПрдХ рдирдпрд╛ рдкреИрдирд▓ рджрд┐рдЦрд╛рддрд╛ рд╣реИред рд▓реЗрдХрд┐рди рдЬрдм рдореИрдВ рдПрдкреНрд▓рд╛рдЗрдб рд╕рд╛рдЗрдВрд╕реЗрдЬ рдбрд┐рдЧреНрд░реА рдореЗрдВ рдПрд╕реЛрд╕рд┐рдПрдЯ рдХреНрд▓рд┐рдХ рдХрд░рддрд╛ рд╣реВрдВ рдпрд╣ рдЕрднреА рднреА рдореБрдЭреЗ рдПрдХ рд╣реА рдмрдЪреНрдЪреЗ рджрд┐рдЦрд╛рддрд╛ рд╣реИ? рдХреЛрдИ рднреА рд╡рд┐рдЪрд╛рд░ рдЬрд╣рд╛рдВ рдореИрдВ рдЧрд▓рдд рд╣реЛ рд░рд╣рд╛ рд╣реВрдВ? рд╕рдмрд╕реЗ рдЕрдЪреНрдЫрд╛ рд╕рдорд╛рдзрд╛рди рдирд╣реАрдВ рд╣реЛ рд╕рдХрддрд╛ рд╣реИ рд▓реЗрдХрд┐рди рдпрд╣рд╛рдВ рдкрд░ рд▓рд┐рдВрдХ рд╣реИ рд╕рдВрдкрд╛рджрд┐рдд рдХрд░реЗрдВ : рдЙрдк-рдмрдЪреНрдЪреЛрдВ рдХреЗ рд▓рд┐рдП: () рдпрд╣рд╛рдВ рдореЗрд░реЗ рдЕрддрд┐рд░рд┐рдХреНрдд рд╣реИрдВ: рдирд┐рдпрдВрддреНрд░рдХ: $ рдХрд╛ рджрд╛рдпрд░рд╛ .clickHandler = рдлрд╝рдВрдХреНрд╢рди (рдЗрдВрдбреЗрдХреНрд╕) {$ scope.currentProgram = $ scope.programs [0] .programlist [рдЕрдиреБрдХреНрд░рдордгрд┐рдХрд╛]; }; рджреЗрдЦреЗрдВ: & lt; li ng-repeat = "рдкреНрд░реЛрдЧреНрд░рд╛рдо рдореЗрдВ p [0] .programlist" рдбреЗрдЯрд╛-рдЬрд╛рд╕реВрд╕ = "рд╕реНрдХреНрд░реЙрд▓" & gt; & lt; рдЗрдирдкреБрдЯ рдкреНрд░рдХрд╛рд░ = "рдЪреЗрдХрдмреЙрдХреНрд╕" рдПрдирдЬреА-рдХреНрд▓рд┐рдХ = "display.addcourse =! display.addcourse; clickHandler ($ рдЕрдиреБрдХреНрд░рдордгрд┐рдХрд╛)" рдорд╛рди = "" / & gt; {{pprogram}} & lt;...

java - JSP - How do I print out empty when values are duplicated? -

Image
Below I have a JSP code that prints the first picture. What I am trying to achieve in the second picture. I have a total of 8 columns before 4 columns are printed as long as there is data from the internal inner table, in which the last 4 columns are included, where the data is different. I want to print empty data or place in columns and rows where the information from above is repeated. I can be up to 6 rows for every ID (so far left). & lt; Table range = "1" width = "100%" & gt; & Lt; TR & gt; & Lt; Th & gt; Student ID & lt; / Th & gt; & Lt; Th & gt; Last name & lt; / Th & gt; & Lt; Th & gt; First name & lt; / Th & gt; & Lt; Th & gt; Grade & lt; / Th & gt; & Lt; Th & gt; Events & lt; / Th & gt; & Lt; Th & gt; Interaction Level & lt; / Th & gt; & Lt; Th & gt; Ind / Team & lt; / Th & gt; & Lt; Th & gt; Event name & lt;...

r - Aggregate, Date, Values -

I am new to R and am trying to gather results and am trying to find minimum dates. For example if I have date of the ID value 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 -02 7 1 2013-12-02 9 I'm seeing the result as: ID date value 2013-02-02 5 1 2013-04-02 7 Any time will be appreciated. here data.table Library (Data Eligible) df $ date & lt; - as.Date (df $ date) is a solution with data. You can use dplyr (thanksgiving): (sd) [which.man (date),] = id library (dplyr) df%.% group_by (id)%.% filter (date == minute (date)) Both the output of something: ID date value 1: 0 2013-02-02 5 2: 1 2013-04-02 7

PHP - MySQL results to JSON -

I am trying to convert a MySQL result to a JSON format so that I can later use this JSON Javascript to create an HTML table. Although my code produces very nil values тАЛтАЛand why I am still not understood. $ result = mysqli_query ($ con, "select from clients"); $ test = json_encode ($ result); Print $ test; Output: {"current_field": null, "field_count": zero, "length": blank, "num_rows": empty, "type ": null} I have fields like, for example," customer ID "and" name ", and even they do not even appear in JSON results. What am I doing wrong? Thanks $ result = mysqli_query ($ con, "select from customers"); While ($ line = mysqli_fetch_assoc ($ result)) $ test [] = $ line; Print json_encode ($ test);

javascript - Three js collada animation set time -

Is there a way to set time or keyframe in the Kolada animation keyframe? I am trying, but I get unexpected behavior. function playAt (a) {for (var i = 0; i & lt; kfAnimationsLength; ++ i) {kfAnimations [i] .pause (); KF Animation [I] Play (false, A); KfAnimations [i] .update (0); found: function playat (a) {for (var i = 0; i & lt; kfAnimationsLength; + + I) {kfAnimations [i] .stop (); KF Animation [I] Play (false, A); KfAnimations [i] .update (a); }} But still there have been some unpredictable behaviors, I have imported my camera from Colada. And they do not support updates like this

java - mybatis insert and update index out of bounds error -

I have a mybitalis problem with the updated call. For some reason, I'm getting an index out of an exception exception: Reason by: com.microsoft.sqlserver.jdbc.SQLServerException: Index 1 is out of range I think the parameter is a type of map or archive. However, I pass it to a single object which I use the ratio of using the # {} syntax. I then call a straightforward update. & lt; Update id = "updateFactory" type statement = "CALLABLE" parameter type = "work order" & gt; Update wo SET factory = '# {factory}' WHERE work_order = '# {work_order}' & lt; / update> I know that the parameters meet with the gates and the setters, but it is still an issue, as a collection that treats the type of nickname dealing with the work order. (It seems that it receives the first index (0), but fails in the next (1 index). Why could this be so, but no thoughts? have you tried? & lt; update id = "updateFac...

c++ - How could I exit from do-while loop? -

I have code that relates to NIM subtraction game. What I would like to implement is that the user is going to be able to play the game till he wants it. If the user enters the 999 program then he will exit, otherwise he will play until he enters 999. This is my block of code. I'm not sure whether I make a logical mistake or I need to add some specific exit code. Thanks for your time and attention. #include & lt; Iostream & gt; # Include & lt; Cstdlib & gt; using namespace std; int main () {int total, n; While (true) {cout & lt; & Lt; "Welcome to NIM. \ N 99 9 to quit playing! \ NClick an initial total:"; Cin & gt; & Gt; Total; Break if (total = 999); While (true) {/ Choosing the best response and print results if ((% of total 3) == 2) {total = total - 2; Cout & lt; & Lt; "I'm decreasing 2." & Lt; & Lt; Endl; } And {total--; Cout & lt; & Lt; "I'm decreasing 1." & Lt; & Lt; En...

class - Python attribute of combination of two objects -

I'm quite new in OOP in Python In a program, I have two types of classes: class character: ... etc ... [ character1 and Character2 are examples of this) / P> and class room: ... etc ... [ Room1 and Room2 are examples of this] I have a variable pos for each character and cell pos for each possible combination of two classes Balance is: Example for : Type 1 with cell 1 - & gt; Pos = (10, 4) Room 1 - & gt; Pos = (6, 10) Room 2 with cell 2 - & gt; Pos = (3, 12) with class 2, character 2 - & gt; Pos = (7, 5) Is there an easy way to create an attribute for the combination of the classes I described? I have looked around the internet and I have not found any way to do this. Thanks in advance. You can make a tuple of your character and room examples, then add that topless to anything Use as a key to store the value of. ([character 1, cell1]] = (10, 4) You have to allow each of the characters to be repeated And you ca...

Fetch Data from website using curl in Android? -

I have a simple application in which I have to get data from the website. I know that using the URL How data can be brought, but I have to execute it using curl. I mean first, we get data from website using curls and then put data in database. My website has a link I searched the Internet but found no solution. how to do this? Please help me get it in Android. It should help you References

Java applet still getting security error after signing jar -

I'm really wandering here. I have found an old applet and I have been told that people with Java version 7 will get the security error removed. I have received a code signing certificate from GoDaddy.com and signed the jar with it. I then put a new applet on Unix server where it is used by CGI web page (Apache Web server). Now I'm getting the error in saying that 'missing' is required in the main jar, the manifest attribute: [server url] /factorportal.jar I know there is not enough about java, applet, jar and certificates. Do any spoon do I need to do to run this applet without any errors? Only partial and very misleading information has been found in my Google searches, my unfamiliarity with the process is most likely to my problem. Since 7u25 you have the permissions: sandbox in Meta-INF / MANIFEST.MF file ( M option has been added to the jar command line utility). It is here that jar can verify its origin without raising the privilege, traditionally...

c++ - Writing a log file with app running in non-admin mode in windows 7 -

My app needs to write and maintain the log file and it is not running in admin mode. My question is, how can my app write in such a situation, how can I get that way? There are two good options: Windows Event Log You can easily create your own log for your application (if you expect to generate a lot of messages), or you can add messages to standard logs (if you only generate a few, sometimes a message ) Since this is an underlying feature, any technical person wants to know about it and will be able to easily locate their log files. There is also much difference with this centralized management system. Write a text file saved in the application data directory. This is where applications have to store non-user data files, because as you have mentioned, the application directory is not something that you can write privileges. For a log file that is specific to a particular computer, I can say that this is local (non-roaming) application data, so you want the local ...

Rollback Transaction Error - Rails -

Some classmates and I have some problems in our train app for class. Whenever we try the user to the user, then create the ROR app on Rail Console. After filling out the required form, we get a rollback transaction. Any way to fix this? Here's the error: Rail Console development environment is loading (Rail 3.2.13) irb (main): 001: 0> Select User.count (0.0 mms) from COUNT (*) to "user" = & gt; 0 IRB (Main): 002: 0> User.create (name: "Mr. Rush", email: "rush@example.com", password: "firebar", password_confirmation: "fubar") (0.0ms) transaction user current (0.0ms) Select 1 Where "user" from one ("user". "Email") = LOWER ('rush@example.com ') LIMIT 1 (0.0 mms) rollback transaction = & gt; # & Lt; User ID: Zero, Name: "Mr. Rush", Email: "rush@example.com", Created_net: Zero, Updated: Zero, Password_Digest: "$ 2a $ 10 $ quwMA.4fcrBpg2sRy00qEOWrjH...

.htaccess to create dynamic subdomain from subfolder -

I wonder how a dynamic subdomain can point to the root folder when the user searches for it. Like apples.domain.com, pointing to domain.com/apples (apple folder is already manually created), then if the apple folder does not exist, it receives 404. Please help, I am a Noah with this topic. Try: rewrite on the rewriting engine %% {HTTP_HOST }! ^ Www. [NC] RevokedContact% {HTTP_HOST} ^ ([^.] +) \. Domain \ .com $ [NC] REVIRCURD% {DOCUMENT_ROOT} /% 1! -D reveritium ^ - [L, R = 404] referenced% {HTTP_HOST}! ^ Www. [NC] RevokedContact% {HTTP_HOST} ^ ([^.] +) \. Domain \ com [nc] rewrite code% {DOCUMENT_ROOT} /% 1-D recriminator% {DOCUMENT_ROOT} /% 1% {REQUEST_FILENAME} -f [or] Rewrite% {DOCUMENT_ROOT} /% 1% {REQUEST_FILENAME} -d Revert Raul ^ (. *) $ /% 1 / $ 1 [L] The document root of domain.com in the htaccess file.

utf 8 - utf8_bin or utf8_unicode for my wordpress site? -

About the database I'm going to create a new blog based on WordPress, should I choose utf8_bin or utf8_unicode? I have read the difference between the two, but still things are not clear to me. Thank you for your help. If you are just creating a WordPress blog then it will not make much difference. But, according to me, you should go with UTF 8 Unicode.

ember.js - EmberRoute renderTemplate: with model: -

I'm trying a custom amber root, like the following: App ResultRoute = Ember.Route.extend ({renderTemplate: function (controller, model) {warning}; this.render ('result / main', {outlet: 'content', controller: controller});}, model: function (Parameters) {return.get ('store'). (Find 'results', parameters.id) then (function (result) {returns result;}}}}}} However, looks like RenderTapplate: Model does not like: Second Sh In these cases, I can get directly into the Render Tumblr when I reach the route, but when I try to apply the model in this way it does not work. How to do this task? Thanks, I think, you then Should not be used: model: functions (parameters) {return.get ('store'). Results, parameters; id); } The search method returns a wired object that is used by the amber routing process. I will also suggest giving the amber render template based on its default. In your case, App.ResultController must expand th...

Chef cron provider creates multiple crontab entries -

We are running chef 11.4.4 with non-omnibus installs (this is installed as a gem). In one of our cookbooks, we use cron providers: checksum = digest :: MD5 HexDogest (node тАЛтАЛ['FDDN'] || 'Unknown-hostname') sleep_time = checksum.to_s .hex% node ['custom' command '] [' esplay ']. Two_I cron "custom_command" user "custom_user" hour 1 minute 0 command "/ bin / sleep # {sleep_time}; /home/custom_user/custom_command.sh" end It appears to be about 0.01% of the time multiple cron entries. On the affected server, we receive the following output from crontab -u custom_user -l : # Name of the chef: custom_command 0 0 * * * / bin / sleep 7035 ; /home/custom_user/custom_command.sh # Chef name: custom_command 0 0 * * * / bin / sleep 7035; /home/custom_user/custom_command.sh Running chef-client does not modify crontab. But editing the cronat and removing both entries and running the chef-client again will fix the probl...

node.js - Forever not starting when using Jenkins -

So I have a Jenkins build that is always starting with the following command. Sudo NODE_ENV = Development Forever start- a -l /var/nodejs/app/logs/forever.log -o/var/nodejs/app/logs/output.log -e / Var / nodejs / app / log / error log /var/nodejs/app/app.js This command throws the following error. is running on the development server fs.js: 427 return binding.open (pathModule._makeLong (path), stringflag (flags), mode); ^ Error: ENOENT, no such file or directory on object.fs.openSync (fs.js: 427: 18) at Object.fs.readFileSync (fs.js: 284: 15) on object 'ssl / gd_bundle.crt' . & Lt; Anonymous & gt; Object on (module .js: 456: 26) Module._Applications.js (module.js: 474: 10) (/var/nodejs/app/app.js:190:10) on the module. Module._load on function (module .js: 312: 12) load (module .js: 356: 32) function on startup. Module.Rannman (Module JS: 497: 10) (node тАЛтАЛ.js: 119: 16)) at node.js: 902: 3 Error: Skipped as usual detected the script code: 8 When I run fro...

wpf - Wait until a background worker is completed without locking out the main thread -

I am trying to run a background worker with a spinner running in the main thread and I would like to wait till then Unless the background worker is finished. Currently I have one or the other I have tried to use an auto reset event, but locking the main pouch so the spinner is not displayed is something similar to the auto reset event which locked the main UI Here I have some code backgroundwalker_boker = new backgroundwork (); _bWorker.DoWork + = _bWorker_DoWork; _bWorker.RunWorkerCompleted + = _bWorker_RunWorker contains; AutoResetEvent = New AutoResetEvent (incorrect); _bWorker.RunWorkerAsync (); // Wait until the background worker is finished. Wait (); ... Private Zero _bWorker_DoWork (Object Sender, DoWorkEventArgs E) {// Spinner Wait SpinnerAdornerText = "Work"; IsWaitSpinnerVisible = True; ... ready(); } Private Zero contains _bWorker_RunWorker (Object Sender, RunWorkerCompletedEventArgs e) {IsWaitSpinnerVisible = false; ...} Any thoughts? Any help is welco...

Using a python program to rename all XML files within a linux directory -

Currently, my code uses the name of the XML file as a parameter to take that file, some of it Parsing content and using it to change the name of the file, what I mean is that my program is actually run once and that program will search for every XML file (even if it's inside the zip Too) inside the directory and the same pai Let's name it using the ramometer which is what I'm having problems with. # encoding: utf-8 import os, sys import argv with script again, nombre_de_archivo = argv regexFecha = 'r \ "\ d {4} - \ d {2} - \ D {2} 'regexLocalidad = r'localidad = \ "[\ w, S, -_] * \"' regexNombre = r'nombre = \ "[\ w \ s., -_] * \" 'RegexTotal = r'total = \ "\ d +.? \ D + \" 'fechas = []; Local Dindex = []; Nombres = []; totales = [] archivo = open (nombre_de_archivo) for line in archivo.readlines): fechas.append (re.findall (regexFecha, linea)) localidades.append (re.findall (regexLocalidad, linea)) n...

nasm - disassembly issue: wrong result -

I want to separate a very simple line of binary code (.com file) with nasm but I do not expect output The main code is: mov ax, 4 ax ax mouse ax, 7 push 9 But there is output in nasm: (and I also tried To use IDA Pro and this was the same) Add 00000000 B80400 mov ax, 0x4 00000003 B80750 mov ax, 5007 00000006 006809 [bx + c + 0x 9], add 00000009 0000 [BX + SI], Al As you can see that binary code is correct, just the interpretation is wrong (I think because of the previous 3 extra zero bytes which I am due to any other program or maybe something else !) How do I leave the last zero in the binary code? Or any kind of nasm to interpret the code as I want? thanks B80750 is actually mov ax, 0x5007 there is nothing wrong is. Anyway, the given code piece should be collected in something like this: 00000000 B80400 mov ax, 0x4 00000003 50 push ax axis 00000004 B80700 mov ax, 0x7 00000007 6A09 push Byte + 0x9 If you have collected the .com file then you are doing ...

java - Android - Listening for incoming TCP/Socket messages in background -

I am trying to write a little application that sends TCP messages to the Java server running on PC (printed freer with). Now the client should listen in the background for incoming messages from the server in the background. How can I update incoming messages from GUIs with background messages? "post-text" itemprop = "text"> We want to spin a background thread for this. The easiest way is to use an asynchronous and then use it on PostExecute, or publish the progress, to display your message safely in the UI. Check out.

syntax - How to get numbering to flow properly in Table of Contents -

Can anyone tell me why the following code is not a correct number? I am following the instructions, although the numbering does not continue to the previous 1. I am very new to coding, so any help would be greatly appreciated! & lt; ol class = "inhoudsopgave" & gt; & Lt; li class = "inhoudsopgave" & gt; & Lt; A href = "#" & gt; & Lt; / A & gt; & Lt; / li & gt; & Lt; ol class = "inhoudsopgave" & gt; & Lt; li class = "inhoudsopgave" & gt; & Lt; a href = "# & lt; / a & gt; ol class =" inhoudsopgave "> In short, your list is a mess. You nest your OS inside the OLS Are hunting. If you want to create a list with sub-lists, then archeology should look like this. & lt; ol class = "inhoudsopgave" & gt; & Lt; li class = "inhoudspeag" & gt; & Lt; A href = "#" & gt; & Lt; / A & gt; &...

macros - Change font when using MacroButton placeholder in MS Word -

Image
рдПрдордПрд╕ рд╡рд░реНрдб рдореЗрдВ рдЖрдк рдЗрдиреНрд╣реЗрдВ рдмрдирд╛ рд╕рдХрддреЗ рд╣реИрдВ: рдПрдХ рдирдпрд╛ рдХреНрд╖реЗрддреНрд░ рдбрд╛рд▓реЗрдВ ( Ctrl + F9 ) рдЯрд╛рдЗрдкрд┐рдВрдЧ MacroButton NoMacro [ рдпрд╣рд╛рдВ рдкрд╛рда рдкреНрд░рд╡рд┐рд╖реНрдЯ рдХрд░реЗрдВ ] рдХреЛрд╖реНрдардХ рдХреЗ рдЕрдВрджрд░ {} рдлрд┐рд░ рдЗрд╕реЗ рд╕рдВрдкрд╛рджрди рдореЛрдб ( Alt + F9 ) рд╕реЗ рдЯреЙрдЧрд▓ рдХрд░рдирд╛ рдпрд╣ рдРрд╕рд╛ рдХрд░реЗрдЧрд╛: рдореЗрд░реЗ рдЯреЗрдореНрдкрд▓реЗрдЯ рдореЗрдВ, рдЦрд╛рд▓реА рдлрд╝реАрд▓реНрдб рд╣рд╛рдЗрд▓рд╛рдЗрдЯ рдореЗрдВ рдХреНрдпреВ : рдХреНрдпрд╛ рдХреЛрдИ рд╡реНрдпрдХреНрддрд┐ рдлрд╝реЙрдиреНрдЯ рднрд░рдиреЗ рдХреЗ рдмрд╛рдж рдлрд╝реЙрдиреНрдЯ рдХреЛ рдмрджрд▓рдиреЗ рдХрд╛ рдПрдХ рддрд░реАрдХрд╛ рд╣реИ? рдПрдХ рдореВрд▓реНрдп? рд╣рд╛рдБ, рдпрд╣ рд╕рдВрднрд╡ рд╣реИред MacroButton рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рдХреЗ рд╕рд╛рде рдиреЛ рдореИрдХрд╛рд░реЛ рдХреЗрд╡рд▓ рдПрдХ рдХреНрд▓рд┐рдХ рдХреЗ рд╕рд╛рде рдкреВрд░реЗ рдкрд╛рда рдХреНрд╖реЗрддреНрд░ рдХреЛ рдЖрд╕рд╛рдиреА рд╕реЗ рдкреНрд░рдХрд╛рд╢ рдбрд╛рд▓рд╛ рдЬрд╛рддрд╛ рд╣реИ рд╢рдмреНрдж рдореЗрдВ рдХрд┐рд╕реА рднреА рд╣рд╛рдЗрд▓рд╛рдЗрдЯ рдСрдмреНрдЬреЗрдХреНрдЯ рдХреЗ рд╕рд╛рде, рдЬрдм рдЖрдк рдЯрд╛рдЗрдк рдХрд░рдирд╛ рд╢реБрд░реВ рдХрд░рддреЗ рд╣реИрдВ, рддреЛ рдпрд╣ рдЪрдпрдирд┐рдд рднрд╛рдЧ рдХреЛ рд╣рдЯрд╛ рджреЗрддрд╛ рд╣реИ рдФрд░ рдмрд╛рдПрдВ рд╕рдмрд╕реЗ рддрддреНрд╡ рдХреА рд╢реИрд▓реА рдХреЗ рдЖрдзрд╛рд░ рдкрд░ рдирдП рдкрд╛рда рдХреЛ рдкреНрд░рд╛рд░реВрдкрд┐рдд рдХрд░рддрд╛ рд╣реИ (рдЬреЛ рдЗрд╕ рдорд╛рдорд▓реЗ рдореЗрдВ рдлрд╝реАрд▓реНрдб рд╣реИ - рднрд▓реЗ рд╣реА рдЗрд╕реЗ рдкреНрд░рджрд░реНрд╢рд┐рдд рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реЛ)ред рд╢реИрд▓рд┐рдпреЛрдВ рдХреЛ рдмрджрд▓рдиреЗ рдХреЗ рд▓рд┐рдП, рдмрд╕ рдкреВрд░реЗ рдХреНрд╖реЗрддреНрд░ рдФрд░ рд╕реНрд╡рд░реВрдкрдг рдХреЛ рд╣рд╛рдЗрд▓рд╛рдЗрдЯ рдХрд░рдХреЗ рд╢реБрд░реВ рдХрд░реЗрдВ, рд▓реЗрдХрд┐рди рдЖрдк рдкрд░рд┐рдгрд╛рдо рдХреЛ рд╕рдорд╛рдкреНрдд рдХрд░рдирд╛ рдЪрд╛рд╣рддреЗ рд╣реИрдВред рдлрд┐рд░ рдкрд╛рда рдХреЗ рднрд╛рдЧ рдФрд░ рдкреНрд░рд╛рд░реВрдк рдХреЛ рд╣рд╛рдЗрд▓рд╛рдЗрдЯ рдХрд░реЗрдВ, рд╣рд╛рд▓рд╛рдВрдХрд┐ рдЖрдк рдкреНрд░рд╛рдВрдкреНрдЯ рдХреЛ рдкреНрд░рджрд░реНрд╢рд┐рдд рдХрд░рдирд╛ рдЪрд╛рд╣рддреЗ рд╣реИрдВред рдЬрдм рд╕рдВрдкрд╛рджрди рдореЛрдб рдореЗрдВ, рдпрд╣ рдЗрд╕ рддрд░рд╣ рджрд┐рдЦрдирд╛ рдЪрд╛рд╣рд┐...

sql - MySQL: Count of records with consecutive months -

I searched for it, but all the same questions and answers are not enough to just work. I have a table with the following fields: person, thing, purity, a new record is recorded when a person buys every new thing. I have to count the months in my life, who gave a person "cheese" (cheese 01 or cheese 02, it is not a mater). If there is a break in fourteen consecutive times, then counting should begin. Attached to the data, I want to end it: | Person Days of Cones | | Person_01 | 3 | | Person_02 | 3 | | Person_02 | 2 | I know that I can get a different list of people, (year old to remove) - what I have done in this - but I'm not sure how to count then Continuous record and start at break (like my data, where the person breaks between 0/22 March and May.) Here is the data: Table record (Person varchar (32) not tap, talk varchar (32) no null, vintage date time zero); Enter the record (person, object, purity) values тАЛтАЛ('person_01', 'thing01'...

android - requestFeature() must be called before adding content error on super.onCreate -

рдореЗрд░реЗ рдкрд╛рд╕ рдПрдХ рд╕рд╛рд░ рд╡рд░реНрдЧ рд╣реИ рдЬреЛ ActionBarActivity рдХреЛ рдмрдврд╝рд╛рддрд╛ рд╣реИред onCreate рдореЗрдВ, рдореЗрд░реЗ рдкрд╛рд╕ рд╣реИ: @Override рд╕реБрд░рдХреНрд╖рд┐рдд рд╢реВрдиреНрдп рдХреЛ рдХреНрд░рд┐рдПрдЯ (рдмрдВрдбрд▓ рд╕рд╣реЗрдЬреЗ рдЧрдП рдЗрдиреНрд╕реНрдЯреИрдВрд╕рд╕реНрдЯреЗрдЯ) {super.onCreate (SavedInstanceState); supportRequestWindowFeature (Window.FEATURE_INDETERMINATE_PROGRESS); ...} рд╕рд╛рдордЧреНрд░реА рддреНрд░реБрдЯрд┐, рд╡рд┐рд╢реЗрд╖ рд░реВрдк рд╕реЗ рд▓рд╛рдЗрди super.onCreate (рд╕рд╣реЗрдЬреЗ рдЧрдП рдЗрдиреНрд╕реНрдЯреИрдВрд╕рд╕реНрдЯреЗрдЯ) рдкрд░, requestFeature () рдХреЗ рдХрд╛рд░рдг рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреНрд░реИрд╢ рд╣реЛ рдЬрд╛рддрд╛ рд╣реИред рд╕рдорд╛рди рдкрджреЛрдВ рдХреЗ рдХреБрдЫ рдкрдврд╝рдиреЗ рдХреЗ рдмрд╛рдж, рдореИрдВ рдЗрд╕ рд╕рдорд╛рдзрд╛рди рдХреЗ рд╕рд╛рде рдЖрдпрд╛ рдерд╛: @Override рд╕рдВрд░рдХреНрд╖рд┐рдд рд╢реВрдиреНрдп OnCreate (рдмрдВрдбрд▓ savedInstanceState) {requestWindowFeature (Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate (savedInstanceState); ...} рдореЗрд░рд╛ рд╕рд╡рд╛рд▓ рд╣реИ: рд╕реБрдкрд░ рдХреЙрд▓ рдкрд░ рдпрд╣ рдХреНрдпреЛрдВ рдХреНрд░реИрд╢ рд╣реЛ рд░рд╣рд╛ рд╣реИ? рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдореИрдВ рд╕реЗрдЯрд┐рдВрдЧ рдХрдВрдЯреЗрдВрдЯ рд╡реАрдЬ рдХрдХреНрд╖рд╛рдУрдВ рдореЗрдВ рдирд╣реАрдВ рд╣реВрдВ, рдЬрдм рддрдХ рдХрд┐ рдореИрдВ рдЗрд╕ рдХреЛрдб рдХреЛ рдмрдврд╝рд╛рддрд╛ рд╣реВрдВ рдЬрдм рддрдХ рдХрд┐ рдореИрдВ super.onCreate рдХреЙрд▓ рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реВрдВред ред Android.util.AndroidRuntimeException: рдЧрддрд┐рд╡рд┐рдзрд┐ ComponentInfo {com.myapp / com.myapp.cycle.Cycle} рдкреНрд░рд╛рд░рдВрдн рдХрд░рдиреЗ рдореЗрдВ рдЕрдХреНрд╖рдо: requestFeature () рдЪрд╛рд╣рд┐рдП рдпрд╣ рдЕрднреА рднреА рдХрднреА-рдХрднреА...

php - Symfony - Making dev environment inaccessible in prod -

I have recently deployed a Symphony project and have seen that Dev Environment is still accessible. The following URL loads the prod version of the project: http://domain.com/app.php/index The following URL version loads the project: http://domain.com/app_dev.php/index I was thinking that Is it possible to make the Dev version impossible in the project environment? I appreciate any advice, thanks in advance! Add the following lines of code to your app_dev.php // This checkdog prevents access to front controllers which are positioned on the production server by accident. // Free to remove it, extend it, or refine something more. If (! In_array (@ $ _ SERVER ['REMOTE_ADDR'], array ('127.0.0.1', ':: 1',))) {header ('http / 1.0 403 prohibited'); Exit ('You do not have permission to access this file.' Check '.basename (__File__).' For more information. '); }

regex - Weird apache htaccess behavior, not working as its supposed -

My Apache Forwarding works with a weird twist I'm not sure why this is happening ... 301 / old / new redirect /old/some_file2.html code> forward /new/some_file2.html for / old / some_folder21 / for me / new / some_folder21 "post-text" itemprop = " text"> You can use RedirectMatch for its regex capabilities Must do: RedirectMatch 301 ^ / old / new or mod_rewrite : remit rules ^ /? old (/.*)? / / new? [L, NC, R = 301]

html - Can't get inline icon to show up in CSS -

I have a very simple Chrome extension to complement the web page. One of the features is to see relevant matches on the Internet. Link is to add The relevant HTML is here: & lt; div class = "option-wrap" & gt; & Lt; A class = "option" href = "http://www.google.com" target = _blank & gt; & Lt; div class = "option-icon tv-icon" & gt; & Lt; / Div & gt; TV link & lt; / A & gt; & Lt; / Div & gt; with my CSS here: .tv-icon {margin-right: 2px; Swim left; Width: 10px; Height: 10px; Background-image: url ("http://sayeedanwar.co.uk/wp-content/uploads/2014/01/tv-servizi.png") No-repeat; Display: Inline-block; } You will see that many squares appear in HTML which are not in my CSS; They are from web page because it exists. The goal of this code is to get the TV icon specified by the url to appear inline on the right side of the "TV link" text. When I run the code, it seems th...

javascript - processing.js inside handlebars not loading -

I have an HTML canvas element that uses a processing. JS script as shown here: & lt; Canvas id = "micekette" data-processing-source = "form.pde" & gt; & Lt; / Canvas & gt; This canvas element is inside a handler script, at the end of the file, before the closing body tag, I have: If I put the canvas inside the Handlabar script, then the processing script does not render. (I think this is a processing script, though it is the last thing in the HTML file, which gives before the handlers script, and so is made even before the canvas element. I'm not sure.) If I put the canvas processing outside the handlers script, it renders correctly, but I need to do it inside the handbar script. Maybe, there is a way of running the processing after all running? processing.js Only loading automatic scripts on content content loading. If you are templating your canvas later (i.e. through the templatelining library), you will have to use pr...

vim - How can I put cursor back to netrw window after finish editing -

After opening a file in my gvim , it seems ________________________ | | | | | | | | | | NETRW | Editor | | | | | | | | | | ------------------------ The file will open in the default cursor editor window, which is good, but How can I go back to the netRw window after full editing so that I can choose or open other files? Yes, you & lt; C-w & gt; H or & lt; C-w & gt; & Lt; Left & gt; Previous window or & lt; C-w & gt; To go to w the left window or for the circle between the window & lt; C-w & gt; p Help view : window-move cursor .

ios - Detect If between time periods -

I'm having trouble with the code given below. What's the problem with it? I have tried to define the NSUInteger as int , but it still does not work. NSCalendar * cal = [NSCalendar currentCalendar]; NSDateComponents * Component = [KAL component: NSHourCalendarUnitDate: now longer]; NSLog (@ "% LD", [hours of components]); NSUInteger * timeHour = [component hours]; If it is between 5 and 9 in the morning for the code, then it can be ascertained that . > Anything that is timeHour & lt; 5 Automatically timeHour> 9 . You are desirous of these two situations, which can never be true at the same time, so you will always make a wrong return. In addition, if is nothing in the block if (timeout => 5 & amp; amp; Time holes & lt; = 9) {// stuff} timeHour> = 5 gives the right for anything where is greater than or equal to 5. Time gives the right for anything where timeHour is 9 or less. another amp; Amp; Both ...

arrays - Getting Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 -

рдЗрд╕ рд╕рд╡рд╛рд▓ рдХрд╛ рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рдПрдХ рдЙрддреНрддрд░ рд╣реИ: 2 рдЬрд╡рд╛рдм рдореИрдВ рдкреНрд░реЛрдЧреНрд░рд╛рдорд┐рдВрдЧ рдХреЗ рд▓рд┐рдП рдХрд╛рдлреА рдирдпрд╛ рд╣реВрдБ рдФрд░ рдореЗрд░реЗ рд╢рд┐рдХреНрд╖рдХ рдиреЗ рд╣рдореЗрдВ рдпрд╣ рдХрд╛рдо рджрд┐рдпрд╛ рд╣реИ рдореИрдВрдиреЗ рдХреЛрдб рдХреЛ рдЕрдкрдиреЗ рд╕рдмрд╕реЗ рдЕрдЪреНрдЫреЗ рд░реВрдк рдореЗрдВ рдПрдХ рд╕рд╛рде рд░рдЦрд╛ рд╣реИ рд▓реЗрдХрд┐рди рдореБрдЭреЗ рддреНрд░реБрдЯрд┐ рдорд┐рд▓ рд░рд╣реА рд╣реИ рдореЗрд░рд╛ рд▓рдХреНрд╖реНрдп 5 рд▓реЛрдЯреНрдЯреЛ рдирдВрдмрд░реЛрдВ рдХреЗ рд▓рд┐рдП рдПрдХ рд╕рд░рдгреА рдмрдирд╛рдирд╛ рд╣реИ рдФрд░ 1 рдкрд╛рд╡рд░ рдмреЙрд▓ рдирдВрдмрд░ рд╣реИ, рдкрд╣рд▓реЗ рдкрд╛рдВрдЪ рдирдВрдмрд░ 1-47 рд╕реЗ рд╣реИрдВ рдФрд░ рдкрд╛рд╡рд░ рдмреЙрд▓ 1-27 рд╣реИред рддрдм рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдХреЛ рд╡реЗ рдЯрд┐рдХрдЯ рдХреА рд╕рдВрдЦреНрдпрд╛ рджрд░реНрдЬ рдХрд░рдиреА рд╣реЛрдЧреА рдЬреЛ рд╡реЗ рдЪрд╛рд╣рддреЗ рд╣реИрдВ рдФрд░ рдкреНрд░реЛрдЧреНрд░рд╛рдо рдХреЛ рдЯрд┐рдХрдЯ рдХреЗ рдкреНрд░рд╛рд░реВрдк рдореЗрдВ рдкреНрд░рд┐рдВрдЯ рдХрд░рдирд╛ рд╣реЛрдЧрд╛ 1 2 3 4 5 рдореЗрдЧрд╛: 6. рдХреГрдкрдпрд╛ рдорджрдж! import java.util.Scanner; рдкрдмреНрд▓рд┐рдХ рдХреНрд▓рд╛рд╕ рд╕реБрдкрд░ рд▓реЛрдЯреНрдЯреЛрдкреНрд▓рд╕ {// рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдкрдмреНрд▓рд┐рдХ рд╕реНрдЯреИрдЯрд┐рдХ рдЗрдиреНрдЯ [] рдЬреЗрдирд░реЗрдЯ рдХрд░реЗрдВрд╕реВрдкрд░ рд▓реЛрдЯреНрдЯрдирдЬреНрдпреВрдореЗрдВрдЯреНрд╕ () {рдЗрдВрдЯреНрд░ [] рдирдВрдмрд░; рд╕рдВрдЦреНрдпрд╛рдПрдВ = рдирдпрд╛ рдЗрдВрдЯ [5]; рд╕рдВрдЦреНрдпрд╛рдПрдВ [0] = (рдЗрдВрдЯ) (47 * рдордаред рд░реИрдВрдбрдо ()) + 1; рдирдВрдмрд░ [1] = (рдЗрдВрдЯ) (47 * рдорде.рд░реЗрдиреНрдбрдо ()) + 1; рд╕рдВрдЦреНрдпрд╛рдПрдВ [2] = (рдЗрдВрдЯ) (47 * рдорде.рд░реЗрдиреНрдбрдо ()) + 1; рдирдВрдмрд░ [3] = (рдЗрдВрдЯ) (47 * рдорде.рд░реЗрдиреНрдбрдо ()) + 1; рд╕рдВрдЦреНрдпрд╛рдПрдВ [4] = (рдЗрдВрдЯ) (47 * рдорде.рд░реЗрдиреНрдбрдо ()) + 1; рд╕рдВрдЦреНрдпрд╛рдПрдВ [5] = (рдЗрдВрдЯ) (27 * рдорде.рд░реЗрдиреНрдбрдо ()) + 1; рд╡рд╛рдкрд╕реА рд╕рдВрдЦреНрдпрд╛; } // рд╡рд┐рдзрд┐ рдореБрджреНрд░рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рд╡рд┐рдзрд┐ рд╕рд╛рд░реНрд╡рдЬрдирд┐рдХ рд╕реНрдерд┐рд░ рд╢реВрдиреНрдп рдкреНрд░рд┐рдВрдЯрдЯ...

vb.net - What is the c# of this vb code? -

I need to convert this vb code to c #, my problem is that i do not understand Whether VB has an object and what is its equivalent is in C #. Summary () as the new summary; Dim row = summary as the data row. NewRow () Dim info as Hashtable = reader.Info For every key in the form of information in the string. Case Case Case "Headline" line ("title") = info.Item (key) case "author" line ("author") = info.Item (key) case "subject" line ("subject") = info Select the end summary .meem (key) Rows. Add (line) C # equivalent information [key] . You can find additional information on the Microsoft website:

php - Login Script does not function -

I am having a minor problem with this login mechanism. This does not login to the user on most conditions if the user is newly registered So it works fine but then all other usernames are useless. The login.php page is as follows: This is the script I use to see if the user is logged in or not. I paste it on all my pages. & lt ;? Php $ username = $ _COOKIE ['username']; if ($ username == "") {echo '& lt; Form name = "login" action = "login.php" method = "post" & gt; & Lt; Label & gt; Login & lt; / Labels & gt; & Lt; Label = "username" & gt; Username: & lt; Input type = "text" name = "username" & gt; & Lt; / Label & gt; & Lt; Label = "password" & gt; Password: & lt; Input type = "password" name = "password" & gt; & Lt; / Label & gt; & Lt; Input type = "submit" & gt; &...

python - Why doesn't "%0.2f" % (.3) return "0.29"? -

The IEEE 754 floating point value for 0.3 is approximately 0.29999999999999998. Based on this, it looks like when you execute "% 0.2f"% (.3) , then Python should print "0.29" But, it actually prints "0.30" What does Python do behind the scenes to get string representation? Edit : This is interesting: In existing versions, Python displays a value based on the least decimal fraction Returns the correct binary value Rounding rounds the Python number, And 0.29 9999 is the goal of two decimal digits 0.30.

php - Trying to get a list of team names a member is a part of via comparing 2 sql tables -

Trying to get user teams is a part of comparing 2 tables DB Tables (team) 'varchar' (45) default faucet, 'TeamDesk Longtext', 'Founder' varchar (45), 'team dim' (11) faucet atangentement, zero, `date formatted` integer (11) Primary key (`timid ')) engine = InDebby Outangent = 2 defaults charset = Latin 1; The table 'TeamManbars' (`Timed 'int (11) faucet,' Member 'varchar (45) No,' rank 'varchar (45) default faucet, primary key (` timid') engine = InnoDB default charge = latin1; The current function is to stuff me: / * removeProject * / function getTeamNames ($ id) {global $ session, $ database; $ link = $ database-> Connection; $ Stmt = $ link- & gt; Prepare ("WHERE teamid = $ id" from select teamnames teams); $ Stmt- & gt; Executed (); $ R = $ stmt-> Fetch (); Returns array ('team' = & gt; $ r ['teamname']); } Questions for getting team names: $ link = $ da...

Django 1.6.2 - Python 3.3 - MySQL 5.6.17 Connector issue on Windows 7/8 -

рдореИрдВрдиреЗ рдХреЛрд╢рд┐рд╢ рдХреА: рдЕрдЬрдЧрд░ manage.py syncdb рд▓реЗрдХрд┐рди рдЗрд╕ рддреНрд░реБрдЯрд┐ рд╕реЗ рдкрддрд╛ рдЪрд▓рд╛: рдЯреНрд░реЗрд╕рдмреИрдХ (рд╕рдмрд╕реЗ рд╣рд╛рд▓ рд╣реА рдореЗрдВ рдХреЙрд▓ рдЕрдВрддрд┐рдо): рдлрд╝рд╛рдЗрд▓ "рд╕реА: \ рдкрд╛рдпрдерди 33 \ lib \ site-packages \ django \ db \ backends \ mysql \ baseред py ", рдкрдВрдХреНрддрд┐ 14, & lt; рдореЙрдбреНрдпреВрд▓ & gt; MySQLdb рдХреЛ рдбреЗрдЯрд╛рдмреЗрд╕ рдЖрдпрд╛рдд рдХреЗ рд░реВрдк рдореЗрдВ рдЖрдпрд╛рдд рдХрд░реЗрдВ: рддреНрд░реБрдЯрд┐: рдХреЛрдИ рднреА рдореЙрдбреНрдпреВрд▓ 'MySQLdb' рдореИрдВрдиреЗ рдпрд╣рд╛рдВ рд╕реЗ рдЕрдЬрдЧрд░ 3.3.5 рдбрд╛рдЙрдирд▓реЛрдб рдХрд┐рдпрд╛ рд╣реИ: рдФрд░ рдпрд╣рд╛рдВ рд╕реЗ MySQL - Python рдХрдиреЗрдХреНрдЯрд░: рдореИрдВ рдЗрд╕реЗ Windows рдорд╢реАрди рдкрд░ рд╕реЗрдЯ рдХрд░рдиреЗ рдХрд╛ рдкреНрд░рдпрд╛рд╕ рдХрд░ рд░рд╣рд╛ рд╣реВрдВред рдпрд╣ рдХреЛрд╢рд┐рд╢ рдХрд░ рд░рд╣рд╛ рд╣реИ рдХрд┐ рдХреЛрдИ рднрд╛рдЧреНрдп рднреА рдирд╣реАрдВ рд╣реИ: pip mysql-python settings.py рдореЗрдВ 'рдЗрдВрдЬрди' рдХреЗ рд░реВрдк рдореЗрдВ рдЗрдВрдЬрди рдмрджрд▓реЗрдВ: 'mysql.connector.django',

clojure - PI Approximation: Why is my declarative version slower? -

Image
рдореИрдВ рд╢реНрд░реГрдВрдЦрд▓рд╛ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░ рдкреАрдЖрдИ рдХрд╛ рдЕрдиреБрдорд╛рди рд▓рдЧрд╛ рд░рд╣рд╛ рд╣реВрдВ: рд╢реНрд░реГрдВрдЦрд▓рд╛ рдХреЗ рд▓рд┐рдП рдлрд╝рдВрдХреНрд╢рди рдЗрд╕ рддрд░рд╣ рджрд┐рдЦрддрд╛ рд╣реИ: (defn-pi- рд╕реАрд░реАрдЬ [рдХреЗ] (/ (рдпрджрд┐ (рдпрд╣рд╛рдВ рддрдХ тАЛтАЛрдХрд┐ (рдЗрдиреНрдл рдХ) 1 -1) (рдбреАрд╕реА (* 2 рдХреЗ)))) рдФрд░ рдлрд┐рд░ рдореЗрд░реА рд╢реНрд░реГрдВрдЦрд▓рд╛ рдЬрдирд░реЗрдЯрд░ * рдЬреИрд╕рд╛ рджрд┐рдЦрддрд╛ рд╣реИ: (defn pi [n] (* 4 (рд▓реВрдк [k 1 acc 0] (рдпрджрд┐ (= k (inc n)) рдПрд╕реАрд╕реА (рдкреБрдирд░рд╛рд╡реГрддреНрддрд┐ (inc k) (+ рдПрд╕реАрд╕реА (рдбрдмрд▓ ( pi-series k))))))))) рдЪрд▓ рд░рд╣реЗ pi рдХреЗ рд╕рд╛рде рдорд╛рди 999,999 рдирд┐рдореНрди рдХрд╛ рдЙрддреНрдкрд╛рджрди рдХрд░рддрд╛ рд╣реИ: (рд╕рдордп (рдкреАрдИ 99 99 99));; = & gt; "рдмреАрддрд╛ рд╕рдордп: 497.686 рдорд┐рд╕реЗрдЬ";; = & gt; 3.1415 936535907734 рдпрд╣ рдмрд╣реБрдд рдЕрдЪреНрдЫрд╛ рд▓рдЧ рд░рд╣рд╛ рд╣реИ, рд▓реЗрдХрд┐рди рдореБрдЭреЗ рдкрддрд╛ рд╣реИ рдХрд┐ pi рдЕрдзрд┐рдХ рдШреЛрд╖рдгрд╛рддреНрдордХ рд▓рд┐рдЦрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ рдпрд╣рд╛рдВ рдмрддрд╛рдпрд╛ рдЧрдпрд╛ рд╣реИ: (defn pi-fn [n] (* 4 (рдХрдо рдХрд░реЗрдВ + (рдирдХреНрд╢рд╛ # (рдбрдмрд▓ (рдкреА-рд╕реАрд░реАрдЬ%)) (рд╢реНрд░реЗрдгреА 1 (inc n) ))))) рдирд┐рдореНрди рдореЗрдВ рдЬрд┐рд╕рдХреЗ рдкрд░рд┐рдгрд╛рдорд╕реНрд╡рд░реВрдк: (рд╕рдордп (рдкреАрдЖрдИ-рдПрдлрдПрди 99 99 99));; = & gt; "рдмреАрддрд╛ рд╕рдордп: 4431.626 рдорд┐рд╕реЗрдЬ";; = & gt; 3.1415 936535907734 рдиреЛрдЯ: рдШреЛрд╖рдгрд╛рддреНрдордХ рд╕рдВрд╕реНрдХрд░рдг рд▓рдЧрднрдЧ 4 рд╕реЗрдХрдВрдб рд▓рдВрдмрд╛ рд▓реЗ рдЧрдпрд╛ рдХреНрдпреЛрдВ? рдХреНрдпреЛрдВ рдШреЛрд╖рдгрд╛рддреНрдордХ рд╕рдВрд╕реНрдХрд░рдг рдЗрддрдирд╛ рдзреАрдорд╛ рд╣реИ? рдореИрдВ рдЗрд╕реЗ рдЕрдирд┐рд╡рд╛рд░реНрдп рд╕рдВрд╕реНрдХрд░рдг рдХреЗ рд░реВрдк рдореЗрдВ рддреЗрдЬреА рд╕реЗ...

python - Using 'If' to run the loop again? -

I'm producing 2 arrays of random numbers from 3 to 3 (this is my x and y coordinate accordingly ). However, if I use a loop related to X and Y over my radius (which is 3) then what is the need to create a new set of numbers? If I take this loop to get it after my loop? import random N = 3x = zero (N, float) y = zero (N, float) in the range for i (0, n): x [ii] = Uniform (6) -3 y [ii] = uniform (6) -3 if (x [n] * 2 + y [n] ** 2) ** 0.5 & gt; 3: thanks Most random library modules have a regular interval [0,1] but to return a floating point number from the same distribution. To choose randomly from an equal distribution on the [a, b] interval, where B & gt; One, you can only multiply by ba , and then add a . I'm not sure which modules you are importing in your example, so I give examples using standard random modules, as well as numpy.random random import random def rand_range (a, b): i + rand_range (-3, 3) for range i = in category i for a + Retur...

php - How to remove a data uri from text using a regular expression? -

What is a great way to remove data URI from a block of text with regular expression ? My application has to be removed from email body texts because Amazon SES (Simple Email Service) rejects any email with data URI. . They should also be removed for security purposes Example data URI: data: image / gif; Base 64, R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o / XBs / fNwfjZ0frl3 / zy7 //// wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7 It can be surrounded by quotes such as HTML: & lt ; img src = "data: image / gif; base64, R0lGODlhEAAQA ...." / & gt; Or this can be a CSS background: Background: URL (Data: Image / GIF; Base64, RLGODLAAAAAAAAA ... .); This should do the trick: $ Regex = '~ Data: [^;] +; [E-za-j 0-9] +, [^] \ '\ s] + ~'; $ Body = preg_replace...

Why does this CSS3 Animation happen instantly? -

рдореБрдЭреЗ рдЗрд╕ CSS3 рдПрдиреАрдореЗрд╢рди рдХреЗ рд╕рд╛рде рд╕рдорд╕реНрдпрд╛рдПрдВ рдЖ рд░рд╣реА рд╣реИрдВ: @ - webkit-keyframes hide_card {0% {width: 250px; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 10px; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 10px; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 3px; } 100% {рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; }} @ -рдореЛрдЭ-рдХреАрдлреНрд░реЗрдо рд▓рдкреЗрдЯрд╛рдХрд╛рд░реНрдб {0% {width: 250px; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 10px; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 10px; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 3px; } 100% {рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; }} @ -рдПрдордПрдордПрд╕-рдХреЗрдлреНрд░реЗрдореЛрдВ рд▓рдкреЗрдЯреЛрдХрд╛рд░реНрдб {0% {width: 250px; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 10px; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 10px; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 3px; } 100% {рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; }} @рдХреАрдлреНрд░реЗрдореЗрдВ рд▓рдкреЗрдЯрдХрд╛рд░реНрдб {0% {width: 250px; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 10px; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 10px; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 3px; } 100% {рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рдмрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди-рджрд╛рдПрдВ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; }} рдпрд╣рд╛рдВ рддрддреНрд╡ рд╣реИ: .activityред Card.invisible {width: 0px; рд╕реАрдорд╛ рдЪреМрдбрд╝рд╛рдИ: 0 рдкрд┐рдХреНрд╕реЗрд▓; рдорд╛рд░реНрдЬрд┐рди: 0 рдкрд┐рдХреНрд╕; рдЕрд╕реНрдкрд╖реНрдЯрддрд╛: ...