Posts

Showing posts from March, 2015

regex - Implementing "quotemeta" \Q ... \E in Tcl? -

Typical Usage-case occurs when a regex needs to include user input Regards (I.e. "Dirty Dozen" in Perl) is needed to escape. Pearl provides the functionality of "quotemeta" to do this: simply assign the variable to \ Q and \ E . Does TCL have a good (strict) implementation in the coatetta? The work of Pearl changes only every non-word character (i.e., letters other than 26 lowercase letters, 26 uppercase letters, 10 digits and underscores). A backslash is a redundancy because all non-word characters are not regexp metacharacters, but it is simple and safe, because to avoid a non-word character that is not required to escape, is harmless. I believe this implementation is correct: proc quetamata {str} {regsub -all - {[a-zA-Z0-9_]} $ Str {\\ & amp;} Str Return $ str} But thanks to Glen's comment, this is the best, at least the TCL ( \ w proc quotemeta {str} {regsub -all - {\ W] } $ Str {\\ & amp;} str returns $ str} (I'm assumi...

playframework - JSON Object Error in JAVA -

Hey I'm following the fbconnect module tutorial to implement login with Facebook functionality I have this verb my user model public static zero facebookOAuthCallback (JsonObject data) {string email = data. Get ("email"). GetAsString (); User user = findByEmail (email); If (user == tap) {user = new user (); User.email = email; User.insert (); } Session curent (). Put ("user", user.email); } I get this error Do I need to import something? The file /app/models/User.java could not be compiled. Error has been raised: JasonAbject can not be solved by a type Any idea thanks It seems that you have many import unavailable, the easiest solution would be to use an IDE such as IntelliJ, in which the playframework source files (/ framework / src ) is. If you can not do this, try to find out every problem, and you will need to find related imports. With your previous comment, session is actually an internal class of HTPP, so you have to import p...

set image width with php? -

I am creating a custom blog with PHP when the user is uploading an article, I have problems with images in the post The width of some images is larger than the main div in my blog (740). I want to use php to check the width of the images, if it is larger than 740, then resize the image to 740. & lt ;? Php $ dom = new domDocument; $ Dom- & gt; LoadHTML ($ article_content); $ Dom- & gt; Protected WhiteSpace = false; $ Imgs = $ dom- & gt; GetElementsByTagName ("IMG"); $ Links = array (); ($ I = 0; $ i & lt; $ imgs- & gt; Length; $ i ++) {$ links [] = $ imgs- & gt; Items ($ i) - & gt; GetAttribute ("width"); $ Image_path = $ links []; $ Article_source = imagecreatefromstring (file_get_contents ($ image_path)); $ Image_width = imagesx ($ image_source); If ($ image_width> 740) {$ image_width = 740;}}? & Gt; So far, I have a code I do not believe how to set the image width. (The image already has its original width) Update: ...

- Where Developers Learn, Share, & Build Careers

I have an object with several organizations, some of which are related to paper clippings-attachments that are stored on S3. . copy_salon = @ salon.dup copy_salon: If I duplicate the item and associations it works fine but the attachments did not duplicate It works without getting images here .about_us_versions = @ salon.about_us_versions.collect {| About | About_us.dup} I try to get this type of image link: copy_salon = @ salon.dup copy_salon.about_us_versions = @ salon.about_us_versions . Gathered {| About_us | About_us_dup = about_us.dup that about about_us.about_us_image about then_us_dup.about_us_image = about_us.about_us_image end about if about_us.team_image then_us_dup.team_image = about_us.team_image about_us_dup} But then I'm getting the error 'can not be converted into zero in string', probably because not all images are installed. not understood, elegant but not working I hope SW all associations and attachments to my objects Will duplicat...

Duplicate a rails object with associations and paperclip attachments -

I have paperclip-attachments in anything related objects from an object with several organizations which are stored on S3. . copy_salon = @ salon.dup copy_salon: If I object copy and associations it works fine but not attachments duplicate It works without getting images here .about_us_versions = @ salon.about_us_versions.collect {| About | about_us.dup} I tried to link this kind of image: copy_salon = @ salon.dup copy_salon.about_us_versions = @ salon.about_us_versions . Gathered {| About_us | About_us_dup = about_us.dup that about about_us.about_us_image about then_us_dup.about_us_image = about_us.about_us_image end about if about_us.team_image then_us_dup.team_image = about_us.team_image about_us_dup} But then I'm getting the error 'can not be converted into zero in string', probably because not all images are installed. not understood, elegant but not working I hope SW all associations and attachments to my objects Will duplicate with There is no ...

ios - Using Mapkit offline -

I would like to use the mapkit framework in my app offline, so that users do not have to use roaming to download tiles. . . I've seen other maps using Google Maps and have seen the tiles in the app without downloading for the first time. How can this be done? Will cached tiles in cached.db save somewhere else in the project so that they are by default there? Do I need to create overlays? I have seen many similar questions, but I am still thinking that there can be an answer somewhere. Has Google really rejected its map images offline? I know that I can use the MapBox, but I am also sure that the examples I have seen are not using the MapBox. Many people have searched for me: Many thanks! Andros This is unfortunately not possible on iOS, nor is there an API for caching, nor is it The only way to allow offline mapping in the terms of use is that by using another map framework like Mapbox MKMapView caches some tiles even though you load them during an internet conne...

ruby on rails - How do you add an item into an array if passes the logical statement? -

