Posts

Showing posts from July, 2015

Rails throwing error: Association named 'media' was not found on User; perhaps you misspelled it? -

So I'm trying to find all users who have made a comment under the same picture. The psql terminal I write it and it gives me all the information that I need: select * Come to the users, users.id = comments.user_id in the media Media to join .ID = Comments can include internal media. Media_id where media_id = 1 I am currently doing this in the rail: @users = User.joins (: Comments: Media) .where (Media_id = @ medium.id) I should work. But when trying to print all the usernames from my code in @ , this error is thrown: The association named 'Media' Not found on user; Maybe you misspelled it? Did I do wrong work in my pen? DB Schema: create_table "media", force: true do | T | # Unrecognized columns using t.integer "user_id" end add_index "media", ["user_id"], name: "index_media_on_user_id", :: btree create_table "comments", force: true do | T | # Indispensable column t.integer "user_...

create a list with content of multiple zip files in linux -

I am trying to create a script for linux which is a list with all the files inside the directory from all directories Will make / P> #! / Bin / bash * .zip * "-type f` for the file in / Find / home -iname" * * unzip-l $ (echo $ {file}) & gt; & Gt; /home/list.txt This works, but only when there is no white space in the file name. What can I do to make this work? You find this command to execute a command for each file Maybe try to do something like this: find / home-name "* .zip *" -type f -exec unzip -l {} \; & Gt; /home/list.txt

openssl - is RSA private key less than public? -

When I create a pair of RSA by OpenSL, it seems that the private key (personal exponent) is always less than the public key (modulus). ). Is it from RSA Design? This is not a requirement, but there is no reason to grow it compared to modulus: Personal exponent d is calculated to satisfy the public exponent e and the modulus n : ed ≡ 1 mod φ (n) Now, if we believe that d & gt; Φ (n) , then we can define d '= d mod φ (n) , and not only d' & lt; Φ (n) , but the above relationship still holds, that is: ed '≡ 1 mod φ (n) Thus D ' is also a valid private exponent, and since φ (n) , d ' should also be less than n . Since a large private investor needs more storage, and (at least nostalgic implementation) decryption slows down, the least possible private exponent is most suitable.

xcode6 - How to programmaticlly center verticaly a label in swift ? -

Image
I have a problem with the label; I'm not sure about standing this label: textRect = NSMakeRect (newX, newY, 400, 400) to textTextContent = NSString (string: "label") let textStyle = NSMutableParagraphStyle.defaultParagraphStyle (). As mutableCopy () NSMutableParagraphStyle textStyle.alignment = NSTextAlignment.CenterTextAlignment horizontaly easy, but verticaly I find a way to do it coudn't .. Thanks for the help, and sorry for my english! I think that any alignment like qualities to have container Use the view to stop the label to focus the center. You have the form of obstacles program can add: containerView.addConstraints ([NSLayoutConstraint (item: ContainerView, featuring: .CenterX, relatedBy: .Equal, toItem: labelView, featuring: KCenterX, multiplier: 1.0, continued : 0.0), NSLayoutConstraint (item: ContainerView, featuring: .CenterY, relatedBy: .Equal, toItem: labelView, featuring: KCenterY, multiplier: 1.0, constant: 0.0)])

javascript - How can I access the function applied in success of an $http.post? -

I'm starting this function when I click on a button. .controller ( 'Formctrl' function ($ scope, ichrisLayoutLeavebalanceService) {$ scope.listRowSelected = function (list, item) {var det = {detnumber: item.detnumber}; ichrisLayoutLeavebalanceService.callPost (DET) .success (function) (ichrisLayoutLeavebalanceService.leaveBalanceProcess ();});};}); However, it seems that I can not use the holiday balance process (). It seems that only the factory part is able to share. Here is my controller and factory code which is accessed by the above code. . Directive (/ * code ... code ... * / / / code ... long code ... * / / * Code ... code ... * /} controller ($ scope, ichrisLayoutLeavebalanceService) { function equals () {// code ... code ...} $ scope.leaveBalanceProcess = function () {/ * code ... code ... * /} $ scope.build = function () {ichrisLayoutLeavebalanceService.callPost (equals ()) success (function (data) {$ scope.leaveBalanceProcess (data)}) ;.} $ scope.buil...

python - Pythonista way of extracting elements from an array -

