Posts

Showing posts from April, 2013

javascript - open FileSelect dialog programmatically -

I am trying to open a file select dialog box without contacting the user, but it does not work and I Do not understand why In this example, I am trying to open it from the window. Ollod function, but it does nothing. The console output shows that the "simulateclick ()" function is executed, but I do not see the dialog box. When I use the 'Test' button instead, it works fine. To make a call besides "document.getElementById ('files'). Click ()" There is no effect from the console. Can anyone explain? & lt; Html & gt; & Lt; Body & gt; & Lt; Input type = "file" id = "file" name = "files []" multiple & gt; & Lt; Input type = "button" id = "test" value = "test" & gt; & Lt; Script & gt; Function simulatorclick () {console.log ("first"); Var elem = document.getElementById ('file'); Console.log (ELEM); Elem.click (); Console.log...

sdl - SDL2 texture repeat / wrapping property -

I want to use texture repeats with SDL2 (SDL_RenderCopy), and how I can not find it by repeating the texture That texture coars have to be given twice in the shape of the texture and it is tiled twice on the surface like this: How do anyone know how to do this in the SDL? Do I Need To Use Open GL Functions? Thank you, This is not the ideal solution, but if you are using OpenGL functions Do not want to go down the route to use: glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); GlTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); GlTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, DEFAULT_TEXTURE_WRAP); GlTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, DEFAULT_TEXTURE_WRAP); Then you can calculate the source and destination sequences on the fly as you attract. For example, think that you have a texture that is 100x100 and a screen drawing area is 150x150. When starting from the top you will see that you can fit the full text in the first ...

Rails: Setting tag owner with acts-as-taggable-on and tag_list direct assignment -

I need to set the ownership of tags using the Ilist Direct Assignment method by using . This is what I am doing: @ blog.tag_list = "red, blue, green" @ blog. Save And I have the user set as a tagger class user & lt; ActiveRecord :: Base acts_s_tagger end Tagged tagged tag tags according to tag how to set tag ownership, but how to set ownership through tag_list, any of it There is no discussion. Is this possible? Or do I need to set up ownership to avoid direct work? see # in a tagable model (blog): First_Save: set_tag_owner def set_tag_owner # Set some tag owner based on the existing tag_list_set_owner_tag_list_on (self.user ,: tags, self.tag_list) # Clear the list so that we do not get duplicate tagging self.tag_list = zero End # in this view: & lt;% = f.text_field: tag_list ,: value = & gt; @ Blog.all_tags_list%>

java - Reference to Self in Static Initializer -

I have a problem with the three classes in the Java program, I am using public static last I have a constant type of reference in the same class type, but in these sections, the public static final is itself a reference, and ultimately indicates back in the undefined class (leading to a null). . I am using a strategy that uses static references as constants, but it is a strange chaining behavior, if this problem can not be fixed, then what are the options, and what exactly is the problem Can also be fixed? code: public square fu {public static final fu UNKNOWN_FOO = new fu (bar. UNNNIBAR); Private last time; Public fu (repeatedly) {this.bar = bar; }} Public Class Bar {Public Static Final Bar UNKNOWN_BAR = New Bar (Falcon. UNNAABAZ); Private finals falcon falcon; Public bar (falcon falcon) {this.baz = baz; }} Public Sector Buzz {Public Stable Last Falcon UNKNOWN_BAZ = New Falcon (Foo.UNKNOWN_FOO); Private Final Fu Fu; Public falcon (Fu Fu) {this.foo = foo; }} As Aaron...

how to use OsmDroid for navigation in android -

OSMDODO and navigation are completely new in the world. I just want to know, if a user enters the place's name or post code (the place where he wants to go), how do I find it in the map? And secondly, if I already got the geopoint of the destination, how would I do the actual search algorithm from my place to destination? A sample code has been provided, so it will be really useful. Thanks for your time and help I recommend that Take a look at> OSMBonusPack . This library is exactly what you want. You can either choose to use it or understand the sources to see how to do such things here:

php - dropdown option select in register form -

