- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 18
- Posts with Upvotes
- 11
- Upvoting Members
- 11
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
small business started in 1997 - computer, music, church and library interests
- Interests
- computers, playing violin, travel, teaching violin and piano
- PC Specs
- Dell Optiplex 380
Re: If PHP locks the database connection in a persistent connection and the packets from the transaction are incomplete then the packets would be out of order. Hence asynchronous PHP connection would be OK for transactions and not have the locks that persistent connection would create. | |
Re: About 40% of hits to my site are bots with some trying to find exploits on my site to hack it and use it to propagate spam. Very few humans are surfing the Web any more. iptables firewall has to be used to block the hackers. | |
Re: Set up some variables (time, height, theta, distance, velocity), constant (g), user defined functions (time and height) and maths functions (sin, cos) then write the logic. You have to do some work here. If you attempt something and work on it you will learn much more than someone else doing … | |
Re: As in GPL, those reusing or modifying original work contribute to whole. Only difference is AI generated code uses snippets created by humans and adds value by speeding up the process so stubs can be generated into full code saving programmers time. AI is a supplement to coding not a … | |
Re: C#, .NET and Python all have similar syntax but vary in the detail. Better to learn one then another rather mix them up. Prioritise your workload. | |
Re: No language, sample code or error number is given so no answer can be given. I am not Daniel in the Bible. I cannot read your mind like where the King wanted his astrologers to tell him his dream in Daniel 2 which was impossible till God told Daniel the … | |
Re: You have some errors: $id = 'id'; $expiry = 'expiry'; then $sql = "UPDATE ctltbl SET $expiry = expiry - 1 where id=$id"; translates to: $sql = "UPDATE ctltbl SET expiry = expiry - 1 where id=id"; // nonsensical as id=id is always true and update decrements all expiry by … | |
Re: The double quotes in Javascript $("#subtot").val() in the PHP are causing that error. They have to be quoted \". However there is more to extracting the number from Javascript into PHP. You have to separate the PHP and Javascript so you evaluate the Javascript <?php $x = (int)\"".$("#subtot").val()."\"; ?> and … | |
Re: I think it is outlook.com as first hop from server to your mailbox. | |
Re: This is just analysis of statistics of hits on Website by page. Use any tool like Webalizer that does this. From those statistical graphs or tables, person can see if SEO is achieving goal or not. | |
Re: sqrt is the squareroot function in C++. Harmonic mean is the reciprocal of the mean of the reciprocals or 2/(1/number1 + 1/number2). | |
Re: You just have to create a two-dimensional array shop ID by month. Use IDs 0 and 1 for the 2 shops. Use IDs 0 to 11 for the months. Assign the correct values to each cell of the array. Use for loops to sum the elements of the array in … | |
| Re: Why would you use root for user? Why not create a separate user for that table? root is too powerful. Plus there is no database name only device, user and password. |
Re: PHP 5 was simpler but PHP 7.4 and 8.0 are much harder to write in because they are much tighter syntactically and have classes and objects so less errors can creep in e.g. initialisation of variables. Versions of PHP are coming out every year now with code breaking every time … | |
Re: There are too many graphics on the site. The more graphics there are, the slower it will take to load. Spread the graphics out. Resize images so the images are smaller. | |
Re: In Perl this called a hash of a hash and is accessed via pointing down and down to data value. It is used in accessing JSON which is a hierarchical structure of key-value pairs: key->key->key->value. | |
Re: I would use a maths function not an SQL query. The PHP is messy. When you refactor think of better ways the language can be used to write the software rather than painstakingly copying the old code to the new language. PHP is good for database and also has many … | |
Re: Why don't you use an array for the discount rates rather than a long series of if-then-else statements? It is very clumsy. Pascal is an old programming language. I used it at University of Queensland in 1980s. It is not as powerful as others but it is elegant and easy … | |
Re: I worked out from FileNotFoundException that your code is written in Java. So I am assuming you added towards end: doc.close(); or the file would have been corrupted or assumed Java would auto-close your file on exit which maybe it didn't since file was corrupted and not flushed out from … | |
Re: Do unit testing. Only test one small module at a time. Once that passes, do unit test of next small module that relates to the first module. By process of elimination a very large set of programs can be tested thoroughly this way. Testing is never complete. There is always … | |
Re: Line 5 has typo: arrg should be arg. Why have 1 case on line 17? Just remove that. You only need one case statement below it. It is like this was entered in one hit instead of debugging as you went. This is not a good way to program - … | |
Re: Pick one language and go with that. It is very confusing trying to port software from one language to another. C is not as good as C++ for complex software but it is quicker to write C code as it is simpler though has less type checking than C++ so … | |
Re: Software has to be compiled to binary to stop people stealing the source code. DRM (Digital Rights Management) may require a key or an expiry date to manage it. | |
Re: Why don't you rewrite your code so the settings are saved inside the software not on a text file on the hard drive which is a potential security threat? Your method is very messy of saving settings to a text file on the disk outside the software. That needs fixing. … | |
Re: That webbrowser module in Python works fine on Debian Linux! I just opened a basic HTML page in lynx. So it even works on Linux with no GUI! | |
Re: see [url]http://code.google.com/p/gdata-python-client/[/url] |