Posts

Showing posts from January, 2012

css - Styling the new twitter widget (embedded timeline) -

Some days / weeks ago, some of my sites' Twitter widgets stopped pulling through the data properly, version 2 The Twitter widget is deprecated, and the new embedded timeline widget is the only way, apparently. Except that this new widget creates an IFrame, which prevents a custom from the style of the widget - such as font family, font size, color, etc. from its own stylesheets. Settings. Is there any remedy? What I am reading, you can not apply / inject styles in an iframe, and I can not find any API-method to do this. I also want to limit the widget to just 3 most recent tweets; To make sure it is now possible, and to remove vertical scroll bar (possibly related to limiting tweets). Instead of targeting individually in jQuery elements, you have some inline CSS style iframe , so the new material loaded by the "Show more" button also, for example: to remove avatar images: $ ("iframe # twitter-widget-0"). material (). Search ('head'). ....

crash - App Crashes after moving an image button! android -

So my app has been developing lately, it's getting great, and I just want the image in the background of the app I'm updating. Well the app was working properly before I tweaked an image button to make the line with this image I made. Immediately after transferring it, the app will no longer work and I do not have any success have tried. Here is the XML of the activity & lt; Relative layout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http: // Schemas.android.com/tools" android: layout_width = "fill_parent" Android: layout_height = "Fill_parent" Android: background = "@drawable / title_screen" tool: reference = ".title skin" & gt; & Lt; Android: layout_height = "wrap_content" android: layout_alignParentRight = "true" android: layout_alignParentTop = "true" android: layout_marginRight = "18dp" Android: Layout_marginTop: TextView ...

multithreading - Invoke Windows Form Thread and Sleeping -

I have a managed C ++ application that I start a new thread to do some stuff and some text boxes I update, it loops and sleeps at the end of each loop, because of this sleep I need to keep it in a new thread so that the UI does not crash. Then I realized that I needed to use the thread which made the UI to reach the text boxes, but now I'm back in the main thread so that there is a crash in sleep. How should i contact this Private: System :: Zero Button StartCamergalic (System :: Object Sender, System :: EventArgs ^ e) {Thread Start ^ thread Start = GCNU ThreadStart (This, & UserInterface :: setText ); Thread ^ newThread = gcnew thread (threadstart); NewThread- & gt; Start (); } Zero set-test () (if-> this-> Text box cameraAnx-> Invovaruair) {MyDel ^ del = gcnew MyDel (This, and User Interface :: Settext); This- & gt; Invoke (Dell) ;} And {int count = 0; Srand (time); (calculation = 0; count & lt; 20; ++ calculation) {For each camera in camera = Coun...

c++ - Could I thread this for loop -

के लिए (अहस्ताक्षरित int mBlock = 0; mbllock & lt; coords.size (); mBlock ++) {विजेट टाइप करें widgetType; ऊंचाई = मैकब्लॉकविड्थ + कोर्ड्स [एमब्लॉक] .y; चौड़ाई = मैकब्लॉकहैइट + कोऑर्ड [एमब्लॉक]। एक्स; MacBlockParent = नए QWidget; CooefsLink = नए QPushButton (macBlockParent); मैकब्लॉक = नया QWidget (मैकब्लॉकपरेंट); WidgetType.widget = macBlock; WidgetType.type = (मैकब्लॉक्स [एमब्लॉक] [2]! = 'एस')? (मैकब्लॉक्स [एमब्लॉक] [0]): (मैकब्लॉक्स [एमब्लॉक] [2]); blockWidgetTypes.push_back (widgetType); कनेक्ट (कॉयोएफ़ लिंक्च, सिग्नल (रिलीज़ ()), यह, स्लॉट (शोकार्यिफिकेशंस ())); बटन सिग्नल [कोयुएफ़ लिंक्ग] = एमब्लॉक; constructMotionVector (mBlock); मैकब्लॉकलेआउट- & gt; ऐडविजेट (मैकबॉलकैपपरेंट, ऊंचाई - 16, चौड़ाई - 16); styleMacroBlocks (mBlock); } क्या मैं उस लूप के लिए इस से एक फ़ंक्शन बना सकता था, जहां मैं एक ही समय में वेक्टर पर ऑपरेटिंग दोनों लूपों के लिए दो अलग-अलग हिस्सों में विभाजित करके ऑपरेशन को समानांतर कर सकता था। पहला आधा आइटम पर काम कर रहा है और दूसरा धागा दूसर...

java.util.scanner - find in line java object , how to scan all the input? -