I am writing some python lines of code that do the following: I have two arrays And in B, B (full strictly) increasing integers are not included. I want to extract from those values ​​for which the value of b is greater than 20, but I do not want that duplicate, if B has values: ..., 40,40,41 , ... I just do not want the first value equal to 40 to the other. This is the reason that a [b% 20 == 0] does not work. I am using: factor = [20 * i in xrange (1, for factors in int factors [0] [0] [0] [ 0] [0] [0] [0] [0] [0] [0] [/]> -text "itemprop =" text "> a [(b% 20 == 0 ) & Amp; Np.r_ [true, npdiiff (b)> gt;] b% 20 == 0 div gives a binary mask Which selects all the elements of B, which is the factor of 20. NPR_ [true, np df (b) gt; 0] makes a binary mask that only elements Which separates from the previous element (we obviously add a truth in the beginning, because there is no previous element in the first element). Add ...

adobe air development ide / tools -

I would like to create the HTML5 app for desktop in Adobe Air. Unfortunately, Aptana Studio 3 thinks that Adobe Air Does not support, only Aptana Studio 2. So what is the best development idea for Adobe Air? Thank you for your help! OK, so I think the Adobe Air platform has died, but I've found that Development is allowed in the native desktop application in HTML5 / css3 / js I think, this is the best solution.

java - Get unique identifier for view in ExpandableList Android -

I want to create an ArrayList or map that has a childview checked status. However to do this I need a unique identifier for each view. I tried view.getId (), but returned 1 for each row in the list. Example: A1 = 0 A2 = 1 B1 = 0 The only thing I see is the composition of the group and the combination of the child, unless someone else knows nothing else. So is there a way to create a map or array list in which there is an easy index of two different integers? Or is there a way to combine childposition and groupPosition to get a basic identifier that I can use for each childView? I am afraid that there is nothing magic.

haskell - Getting datakind recognised in GADT -

I'm not sure how I really look at my design, but to my GADT to see that the Mt must be in the MarketType , because of the reason for MarketIndex ? I think the current type of investigation is going on mt :: * hence MarketIndex mt fails, instead we have a MarketIndex mt requires bulid, so it should restrict mt :: MarketType . {- # LANGUAGE Datacunds # -} {- # Language Type Females # -} Modules Market.TypesDK Where Data MarketType = WinDrawWin | Asian Handicrafts Derivative (Show) Type Family Market Index (Mount :: MarketType) :: Type Type MarketIndex WinDrawWin = () Type Example MarketIndex AsianHDAP = Double Data Market :: MarketType - & gt; * Where instances :: MT - & gt; Market Index MT - & gt; Market Mt The error I get is: [1 of 1] Consolidating the market. Type DK (Type DK.hs, Explanation) Type DK.hs: 32: 33: The first argument of 'Market Index' should be 'MarketType', but 'MT' type '*' type 'Market index...

session - PHP: Remember Me, Stay logged in doesn't work -

In my PHP project, I have a user remember me checkbox So that everyone can stay logged in: So far I log in to my general: public function login user ($ psmail, $ pspwd, $ PnRememberMe = 0 ) {// Check credentials and so on // if matches mail and password (credential OKAY) {$ _SESSION ["user name"] = "afu"; $ LnExpire = Time () + 3600 * 24 * 60; Setuqi ("remember", base 64_AD (USERID), $ lnExpire); SetuKi ("Remembrance Token", MD5 (SOMESTUFF), $ LNXEsire); }} When I log in, I can see the cookie variations created with them: print_r ($ _ cookie); Now I try to leave the site with my logout function: // session variable $ $ _SESSION = array (); // Delete session session_destroy (); But now, when I am on the landing page, does my cookies go too? Could this be due to my session site settings? ini_set ("session.use_only_cookies", "1"); Ini_set ("session.use_trans_sid", "0"); php...

How to parse received string into json in ios -

I also sends a message when applied to XMPP for its iOS app has received XML data and that from me Get the message Xml and make that string. NSString * body = [[Message element FORM: @ "body"] stringValue]; Now * body json string and I'm parsing the string to json object using this line NSData * data = [body DataUsingEncoding: NSUTF8StringEncoding]; // messageJSON NSDictionary message is JSON = [NSJSONSerialization JSONObjectWithData: Data Option: 0 Error: & amp; Error]; This is working well in normal text, but whenever someone sends a new line in the middle of the message, then it noses in solving my problem .. : - ( thanks in advance output { "message": { "msg_type": "chat_success", "msg_content": { " Chat_id ":" 2 "," CHAT_MESSAGE ":" @ 34% *%%;% Fjfjfzz "," Sender_id ":" 24 "," Chat_det_taim ":" +1413538 99 8 "}} error ...

statistics - Excel: Simulate random sample of integers with given mean, sd, skewness and kurtosis -

Not sure that it is possible in Excel: I want to simulate a sample of random integers (between 1 and 5) There is definite meaning, standard deviation, oblique and curtissis so far I have only come in = NORM.INV (rand (), MEAN, SD) to generate distributed data. Once you identify the distribution, you quantile Function for that distribution. If not available directly in Excel, then code it in VBA. Then you use the function RAND and use it as the input of the quality function. The resulting random number will be distributed accurately.

openerp - How can I make the Odoo delivery address show inline on the order? -

पार्टनर_आईड का एक संदर्भ है {'show_address': 1} जो मैंने सोचा था कि पता दिखाता है इनलाइन, लेकिन संदर्भ सेट करना पार्टनर_स्पिपिंग_आईडी & lt; field name = "partner_shipping_id" स्थिति पर एक ही चीज़ को पूरा करने में प्रतीत नहीं होता है = "गुण" & gt; & Lt; विशेषता नाम = "संदर्भ" & gt; {'show_address': 1, 'default_type': 'वितरण'} & lt; / attribute & gt; & Lt; / क्षेत्र & gt; मुझे क्या याद आ रहा है? लगता है जैसे मुझे भी ज़रूरत है इसे हमेशा से पुनः लोड करने के लिए पते को गतिशील रूप से खींच लिया जाता है। & lt; फ़ील्ड नाम = "partner_shipping_id" position = "attributes" & gt; & Lt; विशेषता नाम = "संदर्भ" & gt; {'show_address': 1, 'default_type': 'वितरण'} & lt; / attribute & gt; & Lt; विशेषता नाम = "विकल्प" & gt; {"always_reload": सत्य} & lt; / विशेषता & gt; & Lt; ...

jsf - loading resource bundle from another java project -

I want to load I18 resource bundles from any other project, I have 189 messages from the resource directory in my webApp project I've been able to load the properties, but what do I need to do to keep all of my configuration files in another project? Here are my face-config: & lt; Faces-config xmlns = "http: //java.sun.com/xml/ns/javaee" xmlns: xsi = "http://www.w3.org/2001/XMLSchema -instance" xsi: schema location = "http : //java.sun.com / Xml / ns / javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd "version =" 2.1 "& gt; & Lt; Application & gt; & Lt; Resource Bundle & gt; & Lt; Base Name & gt; Messages & lt; / Base name & gt; & Lt; On & gt; Msgs & lt; / Var & gt; & Lt; / Resource bundle & gt; & Lt; Location-config & gt; & Lt; Default-Location & gt; Fr & lt; / Default-location & gt; & Lt; / Location-config & gt; & Lt; ...

parse.com - ProGuard, Parse Exception, NoSuchMethodError: android.net.SSLCertificateSocketFactory.getHttpSocketFactory -

But when if I turned proguard my app runs fine on the release mode I enabled programming, it Crashes. I have changed proguard-project.txt accordingly. I have a logging around here: & gt; 10-17 08: 31: 42.705: E / Android Rentaim (20674): Fatal Exception: Thread -2016 10-17 08: 31: 42.705: E / Android Rentaim (20674): JavaklangkExceptionInInitializerError 10-17 08: 31: 42.705: 10-17 e / Android Rentaim (20674): com.parse.Parse.initialize (unknown source) 08: 31: 42.705: e / AndroidRuntime (20674): com.myapp.android.view.l. run on (unknown source) 10-17 08: 31: 42.705: e / AndroidRuntime (20674): on JavaklangkThreadkrun (Thredkjawaः 864) 10-17 08: 31: 42.705: e / Androidrentaim (20674 ) caused by: java.lang.NoSuchMethodError: android.net.SSLCertificateSocketFactory.getHttpSocketFactory 10-17 08: 31: 42.705: e / Androidrentaim (20,674) on ComkparsekParseRequestknewHttpClient (commandment Source 10-17 08:31: 42.705: E / AndroidRuntime (20674): com.parse.ParseRequest at & l...

c - Calling system calls on linux machine -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब आम तौर पर, सिस्टम एक पुस्तकालय प्रदान करते हैं या एपीआई जो सामान्य कार्यक्रमों और ऑपरेटिंग सिस्टम के बीच बैठता है। यूनिक्स जैसी सिस्टम पर, यह एपीआई आमतौर पर सी लाइब्रेरी (लाइब्रेरी) के कार्यान्वयन का हिस्सा है, जैसे कि ग्लिबिक, जो सिस्टम कॉल्स के आवरण कार्यों को प्रदान करता है। अब सी प्रोग्राम इन लाइब्रेरी फ़ंक्शन को कॉल कर सकते हैं क्योंकि ये लाइब्रेरी फ़ंक्शंस सी में लिखे गए हैं और एक सिस्टम कॉल बनाते हैं। कोबोल या किसी अन्य कंपाइलर भाषा की तरह भाषा कैसे लिनक्स पर सिस्टम कॉल कर सकती है? ये भाषाएं सिस्टम द्वारा प्रदत्त एपीआई को कॉल नहीं कर सकती हैं। संकलित भाषाएं मशीन भाषा में अनुवादित (संकलित) । ऑपरेटिंग सिस्टम, निष्पादन के दौरान, मशीन की भाषा पढ़ता है और उचित सिस्टम कॉल करता है। इसलिए, मैं यह नहीं कहूंगा कि यह सी है, या उस विषय के लिए कोई संकलित भाषा है, जो सिस्टम कॉल बनाता है। ऑपरेटिंग सिस्टम सिस्टम कलेक्शन को आपके कंपाइलर द्वारा उत्पन्न मशीन भाषा के अनुसार निष्पादित करता है।

java - how to migrate the selection provider in e4 -

I am migrating eclips views to use the e4 framework, we currently use Compatibility Mode In use. In most of the scenes I am setting up a site selection provider: site.setSelectionProvider (tree viewer); In different handlers, I use the code to select: IWorkbench Site site = handlerUtil.getActiveSite (event); ISelectionProvider selection provider = site.getSelectionProvider (); Select Selection = Selection Provider .get (); Some handlers also use the select provider and if this viewer works with it eg. Context, Expand ... ISelectionProvider SelectionProvider = ActiveSite. Setting Selection Provider (); If (structured viewer for example of selection provider) {...} Wiki explains how to handle new selections in E4. In an E4 handler you use something like this: @Execute void execute (@ nominated (IServiceConstants.ACTIVE_SELECTION) IStructuredSelection selection {...} to get active selection. If you want to see the active part you can use it: @E...

intellij idea - Is it possible to use live-templates as file templates? -

In Intellij products, I am very fond of live templates. I am surprised that it is possible to use the same syntax for file templates. , E.g. A variable formatting for snakes- or camel-camis, defining the position of an initial cursor and so on. Unfortunately you do not use the same functions / macros available in the live templates in file templates. Can do Using File Templates This allows some Java (?) Simple ways to run on variables (like #set ($ class_start = $ class.substring (0,1) ) .toUpcase ()) ). It is possible that more complex methods will also work as well. UPDATE (2017/01/13): 2016.1 (or maybe 2016.2) version now file templates It is possible to use some live templates (by checking the Enable enabled template checkbox for that file template) I'm not 100% sure if it is requested that they work here. (

java - Accessing Classes from another class -

Considering that I am not using any IDE to create / run my Java code. But using Notepad and Command Prompt is compiling and running. Can I safely assume: unless I keep my class files in the same folder, they always without informing the package Be able to "see" each other? I came from another link with the same question title: But this is a different asking thing and the answer is in the context of the IDE, and use the CLASSPATH to use the IDE . I intend to find out here which is JVM's behavior without an IDE QUE: Can I safely assume that classes Can always "put each other" by putting them in the same folder? There is something to eat here for your thoughts: -) Suppose We have two versions of the same file version 1 package mypack; Public Class Mayclass {public static zero major (string [] args) {System.out.println (1); }} version 2 package mypack; Public class micro {public static zero main (string [] args) {System.out.prin...

MySQL Rows into Columns after operations -

पहले .. | अंतिम .. श्रेणी .. | मूल्य .. | + ------ + -------- + ---------- + ------------ + एच -1 I-15 | ए | 190 | एच -1 I-15 | बी | 200 | एच -1 I-15 | डी | 1000 | एच -1 आई -4 | ए | 20 | एच -1 आई -4 | बी | 500 | एच -1 आई -4 | डी | 10000 | एच -2 आई -0 | ए | 79 | एच -2 आई -0 | बी | 365 | एच -2 आई -0 | डी | 1000 | एच -2 I-7 | ए | 450 | एच -2 I-7 | बी | 125 | एच -2 I-7 | डी | 10000 | मुझे एक आउटपुट पसंद करना है: पहले .. | आखिरी .... | डी ......... | एक ........ | बी ........ | ए + बी + डी .... | एच -1 I-15 | 1000 | 190 | 200 | 1390 | एच -1 आई -4 | 10000 | 20 | 500 | 10520 | एच -2 आई -0 | 1000 | 79 | 365 | 1444 | एच -2 I-7 | 10000 | 450 | 125 | 10575 | मैंने यह कोशिश की: पहले, आखिरी, अधिकतम (यदि (श्रेणी = 'डी', (मान), 0)) चुनें 'डी ',' अधिकतम (यदि (श्रेणी = 'बी', (मान), 0)) के रूप में 'बी', (ए + बी) के रूप में ('श्रेणी' = 'ए', (मान), 0)) 'ए' + डी) 'एबीडी' के रूप में तालिका ग्रुप से पिछले, प्रथम आदेश 'एब...

java - How i can open browser onPostExecute -

यहां कोड है आशय browserIntent = नए आशय (Intent.ACTION_VIEW, उरी। ( "? उपयोगकर्ता नाम =" this.redirectUrl + + getValue (loginString) + "& amp; पासवर्ड =" + getValue (pwdString)) पार्स); startActivity (browserIntent); मैं इस त्रुटि है: 10-17 15: 30: 35.288 5467-5467 / com.example.android.navigationdrawerexample डब्ल्यू / dalvikvm: threadid (समूह = 0x40cd7930) धागा न आया हुआ अपवाद के साथ बाहर निकलने 10-17 15: = 1 30: 35.298 5467-5467 / com.example.android.navigationdrawerexample ई / AndroidRuntime: गंभीर अपवाद: मुख्य java.lang.IllegalStateException: टुकड़ा PlanetFragment {41b91f78 } गतिविधि से जुड़ी नहीं इस लाइन पर: startActivity (browserIntent); और मेरे लिए काम नहीं करता है मैं क्या कर सकता है? आप क्यों नहीं बस टुकड़ा से getActivity () कॉल नहीं करते और फिर फोन startActivity () जैसे getActivity ()। StartActivity (आशय);

java - JPA: Column 'AdressId' cannot be null -

I am trying to continue the school unit which has a unidirectional address with an address, but I Getting Column 'AdressId' can not be redundant, note that MySQL DB prepares the ID for the school and here is my code of address: in JSF, when the submit button is clicked on createSchool The method is implemented. @NominatedApplied Public class school AddBacking applies Serializable {Private Static Last Long Serial VERSIONUID = 1L; Private static final string INSCRIPTION_RETURN = "/login.xhtml?faces-redirect=true"; Private static final string RB_Name = "bundle message"; Personal static final string USER_NOT_FOUND = "user.not.found"; Private string user email; Personal user user; Private school school; Private address address; EJB Private School PR School; @EJBPrivate UserPro UserPro; Add Public Schools () {School = New School (); Adress = new adresse (); School .Setphone Bonus (New Hashmop & lt; Phone Type School, String & gt; ()); } C...

c - Is accessing a global array outside its bound undefined behavior? -

Today there was an examination in my class - reading the code and input, and the necessary answer that would appear on the screen if the program actually As a question a [4] [4] has been declared as a global variable, and at one point of that program, it is written in the a [27] [27] , so I responded "like something" but the teacher said that the value of a [27] [27] of 0 Have Will Later, I tried to check that "all unpublished golf variables" are set to " 0 " or not. Okay, this is happening true. So now my question: It seems like some extra memory was cleaned and reserved for running the code. How much memory is reserved? A compiler reserved more memory Why, and what is this for? For all, a [27] [27] yes 0 Edit: that In the code, is a [4] [4] only declared global variable and some more localized in main . I tried again in Devi ++, they are all 0 but this is not true in VSE, which has the highest value 0 but some hav...

java - Why Hazelcast is fast? -

I have had many years of experience working with a database related to the database, but there was a question that I always had Asked. How Java-based hazelcast (in-memory) can be faster than any other non-Java based database? For example, Memory Raidis and Memkach are not based on Java. I've heard many negative things about Java and its JVM, which slows the code 10-1000 times compared to the non-VM environment. Does it mean that everything has changed within time? I know that this is a lot better a few years back, but still due to its clear view of working on every platform, performance has decreased. So how can Java code be faster than non-virtual machine code or same speed ? Search for JVM and how it "slows down the code 10-1000 times" "FUD description is FUD. "DB Speed" is not just a platform, it has implementation and features. The Heselcast website contains information related to implementation, GC, architecture, etc.

symfony - Symfony2 joined data passed to View -

I am passing some data in a data that has been added. The inclusion is working properly, because it depends on me that I can see the number of results chosen to join or leave the election. My query is: $ query = $ repository-> CreateQueryBuilder ('p') - & gt; Join ('p.skill', 's') - & gt; GetQuery (); $ People2 = $ query- & gt; GetResult (); $ $ --- ($ StudioRaygunTeamBundle: Default: index.html.twig ', Return Array (' People2 '=> $ People2)); and my view: & lt; Ul & gt; For {% People in person2%} & lt; Li & gt; {{Person} first name}} {{person.Surname}} {person. skill.skill%} {{skill.skillname}} {% endfor%} & lt; / Li & gt; {% Endfor%} & lt; / Ul & gt; No error is thrown, unless I can change some properties in curly braces - this means that the data that is being received is correct (this is, And this unit matches the squares). But nothing under the skill. Scale name (person's fi...

maven - Excluded classes still counting towards total coverage result -

We recently upgraded to SonarCube 4.3.2. In the previous version (it does not remember what it was), it was possible to select JACOO as a code quoors analyzer and it was possible to define Maven as a simple asset; For example With this version of SonarCube, there is no alternative to selecting JACOO so I am trying to work it in any other way. There are many posts about this topic but none of them solves my problem. I managed to get out of the class, but they show the SonCube as 0% (and bring down total coverage). Except the above assets, it now works. In my Palm, I have added the following plugin: & Lt; Version & gt; 0.6.0.201210061924 & lt; / Edition & gt; & Lt; Configuration & gt; & Lt; Exclude & gt; & Lt; To exit & gt; ** / SonarTest * & lt; / Exclude & gt; & Lt; / Not included & gt; & Lt; / Configuration & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Goals & gt; & Lt...

delphi - installing JVCL (3.45) for XE2 error when loading the group project -

I have installed JCL and I have some problems with the JVCL (Release 3.45) installation . If I load the " D16 Packages.groupproj " group project file, then I get a group of popup warnings about missing classes, such as TJvContextProvider TJvSendMailAction TJvCendListBox TJvControlCollapseAction TJvFormStorage TJvListBox TJvLabel TJvBrowserForFolderAction TJvSpinEdit TJvFullColorCircle It was already reported already in threads, but I did not get any comment about how to handle this problem here . I am grateful if someone can provide me with some useful hints here Thank you in advance for your important help.

VBA, can a new, standard userform be created via code? -

After the launch of my VBA program, I would like to be able to form a form, is it possible? I have the search stack overflow and on the web and can not find a definitive answer. If this can be done, then I have not received the code to do this. I'm just looking for some basic, generic codes, if this is possible. Normally you can do whatever you can, although you have left too many details So it's hard to say Forms are like any other class, so it is possible to instantinate many of them. PublicForm1ForForm1 u.Show False '& lt; UserForm1 set as U Diff U for the integer I = 1 to 3 as the public sub CreateForms () Dim I - Set the modal to false so that the new form will not block the loop. Next I end sub make it three copies of the same form. Edit After reviewing Tim's comment, I dropped the User Form 1 as the U.U = new User 1 Dame T as MSForms.CommandButton load U Set u with t = u Control. Add ("Forms.CommandButton.1", "cmdbutto...

c# - Text Writer is already closed in a Delay Timer "Tick" Event -

I am trying to use a delay timer on a Windows application. I want to avoid threads. As a sleep I want the control to be active during the delay. Now I have a button that starts the code on click It opens a section and writes the title line in the CSV. If I check a timer tick, if a check box is checked, the timer will stop, but otherwise it writes a new line. After that, the timer has started. The writer is not closed until the execution of the timer. So, something like this, file stream midda = file. OpenRight ("myfile.csv"); TextWriter myWriter = new streamer (Meridian); MyWriter.Write ("headline, go, here \ n"); Int x = 0; DelayTimer.Tick + = Delegate {if (checkbox.Checked) {delayTimer.Stop (); } MyWriter.Write (x + "luggage \ n"); X ++; }; DelayTimer.Start (); MyWriter.Close (); However, whenever I try to execute, after pressing the button it is freeze and the Visual Studio informs me that the streamer is off. I'm not sure exactly how to f...

python - Detect and count objects in an image -

I am trying to write a picture in Python so that one can locate and count objects within an image, But I have failed miserably. This is the first time that I am interested and trying something through computer vision. After the tutorial about the feature matching and template matching current, I have tried to use the CV2 module (Open CV). I have also tried with the schemkit-image but I can not get a good result. I have also thought about finding outline and then matching 2D-curve. Explain me a little more problem. I have a set of icons which make a big image. The structure of this image or the scene is done by a simple background or transparent multiple images from another ikeetet. These pictures from Iconset can basically go through 3 basic changes: scale, rotation, and translation. They can also overlap. The output of the desired script will be something like this: C -> 1 D -> 1 -> J -> 0 I am going to try with the delibah now and see if I can ach...

c# - Managing user specific settings in ASP MVC Views, and database -

I'm rolling in my present and tried NII. There is an easy / better modular package / process for managing user settings where I can bubble the settings in the user's view as their editable view Similar to the app settings (I use the app settings But they are quite global). Whether ASP MVC 5 OOB has given Nature a functionality to capture user characteristics, or user object settings. or any 3rd party newsletter package for this How can I get an auto staging without having to re-write it for every new app Based on @pratt, I found 2 objects that work, if they do not add overhead, I am using old membership, but I am open for upgrading. Do I inherit from them, if such a

c# - Microsoft sync The default schema does not exist -

"postprint" itemprop = "text"> I use Microsoft Sync framework to sync data between remote and local data base, but I face error "Default Schema does not exist" while applying the provision to remote servers SqlSyncProvider sqlProviderLocal = new SqlSyncProvider (scopam, sqlConnLocal); SqlSyncProvider sqlProviderRemote = new SqlSyncProvider (scopeName, sqlConnRemote); SqlSyncScopeProvisioning scopeProvisionLocal = new SqlSyncScopeProvisioning (sqlConnLocal); Scope projection local Objectscama = ".dido"; If (! ScopeProvisionLocal.ScopeExists (ScopeName)) {DbSyncScopeDescription scopeDesc = new DbSyncScopeDescription (scopeName); Foreign items (different items in table) {scopeDesc.Tables.Add (SqlSyncDescriptionBuilder.GetDescriptionForTable (item, sqlConnLocal)); } ScopeProvisionLocal.PopulateFromScopeDescription (scopeDesc); ScopeProvisionLocal.SetCreateTableDefault (DbSyncCreationOption.Skip); ScopeProvisionLocal.Apply (); } SqlSyncS...

gradle - Android Annotations in Android Studio 0.8.9 -

I Android Studio and new Gredel, so I'm not sure how Android annotatios I The tutorial is followed, and this expired with the build.gradle file. buildscript {{treasures mavenCentral ()} {dependence classpath 'com.neenbedankt. gradle.plugins: android- appropriate: 1.4 + '}} apply plugin: "Comkandroidkapplication' plugin apply: 'Android- compatible" Android {compileSdkVersion 20 buildToolsVersion '20 .0.0' defaultConfig {applicationId "com.example .test "minSdkVersion 11 targetSdkVersion 20 versionCode 1 versionName" 1.0 "} {buildTypes release {runProguard false proguardFiles getDefaultProguardFile ( 'ProGuard-android.txt'), 'proguard-rules.pro'}}} {configuration suitable} {appropriate logic { AndroidManifestFile version .processResources.manifestFile resou rcePackageName "com.example.test"}} {Dependency FileTree compilation (dir: 'libs', includes: ['* .jar']) Appropriate "or...

pseudocode - Displaying even numbers in an array -

I also need to display a number in the saracocode, and I'm completely lost on how to do it. It's as far as I've found: start typing (numbers as numbers in array_size as numbers, in array_size); ; Size ******* I'm stuck on what I'm doing in the loop ***** Set count = 1 {edit} Here's where I am: Start to write (count as the array of arrays in the form of an integer in the array_size), counting as the count of the integer ← 0 count & lt; Size if array_size% 2 == 0 write the array_ize end if the number of sets is ← counting + 1 termination If there is a number then use the module for testing, then something like: print & lt; - If MOD (number [count]) == 0

Fusion tables insert via google apps script -

Whenever I try to insert "inserted" rows into a fusion table using the non-SQL method, then I get the following error Receives: "We" Sorry, there was a server error. Please wait a bit and try again. "I am authenticated and can be inserted using the SQL statement, but there are limitations for the inclusive length, so I am trying to use a different method. function temp () {Var tableId = "& lt; Table ID & gt; "; Var blob = utilities.newblob (['hi', 'how', 'you are']) (','), {type:" octet / stream "}); Ret = FusionTables.Table.importRows ( Table id, blob); Logger.log ([ret, "id"])} Landing for others When a blob is created on this question, then byte [] and string is required. The working function will be: function temp () {var tableId = "& lt; Table ID ";; bloc = utilities.nubbl (['hi', 'how', 'you are']. Join (','), 'app / o...

jquery - Determine if data is already in select list -

मेरे पास परिभाषित परिभाषित है - & lt; div class = "form-group "& gt; & Lt; div वर्ग = "col-md-10" & gt; & Lt; चयन करें नाम = "चयनित-उपस्थित" आईडी = "चयनित-उपस्थित" वर्ग = "फॉर्म-कंट्रोल" बहु आकार = "5" & gt; @ फ़ॉरेक (मॉडल में शामिल हैं। अटेंडी लिस्ट) {var attendeeName = String.Format ("{0}, {1}", उपस्थिती। फुल नाम, उपस्थिती। ईमेल); & Lt; option class = "selectable-option" value = "@ attendee.Id" & gt; @ attendeeName & lt; / विकल्प & gt; } & Lt; / select & gt; & Lt; / div & gt; & Lt; / div & gt; जब उपयोगकर्ता एक जोड़ बटन पर क्लिक करता है, तो यह क्रिया है - $ ('# attendees-btn-add')। क्लिक करें (फ़ंक्शन ( ) {If ($ ('($ #' चयनित एटेंडी)। Val () == '') {चेतावनी ("उपस्थिति सूची में जोड़ा जाने वाला ग्राहक चुनें।");} और {$ ('# चयनित- उपस्थित') । ($ ('& Lt; विकल्प & gt;',...

jquery - Preventing form submittion with enter key on all but one submit button -

I have an ASPX web form master page that has two submit buttons, login for another site search for account login I want to enter the key to submit for, but not for any other button on the site because the login is used more often. Every time I enter some login information and hit the hit, the search button gets fired and takes me to a blank result page. The following I have tried without success: 1) Enter the enter button type = and all other bus type = buttons 2) Defined for all UseSubmitBehavior = "false "In addition to the login button which is set to true. 3) Use different JQuery code on the input ID to disable the keyring input key for the input key. The code only had an effect, however, it disables the key for everything, when I replaced the window for a selector, it failed to work. Since the whole page is a form, I did not add additional form tags. There should be a way to allow the entry key to work on just one button. Thanks $ (function () {$ (window) .k...

java - Exception handling compile error: Exception; must be caught or declared to be thrown -

I'm not sure why I'm getting this error and I'm happy that something is clear to me. It happens on line: Verify.Validate (number); With error: Program5.java 23: Error: unreported exception exception; Should be thrown to catch or declare. Any suggestions would be appreciated. - Chris import java.util.Scanner; Public classroom program 5 {public stationary zero main (string [] args) / Driver class should instantiate a verification object with a range of 10 to 100. Verify = new verification (10, 100); // Prompt the user to input a number within the specific category. System.out.print ("A number input between 10-100:"); // Use a scanner to read user input as an input Scanner input = new scanner (System.in); Int number = input.nextInt (); // Try to try / hold test {Verify.Validate (number); System.out.println ("Number entered:" + number); } Hold (numberless exception before) {System.out.println (ex.getMessage ()); } Hold (NumberLowException pre) {Syst...

write multiprecision binary file with matlab -

I would like to write a table with 1 integer, after which there will be 3 pairs of binary formats. Of course I can only do this for loop for i = 1: sz fwrite (fid, integ (i), 'int'); Filitt (fade, double (i, :), 'double'); End but it is very slow for arrays with a few million entries, maliciously I should keep this [int32 float64 float64 float64] format because it was used by a program The file format specification is because it is the most effective way for a handle (without writing an .mex)? edit: Respect the order and type of variable nx3 double > to convert an array of (2xn) x3 int32 , then to write everything at once, arrays Rebuild and add. outfile4 = 'test1.bin'; Tic4 = Tic; % // Everything reshape table 2write = int32 (zero (2 * nCol + 1, nPt);); Write table 2 (1, :) = integ. '; % 'For k = 1: nCol ixLine = (k-1) * 2 + 2; Table2write (ixLine: ixLine + 1, :) = reshape (double (((,, k, '' int 32 ''), 2, []); ...

java - How to display elements of an array? -

I'm still learning Java and I was wondering how can I use an array element? For example, I have this array: private int [employee name = {5658845, 4520125, 78 9 522, 8777541, 1302850, 758048 9}; And I want to display the number using the "450125" loop. What should I do? Besides, if you have a better way to loop, please do not hesitate to put it; It would be much appreciated. I will just put it in the loop for use in that situation: for (int i = 0; i If you want to display the second element in an array, To: arrayName [indexNumber] In your case, you will need to use this syntax: Carmenum [1] An index (such as "index number" and "1" are described above) is only an address. There is a variable representing the number one before and a later number. Imagine, on the right side of the given road, you had ten houses, if you would explain to someone else how to move to the right at the other house, Some would say: houses [1] Why do I ...

node.js - Mongodb, mongoose - dynamically set TTL time -

I am referring to this question to ask: Is it possible to dynamically set TTL time for MongoDB is? So suppose you have tokens collection and you want to use it for different purposes. In that case every time you make tokens, it is best to set specific TTLs for each token. If this is possible, can you please provide some code snippets? If you index a TTL on a collection, then periodically from the MongoDB archive The documents will be removed (). Db.events.ensureIndex ('time', = 3600 after expiration) This uses a indexing system to handle TTL, its definite, for every document it is dynamic There is no way to define form. In your scenario, I advise you to use Morphody along with messaging like RabbitMak

c# - sp_setapprole error when threading: "Impersonate Session Security Context" cannot be called in this batch because a simultaneous batch has called it -

calling sp_setapprole to SQL Server 2014 from a thread app we get the error: "Can not say holds session security context" as the This can be batch because the batch has called it together. As far as I know and a new connection is made on each call, connections are not deposited so I am not sure where the collision is occurring. Here's the test app that makes an error: uses Microsoft. ApplicationBlocks.data; Using the system; Using System.Collections.Generic; Using System.Data; Using System.Data.SqlClient; System usage threading. Task; Namespace PleaseBreak {class Program {static string ConnectionString = "Data Source = & LT; SQL Server DB & gt ;; initial catalog = & LT; SQL DB name & gt ;; User ID = & LT; username & gt ;; pwd = & LT; password & gt should ;; = false; security Continue info = true; pooling = false; Akadikaktivarsltssets = true, APP = & lt; APPNAME & gt ;; "; Static Int ThreadCount = 3; Fixed int loopc...

c++ - How to set a variable sized static array to be filled with 0's -

पूर्णांक आकार = 50000; इंट एआरआर [50000]; // वैध इं arr [आकार]; // वैध इं arr [50000] = {0}; // वैध इं arr [आकार] = {0}; // त्रुटि मैं चर आकार (आकार) की एक सरणी बनाना चाहता हूँ और उस सरणी के अंदर सभी तत्वों को 0 के लिए लूप का उपयोग किए बिना सेट करना चाहता हूं, क्योंकि मैं कुछ की गति का परीक्षण कर रहा हूं क्या ऐसा कोई तरीका है जो मैं कर सकता / सकती हूं? आपको C मानक फ़ंक्शन memset को शीर्ष लेख> कोड> & lt; cstring & gt; में C ++ में या & lt; string में घोषित करना चाहिए। एच & gt; सी। उदाहरण के लिए #include & lt; string.h & gt; // ... int size = 50000; इंट आर्न [आकार]; मेमसेट (एआरआई, 0, आकार * आकारफ (पूर्णांक)); ध्यान रखें कि सी ++ मानक में कोई वीएलए नहीं है। यह केवल कुछ कम्पियों के सी ++ भाषा एक्सटेंशन हो सकता है; lers।

beginner in python, if statement -

score = raw_input ("enter digits between 0.0 and 1.0") float (score) #if score & Lt; 0.0: # Print "Invalid Input." #exit #elif Score & gt; 1.0: # Print "Invalid Input." #exit If Score & gt; = 9: Print "A" Alive Score & gt; = .8: Print "B" Alive Score & gt; = .7: Print "C" Alif Score & gt; = 6: print "D" alleph score & lt; .6: Print "F" and: Print "Invalid Input." I'm having trouble with Python code; Some of my initials seem to be wrong with the statement but I do not know if it does not matter what the input I test it, it always gives A as the output. Any sign that I am doing wrong, would be very good, sorry for such a simple question, but I started learning the dragon, I am stuck on this code for more than an hour and I do not understand for my life, why it is not working Thanks You float () call score From scores : score = float (score) sc...

rdf - Wikipedia Categories Starting with "Category:Lists_of_" returns just lists no data -

I wanted to remove all cities within the United States, so I run this query. select WHERE {? S dcterms: subject / skos: wide * category: Lists_of_cities_in_the_United_States. } But the result that contains only lists and no data, I also noticed some Wikipedia pages that start with "List_of" but " Category: " in front of them, for example what is the way to remove them?

string - Powershell : Remove Info from Get-WinEvent Returned Results -

निम्नलिखित चल रहा है Get-WinEvent -ComputerName $ env: ComputerName -LogName अनुप्रयोग | जहां {$ _। आईडी -एक 63} | चयन-ऑब्जेक्ट- यूनिक परिणाम इस प्रकार हैं: प्रदातानाम: आउटलुक समयरेखा आईडी स्तरडिस्प्लेनाम संदेश ----------- - ---------------- ------- 10/17/2014 10:09:04 पूर्वाह्न 63 सूचना एक्सचेंज वेब सेवा अनुरोध GetAppManifests सफल रहे मैं निम्नलिखित को कैसे हटाऊं या निकाल सकता हूं प्रदाता नाम: आउटलुक टाइम सीरेटेड आईडी स्तरडिस्प्लेनाम संदेश ----------- - ---------------- ------- इसलिए कि मैं अभी 10/17/2014 10:09:04 AM 63 जानकारी एक्सचेंज वेब सेवा अनुरोध GetAppManifests सफल रहे अपने आउटपुट को प्रारूप-तालिका में पाइप करें: Get-WinEvent -ComputerName $ env: कंप्यूटर का नाम- लॉग-इन ऐप्स `| जहां {$ _। आईडी -एक 63} | चुनें-ऑब्जेक्ट -Unique `| प्रारूप-तालिका -HideTableHeaders और अगर आप आउटपुट को स्ट्रिंग में कनवर्ट करना चाहते हैं, तो आप आगे आउट स्ट्रिंग पर पाइप कर सकते हैं।

css3 - Is or was -chrome- ever a valid CSS vendor prefix -

This web designer is listed in the book for CSS3, but I can not find any reference to web searches. -chrome- Never had a right prefix because Chrome WebKit used to power itself Therefore, it has the same vendor prefix as all other webkit. For example Safari Browsers is the correct prefix for Chrome: -webkit-

Showing information in the datagrid from the table in the oracle database using C# -

I am facing a problem here, I have successfully connected to SQL database, but when I show data from I try this data for Grid View, this table gives me this error: "The MSDOAARA provider is not registered on the local machine." Okay, I understand that this is working only on 32 bit systems and I have 64 bit, on the internet they have said that I should use "ORAOLEDB.ORACLE" and it's just Also gives me a single error message. > What am I doing wrong? What can i do here Thanks in advance.

android - Should I get device ID for Admob when i publish my add -

AdRequest adRequest = नया AdRequest.Builder () addTestDevice (AdRequest.DEVICE_ID_EMULATOR) addTestDevice ("HASH_DEVICE_ID") बिल्ड ( ); मैं सिर्फ अपनी डिवाइस आईडी का उपयोग करता हूँ या कैसे मैं परीक्षण मोड को निकाल सकता हूं और सही मोड का उपयोग कैसे कर सकता हूं -मैं इसे कैसे बदल सकता हूं? नहीं, आपको इसे हटाने की आवश्यकता नहीं है addTestDevice (AdRequest.DEVICE_ID_EMULATOR) addTestDevice ( "HASH_DEVICE_ID"); यह ऐसे तरीके से प्रदान किया गया है कि केवल एमुलेटर और आपके डिवाइसों को टेस्ट विज्ञापन मिलेगा। उदाहरण के लिए मैं उन्हें जारी करने के बाद भी अपने ऐप का उपयोग करता हूं और मैं हमेशा इस कोड को शामिल रखता हूं। मैं अपने डिवाइस पर प्ले स्टोर से फिर से ऐप डाउनलोड करता हूं और उनका इस्तेमाल करता हूं। यह केवल मेरे डिवाइस पर परीक्षण विज्ञापन दिखाता है (और उन डिवाइसों का जिनके डिवाइस आईडी मैंने शामिल किए हैं) इसलिए दुनिया के अन्य सभी उपयोगकर्ताओं को रियल विज्ञापन इंप्रेशन प्राप्त होते हैं।

recursion - F# Recursively creating a int list list -

Then I have a bitmap that is an int list list, representing 3 pixels per indicator RGB. One line of the image is a list, and I'm trying to edit this int listing list recycle and spit the second int list list back. The problem is that when I reach the end of a line, I want to make it a second list. Now the code creates a list per pixel per line, 3 values ​​per list and the image is going down a straight line, so it is making a new list of each recursive call I want to continue on the same list, while it The end of the width has not been reached Here's the code to make a bit more sense as I have a hard time explaining this. REC grayscale picture (width: integer, width: integer, image: int list list) = image with match | [] - & gt; [] | _ - & gt; Let's get R = image.Have go.Come on. Image.Read.Sit.Cheat.Come on.Come on.Sit.Bell.You average = (int) ((R + G + B) / 3) Give wide bravery and GT; 3 then [average; Average; Average] :: grayscale image (width, width-1, i...

Is it possible to get HTML content in Android? -

Is it possible to get HTML content in Android and I do not need it? Want to get the name of the top films in IMDB (), is it possible to get anything without a name? First of all, check if your targeted site has an API, if it does, then it is OK ! If this does not happen, you can read the details of yourself from HTML, it is called Web Scrapping. How can you do it. Edit: I think you have got an API and it is working with XML. How you can work with XML in Android

jsp - Scriptlet Inside EL Expression -

I have an EL expression in my JSP and inside that EL should be a Scriptlet The syntax given below is not working .readOnly == false}" & gt; error javax.el.ELException: failed to parse expression [$ {$ {& lt;% = budgetActionForm% & gt; .readOnly == True

Does .NET correctly handle memory paging with many small objects? -

I have several times developed apps with very large branches or associated structures of small figures (& lt; 1kb each) Are either 1) just building objects or 2) creating and using them. In both instances, the application either stops completely or completely. Understand that after the physical RAM is over, the endorsement should take place, and, if it is very slow, the program should continue to work. In particular, I am not trying to allocate large objects, nor are I using the array (or list) of 2G objects (I'm not sure this limit still applies). I have written a written test program which stores continuously and stores 1GB of memory. Since NAT seemed to be delayed in allocation, I also filled the blocks with the data. I came to know that the .NET was used correctly once the RAM was used, and the program slowed down, but never crashed or OOM-ed was not done. So, why .NET has trouble with a problem, lots of small things? Is this special for my configuration? Pag...

Redis: Fail instead of evicting? -

Is there a way to set up the Redis, so this data will never be ejected and the harsh failure of the storage would cause? I need to make sure no data is lost; I used it for permanent data collection, not in the form of mechanisms but for temporary data collection mechanism for high volume / high performance data changes. Is there an optional NoCQL Data Store that can come close to the display, but can use reading / writing discs when the memory is over; It's not ideal, but better than losing data I'm reading / writing / updating millions of JSON documents (12+ million and growing). Yes First of all, make sure you enter maximize Set the instructions (set to value other than 0 in the set file or from CONFIG SET ). Next, set the maximum code-policy directive to continuity - Redis will return an OOM (out of memory) error when maxmamari arrives while trying to write on it. For more information about these instructions, see the files in Daftfile in the file. ...

Using arguments with a PHP script in HTML -

मैं इस पर एक php स्क्रिप्ट में एक तर्क कैसे पारित कर सकता हूँ: & lt ;? Php '../scripts/listPictures.php' की आवश्यकता होती है; ? & Gt; अंत में मेरी बहस को जोड़ने से पूरी स्क्रिप्ट को तोड़ने और argv पर vardump का उपयोग करने का कारण बनता है, बस रिक्त देता है। आप तर्क नहीं भेजते क्योंकि इसमें शामिल / आवश्यकता होती है स्क्रिप्ट चलाता है जैसे कि आपने उस जगह पर लिखा है। तो बस जांच करें कि स्क्रिप्ट की क्या ज़रूरत है ( एक सत्र में कुछ? अनुरोध पर? शायद एक चर?) और इसे सेट करने से पहले सेट करें। एक बेहतर तरीका उस सूची में जो कुछ भी होता है उसे चालू करना पिक्चर.एफ़पी एक फ़ंक्शन में है, इसलिए आप वास्तव में भेज सकते हैं मापदंडों अल्बान का उत्तर बहुत कम के लिए बहुत अधिक है। यह आसान, क्लीनर, तेज़ (दोनों करना है और पीएचपी चलाने के लिए) और कम स्मृति का उपयोग करता है, क्योंकि एक वर्ग बनाना, इसे खोलने, केवल कुछ सरल कार्य = पी के लिए, इसके बजाय मैं इसके अंदर फ़ंक्शन करना चाहता हूं

c# - Converting an xml into list of anonymous object -

After I have a xml which includes language details like & lt; LanguageList & gt; ; & Lt; Language code = "EN-US" name = "English - United States" & gt; & Lt; / Language & gt; & Lt; Language Code = "N-UK" name = "English - United Kingdom" & gt; & Lt; / Language & gt; - - & lt; / Language list & gt; I want to convert this to a list of anonymous objects where each object has two field codes and names. I have the following linq expression var anonList = (from the xDoc.Descendants ("language list"). DescendantNodes () Choose U.Olist (); Like this is giving all the nodes under LanguageList & lt; Language code = "EN-US" name = "English - United Sates" & gt; & Lt; / Language & gt; & Lt; Language Code = "N-UK" name = "English - United Kingdom" & gt; & Lt; / Language & gt; I tried to add something where th...

javascript - AngularJS $apply not called in an interval when the $scope has changed from one controller to another and back -

After I think this works as a mini timer, making this instruction with Angular. I do not want anything more than just counting seconds and minutes, the Directorate does great work till I live on the page where the Directorate is called. The problem is that when I go to any other page I come back, I need the time to show that it is still present with the current time. I have a global window.timer object that holds the status of the timer. App Directional ('call timer', function) {return {restricted: 'e', ​​controller: function ($ radius, $ rootsecope) {$ scope.minutes = (window.timer .state.minutes || 0) $ scope.seconds = (window.timer.state.seconds || 0) $ scope.start timer = function () {window.timer.interval = window.setInterval (function () / IncrementTimer window.timer.state = {minutes: $ scope.minutes, seconds: $ scope.seconds}; $ scope. $ Applied ($ scope.updateDisplay);}, 1000);} $ scope.stopTimer = function () To stop the timer {/ * stuff} * $ scop...

How to use an external Library as a view Helper in CakePHP? -

I am using a third party library to format the data in a particular way. I have been able to create a component from the following library: app :: Usage ('component', 'controller'); App :: Import ('vendor', 'csformat', array ('file' = & gt; 'csformat'.DS.'csformat.php')); Class provides the CSFormatComponent component {public function startup (controller $ controller) {$ controller- & gt; CSF = new csf startup (empty); Return $ Controller- & gt; CSF; }} By doing this, I get permission to access various sections provided by the library through my controller. But I realized that I have a lot of unnecessary $ this - & gt; Setting up the set ($ one, $ 2) to the formatted data from the controllers, where the library can basically be more beneficial Update: : Import is a seller's library and needs assistance in it, so my controllers have given me the library in my thoughts. Is granted Unc...

java - JavaFX draw to image -

How can I get attracted to an image similar to canvas in JavaFX? Provides advanced drawing functions such as GraphicsContext2D , not by pixels. I'm trying to create multi layered canvas , and using another canvas component for each new layer looks like an overlap or it's correct and only preffered method is? Using multiple instances (one for each layer) is a recommended way to create a multi-layered canvas. "post-text" itemprop = "text"> This method of making a layered canvas system (using A) is documented and displayed. Your other option is not to use the canvas, but instead, use (), by placing the layered pan (one layer per layer) inside the visual graph node and all the layer pan inside one . You can convert the resultant stackpan to an image at any time by turning on the node API on stackspan. Are not even the APIs that maintain the canvas? Since all the tasks were only put on grossable data buffers and sung on the event? Yes, pul...

java - Mathematics trouble in if statement -

कोड: import java.util.Scanner; सार्वजनिक श्रेणी का परीक्षण {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {स्कैनर कंसोल = नया स्कैनर (System.in); System.out.println ("त्रिभुज की पहली तरफ की लंबाई दर्ज करें"); डबल a = console.nextInt (); System.out.println ("त्रिकोण की दूसरी तरफ की लंबाई दर्ज करें"); डबल बी = कंसोल। एनएक्सआईटी (); System.out.println ("त्रिज्या के तीसरे पक्ष की लंबाई दर्ज करें"); डबल c = console.nextInt (); यदि ((a * a) + (b * b) = (c * c)) System.out.println ("त्रिकोण एक सही त्रिकोण है!"); }} असाइनमेंट: एक सही त्रिकोण में, सबसे लंबे पक्ष की लंबाई का वर्ग दूसरे की लंबाई के वर्ग के योग के बराबर है दो पक्ष। एक प्रोग्राम लिखें जो उपयोगकर्ता को त्रिकोण के तीनों पक्षों की लंबाई दर्ज करने के लिए प्रेरित करता है, और फिर यह इंगित करता है कि त्रिकोण एक सही त्रिकोण है या नहीं। मेरी समस्याएं: कोड संकलित नहीं करता, पाया: चर, आवश्यक: मान इसके अलावा: मुझे यह नहीं पता कि यह कैसे करना है ताकि कार्यक्रम को पता चलेगा कि त्रिकोण ठी...

java - Parse.com: with parseUser, how can I save data in a column I created in parse from the class? -

I am using Android studio for my app and parsing for my database ... and I have an account page Upon creating, it allows the user to enter the first name, last name, email, user name and password. But my code is using parseUser ... I do not know how to set the first and last name in the database, setUsername, setPassword, setEmail know that it is a part of ... but What if you make columns in pars? How can you add it to your class? This is a part of my code, how it looks ... My problem is in my statement: // force to fill the user (Usernametxt.equals ("") & amp; amp; amp; and & amp; passwordpassext.exls ("") & amp; amp; email. Text.equals ("")) {Toast. MakeApplicationContext, "Please enter username, password, and email field.", Toast. Langtha_long). Show (); } Else {// Save new User Data in Parse.com Data Collection ParseUser user = new ParseUser (); // In any way save the first and last name user.setEmail (emailtxt); User.s...

objective c - Storing blocks in a c-style array -

I'm trying to start the AC array of dynamically blocks, load it, and then run them and some Can use help. // Definitions ===================================== === === Typefief Zero (^ Morph C) (Scratchy * Scratch); @property (nanatomic) morph c __strop * morphCs; // Construction of Morph Registry ======================== Static NSMutableDictionary * morphs_; + (Zero) start {morphs_ = [[NSMUTABADADADHQ] annot]; [Methak Hydrate]; } + (Zero) hydrate {{MathC registers morph: Execute "sin": ^ (Scratchy * scratches) {AEscratches (Scratch, Sin (AESCratchpop (Scratch)); }]; } + (Zero) Register Merge: (NSString *) Name Execute: (MorphC) executed {{morphs_ setObject: for exec: key: name}; } + (Morph C) morphFromKey: (NSString *) key {return [morphs_ objectForKey: key]; } // A temporary NSMutableArray * _compiling is loading * _compiling ===== - (zero) applyTag: (NSString *) Tag stack: (stack *) stack {{_compiling addObject: [MathC morphFromKey: tag]]; } // start the C array ...