I am creating a register form with a dropdown selection option: Name: Email: Password: School: (dropdown option list) I have set up two tables, which are called "users", others are "schools". In my "Users" table, the columns are "id" (int (11)) , "email" (varchar (255) , "name" (my In the "School" table, the column "id" (int (11)), "user_id" (int (11)), varna (64) , and "school" (kirtava (64) and "school_id" Int (11)) "I'm not sure if the setup of this table is correct, please let me know if there is a better way to set it up. I made" school_id "as I have a search system later on where the user In specific schools So far my farm form of register.html: form action = "register e-mail: & lt ; / Label & gt; & lt; php "method =" post "& gt; div class =" field "& gt; & lt; label =" email "f...

haskell - zipWith-ing List of Integers with List of Functions -

How do I make [integer] with a [integer - & Gt; Integer - & gt; Integer] to get the [integer - & gt; Integer] ? Example: I tried: prelude & gt; With desired result of [1,2,3] (3 (*)) with zip: [(* 1), ( * 2), (* 3)] But I got an error: & lt; Interactive>: 25: 9: Could not match the expected type `(A0 - & gt; a0 - & gt; a0) - & gt; B - 0 - & gt; In the first argument of 'zip with' with the actual type '[T]', in the expression '[1, 2, 3]', in the expression: zip [1, 2, 3] (repeat 3 (*)) In the equation for an 'this': it = zip [1, 2, 3] (repeat 3 (*)) edit me right - thanks . It seems that I can do it with applicants: prelude control. Epicclic & gt; F f = [(*)] But, can I do this with the zipWith ? You were close to an operator for the application, $ , which exactly Useful in such cases. & gt; : T ZIP ($) [(*), (*), (*)] [1..3] ZIP ($) [(*), (*), (*)] [1..3]: ...

ruby - Quick explanation of recurrence rules via ice_cube for fist of fury/ sucker punch -

Maybe this is not the most generous question ... especially about this dense thing I can do with recurring background tasks To actually use Nifty Gem, the Future of Fury: As the author of the gem, the recurrence rules have been made using the ice cube gem. He gives an example of a recurring job such as: classes include SayHiJob Skrapp: jobs include: FistOfFury :: recursive repeat (closely) DRR Rails.logger.info 'Hi!' End of End I read through Docs for the First of Fury and Ice Cube, both read as the above link, and just want to confirm my understanding. .. Fury of fury requires an ice cube rule recurs {} to be in brackets, recurs mandatory Form of schedule is the replacement of an ice cube You can make a predecessor from the Ice Cube You can use the rule, like equals in the example or daily (2) (every other day), or you can define your own rules If you define your rules, then you can keep it right over repetition, because the ice cube's gem has...

mysql - Return list of query in Java 1 dimensional e.g., 1 row is returned -

I have a lot of trouble through all of my records, perhaps someone reading my code can help. Private string saving data (handle handle, string username, string name, string professor, string table) {String sqlCommand; Maps & lt; String, Object & gt; UserResults; For (integer table name = 1; table name How do I repeat through each record in the table? You say that it works for row 1 On .first (); and you have not tried to bring the next record. Modify your query - The documentation says that you can use .list (maxRows);

java - How to calculate and display a laplacian filtered image -

I would like to know how to calculate and display a laplacian filter image for an example Laplacian filter. -16 -16-206 -16 -1 Please help me with this. Thank you. I appreciate any help that I can get. Assume that you are able to scan the image pixels in pixels. Result_Image (size) (int i = 1; i & lt; Result_Image.rows-1; i ++) for the original_size (size) = // First and last To ignore the rows (Results i_aage.cols-1; i ++) {Result_Image (i, j) = -20 * Result_Image (i, j) + 6 * (Result_Image (i-1, Out of range) J) + Result_Image (i + 1, j) + Result_Image (i, j-1) + Result_Image (i, j + 1)) - 1 * (Result_Image (i-1, J-1) + Result_Image (I + 1, j + 1) + Result_Image (i + 1, j-1) + Result_Image (i-1, j + 1)); }} You can get Java for OpenCV or Java by using ProjectLibrary, if Java scanning does not support images by pixels Note = This algorithm may be disabled, there are some useful functions for filtering images in libraries

xml - Using importXML in Google Spreadsheets -

I am trying to get value from this page, the price I am trying to get from the last 30's The idea is, day it always says "imported XML content can not be parsed" This is my Google Drive import XML code = importXML (A1, " // * [@ id = 'youtube-summary-outer-wrap'] / div [5] / p / span / text () [1] ") A1 This should work, I test it Nutrition: = IMPORTXML (A1, "// * [[ID = 'FAD-header-view-30D']")

java - Cannot find symbol id in button -

Hello, I am creating a simple push button in Android and this is my main system file Package dk.troll.android; Import android App Import android.content.Intent; Import android.net.Uri; Importroid.os.Bundle; Import android.widget.Button; Import android.view.View; Import android.view.View.OnClickListener; Override public class main activity activity (button button; @Create) overwrite public zeros (bundle saved instenstate) {super.naught (savedinstenstate); setContentView (R.layout.main); addListenerOnButton ();} Public Zero addListenerOnButton () {Button = (button) findViewById (R.id.button1); button.setOnClickListener (New OnClickListener) {@Override Public Zero onClick (see arg0) {intro browserIntent = new intent (Intent.ACTION_VIEW, Uri.parse ( "Http://www.troll.dk"); startActivity (browserIntent);}})}} and this is my XML file & lt; xml no Version = "1.0" encoding = "UTF-8"? & Gt; LinearLayout xmlns: android = "http://schemas.android...

Using Bootstrap 3.0 with Browserify -

I am trying to use Bootstrap 3.0 with browser 5.9.1, but am receiving the following error: Uncaught ReferenceError: jQuery is not defined What is the correct way to do this? Here are the relevance parts of my package. Jason: {...} "script": {"bundle": "Browser men.js-o bundle.js - debug -list"}, "dependency": {"backbone ":" ~ 1.1.x "," jquery ":" ~ 2.1.x "," underscore ":" ~ 1.6.x "}," devDependencies ": {" browserify ":" ^ 5.9.1 ", .. .},. ..} Module which requires bootstrap is shown below: var $ = required ('jquery'); Var BABON = Required ('backbone'); Backbone $ = $; Required ('../../../../ bower_components / bootstrap-saas-government / assets / javascripts / bootstrap'); Two things that I do not like are here: Downloaded using bootstrap bover There is no way to use AFAIK NPM. What makes this path very lo...

What is ruby partial class? -

I've read that the code snippet below applies to partial class : class A DF puts one 'A' and end class B & lt; A.D.F. BAI 'BA1' & End Class ADBB 'B' & End Class B & LT; A.D.F. BA 2 'BA 2' & End OB = B.N.O.A.A. Ob.b ob.ba1 puts OBB2 two squares are b from the expanded two classes a . I can not understand how Ruby can know which A to b is expanded when making an example of b So how does Rabbi know which code is ? The execution result is: ab ba1 ba2 is an example of the initial B two B Code> Classes Can anyone explain this? When you type a class in ruby ​​ already declared , You do not override the square, rather patch . This means that the old definition of Ruby is not forgotten, but rather there is only one B class - this is both class B block. Example for : Sets class AF one 'A' and end A = A Au a. Public_maths (false) # = & gt; [: A] Category ADFB 'B' and...

java - Main purpose of SwingUtilities invokeLater -

मेरे पास यह कोड स्निपेट है import javax.swing.SwingUtilities; सार्वजनिक वर्ग क्लाएंट 1 {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] एल्ग्स) {स्विंग-यूटियल्सइन्वेकलेटर (नया रननाबल) (सार्वजनिक शून्य से चलाया गया) (// नया मायवंडो ("बेओग"); नया मायवंडोव वी 2 ("बायोग");}} ); }} क्या अंतर है अगर मैं स्विंग यूटीज का उपयोग नहीं करूँगा? मान लें कि कोड चलाने विधि के भीतर एक UI तत्व को संशोधित करता है यदि आप गैर-यूआई थ्रेड से उस कोड को निष्पादित करने का प्रयास करते हैं, तो वह असफल हो जायेगी: सभी UI कार्रवाइयां यूआई थ्रेड (उर्फ घटना प्रेषण धागा ) में होनी चाहिए। SwingUtilities.invokeLater आपको "कोड के इस बिट को चलाने के लिए कहने की अनुमति देता है, लेकिन ऐसा यूआई थ्रेड में करें" जैसे, पृष्ठभूमि थ्रेड्स के लिए यह बहुत अच्छा है जो अभी भी यूआई को अपडेट करना चाहता है। एक और विकल्प का उपयोग करना है, लेकिन यह हमेशा उपयुक्त नहीं है क्योंकि इसकी आवश्यकता है कि "जानता है" कोड को UI थ्रेड का उपयोग करने की आवश्यकता कोड है जो पृष्ठभूमि धागा सेट करता है...

awk - In Linux replace \n with \n\n from text (file) -

मान लें कि हमारे पास सरल पाठ है aaaa bbbb cccc आउटपुट: आहा बीबीबीबी सीसीसीसी कोई भी विचार यह आपके लिए (GNU sed) काम कर सकता है: sed जी फ़ाइल

svn - Clean-up a file -

I want to take action on a single file without affecting the rest of the files in the same version-controlled folder. Is it possible to clean a particular file? svn clean file is not at all - it is always global restored | Repair operation

php - why adding observer not working with me in magento -

Thanks for reading, I am trying to add new areas in the newsletter in Magenta. I searched and found what I think is the most correct but when I added my supervisor, Magenta is not saving new emails and some times the message was a problem with subscription appears here is the code: config.xml (my module was My_test in local): & Lt; Supervisors & gt; & Lt; Classes & gt; Exam / newsletter_observer & lt; / Square & gt; & Lt; Method & gt; Adding & lt; / Method & gt; & Lt; / Supervisors & gt; & Lt; / Newsletter_subscriber_save_before> and file ap / code / local / mine / test / model / newsletter / observer. Php: class My_Test_Model_Newsletter_Observer {add public function ($ supervisor) {// now there is nothing to do ..}} Can also help ?? Thanx in advance @All good, I see that you have an incident name missing & lt; Newsletter_subscriber_save_text ago & gt; & Lt; Supervisors & gt; & Lt;...

r - Check if row of a dataframe is equal to a row of another disregarding NA values -

I have two data.frames. DF1 can contain multiple rows, which are never used by NAS and it seems like: col1 col2 col3 col4 1 1 2 1 2 1 2 3 3 1 2 1 1 2 2 2 While df2 is always a line, it can contain NAS and it looks like this: col1 col2 Col3 col4 1 na 2 na I'm exploring a way to test for each line DF1 if DF2 is equal to the line that is dissolving all values ​​of NA . After checking for the above example, I hope: true false false true So far I have many combinations of all Have tried and which () but I have not found an efficient solution Thank you. You can: m1

swi-prolog progam "no change given" not quite returning denominations properly -

If I reduce 'abortion' in line 3, then the program estimates the required output on the screen like : ? - Salary with the largest _name (37, P) 25; Remaining = 12 pay with 10; Salary with balance = 2 1; Pay with Balance = 1 1; Remaining = 0 ended% execution aborted? - However, I need a 'pure' return-solution-when-hit-semicolon or return-in-list variation. ("Trace." Did not provide any clue). The best I can not get (3) with "3%" with 'blank'): ? - Make a payment with the largest _Denom (13, P) 10; Salary with Balance = 3 1; Salary with balance = 2 1; Pay with Balance = 1 1; Balance = 0 ends p = 10; Make a payment with 5; Pay with balance = 8 5; Salary with Balance = 3 1; Salary with balance = 2 1; Pay with Balance = 1 1; Balance = 0 ends p = 5; Make a payment with 1; 7 wages with balance = 7; Salary with balance = 2 1; Pay with Balance = 1 1; Balance = 0 ends p = 5; Make a payment with 1; Balance = 6 pay 5; Pay with Balance = 1 1;...

php - not able to create tcp server socket on ec2 machine with ubuntu platform -

I am trying to create a TCP server on an ec2 machine with the Ubuntu platform whereas the php is correct with the index.php file Running, the code returns incorrectly to the following command: socket_create (AF_NET, SOCK_STREAM, SQL_TCP); Although this returns incorrectly, socket_last_error () returns 0. I have checked the output of phpinfo (), and the table shows the socket as enabled. I have confirmed security group settings from AAS console, it allows SSH and http traffic. Please tell me what I remember in the configuration of the machine. Thanks in advance. socket_create (AF_INET, SOCK_STREAM, SOL_TCP); According to the documentation of itemprop = "text"> itemprop = "text"> , the correct criteria are: code> PS: Notice Type in AF_INET and SOL_TCP I tried it on a fresh Avenues t1.micro example and it worked. (PLS note that if you want to convey the external world on the open TCP socket then the rule may be added to the inbound ru...

c++ - c++11 how to use reference in vector? -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब मैं कुछ कंटेनरों का उपयोग कर रहा हूँ संदर्भ वेक्टर के संदर्भ में एक समस्या है और सामान्य रूप से इसका पता नहीं लगाया जा सकता है। त्रुटि C2039: 'vecMsg': 'std :: _ vector_iterator & lt; std :: _Vector_val & gt का सदस्य नहीं है ; Std :: _ Simple_types & lt; T2 & gt; & gt; & gt; ' सदस्य चर को क्यों नहीं पहचाना जा सकता? वेक्टर & lt; T1 & gt; vec1; वेक्टर के & lt; टी 2 & gt; vec2; वेक्टर & lt; T1 & gt; :: इटरेटर iVec1; वेक्टर & lt; T2 & gt; :: इटरेटर iVec2; वेक्टर & lt; T2 & gt; :: इटरवेक iInVec; संरचना टी 1 (सार्वजनिक: वेक्टर & lt; T2 & amp; & gt; inVec; } संरचना टी 2 {सार्वजनिक: वेक्टर & lt; std :: string & gt; vecMsg; } vec1.inVec के लिए कुछ डेटा इनपुट करें (iVec1 = vec1.begin (); iVec1! = Vec1.end (); iVec1 ++) {For (iVec2 = vec2.begin (); iVec2! = Vec2.end (); iVec2 ++) {// blaa अगर iVec1- & gt; इनवैक पीयूश_बैक (* ...

visual c++ - using CArray object in CArray -

मुझे CArray में CArray ऑब्जेक्ट का उपयोग करने की समस्या है // .h file class एरक्लास: सार्वजनिक कैरेरे & lt; int, int & gt; {सार्वजनिक: int m_id; शून्य Func1 () {m_id = 1;}; }; //। सीपीपी फ़ाइल शून्य सीटीस्टडीएलजी :: ऑन बीएनक्लेकेटबायटन 1 () {ऐर क्लास एआरए 1; कैरेरे & lt; एरक्लास, एरक्लास & gt; arr2; arr2.Add (arr1); // त्रुटि !!!! } यह त्रुटि है: त्रुटि C2248: 'CObject :: CObject': वर्ग 'CObject' में घोषित निजी सदस्य का उपयोग नहीं कर सकता है मैं इसे कैसे हल करता हूं? कृपया मेरी मदद करें! सीर्रे इसकी तत्व प्रकार को कॉपी करने योग्य होना आवश्यक है - लेकिन यह स्वयं नहीं है copyable। इस कारण से, आपके पास सीएआरए के सीरा एस नहीं हो सकता है। इसके बजाय std :: vector का उपयोग करने पर विचार करें। / P>

python - How can i create my own SIGNAL and channel it to a SLOT? -

On a mouse click on the QLineEdit widget, I want to clear my content completely. QLineEdit does not have any indication to detect mouse clicks, so I've written the class below for installEventFilter. But please suggest that I can channel it to "SLOT" ("clear"). Suggestions where I'm missing something - square mouse click (QObject): def __init __ (self, parent = none): super (mouse click, self) .__ init __ (Parent) Def eventFilter: (event.type () == QEvent.MouseButtonPress): self.emit (Signal ("A"), "A") False class form (QDialog) return: Def __init __ (self, parent = none): super (form, self) .__ init __ (parent) self.UsrName = QLineEdit ("user name") self.filter = mouse click () self.UsrName.installEventFilter (Self.filter) self.connect (self.UsrName, Signal ("AA"), S Do not use event filter ("clear")) > self.UsrName = QLineEdit ("user name") self.UsrName.mousePressEvent = La...

GO: Serve static pages -

I'm trying to display a static page with Go. Go: Package main import "net / http" function main () {fs: = http.FileServer (http.Dir ("static / house")) Http: .handle ("/", fs) http.ListenAndServe (": 4747", zero)} directory: project / stable home Html edit.html project.go When I run it, the web page displays links to edit.html and home.html instead of displaying a static page from home.html is. What am I doing wrong. Is this the best way to serve files? I know that there are other ways like From the HTML / templates package, but I'm not sure what is the difference between each of these methods and when. Thanks! fancy main () {http.Handle ("/", http.FileServer (Http) .ir ("static")) http.ListenAndServe (": 4747", zero)} You do not need static / home , just Static . and when you do not have index.html in / static , the directory instead Content appears. Just change the name of...

ios - UIImagePickerController and fatal error: array element cannot be bridged to Objective-C -

Image
I'm making UIImagePickerController to take a picture like this though, in this statement, / P> cameraUI.mediaTypes = [kUTTypeImage] This shows an error like this: Fatal error: array element Can not be built in Objective-C How do I do? I'm now using Xcode 6 Beta version 4. presentCamera function () {cameraUI = UIImagePickerController () cameraUI.delegate = self cameraUI.sourceType = UIImagePickerControllerSourceType.Camera cameraUI.mediaTypes = [kUTTypeImage] cameraUI .allowsEditing = false self.presentViewController (cameraUI, Animated: true, perfection: zero)} Edit - I have such an error. You need to import as MobileCoreServices as defined in kUTTypeImage MobileCoreServices as Go kUTTypeImage: CFString . Therefore add MobileCoreServices and import MobileCoreServices to your .swift file. > -> Go to link libraries -> + -> MobileCoreServices.framework Import to and your .swift file. Edit : As kUTTypeIma...

eclipse - RCP's ViewPart does not refresh? -

I'd use 'IFolderLayout' to include two ViewParts. When I drew the border to control the size of the 'IFolderLayout' I, if will refresh as the first Wup-paint contains active ingredients resize But if Wupbar will not refresh content is active. This means that ViewPart will show 'Blurred Screen'. So the question is the way to decide?

javascript - Table [Row] cannot be deleted using jquery -

I'm having trouble deleting table row by using the button. Live: HTML: & lt; Select class = "Cambodia Form-Control" & gt; & Lt; Option value = "" selected = "selected" & gt; Choose a person & lt; / Options & gt; & Lt; Options & gt; Bob & lt; / Options & gt; & Lt; Options & gt; Kelly & lt; / Options & gt; & Lt; / Select & gt; & Lt; Br> & Lt ;! - Table - & gt; & Lt; Table class = "table" & gt; & Lt; Thead & gt; & Lt; Div class = "container" & gt; & Lt; TR & gt; & Lt; Th & gt; First Last Name & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Div & gt; & Lt; / Thead & gt; & Lt; / Table & gt; JS / Jquery: $ ('.combobox'). Change (function (e) {var selectedVal = $ (this) .val (adend ('& lt; tr & gt; & lt; td & gt;' + selectedVal + '& ...

What schema, database, searching libraries are good for storing thousands of book pages in c# app -

I write a C # program to store some books with 5000 Wish pages But here are some important problems for which I need your help and advice: The ability to search the content of all books is one of the most important and challenging features of the app. The time required to find a word should be about the time in which it is necessary to find words in Microsoft Word or PDF document (with the same size) or more. What method should I work to store books in order to get the appropriate aptitude to search the material? In the case of using the database, Indexing is necessary and necessary? Which method or algorithm or library is better to use for finding full content of books? Is it possible to use lucene or solar in a standalone window app or will the traditional search system be better? This program should be customized in such a way that the publisher can add your own book content How do I manage this feature (can I use XML )? Allow users ...

shell - How to ensure file written with sed w command is closed -

I am using the command 'sed' to get labels from a tax document using labels: / \\ Label {[a-zA-Z0- 9] *} / w labels.list This script is part of a pipeline, in which Later, awk reads the file that Said has just written. E.g. Cat Bob | Sed -f sedScript | | Sometimes the pipeline generates the correct output, sometimes it does not (exactly the same input file 'for bob'). It's random. I can only conclude that sometime he tries to read the awk file before he has shut it off properly. Anyway, can I force the rabbit to close the file at the end of the script, or what could be the problem of any other suggestion? All steps for running a pipeline in parallel. It is a very important and defining feature of pipes, and there is nothing that you can do or do to stop or stop it. Instead, you should rewrite your script so that all data dependencies can be executed and that will end in the order you need it. In the general case, you will bob . Sed -F sedScri...

Python character alias to function -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब Python में वास्तव में sqrt () फ़ंक्शन करने के लिए वर्ण '√' को संबद्ध करने का कोई तरीका क्या है? गणित आयात से sqrt प्रिंट sqrt (9) & gt; & gt; & gt; 3.0 प्रिंट √ 9 & gt; & gt; & gt; 3.0

java - Custom JAXBContext for a Jersey service -

I am writing a REST application using GlassFish 4 and jersey. I have @XmlNamedObjectGraph in some entities, so I need to expose only one on a some service end points (may be in the same class) that only Is it possible to set up OBJECT_GRAPH Marshalar Property What is the procedure to do this? >

How to use Google Places API for android? -

I want to use Google Placese API using 'name' in Android. But I can not figure out how to use the name in Android and can find out how to use just the types. For example, types = cafe | Bakery But, I do not want to use names. In other words, I want to use a name like a store, B-cafe etc. Do you know how to use the name of the place in Android? I really want to get the answer. Thanks in advance :) Use name or keyword parameters

haskell: factors of a natural number -

I am trying to write a function in Haskell which excludes itself and calculates all the factors of a given number The result should look like this: factorlist 15 = & gt; [1,3,5] I'm new to Haskell and the whole recap of the topic, I'm pretty sure I'm ready to apply in this example but I'm not My idea is to compare the given number with the first element of the list with the div 2 with mod . Function but anyhow recursive and if the result is 0 , then I will add a number to a new list. (I hope this means understanding) I appreciate any help on this matter So far my code is: (This does not work .. But somehow to clarify my view) factorList :: int -> [Int] FactorList N | N`med` head [1.ddi2] == 0 = x: [] There are several ways to handle this, but first of all, let us write a little helper: isFactorOf :: Integral A => A - & gt; A - & gt; In this way we can write 12 'isFactorOf' 24 and get either true Or incorre...

ios - found nil while unwrapping an Optional value - spriteKit -

I have a problem in my touch event function, it says "Fatal error: unexpectedly while opening an optional value Zero found "I'm trying to click on a node under a label, overview to touchesBegan function. (Touches: NSSet !, withEvent Event: UIEvent) {Location: CGPoint = touches.anyObject (). LocationInNode (self) nodes: For NSArray = nodesAtPoint (space) node: {println ("node name:" + node.name) // here error in anyObject nodes // here error} Error: Fatal error: node name: mylabel node unexpectedly while unwrapping an optional value equal to The console output found name: MyNode The problem only appears on my device, it works perfectly on the simulator. Xcode 6.4, SDK 8.0, Target 7.0, Device 7.1.2 Edit: In this view, my only phantom code is score.text = " 0 "score.name =" scoreLabel "score.fontName =" Chalkduster "scores SKLabelNode = SKLabelNode (): When I click on it got unwrapped error .fontSize = 42...

Casting with multiple inheritance in C++ -

The following code is not compiled, and GCC -STD = C ++11 says that it Is a temporary static cast: class A {public: virtual ~ A () {}}; Class B {Public: Virtual ~ B () {}}; Class Eddie: Public A {Public: Virtual ~ ed} () {}}; Class AB: Public B, Public A {}; Class ADB: Public B, Public Eddy {}; Int main () {ADB ADB; ADB * PTR = ADB; AB * Cast = Static_cast & lt; AB * & gt; (PTR); Return 0; } I want to insert a class type from ADB to AB It should be safe to do this after , Who himself has himself a member of A followed by edi . Thus, it appears that the compiler is forced to interpret ptr as AB : class A {public: Virtual ~ A () {}}; Class B {Public: Virtual ~ B () {}}; Class Eddie: Public A {Public: Virtual ~ ed} () {}}; Class AB: Public B, Public A {}; Class ADB: Public B, Public Eddy {}; Int main () {ADB ADB; ADB * PTR = ADB; AB * cast = reintrip_en & lt; AB * & gt; (PTR); Return 0; } This does not compile either, resulting in the Link...

c# - I upgraded my ASP.net website to .net 4.5 and now gridview doesn't show data -

I recently posted to my ASP.NET website. 4.5 has upgraded and suddenly my grid view control does not show any data using this code. It will show just fine before upgrading 'Database' is a custom class that I have created to connect to my SQL database and run questions against it. It uses an OLEDB connection Dataset data; Int retValue = 0; Data = database. Ekatek SQL Stattament ("Select from my tylle", ref rate value); GridViewTables.DataSource = Data; GridViewTables.DataBind (); "AutoGenerateDeleteButton =" true "OnRowCancelingEdit =" gridViewTables_RowCancelingEdit "OnRowEditing =" Gridwuwubls_rau editing "Onroupeting =" Gridwuwubls_rupapdeting "Onrvdeted =" Gridwuibublstab_red deleted "Onrodeliting =" Gridwuvtibls_rodileting "& gt; & Lt; / ASP: GridView>

opencv - How to deal with 8UC3 and 8UC4 simultaneously in android ndk -

Using my code below, my code is working fine with the brightness in the image jint * _in = env- & gt; GetIntArrayElements (in, 0); Jint * _out = env- & gt; GetIntArrayElements (outside, 0); Mat MSRC (height, width, CV_8 UC4, (unsigned char *) _); Mat bgra (height, width, CV_8 UC4, (unsigned char *) _ out); Of vector & lt; Mat & gt; SChannels; Division (MSRC, sChannels); For (int i = 0; i & lt; sChannels.size (); i ++) {MAT channel = sChannels [i]; EqualizeHist (channel, channel); } Merge (sChannels, bgra); Env-> Releaseintheatrelease (in, _in, 0); Env-> Release Initrements (Out, _out, 0); Jint Retal; Int rate = 1; Retal = h int (retal); Return rate; This image also works for me to convert to grayscale, but in this way: Mat mSrc (height, width, CV_8UC4, ( Unsigned char *) _in); Mat gray (height, width, cv_ 8 UC1); Mat bgra (height, width, CV_8 UC4, (unsigned char *) _ out); CvtColor (MSRC, Gray, CV_BGRA2GRAY); CvtColor (Gray, bgra, CV_GRAY2BGRA); ...

c# - How to retrieve/import object using MEF in Prism -

I need an object ( RuleFile ) for the whole application (* .docs) The file that will be attached to my application. I am using Prism 5 with MEF as a dependency injection container. [Export] [Serializable (public)] Public Class Rule File: NotificationBase, IreneFile {} I now decorate the object with [export]] and trying to import it into one of MyViewModel but it is giving null . Public class MyViewModel: ViewModelBase {[Import] Private rulesfile rulefile; // 'tap' is coming here) Please tell me what am I missing? Or tell me another way to handle this scenario better. Are you checking the value in the constructor? Directly decorated on the property are resolved after the constructor. If you want to use the RuleFile in the constructor, you must set this way public class MyViewModel: ViewModelBase {public Niamfail RuleFile {get; Set; } [Importer resource] Public MyViewModel (RuleFile ruleFile) {RuleFile = ruleFile; }} Alternatively, you can impl...

javascript - Backbone model change and view render update -

I have an express app with back end session, and in front I have a BABON + requirement I have my problem The session is near the model, and the change event that triggers the render method on ideas. Such: The app has a home view, so the session is a listener for the "change" event of the model, and runs the "render" method. Users with no credentials go from home to a public page, say / talk about / There, user login (user / password) that entered the entrance. Due to the listener in item 1, the container element is updated with the new home content, but the user is still about /. So, the question is: How do I avoid this bad behavior so that only the events listen when the right path is active? One code example: "harsh use"; Var session mode = backbone.model. Extension ({}); Var sessionmodel = new session model (); Var Homeview = Backbone View. Expansion ({initialize: function () {this.listenTo (SessionModel, "change", this.r...

Using SOAP with WSDL in Android -

I used to work with difficult coded data, now I get a web service WSDL Code> Soap Objects . WSDL Compliance with the instruction, I have created a class with the correct areas and extract it by those fields. But in the instructions for using this web service, it asks to use a simple soap coding to generate client classes based on the WSDL. What does this mean? This means that you can use a tool to create your web service customer classes This tool generates Java classes based on the definition of WSDL service. For example, you can see that you simply submit the WSDL and then download the generated source files.

xml - XMLStarlet - UTF-8 Nordic characters -

To use an XMLStarlet (windows) to edit an RSS feed, but the Norwegian letter 'ANSA' There are some issues with. I am using an example found on this site () This is my feed. Xml is (Notepad ++ says it is encoded in UTF-8) I am not using the following example because it is for Linux script, but my long command line is similar. # ! / Bin / sh TITLE = "Test Title ÆØÅ" LINK = "http://www.example.com" DATE = "` Saturday, 26 July 2014 01:14:30 + 0200` "xmlstarlet ed -l -a" / / Channel "-tmm-nmad-v" "\ -s" // item [1] "-t emil - t-- v" $ tITLE "\ -s" // item [1] "-t Elem -n link -v "$ LINK" \ -s "// item [1]" -t elem -n pubDate -v "$ DATE" \ -d "// item [condition ()> 10]" Feed .xml; Windows Command Line (What I'm using): xml.exe ed -l -a "// channel" -t elem - N item-v "" -s "// item [1]" -t elem -n title -v...

backbone.js - Use of the url parameter in Backbone.Model.extend -

I'm new to the spinal cord and I'm wondering if the URL parameter is used to type Apikformmodel = Bakbonkmodel.andend ({default: {success: false, Setadeta: ''}}}); I pre a will undesired error: a "url" must specify property or function What URL whom I method needs to be expanded it says the document relative URL access will be based on the model of the resource server. If your models are located elsewhere, then override this method with the right logic. What do the resources mean? If you want to send and receive data on the server / back, should know the spine Where is the server The URL is exactly the same. If you do not set this property and try to sync with the server, then the spinal cord will throw this exception.

ruby on rails - Streaming-download a gzipped file from s3 and unzip it? -

I was trying to use a jizip file using the AWS-SDK from the S3 bucket and then the file was zlib Wanted to open using. My code for this part is: File.open ('app / assets / data.xml.gz', 'wb'). File | Bucket.bags ['linkshare_temp / data.gz']. Read | Chuck | | File.write (flywheel) Ending Zlib :: GzipReader.open ('app / assets / data.gz', 'rb'). Gz | File.new ("data.xml", "w"). G. IO.copy_stream (gz, g) end and this gives me this error: Zlib :: GzipFile :: Error: Not in gzip format The file was downloaded from s3 to my local disk. I can see the file with the correct name and "xml.gz" suffix in my local folder, but for some reason I can not open that file. I think there is something wrong with my code to download from s3. Thanks in advance.

How to find two close events (that have a datetime component) in python -

I have an object that represents an event, and I have several objects. I join_events = [[event_a.time, event_a] The best way I can get this to do is: details, event_b.time, event_b.description] event_a in events_a in events_b in event_b if abs (event_a.time - event_b.time) & lt; But I expected that there was a better way to do this. Text "itemproc =" text "> Beauty is in the eye of the beholder, but hopefully it is less unlucky for you :) import itertools import from datetime Product Delta = Datetime.timedelta (hours = 1) join_events = [[a.time, a.description, b.time, b.description] for A, b in the product (events_a, events_b) if abs (a.time -b.time) ) & Lt; delta]

grails - Use GORM inside spock functional test to insert data in db -

I would like to use GORM to set up test data in functional tests written with spock since I do not want to fake the behavior , So I got an exception java.lang.IllegalStateException: The method was used outside of the Grails application on the [com.test.Person] class. If the use of the Malling API or BootStrap Grails is being correctly implemented in the context of a test Is there any way to use the Goram in this way? I have seen the remote control plugin, but I do not want to use it and AFAIK should be in the same JVM because I start testing without the - war switch. BuildConfig.groovy (see for more information), if Falb execution is enabled. You have to disable it, but you will also lose some of its other positive aspects. You have only the right option, so use it with some construction (Example from remote-control plugin: def remote = new remote control (def define) (def {} = Remote {Deaf person = new person (name: "m") person.save () person.id} // Some re...

mysql - Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' -

I am trying to connect to an Android app that is located within the WAMP server. I am constantly getting this error in my php_error log: PHP startup: load the dynamic library 'c: /wamp/bin/php/php5.5.12/ext/php_intl.dll' Unable to locate the specified module was not found. In the Unknown in line I click on Apache> Version> 2.4.9, then I get 2 following errors as popups: Program starts because icuuc51.dll is missing from your computer. Try fixing the program to fix this problem and PHP startup: dynamic library 'c / wamp / bin / php Unable to load / php5.5.12 /ext/php_intl.dll 'specified module was not found. Do anyone know what is the reason for this or any possible solution? This can be done very simply. Use the wampmanager menu to do the following: - left click wampmanager - & gt; Apache - & gt; Version and then click on version number, maybe 2.4.9 to rebuild this WAMPServer in all SYMLINK's Apache 2 Will give the r...

zip - Can data be added to a file for better compression? -

If I understand the basic idea of ​​zip compression correctly (and I think compression in general), then compressed files are found only in the pattern I The original figure was expressed in small signaling. There were compression algorithms out there that were not once to add junk / unimportant data insert patterns in a file? Does it violate some file integrity rules, or even the returns are decreasing? Mostly I was thinking of adding white space to a place that does not care about it, such as an HTML file. Edit: A more concrete example would probably be better: .class-a {display: block; Color: #fff; }. Class-B {display: block; Color: # FF;} Obviously that commute (and reusing classes) will be the best practice here, but it can do an algorithmic thing, humans do not have to Want to add any spaces to use any amount? EDITEDIT: It all looks like some strange parody of harmful compression, now I think about it. Gany compression or some crap. No, the amount of informat...

c# - Best way to create a downloader -

What's the best way to implement a downloader inside a launcher (for my application)? I thought about these methods: Direct HTML Download FTP via Torrent And I was wondering what is the best either the frontend and the backend (and probably the safest) Thanks

continuous integration - not ok PhantomJS exited unexpectedly -

$ testem ci नहीं ठीक है 1 फ़ान्टमजेएस - ब्राउज़र "फाटमॉम्स /होम / बुंटु / एन एन एम एम / v0.10.12 / लिब / नोड_मॉड्यूल / टेस्टेम / एससेट / फिंटॉम.जेएस http: // स्थानीयहोस्ट: 7357/6092" अप्रत्याशित रूप से बाहर निकल गया 1..1 # परीक्षण 1 # पास 0 # असफल 1 $ फाटॉमज - वर्जन 2014-07- 28 T00: 24: 22 [चेतावनी] पुस्तकालय को लोड करने में असमर्थ आईसीआईआई 18 एन "लाइब्रेरी आईसीआईआई 18 एन लोड नहीं किया जा सकता है: (लाइबिक्यूआई 18 एन। एसओ .8: साझा ऑब्जेक्ट फाइल नहीं खोल सकता है: ऐसा कोई फ़ाइल या निर्देशिका नहीं है)" 2014-07-28 टीएंड: 24: 22 [चेतावनी ] Phantomjs: एक्स सर्वर से कनेक्ट नहीं कर सकता क्या गलत है? testem कमांड ठीक काम करता है और सभी परीक्षण पास में क्रोम यह एक बुरा phantomJS स्थापना थी। $ Sudo apt-get phantomjs $ npm को अनइंस्टॉल करें फाटकॉम -जी $ एनपीएम फास्टनमज -जी

sql server - How to group projected revenue (same, daily, fixed amount) by month between two dates -

The table I am using is revenue_start_date, total_reven and day and month and revenue group for me . Daily revenue amount is clear (total / rave / day) but I do not know how to group revenue groups monthly. For example, if a line item starts at 8/25/14 and has a revenue of $ 5,000 for 50 days, then daily income is $ 100, August will total $ 600, September 3, 000 And $ 1,400 will be I am thinking that I should create a function that includes $ 100 for each day in a temporary table and then asks the table and by a group. Is there a way to insert a cursor without using it? Using it: - ===== "Inline "CTE-operated" Tally Table "produces values ​​ranging from 0 to -1000 ... enough VARCHAR (8000) to cover with E1 (N) 1 Select All Union 1 All Select 1 Union Select All 1 Union Select All 1 Union Select All 1 Union Select All 1 Union Select All 1 Union Select All 1 Select Union All 1), --10E + 1 or 10 Rows E2 (N) AS Select 1A, 1B to 1, select --10E + 2 or 100 ...

javascript - Page uploads file twice? -

I am trying to include the upload progress bar on my page. I have been successful in getting the progress bar using this method: When the user is clicking on the upload file, the progress bar does business and shows how much is uploaded and when it is completed. However, when the user submits the form again, the file is being uploaded again (the Chrome file shows upload information at the bottom of the screen). How can I avoid him? Also, how can I get it, so do not upload file button? All I want is the submit button, the progress bar is showing progress and then the upload is going on to a different page (some via PHP which needs to be posted with the information )? My relevant code is below ... & lt; Form method = "post" action = "../../ property / php / actiontest.php" name = 'main form' encrypt = "multipart / form-data" onsmitt = "reverse checkform ()" & gt; & Lt; Input type = "text" name = ...

node.js - How to get access to custom object express application in all templates? -

मेरे पास एक साधारण नोडज एक्सप्रेस एप्लिकेशन है। उदाहरण के लिए: export.test = फ़ंक्शन (रिक, रिस) {res} कस्टम वस्तु (उदाहरण के लिए रिक या आरएससी) का उपयोग कैसे करें? .render ('test', {'req': req}); } स्थान / टेम्प्लेट टेस्ट के लिए ऑब्जेक्ट रिकॉइंट रिटर्न करें। क्या यह डुप्लिकेशन्स कोड के बिना सभी स्थानों / टेम्प्लेटों के लिए करने के लिए है? आप इसे एक कस्टम मिडलवेयर में कर सकते हैं आपके मिडलवेयर / रूट स्टैक में कहीं ऊपर: ऐप.उसे (फ़ंक्शन (रिक, रेस, अगली) {res.locals.req = req; अगला ();});

javascript - jquery mobile collapsable checkbox list -

I've created a compressed checkbox list inside a popup using jquery mobile. The problem is that there is a blank space on the left side of the list item and checkboxes (spaces) how can I get rid of this empty space, and keep the 100% check box in the consumption container? Thank you Markup given inside your popup like this: & Lt; Div data-role = "compressed" data-abbreviated = "wrong" & gt; & Lt; H4 & gt; Title & lt; / H4 & gt; & Lt; Ul data-roll = "list view" id = "myList" & gt; & Lt; Li & gt; & Lt; Label & gt; & Lt; Input type = "checkbox" name = "checkbox-0" /> Check me & lt; / Labels & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Label & gt; & Lt; Input type = "checkbox" name = "checkbox-1" /> Check me & lt; / Labels & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Label ...

osx - Popover for an OS X status bar app on NSStatusItem (MAAttachedWindow alternatives?) -

Image
I'm trying to show some message to my Mac OS X application icon to be in the message bar only: I believe that there was one thing 7-8 years ago but I could not even work my demo and not written for the ARC. I am thinking that whether there is an open source library or some code snippet, the same thing people use these days, even by finding the coordinates of my status bar icon, Are getting. When I click the user on my icon, I do not want to show it pop, I will show it only to show the head that the app is in the status bar. I recommend using NSPopover if possible, but If it does not meet your needs, then you can always try, or if you decide to go with NSPopover , you might want to see that it seems promising, though I personally Have not been tested as usual.

php - Is there a way that I can use sprintf() to limit a line/field size? -

I wrote a bit of the following code and if there is a way so that it does not do that I have to Could have limited line of line overflow and wrap in a new line. "Category product selected" echo "\ N"; Echo "------------------------------------------------ ------------------------- \ n "". "; Forex currency ($ category_page $ key = & gt; $ value) {echo sprintf ("% 8s% s", $ key, $ value) "\ N"; } Keep in mind that this is a plain text formatting for e-mail / file in bears. Thanks Dagon. "Category product selected" echo "\ N"; Echo "------------------------------------------------ -------------------------------- \ n "". "; Forex currency ($ category_list $ key = & gt; $ value) {$ wrap_value = wordwrap ($ value, 60, "\ n", TRUE); Echo Sprint ("% 8s% s", $ K, $ Work_Value) "\ N"; } I did not know how to add it as an empty space, so...

jekyll - Iterate over a list of posts and compare the date -

यह पदों की सूची दृश्य के लिए मेरा मार्कअप है: & lt; ul class = "eventlist" & gt; {% Post.osts में पोस्ट करने के लिए%} उलट गया है & lt; li class = "eventlist-element" & gt; {% If post.href%} & lt; एक वर्ग = "eventlist-element__link" href = "{{post.href}}" & gt; {% Else%} & lt; एक वर्ग = "eventlist-element__link" href = "{{post.url | प्रीपेड: site.baseurl}}" & gt; {% Endif%} & lt; समय datetime = "{{post.date | तिथि:"% Y-% m-% d "}}" वर्ग = "इवेंटलिस्ट-तत्व_डेट" & gt; & Lt; span class = "eventlist-element__date-day" & gt; {{पोस्टडेट | | तिथि: "% d"}} & lt; / span & gt; & Lt; span class = "eventlist-element__date-day-name" & gt; {{पोस्टडेट | तिथि: "% a"}} & lt; / span & gt; & Lt; / समय & gt; & Lt; div class = "eventlist-elemnt-infowrap" & gt; & Lt; span c...

javascript - Using a variable in D3 data method to pull JSON data -

Then I am pulling data from JSON code, but I want data to be one variable (which I will give the user menu ) And no direct reference. I was just wondering what could happen after 'D'. Be a variable? If not, I would love to hear some of the proposed solutions. Here is an example of a solution that I am hoping to achieve. canvas.sctall ("circle") .data (finaldataset) .enter (); Var userbillultviarb 1 = some stringmediacheckmenen; Var userbillultvierable2 = some string mediatectatmain; Var userbillwirewire 3 = some stringmediacheckman; ("C", function (D) {Return D. Eusubbuilt semimetube 2}). ("Whistle" ("cc", function (d) {return d.usbalbt variable 1}. Rrt ("c" r ", function (d) {return d.userBuiltVariable3}); JSON code looks like this; "country": "Wales", "BoyWaryday 1102": "0.9", "BoySensawack-1102": "1.2", "Boyleththonau 1102 "1.9", ...

java - I get an error when I try to finish an arguement in Android Studio -

When I try to debug an app then gives me an error while describing the expression of the candidates Click on the public ( view) {contact contact = new contact (dbHandler.getContactsCount (), String.valueOf (nameTxt.getText ()), String.valueOf (phoneTxt.getText ()), String.valueOf (EmailTxt.getText ()), String.valueOf (addressTxt.getText ()),); There is a comma at the end of your line: New Contact (........., String.valueOf (addressTxt.getText ()),); ^ You have to remove it

haskell - Which data structure to use when implementing Birdson's Poisson-Disc Distribution -

I am trying to write a function which creates a set of digits (:: (float, float )) Use Hoskel by using POSON-disk delivery I am using Burden's algorithm . Points are placed in a grid, it is not that once per cell is no more. By doing so, the closest neighbor problem decreases from o (n) to o (1) . My question is, what kind of data structure should be used for this grid. Javascript uses unstable arrays and for-loops, because it is essential to do the languages. I can use this approach to vectors but I think that there may be a better functional data structure. What structure might be suitable for this grid? Is this the place to use commodities ? For the closest neighbor problem, Voronio has a general structure in the name of the diagram. From the point of view on that diagram, you can find the closest neighbor in O (Log N). I think o (1) is impossible unless there is some other special feature for your problem. For point placement, you can use the series method...

c++ - return an immutable POD class from a function -

reference I am working on a large project related to different modules. We have a Exporter A template function Export & lt; T & gt; (Const T & OBG) which works only on POD types (this does static_assert for is_pod if you are keen). Currently I am sitting on the part of the system which is responsible for listing some institutions (their type is irrelevant) which is described by Metadata metadata itself MetaData description (const entity & Obj) is returned by a function called , and should be irreversible after returning. Of course, the function automatically sets metadata members in their body. Problem Due to the facts outlined above, because I have the Const POD type since the POD type, the member variable should not be self const Returning const from the convertible value directly to details (or not very useful to say the least). Solved solutions So basically what have I thought so far: Overload exporter.export & Lt; T ...

How can I change PictureBox size incrementally and smoothly ? ( in winforms , c# , visual studio 2013 ) -

I have a button whose width is 290 and height 145, which is first hidden. I want to show PictureBox in a while, while the button's mouseent event occurs. So I tried this code: Private Zero Button 1_MouseEnter (Object Sender, EventArgs e) {pictureBox1.Size = New Size (0, 145); PictureBox1.Show (); Picturebox for size (int i = 0; i But it shows the image box immediately with the primary size. I found the same question in this site (), but in reality the answer could not help me, too. Your code performs all at once, so whatever you see will change suddenly . Use a timer and gradually increase the size when the timer sticks. timer = new timer (16); // ~ 60 fps timer. Elapsed + = New ElapsedEventHandler (Timer_Apple); ... Private Zero Button 1_MouseEnter (Object Sender, EventArgs E) {pictureBox1.Size = New Size (0, 145); PictureBox1.Show (); Timer Competent = true; // Enable it} ... Private Zero timer_added (object sender, ElapsedEventArgs E) {if (Picture box 1 wid...

Does removing an Android permission prompt users' consent again? -

I'm planning to remove Android's permission from my AndroidManifest.xml. I'm curious if users will be notified with a permission dialog again or not when they upgrade the app to the new version. Thanks No, if you have less permission than previous version If needed it does not prompt the user again.

is it possbile to locate an element created by javascript using webdriver? -

In firebug, I used the element inspector to detect an element, and then the name of that element is WebRider FindElementByName By the work of, but it complains that the element can not be found, the element has been changed by javascript, because I can not find the use of "View Page Source" if it is possible to find such an element in a WebDriver ? Do you have at least HTML? What I'm assuming is that you have to wait until you finish your JavaScript. If your app uses jQuery then use it and then find the element using the attribute. In that case you have to be perfect with the selector. Something I should be thinking is what I am thinking. By.CssSelector ("[type = 'checkbox']") / / attribute = attribute value

hadoop - Not able to run sqoop using oozie -

When I'm running a minimum command command from CLI, I'm able to export the data to Oracle DB, but On the same order, I am using the Ozzy workflow, I am having problems. Command running directly from CLI: sqoop export --connect jdbc: oracle: thin: @ 192.168 245.1: 1521: XE - User Name HR - Password HR --table HR Review_final - ExportDirectory / User / Cloeder / Review / Hive / Review_Final - Input-field-Terminated-By '\ 001' & lt; Order & gt; Export - Connector jdbc: oracle: thin: @ 192.168.245.1: 1521: xi - -name hr - password hr --table hr. REVIEW_FINAL - Export-DIR / User / Cloeder / Review / Hive / Review_Final - input-field-terminated-by '\ 001' & lt; / Command & gt; Exceptions that I see in logs: java.io.IOException: data can not be exported, please see the failed Map Work Log on OG Apache.sqoop.mapreduce.TextExportMapper.map (TextExportMapper.java:1212) at org.apache.sqoop.mapreduce.TextExportMapper.map (TextExportMapper...

javascript - Bootstrap Modal won't close, previously appended to Body using JQuery -

So I go to all the difficulties to get a modal and working text box, then I close it Go to the AJAX success event, but nothing seems to work I'll try. var id; Var refundarm = ''; Var Token = $ ("Meta [name = 'CSRF-Token']"). Attr ('content'); $ ('[Data-Toggle =' Model ']'). Find ID from ('click', function (e) {var checkEventCount = 1; var prevTarget; // Models href attribute ID = $ (this) .attr ('href'). (/ [^ 0-9.] / G, ""); $ ('# new_refund_modal' + id) .on ('show.bs.modal', function (e) {if (prevofarget == 'undefined' || (CzechEventCount == 1 & amp; Amp; e.target! = PrevTarget)) {prevTarget = e.target; CzechEventContent ++; E.Pravant Default (); $ (E.T. ('$'), ('$'), () () () () (Value)) = Refund Amount (Refund amount = $ (this) .val ();}});} And if (e.target == Navigate & amp; amp; Number == 2) {checkeventcount--;}});}); $ ('Refund-deposit-BTN...