An investigation is going on in searching the IIM inline object but it is not working and I do not know why it The code is: public static zero main (string [] args) {scanner input = new scanner (System.in); System.out.print ("Enter String:"); String A = Null; String pattern = "(,)"; If (input.findInLine (pattern)! = Null) {a = input. NextLine (); } System.out.println (a); Enter the string: (9) & lt; ---------- This is what I have written this output: 9) What do I do If I want that variable a will get all the strings I wrote like this: A = (9) and not a = 9) Whatever I think you want to input some string and if that string is your pattern , Which you should be shown in the console. This will give you the right output. import java.util.Scanner; Public class InputScan {public static zero main (string [] args) {scanner input = new scanner (System.in); String A; System.out.print ("Enter String:"); String pattern = "\\ (\...

Using a variable in an if/for/do-while block in php -

If I'm not mistaken, then I used a new statement or new PHP variable for the first time in a conditional loop block. What I want to say is like the following. & lt; For php ($ i = 0; $ i & lt; 10, $ i ++) {$ total + = $ i; $ Concat = $ I; }? & Gt; But today, when I look at the error log, it says that $ total and $ concet are undefined variables then I write this $ Total = 0; $ Concat = ""; ($ I = 0; $ i & lt; 10; $ i ++) for {$ total + = $ i; $ Concat = $ I; }? & Gt; Why does it work with an error? Only ask for curiosity The reason for this is: $ Total + = $ i; $ Concat = $ I; In fact it means: $ total = $ total + $ i; $ Concat = $ concat $ I; The first time you execute the loop, you get an error if $ total and $ concat are undefined. More details: During the first part of the loop, you total $ = undefined $ total + $ The value of i; Now, the total has been defined for $ concat also.

javascript - Adding DIV dynamically to the BODY using jQuery mobile -

Image
I try to add a DIV to the body, but I received an empty page. This is mine. In this example I dropped the HTML because it is working fine. code: $ ("body") ('div data-role = "page" & gt; & lt; div data-roles = "Content" & gt; Home & lt; / div & gt; '); $ ("Body") collapsibleset () .; This does not work because data-role = "page" Has none of display . I do not know if this CSS comes from , But if you disable it like "home" appears edit This CSS is coming from jquery mobile. You can either manually data-roll = "page" to display: block; For CSS, you can set CSS to overwrite jquery in your stylesheet, or you do not even need to assign it in HTML.

connect to a access database in java using udl file -

How can I connect to an Access database in Java using a ULL file? I have seen some threads around for C # and some threads for my SQL database but whatever I'm not asking for and how to do it. I also tried to connect without Eudal and 64 bit system 32 bit system I do not have problems with Eudal and C # when I am connected to 64 bit and 32 bit. So I'm trying to use this method in Java in this problem. Kind regards I do not know that. What is the .dl file, but Java connects to database with a type IV, 100% driver using JDBC. You are out of luck. JDBC-ODBC bridge driver is only available in 32 bit JVM. It was not intended to be more than an interval, so I have seen that 64 bit is not part of JVM. You must buy a licensed access driver.

Which Seam component to use: or ? -

I am very new to the seam and are just getting used to various components available. I am thinking of what I should use for this situation. Answer the question and lt; H: Output Links & gt; and & lt; H: commandLink & gt; , that & lt; Explains the difference in h: output links & gt; produces just one basic HTML link tag with GET request and & lt; H: commandLink & gt; submits a post through a click event. I just want to attach a simple jQuery click event to a link. I do not want to redirect the link anywhere or submit a form. I basically want equals href = "#" (I think that commandLink has created href = "#" but it looks heavy for a normal link, in which no form is stored). & lt; H: outputLink & gt; but adds a href value unless I put value = "#" (which looks hacked). Which element do I want to use? I think some very basic elements are missing. (first: outputlink> and & lt; h: commandLink ...

.htaccess - Double RewriteRule with htaccess -

I have a problem with my rules; I put both but only works first. I have 2 different information files. RewriteRule ^ ([A-Za-z0-9 -] +) /? $ Tour.php? Tour = $ 1 [NC, L] Rematerialized Rules ^ ([AZA-J 0-9 -] +) /? $ ProgramApp? Program = $ 1 [nc, l] only the first thing because the matches It is exactly what you use for the match: ^ ([one-zA-Z0-9 -]? +) / $ . You should do more to isolate what to do for tour.php and what is the programa.php . Right now, if a person is in the URL address bar in http://youdomain.com/abcdefg/ , then the URI / abcdefg / is sent to your server First rule: RewriteRule ^ ([A-Za-z0-9 -] +) /? Tour.php? Tour = $ 1 [nc, l] mail because / abcdefg / your pattern ^ ([A-Za-z0-9 -] + ) /? $ and match it to /tour.php?tour=abcdefg . If he was for programa.php ? The second rule will never be carried out, because everything has been captured from the pattern of the first rule. You have to add some more difference between the two. For exam...

node.js - Someone copied my npm and released under different name. What do I do? -

Someone took my NPM and released a new NMP under my name with a different name. It seems that he has changed only a few lines, in my readme file, I have the most words. It is also under the BSD license. Do I care and should ask for it to take it down, or should it be left? According to the BSD license, permission is given the same as redistribution when appropriate source attribution is given. So issuing a patch NPM under a different name is more or less fine (although unreliable if they did not contact you about why they did not change), but if they simply removed your name and information and If you put them in, then it is a license violation and you should contact them and / or report it. The BSD license asks that the author has been compensated in compensation for the recognition of his work, and it has to be violated ... well, no big number. In the educational world, such a thing is plagiarized and it is equal to the citizen of the murder - that is, the most serious way will...

c - Extract RSA public key from a x509 char array with openssl -

Here is a certificate in the x509 format that stores the public key and module: Const unsigned char * DataBytes = {/ * Data *}; Using OpenSSL and C, how can I convert it to an RSA object? I have tried many ways but I do not have to work it in RSA_public_encrypt Can get it. I think you mean public key in RSA * structure. Since this DER is in encoded bytes, you have a certificate in bytes, so you have to convert it to the X509 * structure first. / P> X509 * cert; EVP_PKEY * Pabki; // Length is the duration of the certificate in terms of bytes DataBytes. Cert = d2i_x509 (certificate data bytes, length); Pabki = X509_get_pubkey (certificate); Please note that if RSA is a public key in the certificate, then you can get RSA public key as follows: RSA * RSA RSA = EVP_PKEY_get1_RSA (Pabki); // Now RSA is a public key, RSA is the public key. // After using, Pipki EVP_PKEY_free (Pabki) is free; I hope this should solve your objective. If the certificate encoding is ...

glob - python fix standalone exe created by py2exe including pyd/dll -

I have a very simple script and I have it in the exe format py2exe . I had transferred it to a Windows 7 machine that did not have Python. When I run it, I receive the following error: LoadLibrary (pythondll) failed Specified Module Not Found. C: \ PYTHON27.DLL I tried reading and testing some code with dll but nothing was there. How can I include this? If this helps, my Python script only imports the original stuff import import import importpass import urllib2 import import import timing You must distribute the DLL in the same directory as your executable, or the environment path on the machine Where you want to run executable.

sql - MySQL loading a tab-delimited file into a table with special characters -

I want to be able to load a file into a MySQL table that has backslash in this way: Fred Los Angeles I Fred Nick Madison Great Lakes Wow John San Diego Hello World! \ Bob NYC Big Apple User John \ at the end of column 3. When I load it in a table, MySQL interprets the backslash as a line continuation and is associated with line 3, Colonel 3 (Line 4, Call 1). I can not copy and paste just to fix this because there are millions of rows in this way, like havoc with backslash at different places. What is the correct way to load tabs with a backslash in a MySQL table in the Delihail file? Should I add each (column) field to the quote? Should I write a parser that removes special characters? You must specify escaped BY option when your file loads in the following example I'm assuming that your fields are divided by tabs (which is the default behavior) and the file is located on client host: load data local INFILE '/ path / to / file / Avoid '\ t' def...

c# - Multiple Numbers of var possible? -

How can I add multiple var to this code? var trimchars = "ab"; I want to add a sample: "ab", "as", "ab", "as" Is it possible? Tells some of my code even more: if (e.KeyCode == Keys.Enter) {string Slb = lb.SelectedText .tar (); Var trimChars = "ab"; Var Trimmed = Slab TrimStart (Trim Chars.ToCharArray ()); RTB. Selected text = sorting; Lb.Hide (); } Thanks in advance and sorry for this newbie question :). More power! You can use the strings from the beginning: - Public string RemoveFromStart (string s, ienumerable & lt; string & gt; string) {foreach (with x start in x string)) {return s. Remove (0, X. Lang)} Return S; } and var x = RemoveFromStart ("ablah", new [] {"ab", "as", "ab", "like "}); or with your code var trimmed = RemoveFromStart (slab, new string [] {"ab", "as", "ab", "Like"})...

css - Need to develop look & feel of an ASP.NET site another website -

Image
I am trying to create masterpages and essential styles in my ASP.NET site. I'm trying to replicate colors, styles from below website www.power-tek.com I'm trying to find the color code in the background color (one is brown - black)? I am also trying to detect the area that has a search button and a menu area too. I opened the page in Chrome and went into developer settings. I tried to focus on the particular area which I am seeing, but still I am not able to find it. Can someone suggest, thanks. This background is an image, click on the Chrome browser, click f12 then click on element then on body element Click, you can see the styles on the lower right corner of the screen. You will attain the qualities of all styles For the button style, you can right click on the button, then observe the element. It will show all the styles applied to the buttons on the right-hand side of the screen. BG is an image image See the image to see the details

Perl LWP:Simple Get URL String Varilable -

#! / Usr / bin / perl एलडब्ल्यूपी :: सरल; चेतावनियों का उपयोग करें; $ सामग्री = 0; $ Find = "webvis.edgesuite.net"; खुली (होस्टलिस्ट, "सूची।"); @होस्ट्स = & lt; HOSTLIST & gt ;; विदेशी मुद्रा $ होस्ट (@होस्ट्स) {$ परिणाम = `nslookup www। $ Host`; मेरा $ pos = इंडेक्स ($ परिणाम, $ ढूंढें); यदि ($ pos & gt; -1) {my $ url = "http: //www.$host"; $ Content = get ($ url); प्रिंट $ सामग्री; मेरी $ pos1 = सूचकांक ($ सामग्री, $ url); यदि ($ pos1 & gt; -1) {प्रिंट "सामग्री मिलान \ n"; } और {प्रिंट "कोई सामग्री मिलान नहीं \ n"; } $ Count ++; Chomp ($ मेजबान); प्रिंट "$ गिनती www। $ Host \ n"; }} बंद करें (होस्टलिस्ट); बाहर निकलने के ($ ERRORCODE); उपर्युक्त कोड का उपयोग करके, मुझे हमेशा निम्न त्रुटि मिलती है: IO :: Socket :: INET: खराब मेजबाननाम 'www.test.com यदि $ url को इसमें बदलें: $ url = 'http://www.test.com'; मुझे पृष्ठ से सामग्री पुनर्प्राप्ति मिलती है। तो मेरा सवाल है कि मैं स्ट...

c++ - Strange behaviour of strlen -

I created a program in C ++ in which I used two four arrays that I started at the time of the declaration And when I got the Strlen () function to calculate their length, I found the odd output code shown below. # include & lt; Stdio.h & gt; #to & lt include, string.h & gt; #include & lt; string & gt; using namespace std; All four consonants [] = {'B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N' P ',' q ',' r ',' s', 't', 'v', 'w', 'x', 'y', 'z'}; Four vowels [] = {'A', 'E', 'I', 'O', 'U'}; Int main () {int lenv, lenc; Lenc = strlen (dishes); Lane = Stellen (vowel); Printf ("lenv =% d and lenc =% d \ n", lenv, lenc); Return 0; } When running on ideone for the above program lenv = 26 and lenc = 21 And when the codeblocks run on wi...

mysql - jQuery UI Sortable update database -

Hey I'm working on a CMS and I'm building in CMS, I have all my fields data and I'm using the jQuery UI Sortable so that I can sort them, what is the best way to update the order field in my database when I drop my element? Can I use Ajax? If so, what should I look for to do this function (I have never used Ajax). Thanks in advance for any help! Ajax is a great option to do this. In jQuery, there is built-in support for Ajax. I will start with simple examples and work from there. You can use the change event to sort when you have to save the sort order again:

python - How should an application add/remove scopes to an existing grant? -

Tried to add additional scope using oAuth2DecoratorFromClientSecrets via the scope parameter oauth2client. I believe users of an application prefer to increase the privileges gradually; As a requirement, and in the form of faith forms ... What is the best way to add / extend / remove scope when there is an existing grant in the app? Cancel and authorize again? Sorry, you can not do this, you will need to re-authorize the user. I believe it would be good to increase the scope, but still you will need to show an authorization page, so I think you will not have much profit in doing this.

php - How to compare to MySQL tables and display the differences? -

We get a daily feed that is used to populate a MySQL database. I want to see the new feed to compare to the previous one, what has changed, added or removed. I am working in MySQL and PHP How can it be best done in MySQL? I am thinking that it should take the previous feed which is a MySQL table and compare it to a new feed which is also stored as a MySQL table. But how can I do this so that it can achieve the rows that have not been found in the new MySQL table? Thanks! This can help you: SELECT a. * Is not WHERE ROW (a.col1, a.col2, â ?? |) with `OLD_TABLE_NAME` (SELECT * FROM NEW_TABLE_NAME) UNION ALL SELECT b. * FROM * NEW_TABLE_NAME`b WHERE ROW (BOO1, BOO2, a ??) No (SELECT * FROM OLD_TABLE_NAME) Enjoy!

html - div 100% height with 40px bottom margin -

I know that nothing has been said before. But this is slightly different because it contains CSS transitions. .panel {width: inherit; Height: 0%; Display area; Status: Completed; Background: # 000; Opacity: 0; Z-index: 2; Margin-top: 40px; Margin-right: 40px; Margin-left: 40px; Margin-down: 40px; Bottom: 0; Top: 0; Left: 0; Correct: 0; -WebKit-Infection: All .8s ease-in-out; -Mozy-infection: All .8s ease-in-out; -O-Infection: All .8s ease-in-out; Transition: all .8s easily out; } When the box is opened, I am trying to get 40px in the green box on all sides from the browser perimeter. Any ideas how can I fix this? Edit: At the same time, I still want to wipe and wipe out while opening and closing the box. The reason for this is that you height : 100% in the .panel: target . If you remove it then it will be fine. .panel: target {background color: RGBA (226, 22, 16, 0.8); Opacity: 100; Width: Heir; Display area; Margin-top: 40px; Margin-right: 40px; Margin-le...

java - how to reload main activity after click "OK" on AlertDialog -

I have an alert dialog and I have to reload the main activity after clicking "OK". The problem is that after my activity has returned to the home screen, click OK Java Code:. private void buildAlertMessageNoGps () {final AlertDialog.Builder builder = new AlertDialog.Builder (this); builder.setMessage ( "This application needs GPS satellites or wireless networks enable localization" + "\ n" + "Do you want to enable it?") .setCancelable (right) .setPositiveButton ( "Yes", the new DialogInterface.OnClickListener () {public void onClick (last DialogInterface dialog, @SuppressWarnings ( "unused") final int id) {StartActivity (new intent (Settings.ACTION_LOCATION_SOURCE_SETTINGS)); end (); startActivity (getIntent ());}}) .setNegativeButton ("No", New DialogInterface.OnClickListener () {Public Zero onClick (Last DialogInterface Dialog, @SuppressWarnings ("Unused") Last Flood Nank id) {dialog.cancel ();...

c# - Alfresco programmatically navigate to correct folder -

I have a question about Alfresco and dot CMIS library. In fact, I would like to go to a particular folder and make a document there. At the moment I have the following code (I know it is dirty, but it was for testing): dictionary & lt; String, string & gt; Parameter = New Dictionary & lt; String, string & gt; (); Parameters [Session Parameter.BindingType] = Binding Type. Atpub; Parameters [session Parameter.AtomPubUrl] = "http: // webadress: 2005 / alfresco / service / cmis"; Parameter [session pamator User] = "amin"; Parameter [session Parameter.Password] = "admsw"; Session Factory Factory = SessionFind. NewInstance (); IList & LT; DotCMIS.Client.IRepository & gt; Repositories = Factory. Gateway (parameter); DotCMIS.Client.isession session = repository [0]. Crack Season (); Forchcha (ICMISOb SeamisObject in Rootfolder.GetChildon ()) {console.lightline (cm object number); If (cmisObject.Name.Equals ("AlfresCO")) {...

python - How do I plot FFT in Numpy -

This seems like a very simple question, yet I could not find any documents for it. I have an image in Nampee, and I want to do imshow the FFT. I can just do it F = fft (myimg)) Imshow (f) I do not do this in Namie Because the F complex is valuable. Trying to do imshow (real (f)) gives me an all black image - I'm guessing because 0. [0,1] instead of 0. 0 Multiplying by 255 also does not fix this issue. How to get my plot any idea? Update: Okay, Nattan told me how I was simplifying this problem wrongly. Allow me slightly backwards I have a video matrix of dimensions (200, 30, 30, 3). For every color channel of 200 frames, 30x30 pixels, 3 color channels for each pixel, I want to calculate the fft of that pixel in time in the series. This should give me a new matrix that is (20030303,3) for each pixel, in each color channel, a 200-dim floating fourier conversion of each pixel. So I should be able to see the image created by the values ​​of the first coefficien...

c - Creating an array of structs -

So I'm trying to modify some code and I need to make a straight one. The structure is declared as follows: Type-tof strip header {int sample_rate; Int num_channels; Int bit_res; Int num_samples; Four * data; } Header; Typedef Structure header * header_p; What is the correct way to create and use an array of this structure? I was making some effort on the lines of this: header_p fileHeader; ... fileHeader = (header_p) malloc (sizeof (header) * (argc-1)); Which seems to work, but I'm not sure how to use the array correctly. Edit: (Some of my questions have been cut in some way) when I use the array like this: file header [0] = function header Returns returns; I get the following compilation error: while incompatible type while assigning to type ???? Struct header One by type Header_pac Edit: After the lundin advice to remove the silly type that hides student pointers it was easy to understand what was going on. It was easy to see that Alex was right ...

extjs - Which event is fired changing the tabpanels tab in extjs4? -

I extjs4 mvc. I am working in I am stuck at a point where I want to handle the event when the tab panel is being turned on the tab. I am using the MVC structure in exts4. I am tried with a change of tab, but when the tab is changed, it is never removed. Please give me some advice on how to handle such a situation ... Here are some of my codes: - 1) My visual file: --- Ext.define ('Am.view.center.centerTab', {extension: 'Ext.tab.Panel', id: 'centerTabId', frame: true, flex: 1, nickname: 'widget.CenterTab', minTabWidth: 200, range: 0, style: {border color: 'white', // border style: 'solid'}, items: [{title: 'tab1',}, {title: 'tab2',}, {title: 'tab 3 '}] / end of items}}} // end of login class 2) And here my code is some code: --- ------ ' Untab ': {Tab: replace this.tabChaged1}}); // the end of the control}, // the end of the init function tab has changed 1: function () {console.log ("tab ...

javascript - Dynamic zoom level set so whole polygon can be visible in map area -

Image
I have inputs to get a polygon with different points on Google Map. Center point: For East: London New google.maps.LatLng (51.8100844, -0.02911359999995966) Late: East: 51.8100844 LNG: For East: -0.02911359999995966 Distance (miles): East: 10 miles The output is similar Dynamically zoom out / map so that the entire polygon appears within the map area. If distance becomes high then it will be shown this way. Let me assume that I have entered 100 miles Finally the zoom level can not be reset, though the distance has changed. create a loud long-bound polygon - path fitbones -am map .

Magento how update product price in cart -

I want to update the price of the product, depending on the different sizes and the quantity recorded for the size (I For example, using a custom option: I have a product with two different size options 1 size: S size 2: m Where size 2 is 2 dollars additional, therefore if The price of the product is $ 14 and if the user selects this size, For the amount of the car, the user will charge $ 2 extra. Another example: small size quantity: 5 medium size volume: 1 then the price of the product 5 * 14 = $ 70 6 * 16 = $ 96 / Pre> Therefore the cost of the product is $ 96, instead of $ 96. Are the Products? Configurable Products For A Simple Product Or should not Ujud that are not visible separately. Since the configurable product is only a shell to keep it together, so you can still change the prices of individual products. Good luck!

java - List or Collection: which one to use in interfaces? -

Assuming that I want a loose coupled interface, I often avoid using list implementation (such as ArrayList) in list signatures and I like to use the list. Interface But as the archive is another general interface, do you think I should use the archive from the list? Edit : I know the difference between the list and the collection. I do not care about the order or a list-specific feature, and this question is also about the return values ​​along with the method criteria. A good API is required without highlighting unnecessary implementation details I myself Using the list or determining the most. By changing the list or changing it with a collection, sometimes the API makes it really weird to use without any extra decoding or intangible offers. I use Maps in the Mathri sign I try to avoid because I think input / output is very complex. This data can be solved by creating a specific wrapper class or by changing the location of the method so that the data has direct access...

eclipse - Open or search resources in external jars -

Is there a way to use "open resource" or search - & gt; File in Eclipse to find resource files (like * .js, * .css) in external jars? Add those external jars to the project, preferably in a separate folder. And search - & gt; By entering a filename in the contained text field in file name pattern and *

java - Insert float value to Mysql with Hibernate -

I am trying to save the float value in my MySQL db. However, the code below was applied with no errors, the row in the DB is not inserted. I'm guessing that this is an "F" in my float value How can I overcome this issue? Thank you! userbeam = tailbean = new UserBean (); Tailbean.setImei (555555559999f); Tailbean.setName ("RAW"); Tailbean.setPassword ("hhh"); Session = getSession (); Session.beginTransaction (); Session.save (tailbean); Committed to session.getTransaction (). Session.close (); You are creating a proper Java float, its value in F is not included. , F is primarily for the compiler to understand that this is a temporary number at the first place, but since then it is considered to be a proper float number. The number for the number is probably too large float : There are 32 bits in it and the number you enter is not fit in this kind of range. Perhaps you will need to use double and suffix D ?

c - How to check if a file still exists using a file descriptor -

I have a file descriptor that is set to a positive value with the result of an open () function, Indicates a line When I delete the original file, then still there is a positive integer. I want to know that if I delete a file for some reason, then how will I know that this file descriptor is no longer valid. In short, how can I know if the file that is giving the FD signal is still there or not? I am trying to do this in free BSD in C. Unix system delete files you open) Delete all references to file from file system but file descriptor still valid anybody reading and writing will succeed, because they will still be there with the file name. In other words, you can not completely delete a file until the file descriptor is closed. Once closed, the file will be automatically removed. With a valid file descriptor, you can check that the file name still exists, such as printf ("% d \ N", buf.st_nlink); // is not a filename where buf is a struct stat initia...

javascript - Convert multiple Textareas to LI in unordered list -

I have an unknown number of textareas to process the data entered by the user to give me the list of elements of my content Need to change in By using JavaScript and / or jQuery, I can change how: & lt; Textarea & gt; Content 1 & lt; / Textarea & gt; & Lt; Textarea & gt; Content 2 & lt; / Textarea & gt; & Lt; Textarea & gt; Content 3 & lt; / Textarea & gt; To do this: & lt; Ul & gt; & Lt; Li & gt; Content 1 & lt; / Li & gt; & Lt; Li & gt; Content 2 & lt; / Li & gt; & Lt; Li & gt; Content 3 & lt; / Li & gt; & Lt; / Ul & gt; I have to send a resultant UL to a variable sent to the AAJX service. Editing - So far I have tried: var viewtactress = $ ('text: view:'); Var listItems = visibleTextareas.replace with (function () {return $ (' gt;' $ (this) .val () + '& lt; / li & gt;');}); Var text = '& lt; Ul & gt; + Lis...

Find and replace value in Excel using C# -

How can I get some value from the cell and how can I replace the new value in Excel? I tried it but it does not work: Microsoft.Office.Interop.Excel.Application xlapp = New Microsoft.Office.Interop.Excel.Application ( ); Microsoft.Office.Interop.Excel.Workbook wb = Default (Microsoft.Office.Interop.Excel.Workbook); Wb = xlapp.Workbooks.Open (FileName.ToString ()); Wb.Worksheets [0] .Cells.Replace ("think", "replace"); I recommend you use that which is either directly through nodegate The codeplex can be directly accessed or visual studio. It gives you the ability to easily upload, edit, and create spreadsheets. NET Example of uploading a spreadsheet: HSSFWorkbook hssfworkbook; Zero InitializeWorkbook (string path) {// Read the template through FileStream, it has been suggested to use FileAccess. To stop file lock, read //book1.xls is an Excel-2007-generated file, so some new unknown BIFF records have been added. (Use the filestream file = new fil...

Cant tap list items in sencha -

I've added two buttons to my container and tap on the list item that does not work anymore. help please. code Ext.define ('X.SelectCategories', {extend: 'ExtContainer', xtype: 'selectcategorypanel', id: 'SelectCategories', is required : [], Start: function () {this.callParent (); jsonObject = Ext.create ('Tablet'). Make_webservice_call ('get_categories'); Ext.getCmp ('select_category_list'). Setdata (json object. Info ); Console.log (jsonObject Info); //this.getNavigationBar.hide ();}, config: {title: 'select categories', // iconCls: 'team', // styleHtmlContent: true, // slabal: True, layout: {type: 'fit'}, item: [[// fullscreen: true, mode: 'multi', / * layout: {type: 'fit'}, * / / title: 'selection categories' Xtype: 'list', '' name '' 'title']}}, {xtype: 'container', // f Lascarine: True, Layout: {type: 'vbox'}, Flex: 1,...

android - Not Able to Launch Activity using intent -

मेरे पास एक बटन आरम्भ किया गया है button1 = (बटन) findViewById (R.id। Button1); Tn onClick () फ़ंक्शन मेरे पास सार्वजनिक शून्य पर क्लिक करें (देखें ARG0) {// TODO स्वत: उत्पन्न विधि स्टब इंटेन्ट आशय = नया आशय (यह, MainActivity2.class); startActivity (आशय); } मेरी नई गतिविधि का नाम मेनिफ़ेस्ट फ़ाइल में मुख्य गतिविधि 2 है & lt; गतिविधि एंड्रॉइड: name = "com.example.intent.MainActivity2" एंड्रॉइड: लेबल = "@ स्ट्रिंग / शीर्षक_ैक्टिविटी_मैन_एक्टिविटी 2" & gt; & Lt; / गतिविधि & gt; गतिविधि 1 पब्लिक क्लास मेनएक्टिविटी गतिविधि का कार्यान्वयन ऑनक्लिक लेस्टनर (बटन बटन 1; @ ओवरराइड संरक्षित शून्य को क्रिएट (बंडल सहेजा गया इन्स्टैंसस्टेट) {सुपर.नक्रेट (सहेजे गए इन्स्टेंसस्टेट); setContentView (R.layout.activity_main); बटन 1 = (बटन) ढूंढें वीवीबीआईआईडी (आर.ड.बटन 1); } सार्वजनिक शून्य onClick (देखें ARG0) {// TODO ऑटो-जनरेट किया गया विधि स्टब आशय इरादा = नए आशय (यह, MainActivity2.class); startActivity (आशय); }} XML लेआउट & ...

actionscript 3 - How do i get my UILoader to play an .SWF once then disappear? -

Then how do I get my UILorder to run the SUVF file again? > I am creating a guitar tutorial app that shows you the shocks and transitions between you To display Chords I am using standard flash graphics and for transition I am using the UI loader to display .swf files for example, on the wire frame, the fingers are in position and the UI loader A layer on the top is about it, when the wire transition list is selected from the component, it loads the chordtransition.swf The problem is that once the SWF loads, this loop Plays on ive "Stop ();" People are suggesting in many different places and it does not matter. I want to be able to click on the "CD" on the component list, then the SWF will disappear again to play. / P> Any ideas ?? A strategically held stop (should be done) (at the time of the last frame SVF) The correct movie clip has to be stopped - if your movie has a nested clip then you can stop the wrong clip. However, I feel more about s...

jquery - jQueryUI droppable and sortable - cant change the order and few bugs i cant fix -

I have put together most code, just a few things can not work: - Items in the "Selected DVD" area I need to be able to change the sequence of these DVDs in this list, so I can change the order of 1,2,3 to 3,1,2. Do not drag items in the "unselected" area in the selected DDDA area If I click on the link the top Click on "Add all unselected DVDs" and then click on the "Remove All Selected DVDs" link, this does not add them to the bottom of the correct area. However, if you click the "Remove All Selected DVDs" link ... this works After # 3 if I add a new DVD to the top right I sometimes add the weight of the same DVD? Whatever I have done here is one of the works: More code above in Bella ^ // Gallery Items $ $ ("li", $ Gallery) Dragable (Druging will not start) (Drugs: (Cancel: "a.ui-icon", // click) Back: "Invalid", // When not left, the item will be back in its initial state: ...

c# - WPF RibbonComobox -

I am using a small ribbon combo box and I'm struggling, which is one of the items selected from the event Shows the change. For example, I have a list with Elements A, BC, and the user clicks on "B", then on "C" - which sets the event fire? If you do this & lt; Ribbon: Ribbon combo box & gt; & Lt; Ribbon: Ribbon Gallery selectedType = "{Binding Path = PropertyTwoPoint}" & gt; & Lt; Ribbon: Ribbon Gallery Category ItemSource = "{Binding Sources = {Static Resource Collections OFPCOC}}" /> & Lt; / Ribbon: RibbonGallery & gt; & Lt; / Ribbon: RibbonComboBox & gt; Then there is a selection program in Ribonglari that you can attach.

css - Making a rhombus shape using background images -

I am using the following test code to try to make a rhombus type shape. The duration is a standard rectangle, and 2 sides will reveal it as an equilateral ********* * * ****** However, the selectors do not seem to render anything before and after. I'm not sure if I'm doing it wrong or if I'm in the right position. Any thoughts? & lt; Style & gt; Duration {width: 50px; Height: 20px; White color; Background color: red; Padding: 10px; } Duration: {background: url ('left_side.png') before center not-repeat; Height: 43px; Width: 22px; } Duration: {background: after url ('right_side.png') not right center again; Height: 43px; Width: 22px; } & Lt; / Style & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; Period & gt; Some text here & lt; / Span & gt; & Lt; / Body & gt; & Lt; / Html & gt; #demo {border-top: 100px solid red; Border-left: 50px solid transparent; Border-right: 50px solid ...

iphone - UIImagePickerController issue in IOS6 -

Image
In my application I have integrated the UIImagePickerController to capture the image in the IOS 6 version device, if I use UIImagePickerController while rendering. From the running to the scene (the camera running mode) and come again, the status bar at the bottom of the visual alignment is automatically changed (Y is automatically incremental coordination.) It works fine in iOS 5. Before the orientation problem occurs. to display UIImagePickerController The code used picker = [[UIImagePickerController alloc] init]; One a picker.delegate = (id) itself; A picker.allowsEditing = Yes; A picker.sourceType = UIImagePickerControllerSourceTypeCamera; [Self present ViewController: animated picker: yes complete: zero]; Guide me to fix this issue. Thank you. Instead of presenting the Uiimagepicker view controller, simply add it as a sub-view using the appropriate frame, such as [picker.view setframe: cgraactemake (picker.view.fr.fr.engin.exe, picker.viewframe.origin.a-20, pi...

capybara - Test if text does not contain any HTML -

I have to test whether there is no HTML in some content or not, what is a simple and clean way of doing this ? Page.Fund ("Details"). Should_not has_content /\<.**>/ does not work properly, because it is & amp; Amp; the lift; & Amp; ATM; Fails on , but & lt; Strong & gt; Homepage Possibly the way in which Captara helps its user to avoid HTML. Working with Xpath, but leaving me to think that there is no easy solution. Page Is there no idea that some text has been stripped from HTML? In Capepara Cepepara has is_sign? The purpose of the (and thus has_content ) method is to check the text of the user, not the text in the html source of an element as you expect. In this way, I think the captain's behavior is correct: If .description is the html source & amp; LT; Strong & amp; Gt; Homepage , then user & lt; Strong> Homepage looks / \ & lt. * \ & Gt; / searches for this text and finds it. If the...

c - Visual map of Files -

I have just written a program that divides a very large program into its various components and stored them in a tree. Like directories and sub directories. I was wondering if there is a program that can graph the file system. I am not trying to do that, if possible, write your program if possible If so, it would be easy to use the program. Windows or Linux programs will work. You can try WinDirStat, what it says for you. There is also a version for Linux

git - Create an offline version control for R Studio -

I need to create a (personal) version control where I will be the only one to access it. I would like some feedback how would it be possible for repositories in your local drive instead of your online drive. In these other questions and it is possible that using GET, but does not provide any real insight. Does anybody help? Git is quite fine, even if you have only one repository, the normal workflow is that you always have your own Work on own, local stores. You can share changes with other ("remote") repositories, but you do not have to do this. Local repositories can do everything automatically, including branches and browsing history.

android - Access another app's data with sharedUserId -

I have an app that is already on the market, let's call it "old app". I would like to create a "new app" which shares the data with an old app that I have decided to use a shared ID. I have modified the new app's manifest by adding the following line: android: sharedUserId = "com.myname.myoldapp" Where com.myname.myoldapp is the name of the old app package. But it does not work. How can I access older app data with the new app? Matching the old app's userId to share new, obviously, there is no option because old apps are already online and all users who update will lose their personal data. PS: The certificates are the same. Thank you. I already have an app on the market, let's call it "old app" . I would like to create a "new app" which shares the data with an older app, I have decided to use it with a shared ID. It will no longer be possible, without breaking all your current installation. ...

GWT: How can I add UiBinder xml layout to my Widget? -

I have a button that is a direct line of GWT PushButton . I want to add UIB & XML layout to my button to make my design easier. I have created MyButton.ui.xml and I have the following content of MyButton : Class Mitton extends pushbutton {Interface UI extends UIBinder & lt; Widgets, Mytons & gt; {} Personal Static FINAL UI UI = GWT.create (UI.class); @UiConstructor Public MyButton () {super (); Ui.createAndBindUi (this); } (...)} The problem is that my button has not been sung. GWT creates some div and places the input element inside, but the layout I created in my uibinder xml file is not implemented. Where did the wrong happen? I'm not really sure, but it may be because it's because of the AsWidget () method Apply: @Override public widget asWidget () {return widget; } Where the widget is declared: Private last widget widget; And you started in the constructor: widget = ui.createAndBindUi (this); Hope this helps

printing - POS Printer release method -

I am developing an application that prints the receipt through a POS printer. It is necessary that my application could communicate with POS printers from many examples of my application. My POS printer is fit in the network and I want to be able to print from every instance of my application. It works fine, but before the print method, I have to claim the printer and it takes 0.8 seconds (too long) and after the print method I need to release the printer and which is 3.1 (!!!! ) Takes seconds. Can anyone help claim me and release it faster? Ask your printer vendor (or whatever service item provides for your printer.) Your Service Object ClaimDevice () is doing extra stuff during initialising, such as to ensure uploading logo bitmaps to printers, it starts with a coherent position if you have a logo with your printer Configured, then delete them to see it Try that it increases the claim (). Before reporting the device there may be a delay in ensuring that the print buffe...

Can't get the autocomplete search form to work -

I am implementing a search form that displays suggestions as if you start typing but it does work The problem is that when you start typing it does not show any suggestions Can you help me get the right code? thanks a lot! This code is: & lt; Script src = "// ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js" & gt; & Lt; / Script & gt; & Lt; Div & gt; & Lt; Input id = "auto-complete" type = "text" & gt; & Lt; / Div & gt; & Lt; Script & gt; {ID: "Yahoo", Value: "Yahoo"},], Minnamban: 1, Open: $ {"id =" "autocomplete}" {{id: "Google", value: "Google"}, Festival (event, UI) {$ ("ul.wi-autoproplate"). Unbind ("click"); Var data = $ (this) .data ("autocomplete"); Console.log (data); Var i = 0; I & lt; = Data. Options.source.length-1; I ++) {var s = data. Options.source [i]; $ ("Li.ui-menu-item a...

javascript - replace onclick in a string -

I have a Texter in which there are many images all the images have an ID and I want a loop through all those pictures And check whether an onclick event (depends on ID) is required if I do not need an onclick event so I need to check what it is and remove it. If need II still need to remove it and add another (because the value of onclick can be changed) How can I do this? & lt; Img id = "SlideShowImage_3" style = "border: 1px solid black; cursor: indicator;" Title = "3" onclick = "loadSlideShow ('7', 'open', '3', '', '2')" src = "upload / nieuws / 7 / 1363788115.jpg" alt = "3" / Gt; & Lt; Img id = "slideShowImage_3" style = "border: 1px solid black; cursor: indicator;" Title = "3" src = "upload / nieuws / 7 / 1363788115.jpg" alt = "3" /> Try it out: function cleanCode () {var container = $ ('& lt; d...

mobile - How Do I install an app on the ubuntu Touch device -

I am looking into Ubuntu Touch. So I installed Ubuntu on Nexus 10 I created the sample app by following the instructions So now I have the equipment which is Ubuntu Touching and running an application, how do I put an app on the device? Qt Creator : You can open your project by connecting your Ubuntu Touch device via USB and simply press Ctrl + F12 . This only works when you have installed the SSH-server once on the device. Alternatively you can manually . Copy the required files (* .qml and * .desktop) to the device and start the application via SSH qmlscene --desktop_file_hint = / usr / share / applications / qmlscene.desktop YourApp.qml Remember, this is all beta and if you are not a developer, at this level you will not have much use for Ubuntu Touch. After all, Ubuntu Touch will have your app store, where it will be very easy to download the app and install them on your device.

c# - Update lock screen using a ScheduledTaskAgent -

I want to be able to update my lock screen image using a scheduled task agent. I saw a good article what my problem is in this video that it has been shown how to change your background with a picture from your individual storage. Using: URI Image URI = New Uri ("MS-AppData: ///local/shared/shellcontent/background2.png", Uricund.relative orsolute); is not my case (I have to download it from webservice) I created a small project with a piece of code in which an image should be downloaded, it stored on my separate storage And then have to use it to upload my lock screen (I think this is the best way to do what I have to do.). I used to do this: Safe override zero onewolk (scheduled task assignment) {deployment.Current.Dispatcher.BeginInvoke ((=) => {SavePictureInIsolatedStorage (new URI ( "Http://www.petfinder.com/wp-content/uploads/2012/11/101418789-cat-panleukopenia-fact-sheet-632x475.jpg")); // Lokhelpr (); NotifyComplete ();}); } and: Priva...

windows - Difference between manual deletion and deletion by a script?! (bat or vbs) -

I am currently trying to automatically delete a program's files while running the program. If I manually delete files in Windows, but not if I delete files with a script then the changes in the program are recognized. All files are deleted, however. I tried a bat and a VBS script, by calling the script manually and / or from within the program - always with the same result: Manual deletion is recognized, the script is not deleted. I should mention that it is important to me that I can make a script / executable call, which automatically removes files, from LUA 4.0. What exactly happens if I delete a file in Windows and the way it is different to delete it by a script? Is there a way to remove 100% of simulation windows? Or is there some secret folder 'update' flag, which I do not know? Natural Folder Properties Update DateLastAccessed and DateLastModified are updated. Here are my script to perfection (he fitting destroy any existing file * Random * .level ...

ibm mobilefirst - build all and deploy error in 5.0.6 -

सभी का निर्माण और 5.0.6 में तैनाती त्रुटि - एक खाली वर्कलाइट प्रोजेक्ट बनाएं, सभी को बनाएं और डिपाई ...... तो कंसोल में झटके में त्रुटि ....... पहले से धन्यवाद ... [2013-03 -21 21:54:00] वर्कलाइट सर्वर ने स्थानीयहोस्ट पर सफलतापूर्वक शुरू किया: 8080 [2013-03-21 21:54:00] सक्रियण कार्यलेइट प्रोजेक्ट: SDMobileBank ... [2013-03-21 21:54:06] सक्रियण विफल । बंडल शुरू नहीं हुआ: डी: \ वर्कलाइट_workspace \ SDMobileBank \ bin \ SDMobileBank-customization.jar [2013-03-21 21:54:32] वर्कलाइट प्रोजेक्ट को सक्रिय कर रहा है: SDMobileBank ... [2013-03-21 21:54: 32] वर्कलाइट सर्वर ने स्थानीयहोस्ट पर सफलतापूर्वक बंद कर दिया: 8080 [2013-03-21 21:54:34] वर्कलाइट सर्वर स्थानीयहोस्ट पर सफलतापूर्वक शुरू हुआ: 8080 [2013-03-21 21:54:41] एफडब्ल्यूएलएस 2001 आई: एक से अधिक आईपी पते का पता लगाया गया । वर्कलाइट सर्वर के सार्वजनिक आईपी पते के रूप में 192.168.25.45 का उपयोग करना आप worklight.properties में एक अलग आईपी पता सेट कर सकते हैं। [2013-03-21 21:54:44] FWLSE3005I: आवेदन कच्चे रिपोर्ट अक्षम हैं [2013...

html5 - How to separate HTML output field into 2 separate fields instead of one amalgamated field -

Currently, this code gives me the desired results for numbers, although two possible outputs are shown as a long number But I like to be able to separate them in my table. & lt; Form oninput = "x.value = parseInt (a.value) * parseInt (300); y.value = parseInt (a.value) * parseInt (400);" & gt; & Lt; Input name = "a" value = "" type = "text" & gt; & Lt; Output name = "x" = "a b" & gt; & Lt; Br> & Lt; / Output & gt; & Lt; = "A b" for output name = "y" & gt; & Lt; / Output & gt; & Lt; / Form & gt; I tried to put each field in the table & Lt; Input name = "A" value = "" type = "text" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> & Lt; = "A b" for output name = "x" & gt; & Lt; / Td> & Lt; / TR & gt; & Lt; TR ...

Replace the first line and save to a file in Matlab? -

I'm trying to do this in Matlab, but it shows that Error using fgets Invalid file identifier to use a Fopen to generate a valid file identifier Can someone help solve this problem? Thanks in advance. The following are my syntax: function [] = replaceStr (fidInFile, DIF (k), DIF (k + 1)) k = 1: 100 fidInFile = fopen (['Sum' num2str (k) '.inp'], 'r'); FidOutFile = fopen (['amount' number 2str (k + 1) '.inp'], 'w'); NextLine = fgets (fidInFile); While the next line & gt; = 0 next line = strupp (next row, ['data = dif' num2str (k) '' dat '], [' data = dif 'num2str (k + 1)' .dat ']); Fprintf (fidOutFile, '% s', next line); NextLine = fgets (fidInFile); End fclose (fidInFile); Fclose (fidOutFile); To read in a file, replace the first line, and type it back to you You can do the following: % open files fidIn = fopen ('test.txt'); FidOut = fopen ('test2.txt...

machine learning - Neural Networks (input and output layers) -

When working with mutation classification, it always happens that the number of nodes (which are vectors) except the bias in the input layer is similar to the number of nodes in the output layer? Incomplete input layer features makes output prediction for layer classes. There is no need to have the same number of facilities and classes; It also depends on how many models you model multiple square output.

eclipse - How to generate a class diagram from android project using papyrus -

Image
I install papers on eclipse to generate square digram of an Android application, but I work I do not know how to find that I did search on the net, I only found out how to make a new project with scratch, not what I want. Thank you I do not think that only the work of reverse engineering of the Java Java code Will: This is more oriented than the JVM code generation from the UML model. Although you have not necessarily maintained it. However, you can be as much as you want by using addition to . See and this The second option: ObjectAd UML Explorer is an agile and lightweight code visualization tool for Eclipse IDE. It shows your Java source code and libraries in the live UML class and sequence diagram that automatically updates as your code changes. The image below is a class diagram of the actual source code:

How to publish Google Spreadsheet extension on the Chrome web store? -

I'm interested in writing an extension for Google Spreadsheets that uses the spreadsheet UI enhancement capability. If I am not the only possible way to make such a program, then it is to create a container-bound script, which can only be published in the spreadsheet script gallery. This is unfortunate because I want to publish it and maybe sell this script and make it widely available for Google Spreadsheets users. I was thinking that Chrome Web Store would be ideal for these types of things, but it is not possible to publish container bound scripts (only web applications can be published on it) So, I I am looking for a solution to this problem. I have thought of a solution that can work: Create a web app and publish it on the Chrome Store. The web app is actually a library that depends on the container-bound script. Is this also possible? The container-bound script is stored in the gallery. Can you deny users using your script in the gallery if the web app is not installed?...

time series - cross-correlation using ccf in R -

I want to use CCF in R to calculate cross-correlation on two sets of time-series data. The question is how can I know that the dash falls out of the blue lines without having to manually see any correlation coefficient in the plot? Since I have thousands of sets of time-series data, to deal with it thank you in advanced! Here's how to calculate confidence interval: res & Lt; - ccf (mdeaths, fdeaths, ylab = "cross-correlation") upper ci & lt; - qnorm ((1 + 0.95) / 2) / sqrt (res $ n.used) lower CI & lt; However, help (plot.acf) warning: (1 + 0.95) / 2) / sqrt (res $ n. Used) The confidence interval plotted in plot.acf is based on an unorganized chain and should be treated with due care. Using Ci.type = "ma" may be misleading. type "ma" to see getAnywhere (plot.acf) .

javascript - Retrieve keypress event -

Implementing keypress to submit when I press Enter. I have created a jquery plugin and some Need help: jQuery.fn.enterpress = function (obj, button) {if (e.which == 13) {jQuery (button). Click (); }}; In this function, I retrieve the obz (html form), and the button (which will be one click). I'm not sure, but I probably do not need this 'obj'. My problem is that I do not have this 'E'. I tried several ways, but I do not know if I How can i get back I created it: jQuery ('#' + obj.id) .capers (function (e) {} But the function was removed twice, sometimes three times. Thanks In jQuery, there is a built-in method for this called quote. $ (" # target "). Event (event) {if (event.which == 13 } {Event.preventDefault (); // do stuff here}} If you want to add more common method for binding, an 'Object' keyboard event has a jQuery object And then clicking on a button (as you have mentioned in your question and commen...