मैं मौजूदा सरणी A A_array पर आधारित एक नया सरणी B_array बनाना चाहूंगा । यदि उस मद में A_array में कोई निश्चित फ़ील्ड है तो उसे B_array में जोड़ें। वर्तमान में यह मेरे पास है और यह सब कुछ में डाल रहा है बी_अरे : बी_अरे = ए_अरे.मैप {| आइटम | अगर item.name == 'जोश'} ए_अरे: [आईडी: 0, नाम: "जोश", ईमेल: "जोश @ जॉश @ Gmail.com "], [आईडी: 1, नाम:" स्कॉट ", ईमेल:" स्कॉट @ जोश @ जीमेल डॉट कॉम "], [आईडी: 2, नाम:" जोश ", ईमेल:" डान @ जोश @ जीमेल : [id: 0, नाम: "जोश", ईमेल: "जोश @ josh@gmail.com"], [आईडी: 2, नाम: "जोश", ईमेल: "dan @ josh@gmail.com"] धन्यवाद! उपयोग करें: a = [{id: 0, नाम: "जोश ", ईमेल:" जोश @ josh@gmail.com "}, आईडी: 1, नाम:" स्कॉट ", ईमेल:" scott @ josh @ gmail.com "}] b = a.select {| i | मैं [: नाम] == 'जोश'} आपके द्वारा दी गई शर्त के आधार पर फ़िल्टर करेगा और परीक्षणों को पास करने वाले तत्वों क...

scheme - ERROR: Wrong number of arguments to #<procedure -

When I ran the following part of the code, I encountered an error: Error: Wrong argument in #cartesian Number (X)> ;;;; Function Definition (define (eps-func p) (let * ((P (forged-> Cartesian)) (x (vector 3-XP)) (y (vector 3-yp ) (Vector 3-jpp) (if (> sin (* 2 pi xyz) 0) (dielectric (epilene 12)) (dielectric (epicylon 1))))) ;;;; Function call (set! Default-content (content-function (content-flick eps-funk))) I do not know that Where is it wrong? The above code is only part of a control file. Some background information is similar to: (lacquer-> Cartesian x) Where x is a vector 3 P> Vector with 3-given components. (vector3-xv) (vector3-yv) (vector3-zv) Relevant components of Vector V Content-Function [Function] The Function of an Argument, Position Vector 3 Maybe you should invite them to (JALK-> Cartesian)) with the parameter? Or does this function give lambda?

- Where Developers Learn, Share, & Build Careers

There are several ways to check if a file exists. The options I know: Access () Do anybody know which of these best performances? Edit: Estimate walking / dev / shm where access time is not a factor. Here the runtime switch will dominate the operation of kernel mode and file system drivers - even Exclude disc time. It is highly unlikely that none of these will offer the best performance Best Interface - Promotion :: Filesystem .

PHP Session lost after redirecting -

I really can not solve the problem that troubles me / only partly can solve it. Good juicy for you professionals. I have a basic login system installed. Like this: Log in. Php: Line 1: session_start (); If checked ($ _SESSION ['logged_in'] == true) header ("location: /controls.php)"; , if they have already entered their details. If they have not entered if they are valid: $ _ session ['log-in'] = true; After checking the database credentials and the session is set to True, redirect using the header ("location: /controls.php); Controls.php Line 1: session_start (); Line 2: if ($ _ session ['login'] = true) {header ("location: /index.php");} Immediately I am taken to index.php in Chrome and Firefox. In addition, I have accounttools.php , where the session's come Once I try to reach accounttools.php , the session is destroyed / unset and the load to accounttools.php Any attempt to redirect the...

c# - Auto update primary key after deleting information -

Anyone know how to solve this ID problem? For example: id | Message 1 | Hello 2 Philemon 3 | Car & lt; - Delete this line 4. Fixed 5 Bye When you delete the third line, the ID will automatically update the update and the ID after the line. id Message 1 | Hello 2 Philemon 3 | Fix 4 BE More info: Private zeros btnDel_Click {Object Sender, EventArgs E} {use (testEntities Setupctx = new testEntities ()) {int id = Int32.Parse (lblID.Text); Var DeleteSh = (Setupctx.shifthours in delsh, select delsh.idShiftHours == ID delsh). Single (); Setupctx.DeleteObject (DeleteSh); Setupctx.SaveChanges (); TxtStart.Text = ""; TxtStop.Text = ""; This.Edit_Shift_Hours_Load (empty, EventArgs.Empty); MessageBox.Show ("The selected shift time has been removed."); }} This line is a code to delete, after deleting it, I need an ID to auto update so that it fills the deleted ID in the next data. Currently I am able to delete the information but the ID is i...

c# - What are the negative consequences of using a real class as the superclass, rather than an abstract class in simple factory pattern? -

मैं इस तरह साधारण कारखाना पैटर्न का उपयोग करता हूं: सार्वजनिक वर्ग के पिता {सार्वजनिक आभासी int field1 ; सार्वजनिक वर्चुअल इन्ट देवस्थ () {}} पब्लिक क्लास बेटा: पिताजी [आईआईएस वारियर 1 जनरेशन फादर जनसंपर्क से लेकर इंसतम दोस्ती (); // फादर की पद्धति सार्वजनिक स्ट्रिंग ex_field; सार्वजनिक स्ट्रिंग स्ट्रिंग Ex_method () {}} सार्वजनिक वर्ग फ़ैक्टरी {सार्वजनिक स्थिर फादर CreateObj (स्ट्रिंग हालत) {स्विच (हालत) {case ("F"): नया पिता () लौटें; मामले ("एस"): नया बेटा () लौटें; डिफ़ॉल्ट: नया अपवाद फेंकना ("आपके पास कोई विकल्प नहीं है"); }}} , मैं कारखाने वर्ग के रूप में एक अमूर्त वर्ग के बजाय एक वास्तविक वर्ग का उपयोग करता हूं। क्योंकि कक्षा बेटा में पिता वर्ग के कुछ हिस्सों में कुछ विस्तार हुआ है (सबसे संदर्भ पिता का उपयोग कर सकते हैं)। अगर पिता और बेटे प्रत्येक के द्वारा एक अमूर्त वर्ग का वारिस करते हैं। पुत्र पुत्र पिता के खेतों और विधियों का वारिस नहीं कर सकता तो मेरा प्रश्न यह है कि भविष्य में अगर कुछ अच्छा नहीं होता है तो मुझे कुछ भी अच्छा नहीं लगता ...

google app engine - UserService loses loggedInUser? -

I have a client test app and a server app, both are hosted on GAE Client is a simple web front end Server hosts hosted resource protected by OAuth Authentication is done through OpenID and support of applications Federated Login The problem is that after the user logs in, the user forgets who they are (the browser has an ACID cookie, therefore Remember it ). The flow is here (from the GAE log) ... The user starts by entering cktestclient.appspot.com (Client app) in the browser and pressing the ShowMyCommitments button. After this, the following are visible in the server side logs (ppi.epspot dot com). 9: 10: 22 AM: / Oath / Authorize? Response_type = code and client_id = webappclient and redirect_uri = we are 'logged in so far, so we will be redirected to 9:10:22 AM: / login /? Continue = I login again using url generated byLoginURL 9:10:33 AM: / oauth / authorized? Response_type = Code & amp; Client_id = webappclient and redirect_uri = oyoth dance continues and we se...

- Where Developers Learn, Share, & Build Careers

I am currently running an octopus site (jacail-based) on the cedar stack of Heroku. The code resides here: I want to apply a cache-control header based on the selected file type: . Html files public, max-age = 3600 .css | .js | .png Get the value of .ico (etc) public, maximum-age = 604800 - Alternatively, I will call this rule as / stylesheets, "/ javascripts", / Imgs' directory to do anything. set both : static_cache_control, [: public ,: max_age => 3600] and just vanilla cash_transdown: public, max_age = & gt; 3600 Details with no luck. I have managed to set public, maximum-age = 3600 on articles (such as / 2012 / lazy-sunday / ) But have not been able to get the header to apply to CSS / JS (like /stylesheets/screen.css ) My Updated ): 'Bundler / Setup' is required 'sinatra / base' # Project Root Directory $ root = :: File Dima (__ file __) class Sinatra stratuset server & lt; Sinatra :: Base Mill (/. + ...

How to run a function background in android? -

In my application I have a function to fill the list visit. I want to run this function periodically every 5 minutes. I have used the following method for that. Private class fresh thread thread {public boolean = location = false; Public void run () {try {while {isl}} {headlines.this.runOnUiThread (new runnable) {public void run () {populate_listview ()} function to populate // listview}}); Try {Thread.sleep (300000); } Hold (exception before) {}}} hold (exception e) {}}} When I use this method, the function runs on the foreground, so the whole application Is affected by the I want to run this function in the background, so that the list view updates and the user does not know that the function is running. The function is to populate the following list view. Public Zero populate_listview () {ArrayList & lt; Hashmap & lt; String, string & gt; & Gt; NewsList = new array list & lieutenant; Hashmap & lt; String, string & gt; & Gt; (); XMLParse...

asp.net - How to export html table to excel? -

I want to export the HTML table (not grid) to Excel from my content page. I know how to export the grid for excellence. Same way or diffrent? Try using the following code This will help you: Private Zero ExportToExcel (string strFileName, Table DG) {Response.Clear (); System.IO.StringWriter oStringWriter = New System.IO.StringWriter (); Response.ClearHeaders (); Response.AddHeader ("content-type", "attachment; filename =" + strFileName + ".xls"); Response.ContentType = "app / vnd.ms-excel"; Response. Charset = ""; This.EnableViewState = false; System.Web.UI.HtmlTextWriter oHtmlTextWriter = New System. Web.UI.HtmlTextWriter (oStringWriter); Dg.RenderControl (oHtmlTextWriter); Response.Write (oStringWriter.ToString ()); Response.End (); }

iphone - How to add a drop shadow to an MKMapView without disabling clipsToBounds -

I have a problem when I try to add drop shadow to MKMapView layer, visible To be shadow I need to set the clip-to-bounce property to be false. However, doing this causes the map to pull the tile out of the viewing boundaries, overlapping the shadows And the reduction result in some parts of my idea looks like this: I am thinking that What is a way to draw a drop shadow without disabling a clipping limit or otherwise drop shadow bug to appear without this ugly scene. My code looks like this for drop shadows: self.mapView.layer.borderWidth = 5.0; Self.mapView.layer.borderColor = [[UIColor whiteColor] CGColor]; Self.mapView.layer.shadowOffset = CGSizeMake (0.0, 0.0); Self.mapView.layer.shadowColor = [[UIColor blackColor] CGColor]; Self.mapView.layer.shadowRadius = 5.0; Self.mapView.layer.shadowOpacity = 0.2; Self.mapView.clipsToBounds = No; Because the layer is owned by MKMapView , this is common As such, it is not a great idea to touch yourself. (This is something t...

c - Finding complete rectangles enclosing 0 -

Image
दी गई 1000 x 1000 arrays में विविध आयतें हैं I & lt; चित्रा 1 & gt; में, धारावाहिक ???? 1a ???? पीला सेल के रूप में प्रदर्शित आयताकार का पैटर्न है & lt; चित्रा 1 & gt; में आयत का न्यूनतम आकार 3 x 3 को हरे रंग की कक्ष के रूप में प्रदर्शित किया जाता है। कम से कम एक '' 0 '' होना चाहिए ? आयत के अंदर। लेकिन, इस सरणी में, वहां कोई आकार या सीधे रेखा पैटर्न भी नहीं है। (सरणी का प्रारंभिक मान" ???? "0 है, और पैटर्न एक श्रृंखला की एक श्रृंखला का प्रतिनिधित्व करते हैं? "1 ए"। वे एक-दूसरे को ओवरलैप नहीं करते हैं या एक-दूसरे को शामिल नहीं करते हैं।) अपरिवर्तित आकार या सीधी रेखा को छोड़कर सरणी में पूर्ण रेगटेंल्स को ढूंढने के लिए एक कुशल एल्गोरिथ्म क्या हो सकता है? उदाहरण के लिए, संपूर्ण आयतों की संख्या के ऊपर स्थित आंकड़ा 3 है यह बहुत सरल है यदि आपके पास n वर्ग हैं, तो आप O (n) में आयतों की गणना कर सकते हैं। मान्यताओं: एक आयताकार दूसरे के अंदर है, तो आप उन्हें ढूंढने में प्रसन्न होंगे प्रत्येक वैध आयत की सीमाए...

- Where Developers Learn, Share, & Build Careers

I am working on some major web projects at work, and many HTML IDs and classmates are being used . When I make something new in some of those huge projects, giving the name of the new ID and classes can be disappointing, because I always #subprojectname_title , Ends with something like this. Subprojectname_editor to ensure that I do not overwrite any classes and the ID, which was previously written for the "parent" project, and to ensure that I had previously inherited the written styles Ho. I always create a new square or id for that subproduct when writing to subprojectname , and it troublesome enough I have selected my selectors I am looking for tips about how to reduce, without having to reset the style to ensure that I do not inherit the previous selector, and do not mess with the first written styles my page This is a simple solution Iojanaon. I use "unique" names for effective styles and "local" names globally. i.e. my site.cs...

c# - Edit DataGridView in Winform -

I am trying to implement a datagrid view with both bound and unbound columns. For the bound column I used to type just typed datasets (XSD) how to convert my unbound column to editable and return the changes to the database. I am starting, someone can tell me that someone is good Here are some tutorials How to create columns this DB will be considered more about saving unbound columns

Google App engine rest api from iOS -

In the I / O 2012 Google App Engine Video Presentation, they presented the Race API release for iOS, Android. Has anyone seen it, if so? Thanks relative Chris I think you mention the new Endpoint feature Take a look at this thread Currently its trusted tester status.

- Where Developers Learn, Share, & Build Careers

I get a date from the web service (Odata web service) in this format / Date (847065600000) According to this question. This is a timetable item. Anyone can help to convert it to legitimate iOS date format. Thanks NSTEminentval time interval = 847065600000; NSDT * date = [date of NSDT with time interval: 1970: time interval]; Update: I checked your number and it looks like it's actually in milliseconds. You should divide it to 1000 before going through the date to get the correct date.

- Where Developers Learn, Share, & Build Careers

I know how the delimiter can be generated in the CSV file by the data exporters from icefass. I am using icefaces 2.0-beta1. I think for a while, but you can use custom exporter: With it you can customize the output format for your needs.

android - how to parse this JSON response with different objects? -

I have tried a lot but it is unable to parse JSN. I need all atrocities (book and camera) values ​​in the array. Can anyone help me? How to arrange caremaOjects values ​​and book object values. [{"Camera": {"picture": "http: \ / \ img7.flixcart.com \ image / -macyb5emj5yztet" camera ": {" picture ":" http: \ " "" "" "" "Model": "Lumix DMC-FP3 Point and Shoot", "Make": "Panasonic", "Price": 5830}}, {"Camera" "Sony" , "Price": 510}}, {/ sp.sony-europe.com} \ "/" "model": "digital still camera - h series - dcc-hx 200v", "make" "book": { "Description": "What is itself, and how can", "writers": "Douglas R. Hofstäder", "Value": 650, "ID": 40724766, "Title": "G \ u00f6del, Eshar, Bach : A Itanium Golden ...

c# - Convert List to T item if there is only one element? -

I have a list with an encoded I want to get the first element if and only then N = 1. Can it be done using lambda or some good build? This works, but looks awesome: var blah = new list & lt; Object & gt; () {New object ()}; Var item = (blah.Count == 1? Blah [0]: zero); There are several LINQ extension methods. If there is one element then an element exists, if any default will be returned, then returned it If any default returns the element in the given position or default ; T & gt; will be returned, if there are not many elements in the sequence will be returned for example (I have liked it for my own need): var item = blah.ElementAtOrDefault (0); The best way to get your requirement depends on how strong this rule is: I want to get the first element if only If = 1 If it is extraordinary that contains more than one element in the sequence, then use SingleOrDefault and you will be notified (error Log) if it gets out of h...

c# - Return object only if object could be properly created -

I am very new to C # programming and I am struggling with OOP a little bit. I have created a class with the method that analyzes a text file and creates an object based on its content. I want this function to return an object, which contains some information from the text file, only if the text file is in the correct format. I call the function to analyze the text file like this: PokerHand newhand; NewHand = new poker hand (); AnalyzePokerHand.importHand ("C: \\ text.txt"); NewHand = Analysis PokerHand.getAnalyzedHand; If text.txt is not a poker hand history file, or wrong format etc, then I do not want to fill it with newHand Information of What happens correctly if I want to pass the path to a text file and only return the object with information about the hand only if the function is successful? Take a look! If you want to indicate that no data is available, then returning the tap is best The way. The second advantage of this approach is that if yo...

php - URL Rewriting with MySQL database -

संभव डुप्लिकेट: मेरी वेबसाइट पर होमपेज में कई उपयोगकर्ता हैं, सूचीबद्ध हैं प्रत्येक उपयोगकर्ता के पास 'दृश्य प्रोफ़ाइल' लिंक है जो आपको www.mysite.com/user-profiles/profile.php?id=32 पर ले जाता है, आईडी से संबंधित है उपयोगकर्ता। क्या यूआरएल को यूआरएल का उपयोग यूजर के नाम और उपनाम को डेटाबेस में उस आईडी के लिए खोजना और इसे फिर से लिखना भी संभव है? www.mysite Com / user-profiles / john-a-doe किसी भी मदद की बहुत सराहना की जाएगी ... मैं इसे इस तरह से करने की अनुशंसा करता हूं निम्न प्रारूप mysite.com/user-profiles/ (ID) / (NAME) में प्रिंट यूआरएल > फिर इसका पुनर्लेखन करने के लिए उपयोग करें: रीव्रेट नियम ^ उपयोगकर्ता-प्रोफाइल / ([^ /] *) / ([^ /] *) $ /user-profiles/profile.php?id= $ 1 और amp; नाम = $ 2 [एल] फिर अपने profile.php SELECT के लिए id और नाम ध्यान दें: आप जो चाहते हैं उसे प्राप्त करने के कई तरीके हैं, लेकिन जब से आप (NAME) के लिए पूर्ण नाम का उपयोग कर रहे हैं, तो इसका कारण है एक समस्या (Ronn0 द्वारा नोट) जब दो उपयोगकर्ता...

- Where Developers Learn, Share, & Build Careers

In my EF4 program, I have an applicant and application table. Many examples of the program run from time to time to make applications for applicants based on some business logic. In the application form, I can not have more than one submission / record for an applicant. So here's the piece of code that checks whether there is a submitted application and it is included. It is run in a foreach loop for the list of applicants. Public application SaveApplication (using Int32 applicantId) {TransactionScope txScope = New TransactionScope (TransactionScopeOption.RequiresNew) {if (ApplicantHasPendingApplication (applicantId)) blank return; App app = zero; Try {app = new app () {// create item ...}; _unitOfWork.DisclosureApplications.Add (application); _unitOfWork.Commit (); _unitOfWork.Refresh (app); // We save it to get the ID and refresh txScope.Complete (); } Hold (pre-update before) {// We get an exception exception, where many instances attempt to insert the application} Retur...

oracle - Display value from list even if record doesn't exist in the database -

This is a strange case where I would like to display my test table content with all the list values ​​i.e. counters. name, misc a, blah b, 123 a, asd Now, this query will only bring results for A and B, but how can I show the result of "C" Select the name, count (*) from the table where the name ('A', 'B', 'C') is The result I'm already crazy for a day. a2b1c please help cheers, donation I think that you are joining the external for this type of query like: as my list ( Select 'A' from dual union 'B' with two pairs 'Select' from 'C') Select L.name, COUNT (tnn) mylist on mytable t from l from IME L.name = t.name GROUP by l.name You can use a table object Union All: VARCHAR2 (30) Field enter the name as the tab _list_t; / SELECT l.name, COUNT (T.name) FROM (tab in column name (list_list_t ('a', 'b', 'c')) with select column_volution Liefine I L.name

NodeJS API concerns for iPhone App -

I am creating an API in Nodesj, which will be used by a website and iPhone native app at the same time. This is supposed to authorize the user using LinkedIn API. The iPhone Country app is working on the other end, so how can I do it with NodesJS API? Take a look at Passportjs.org Whatever you can do with this library Also need, you should be able to do that.

c - Modular Exponentiation -

सी / सी ++ में मैं कैसे (a ^ b)% m की गणना कर सकता हूँ where बी 64 बिट्स में फिट नहीं है? दूसरे शब्दों में, क्या b के बजाय b% m का उपयोग करके उपरोक्त मान की गणना करने का एक तरीका है? और इसमें कोई एल्गोरिथ्म है जो गणना कर सकता है O (लॉग (बी)) समय या O (लॉग (बी% m)) में परिणाम समय के अनुसार, यदि a और m coprime हैं: एक b mod m = a b mod phi (m) mod m अतः यदि b बड़ा है, आप b की बजाय b% phi (m) मान का उपयोग कर सकते हैं। phi (m) है, जिसे आसानी से गणना की जा सकती है अगर आपको m का मुख्य गुणक पता है। एक बार जब आप बी इस तरह से, O (लॉग (बी% पीएचआई (एम)) में मॉड्यूलर एक्सपोनन्टिशन की गणना करने के लिए उपयोग करें ।

java - Define listModel on button press -

Then I'm creating a program that has this part of the code last listModel Listmodel = new DefaultListModel (); Jebton BTN Brucerer = new pocket ("bus"); Btnbuscar.addActionListener {new actionalist} {public zero action action (action event e) {listModel = MySQL (select "* colosus WHERE id = '" + searchField.getText () + "' or '% name' "+ SearchField.getText () +"% 'or'% "like the keyword + searchField.getText () +"% '"," SELECT ");}}); Btnbuscular Setbound (336, 11, 89, 23); SearchPanel.add (btnBuscar); JScrollPane scrollPane = new JScrollPane (); ScrollPane.setBounds (10, 44, 316, 185); SearchPanel.add (Scrollpane); Gelist list = new jellist (list model); ScrollPane.setViewportView (list); As you can see that I'm making a ListModel variable and then want to use it on the button press. MySQL function gives a list model. Then I want to make a list and want to give it the element i...

sockets - How to read on local port repeatedly using php? -

I have searched a lot on this subject and have tried a lot of things, but still I got stuck. I have an EC2 example on which another example is sending some data through TCP on a specific port. I am using the following code. $ host = "x.x.x.x"; $ Port = 2048; $ Socket = socket_create (AF_INET, SOCK_STREAM, 0); If (! Socket_setopt ($ socket, SOL_SOCKET, SO_REUSEADDR, 1)) {echo socket_strerror (socket_last_error ($ socket)); Go out; } $ Result = socket_bind ($ socket, $ host, $ port); $ Result = socket_listen ($ socket, 3); $ Spawn = socket_accept ($ socket); $ Input = socket_read ($ spawn, 84); $ Input; Socket_close ($ eggs); Socket_close ($ socket); Sometimes it runs, sometimes it does not happen, it returns an error on socket_bind (): "socket_bind (): addresses Unable to bind [98]: The address is already in use. " I'v has seen a lot on this but nothing has worked ... If someone comes up with something .. plz help ..! thanx mayur

- Where Developers Learn, Share, & Build Careers

I have very little experience working with OID and for the beginning I have been able to connect to the OID and have been able to find users in OAD from .net. With the help of forums, I am still struggling to get inclusion and updates from the Net. Is there any idea / example on which I can work? Your help is highly appreciated !!!! Thank you in Advance Ram Have you read this: If so You need to be a bit more specific about what the problem is.

javascript - photoswipe jquery -

How do I start the next / previous methods? I need to separate the buttons in more and not have all buttons in the toolbar. On a glance, I do not know the photovoltaic address but I got a look at the source and found the following: / * * function: previous * / previous: function () {if (this.isZoomActive ()) {return; } If (! Util.It is not (this crossover)) {this.carousel.previous (); }}, / * * Function: next * / next: function () (if (this.isZoomActive ()) {return;} if (Util! None (this carazel)) {this.carousel.next (); }} You can see the related carousel function referenced in the code given above.

Part Replace multiple words using Regex -

I want to process a lot of files as part of post migration of my code. The Migration Tool can handle Regx and we write something like the following: 'Change #' Column (",". Column (" Replace All All Events") column ("with". Item ("." One of our requirements as I tap string word I.e. I want to replace it with double quotation marks i.e. "optional" for example, byVal strID2 should be string = nullstraking string - as the optional ByVal strID2 = "" As NullString in VB6 is now going to be a square variable and in the function declaration it should be a constant. So, I need RegEx with one of the following criteria: Make sure that in the function declaration it means "function" whose name is "bracket" and "cell" , Then any event of [= NullString] should be replaced with [= ""] until we hit the closing bracket) ", as the declaration may be on multiple lines. / Li...

excel - Compare two cells with the same word variant -

Can anyone help me with an Excel formula, whether a cell with a string of text same P> cell A2: orange grapes apple if I have A1 is the same or not to A2 thanks attached Place the module in a module and call it a worksheet as a function, such as = sCompare (A1, A2) code public function sCompare (S1 as string, S2 as string) Boolean dim vArr1, vArr2, lLoop long, in the form of lLoop2 long, bMatch boolean vArr1 = the form of split As in (trim (S1), "") vArr2 = split (trim (s2), "") if Ubound (vArr1) & lt; & Gt; For UBound (vArr2) lLoop again to exit function = 0 to UBound (vArr1) bMatch = false to lLoop2 = 0 to UBound (vArr2) then vArr1 (lLoop) = vArr2 (lLoop2) then bMatch = end Then the next lLoop2 then true exit for bMatch = false then exit the function next lLoop sCompare = True End Function

django - What is the purpose of NGINX and Gunicorn running in parallel? -

Deploying a lot of Django apps for the use of Amazon 2, the HTTP server NGINX and the Gnichorn I Wondering what they really did and why both are used in parallel, what is the purpose of running them in parallel? They have not been used in parallel. NGINX is a . It is in the first line, it accepts incoming connections and decides that they should go to the next location. It (generally) works like static media such as CSS, JS and images. It can do other things like encryption SSL, caching etc. Gunyornorn is the next layer and one is . NGINX sees that the incoming connection is for www.domain.com and they (through configuration files) know that it should pass that connection to Gunicorn Gunicorn is a server which basically Simple and universal interface between web servers and web applications or frameworks Gunicorn's job is to manage and run Contrary to this setup, Apache is used with the mod_wsgi module To do In this situation, Aperture Server is actually ...

- Where Developers Learn, Share, & Build Careers

I have not had a CS background but have worked extensively with C #. Maybe I have to know this answer with a CS background but I'm hoping to get help from all the smart people on this site. Can you please provide the C # code snippet, how can you programmatically read "an image with C #?", Say I have an image that is black and white, like A fingerprint background can be white or grayscale and the print is black. How can I use C # to differentiate between the parts of the image (i.e. fingerprint) and background (i.e. white or grayscale)? var bitmap = new bitmap (filename); / Code> You can then "read" the color of each point using the GetPixel method. var color = bitmap.GetPixel (x, y); How do you interpret as an image, for example, to determine which parts are a fingerprint, which can include all types of complex image processing algorithms In fact C # Isht are not.

- Where Developers Learn, Share, & Build Careers

I have a case that looks like this: For example, there is a collection called "Archive" and I Index is set for this and the index looks something like this: {"A": 1, "b": 1, "c": 1} In my code, I am retrieving the record that holds a certain value based on "A": list & lt; Test & gt; Test = test Search (query .aec ("a", fixed value)). ToList (); And all the records are coming back for my surprise in the order stated in the index (climbing "B" climbing "C") I was thinking If this behavior is always expected, whether the records are always sorted by the index, or are I imagining things and this is just a closed matter? PS Records are not recorded in the archive so that it is not a natural order of records. Just with many other dictionary implementations, and subject to change at any time: In the "Natural Order" compilation, the object is defined as the database...

- Where Developers Learn, Share, & Build Careers

After reading several sources related to this, I can only conclude that I should set my representative at the wrong time , But I can replace the details view controller on the selection of a table row in the master like this: AppDelegate * app = (app deliit *) [[UIPAPRC share application]]]]; CustomerDetailViewController * newvc = [[CustomerDetailViewController alloc] initWithNibName: @ "CustomerDetailViewController" bundle: Zero with customer: [custData objectForKey: @ "name"]]; [App.detailNavigationController setViewControllers: [NSArray arrayWithObjects: newvc, zero]]; This view controller sets in the CustomerDetailViewController, I assign to the delegate: - (id) initWithNibName: (NSString *) nibNameOrNil bundle: (NSBundle *) nibBundleOrNil {self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]; If (self) {AppDelegate * app = (AppDelegate *) [[UIApplication shared applicant]]]; App.splitViewController.delegate = self; } Healthy return; ...

cocos2d iphone - Is it possible to use CCSpriteBatchNode with single file images -

What CCSpraybate node can be used with animation that uses single image files is this animation that I made I am: CCAnimation * begFlamesAnim = [cc animation animationfile: @ "betflams_" framecount: 54th delay: 0.03f]; Is it possible or does CCSpriteBatchNode only work with spritehets? A CCSpriteBatchNode and CCSprite should use the same texture in children. If you use personal images, you create personal textures for each image. You can not then spraybatch, and it is wasting memory in comparison to texture atlas with all these images.

c - Clients/IP and Device Monitor -

Say I want to be a server that can accept socket connection and monitor which server is plugged in. P> The server can do two things. Monitor / accept client connections through 1 TCP / IP; 2 Number 1 I'm planning to use Linux sockets to accept client connections. I'm planning to use the number 2 to monitor the library library device that has a tutorial on signal 11. I already have code on Linux sockets and Libudev.h .. but they are separate user space apps, I need to merge them as one. How should I do this?. Or any suggestions how can I do this? Thank you So do you want your I / O multiplex? If this is all you ask then you have a choice of options to choose the method or selection of traditional Unix method. - Or you can go for spawning thread for all those connections which require I / O. This is naturally the easiest option, but it is risky to maintain data integrity between two threads, locking and a concrete implementation of the race in the...

windows 8 - Speech on WinRT -

Speech API is available in WinRT (such as Windows Phone 8). Can I use some third party speech instead of the API? I want to apply TTS to my Windows 8 / WinRT application, do anyone have some suggestions? Voice commands and speech recognition are only available on phones. TTS is available for all WinRT devices.

- Where Developers Learn, Share, & Build Careers

संभव डुप्लिकेट: मैं Win32 प्रोग्रामिंग के बारे में एक किताब पढ़ रहा था और मैंने इस तरह से एक फ़ंक्शन देखा था: इंटेल CDECL संदेशबॉक्सप्रिंटफ (टीसीएचएआर * एसज़ कैप्शन, टीसीएचएआर * एसज़फ्रेम, ...) {टीसीएचआर एसज़बफर [1024]; Va_list pArgList; Va_start (पीआरआईएलआईस्ट, एसज़फ्रैट); _vsnprintf (szBuffer, sizeof (szBuffer) / sizeof (TCHAR), szFrmat, pArgList); Va_end (पार्लिस्ट); वापसी संदेशबॉक्स (नल, एसज़बफर, एसज़ कैपेशन, 0); } फ़ंक्शन के मापदंडों में , ... क्या होता है? मैंने खोज के साथ उत्तर ढूंढने की कोशिश की लेकिन मुझे मिल गया उपयोगी कुछ भी नहीं इसका मतलब है कि आप उस फ़ंक्शन के निरर्थक संख्या के तर्कों के बजाय वरीय संख्याओं का तर्क हो सकते हैं। एक आदर्श उपयोग के लिए होगा उदाहरण के लिए, हम कहते हैं कि हमारे पास औसतन फ़ंक्शन है डबल औसत (int num, ...) {va_list तर्क; // तर्क की सूची को संचित करने के लिए एक जगह डबल राशि = 0; Va_start (तर्क, संख्या); // सभी संख्याओं को जमा करने के लिए (int x = 0; x & lt; num; x ++) // लूप के सभी मूल्यों को जमा करने के लिए तर्कों ...

- Where Developers Learn, Share, & Build Careers

मेरे पास तालिका step_year है: id, step_id, वर्ष I उन सभी पंक्तियों का डुप्लिकेट बनाना है जो वर्ष = 1011 (चरण = वर्ष से * चुनें * वर्ष = 1011), लेकिन उसी वर्ष (1011) होने वाली उन नव निर्मित पंक्तियों के बजाय मैं इसे 1112 में बदलना चाहता हूं। किसी भी मदद की सराहना की जाती है। आप INSERT कोड> सेलेक्ट लेकिन इसे क्वेरी से खींचने के बजाय वर्ष निर्दिष्ट करें `step_year` (` आईडी`, `कदम_आईडी`,` वर्ष`) में शामिल करें चयन 'आईडी' , `Step_id`, 1112 के रूप में` वर्ष` से `चरण_ययार` जहां` वर्ष` = 1011 यह वाक्य-रचना MySQL के लिए है, लेकिन अधिकांश डेटाबेस के लिए अनुकूलनीय होना चाहिए।

exec - Risks of using SQL trigger to run an exe -

What are the risks of running an XE on a SQL Trigger? This is a closed server, intranet, only with limited user access to the server where the script runs and the SQL Server connection. I temporarily store outgoing email in a table in my database system. Then it is sent through a trigger which runs and exe. Draws the topic, CC, and body from the Exchange directly, from the DEB and sends the email through the CDO. I just have to use an external method of sending the email instead of sending the code back from the back to the website to avoid slwodown I asked about this specific problem in another post, but exec risks Asking about a different issue seemed to direct any of the options for the related post If this is a closed server and Exe is known, I do not know if there are any more risks. I could see that the only risk would be when someone changed your extension to something that would begin, but it seems like the scenario you described. Our situation was many years a...

- Where Developers Learn, Share, & Build Careers

I need to create more than one textfile in the scrollview that is inside a prototype cell "https://i.stack.imgur.com/eqwGq.png" alt = "Enter image details here"> The scrollview and all other elements have different tags When users add other files to the clicks, the above scrolls should have two empty text fields with labels in the Weave. The ScrollView prototype is in the cell. Any ideas how can I do this? The topic name, time and Presenter One cell for each file Li> "Add another file" button can be placed in the footer view of the section

Issue with permissions on PHP, even chmod isnt working -

I have a small problem here, I am trying to upload an image but allow me to deny permission Given is error. So I have added a chmod 0777 to the target directory, but I can not use chmod, I have refused the permission for Also Chmod command allows you to control who is allowed to use your files and directories, which means that if you are not the owner of a certain file / directory or if you are running If there is not enough permission to change the permissions for the directory / directory then you the permission can be denied error or something like that. You chmod as sudo chmod 775 directoryName; / Code>

binding a GridView to a List in asp.net c# -

This is the first time that I am doing this, so I need some help, Behind the code: list & lt; Truck & gt; FinalistOfftrix = New List & amp; Lt; Truck & gt; (); Public category trucks {public string placa; Public string lock; Public string event; Public date time date; Public string tipcation; Public string person; Public String MissedDate; } Secure Zero btnProcess_Click (Object Sender, EventArgs E) {Trucks Item = New Trucks (); Item.Placa = "MA2323"; item. Lock = "lock 1"; Item.Event = "Event1"; Item.Date = DateTime.Now; Item.TipoCamion = "TRUCK1"; Item.Person = "JULIAN"; Item.MissedDate = ""; FinalListOfTrucks.Add (item); GvOriginal.DataSource = FinalListOfTrucks; GvOriginal.DataBind (); } In Design: & lt; Asp: button id = "btnprocess" runat = "server" text = "process" onclick = "btnprocess_lick" /> & Lt; ASP: Gridview id = "GVOrinal" ...

objective c - How can I see that a real world time has passed from a stored start date in obj-c/ios? -

The players of my game will be able to plant a tree, which will take 3 hours to grow. When the player logs back, how will I calculate that the tree is now fully developed? The date of the composition of the tree (planted) will be stored on one server, and I will have 3 hours in a second (make sure that it should be the end of NSN) also on the server. Thanks for any help. NSDate , and Use : NSDate * now = [NSDate date]; Nteininternewallseasjobsplitting = [now timerivalzentet: plantingdate]; If (secondsplugging & gt; secondssprephirettoolyulgro) {...}

php - What is REDIRECT_KOHANA_ENV in $_SERVER environment information array -

I am trying to get a PHP application based on the Kohana framework working on a Linux server. There is a problem in my .htaccess or application (not yet known) which is blocking the use of beautiful URLs. When I was debugging, I found it in my $ _ server array: print_r ($ _ SERVER); ... [REDIRECT_KOHANA_ENV] = & gt; The output ... In my .htaccess file, there is only one line to set the environment variable: set to envine kohna_nv production And I'm also making a redirection: revised rule ^ (fr | en) / (this | he) /? ([^ /] *) $ / Indix.fpp / $ 1 / he / [nc, ksa, l] Does anybody know how this is REDIRECT_KOHANA_ENV code? Is this something $ _ SERVER ['REDIRECT_REMOTE_USER'] ? It seems that this is something in your htaccess it is due to some rewrite on HTX There are some details on the description and REDIRECT _ constants in $ _ server :

webbrowser control - Webform within Access Form -

I am trying to add an html menu inside the access form. How do I get feedback from a webpage in Access (which user is selected in the web page) I am using the Access 2007, MS Webbrozer component. Any help would be appreciated Calling the hosting form or webbrowser There is no official way to start any activity from within. However, there is a nifty trick that I use. After the document loads you can use some element to set up. htmlDoc.all.formDiv.setAttribute "external form", me Then you can reference the properties and methods of the form from within the webbrowser. Edit : Strangely, it seems that as long as I & lt; META http-equiv = 'X-UA-Compatible' content = 'IE = edge, chrome = 1' & gt; tag, the reference remains blank. It appears that the attributes are now more strict, and expecting the setAttribute string. The next option is to pass the access form ('m') into a variable in WebBrowser. However, this global...

- Where Developers Learn, Share, & Build Careers

I am facing a problem, where running the same application on different servers, unpredictable throughput results are produced. For example, running the application when there is no load on a particular fast server (faster CPU, more memory), there is a slow output compared to running on less powerful servers on the same network. I suspect that OS or TCP is generating slowness on the fast server. Is there any device that can see the OS and TCP configuration and tell the reason for the lethargy? All servers are running Red Hat Linux. UPDATE This is a Socket based client server application. It works with a single connection, such as a single client connected to the server, trying to send the message as soon as possible. No forking or multi threading. And further thought, are there key TCP options that can either affect latency or throughput? The key to debugging issues is to remove physical networks from test cases; In other words TCP application is done through localhost ...

django - Why second user login redirects me to /accounts/profile/ url? -

I am using Django created for user login: url R ^ user / login / $ ',' django.contrib.auth.views.login ', {' template_name ':' users / templates / login.html '}, name =' user-login '), After login, when I login the user / login again, I can login a second time. I submit and receive forms: The current URL, account / profiles / does not match any of these. I have not declared this url in urls.py . Am I doing wrong? Want to redirect the structure to this url? django.contrib.auth.views.login Redirects to accounts / profiles / later. You LOGIN_REDIRECT_URL to your settings.py file that you like ..

xml - Java ZipInputStream not reading entire ZipEntry -

I am trying to read an XML file out of a zip file. The related code is below: ZipInputStream zis = new ZipInputStream (is); Zip Entry Entry = zis.getNextEntry (); While (entry = tap) {if (entry.getName (.) Equals ("plugin.xml")} {int size = (int) entry.getSize (); Byte [] bytes = new byte [size]; Int read = zis.read (Byte, 0, Size); System.out.println ("file size:" + size); System.out.println ("Read bytes:" + read); }} When doing this work, the output is as follows: File size: 5224 Bytes Read: 5224 Never causes a situation where the input stream is less than the "read bytes" file size. In this situation, I have changed the text value of the XML property of the same file as above and received the following result: File size: 5218 Read bytes: 5205 // reader quickly Closed! I can not see any patterns whose XML files will work and which does not. It seems completely random. Does anyone come in any way like this be...

git - Merging remote content to local repo -

I am trying to clone a remote repo in my local workspace, and set the content in a new bare repo To retain this, this repo needs to be updated occasionally with upstream repo, and new material should be pushed into the local repo also. Here's an example: git clone Ssh: //username@whatevergitrepo.com/project and I have been using Project_Local In the form of an unmatched repo mkdir project_local.git git init --bare - Once the remote repo is cloned in my workspace, because there are several branches in this remote repo, branch1 branch2. . Branches Even I have done to get all the branches remotely and pushed my local bare repo. CD project git branch -a & gt; & Amp; / Tmp / branchinfo sed s. * /, / Tmp / branchinfo & gt; & Amp; / Tmp / branchinfo1 # last '/' tmp / branchinfo1` before the actual name of the branch for this 'b'; Checkout GIT $ i; Check out all branches from the remote site # for `cat / tmp / branchinfo1`; GIT push p...

C++ Passing user input to a variable to a parameter for a function in -

Comes to programming, but I'm watching some tutorials on YouTube and I decided to read in different videos Try mixing some concepts. What I want to do is a function that has 3 criteria which calculates returns on the stock market investment. In my main, I want to get 3 parameters of the function from the user and want to store each one in one variable and when I call on my function then use those variables for the parameter. I am currently getting an error, but before I write the whole thing, I will only show you my code and you can probably solve the problem. #include & lt; Iostream & gt; # Include & lt; Semith & gt; using namespace std; Float stock market clutter (float p, float r, et t) {float a; For (int day = 1; day & lt; = t; day ++) {a = p * paw (1 + r, day); Cout & lt; & Lt; A & lt; & Lt; Endl; }} Int main () {float p; Float R; Int t; Cout & lt; & Lt; "Please enter the principle" & lt; & Lt; Endl; Cin ...

- Where Developers Learn, Share, & Build Careers

I'm getting a compile time error, it complains that I'm starting a variable, but it is not referenced What I am doing is that I initialize it and then create a debug print statement which is compiled for debug build only, but not the release build. The error in the query is c4189 (this has been considered as an error and will not compile). Is it possible to suppress this warning? How about the warnings in general? Do not suppress the warning, fix it! Wrap the variable declaration and initialization, so it exists only in debug build.

php - Can the query below be corrected -

I need some help in that query where I do not know whether I SELECT clause, including section and selection by the right group In the right table from the field: The database table below is: Sessions table session ID session 1 name AAA 2 AAB Question table session question question question papers 1 1 2 2 What is it? What is 2 1 2 4 + 4? What is 3 2 1 10 + 10 and 11 + 11? What is 5 2 2 15 + 15? What is 5 2 3 20 + 20 and 40 + 40? 7 Answer table Ansid Session Question Question 1 Answer 1 1B2 1 2C3 2A1A4 Below is query: $ query = "Select q.SessionId, s is below 2 1D5 2 2A6 2DD2 2EE Session name, question question question, questionnaire Q & A, GROUP_ CONCAT (DISTINCT answer SEPARATOR '') AS answer, Q. Please include questions in the question Question s.SessionId = q.SessionId on Q Question Answer Question I = a .QuestionId where session name = "AAB" group I want to display every question relating to the "AAB" session...

- Where Developers Learn, Share, & Build Careers

I'm using the code below to display a countdown timer on a webpage. If possible, When the count becomes zero zero, how can I show the content?

erlang - what is the difference between gen_tcp:recv and prim_inet recv -

What is the prime_inet module, how does it work? I tried to google it but I did not find any useful docs I looked at the source file at prim_inet.erl, but there is nothing special, Dom Prime_net: async_recv creates a new process for each Rick? You did not find any useful documents because the erlang module is internal and its Does not mean please see it If you have the functionality that is not provided in gen_tcp, gen_udp, gen_sctp, inet etc. ... you can only ask about it and either there may be another way of doing this, or It can be added However, you can find useful.

timeout - Auto hide and show div after 2 seconds -

I am very new to these types of scripts and would be very grateful for any help. I have 3 rotating divs and want div1 to show for 2 seconds, then div2 to show for 2 seconds, then show div3 to 2 seconds and then the whole cycle I have to start from the beginning, there is a divis at one time while the other two is hidden. I would like to get rid of the click to start the function, but as soon as I go to the page to start the cycle. I basically got the code from the following posts I got to work jquery .fadein () and .fadeout () or .css ('display', 'none') and Use window.setInterval (FunctionName, 2000); The function you enter in the first parameter every two seconds will run. Create a variable that you want to show about which Divis When Variable 3 goes, then you reset it to 1, so the process continues infinitely. Edit: Style: div {width: 500px; Height: 500px; Margin-left: 50px; Border: 1 px solid black; Swim left; Opacity: 0; } # Div3 {Opac...