Posts
 
Reputation
Joined
Last Seen
Ranked #492
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
18
Posts with Upvotes
11
Upvoting Members
11
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
4 Commented Posts
0 Endorsements
Ranked #4K
~13.9K People Reached
About Me

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
Favorite Tags
Member Avatar for Dani

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.

Member Avatar for Haseeb_12
5
592
Member Avatar for Johannes C.

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.

Member Avatar for Reverend Jim
2
872
Member Avatar for Ashley_31

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 …

Member Avatar for Olive34
0
213
Member Avatar for rproffitt

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 …

Member Avatar for Reverend Jim
3
256
Member Avatar for NAFISUL

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.

Member Avatar for jkon
0
128
Member Avatar for hgsinfotech

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 …

Member Avatar for wwwalker
0
109
Member Avatar for charlie_20

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 …

Member Avatar for wwwalker
0
118
Member Avatar for davy_yg

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 …

Member Avatar for Dani
1
166
Member Avatar for pritaeas
Member Avatar for KirovEli

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.

Member Avatar for Arun_47
2
242
Member Avatar for Mohammed_98

sqrt is the squareroot function in C++. Harmonic mean is the reciprocal of the mean of the reciprocals or 2/(1/number1 + 1/number2).

Member Avatar for toneewa
0
203
Member Avatar for Official_2

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 …

Member Avatar for wwwalker
0
312
Member Avatar for DB12

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.

Member Avatar for yqqwe123
0
194
Member Avatar for complete

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 …

Member Avatar for Dani
1
122
Member Avatar for Essam_4

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.

Member Avatar for SoftBa
0
267
Member Avatar for kamilacbe

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.

Member Avatar for pritaeas
0
107
Member Avatar for Helder_3

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 …

Member Avatar for wwwalker
0
376
Member Avatar for Dimal

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 …

Member Avatar for wwwalker
0
799
Member Avatar for Saboor880

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 …

Member Avatar for orichisonic
1
1K
Member Avatar for Phummanat
Member Avatar for estherschindler

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 …

Member Avatar for wwwalker
0
400
Member Avatar for nxcx

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 - …

Member Avatar for Nutster
0
370
Member Avatar for ravss

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 …

Member Avatar for wwwalker
0
329
Member Avatar for Curious Gorge

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.

Member Avatar for wwwalker
0
1K
Member Avatar for cambalinho

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. …

Member Avatar for cambalinho
0
4K
Member Avatar for vegaseat

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!

Member Avatar for e-papa
4
1K
Member Avatar for Uncle_John
Member Avatar for wwwalker
0
168