No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
16 Posted Topics
Re: You could use a [jQuery UI effect](http://api.jqueryui.com/effect/) to handle the scale in and bounce effects: $(document).ready(function() { $('.reachme a').on('click', function(e) { e.preventDefault(); var idElem = $('#myId'); idElem.effect('scale'); idElem.effect('bounce','fast'); } }): | |
Re: You're probably trying to use the jQuery Cookie plugin before jQuery has been loaded. From the [README](https://github.com/carhartl/jquery-cookie/blob/master/README.md): > Include script after the jQuery library (unless you are packaging scripts somehow else) If you're loading jQuery through <script> tags, make sure your jQuery <script> tag comes before the jQuery Cookie <script> … | |
Re: GliderPilot's answer will work quite well. If you want to get really fancy, however, you could use a feature of HTML5 called [Constraint Validation](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation). | |
Re: In line 6 of your code, you're trying to access the monthArray with the wrong syntax. You should change that to: var compareMonth = monthArray[month]; To get today's date in the same format as your displayDate, you can do: var tempNow = new Date(); var today = monthArray[tempNow.getMonth()] + ' … | |
Re: Your JSON isn't correct. Line 63 is missing a quote at the end of *Fantasy* before the comma. You can also use [jsonlint.com](http://jsonlint.com/) to validate your JSON data. | |
Re: [QUOTE=vidjin;1638778]If you have a website traffic like Facebook, Youtube or Google, you'll still need some C++ code components for lightning executions of code and then PHP or anyother language can display the results at the front-end. And I believe Facebook and Google are using C++ components behind their PHP, just … | |
Re: A pseudocode [URL="http://en.wikipedia.org/wiki/Quicksort#Simple_version"]example[/URL] of the QuickSort sorting algorithm. [CODE]function quicksort('array') create empty lists 'less' and 'greater' if length('array') ≤ 1 return 'array' // an array of zero or one elements is already sorted select and remove a pivot value 'pivot' from 'array' for each 'x' in 'array' if 'x' ≤ … | |
Re: What operating system are you running? Are you trying to change the icon to a single shortcut, or the icon to all Python applications? | |
[url=http://www.daniweb.com/software-development/python/threads/375271/1621485#post1621485]Sample code credited to Enalicho[/url] In this example, we count the number of appearances of the number 1 through a range of pages using while loops. First off, notice how easy it is to tell what the variables in this method are doing. I did not write this method, but … | |
Re: [QUOTE=Enalicho] [code=python] def count_pages(number_of_pages): total_number_of_ones = 0 current_page = 1 while current_page <= number_of_pages: page_number = str(current_page) total_number_of_ones += page_number.count('1') current_page += 1 return total_number_of_ones [/code] [/QUOTE] This version is probably the most intuitive for a beginner learning while loops. I'd like to walk through this with you, just to … | |
Re: I know this thread is more than 2 weeks old, but I have a question about the [URL="http://docs.python.org/library/string.html#format-string-syntax"]format() syntax[/URL]. [CODE=python]print( "{0:{1}^{2}s}".format(" 77 ", "=", 60) )[/CODE] When specifying the field_name, you don't need to place {} around the '0'. I understand that it refers to the 0th element of the … | |
Re: You could have a script running locally that detects when the root path to that usb drive is created. [code=python] import os.path for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": drive_mounted[letter] = os.path.exists(letter + ":") [/code] This script would have to be running locally when you plug in the USB drive. This works for … | |
Re: A few more useful guides: [URL="http://www.swaroopch.com/notes/Python_en:Installation#For_Windows_Users"]http://www.swaroopch.com/notes/Python_en:Installation#For_Windows_Users[/URL] [URL="http://diveintopython.org/installing_python/windows.html"]http://diveintopython.org/installing_python/windows.html[/URL] [URL="http://docs.python.org/faq/windows.html#how-do-i-run-a-python-program-under-windows"]http://docs.python.org/faq/windows.html#how-do-i-run-a-python-program-under-windows[/URL] If you plan on using a Python module or package that does not support Python 3.x, make sure to stick with Python 2.7. The Django Web Framework, for example, does not (yet) support Python 3, so I stuck with Python 2.7. | |
Re: [QUOTE=pyguy62;1617166]thank you! that was extremely useful advice. Now, if I wanted the user of the program to be able to search for a contact they created, via entering the key as the query, how would I do that and return the value?[/QUOTE] You can retrieve values from a dictionary by … | |
I have a question about function-based decorators. When I make the first call to sqrt(), I enter the decorator function, which I understand. However, every subsequent call to sqrt() only calls the temp_func, not the actual decorator again. I thought decorators were called every time the method is called, but … | |
Re: [QUOTE=sirlink99;1611900]I have heard that they revised the audio player for Java. Does that mean that Java can now play .mp3 and .wma files, not just .wav? Or did they just implement a new way to add audio?[/QUOTE] As far as I can tell, Java only supports AIFC, AIFF, AU, SND, … |
The End.