Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. So are you needing to get new hardware still, or did you already get the replacements? A lot of us are still getting hit with SMF's cannot connect to the database, or simply timing out. I had SMFs cannot connect to database errors 12 times before I was able to load into this topic Dunno who restarted the MySQL server, but the max_connections setting went down to 60, which is what is in /etc/my.cnf and which is too low. For some reason I have always just tweaked the settings via the MySQL console after I did restarts. I've now also updated my.cnf. The problem is that 60 connections isn't sufficient so you'll quickly run out of connections and get that error. Restarting MySQL only momentarily fixes that because it incidentally kills all connections when doing that. I should probably have written this somewhere, but for a long time, I was the only one who ever touched the server so it wasn't really necessary.
  2. Sorry if you've been having trouble accessing the website. The server has had some hardware problems. It should be alright now, but if the issues persist we might have to move it to another machine. Again, sorry for the inconvenience.
  3. The Web Freaks, Inc. No. I don't understand that question. What exactly do you want to know? About nine years. Kissimmee, Florida, USA. The Web Freaks has an office, but PHP Freaks doesn't. Eric Rosebrock is the owner of The Web Freaks, Inc., but I don't believe his title is CEO. No. PHP Freaks is run by the volunteer staff that you can see on this website. The (paid) staff at The Web Freaks is not involved with the operation of this website. In the time of writing, 97,802 members. This information is freely available on the front page and forum index. 673,475 page views per month according to Google Analytics. 2,356,950 according to awstats (parses the Apache access logs). Both of those are for the last 30 days. This isn't public information. No.
  4. Here you go... Top one is: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.13 Safari/534.7 Bottom one is: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 [attachment deleted by admin]
  5. Seriously this is how upper class think...you should see my friends im tame compared to them, i actually consider myself quite humble in comparison. Anyways im off to bed....and going to sleep well (with a clear conscience) No, that's how arrogant assholes act... It has nothing to do with socioeconomic status.
  6. It isn't, but since they decided that they want to do business inside the European Union, they are also subject to their laws concerning monopolies. If Apple, Canonical or another company takes over the monopoly on the operating system market, they will also be subject to the same laws and regulations, and Microsoft would again be free to bundle whatever browser they wanted with Windows without any interference. Microsoft are more than welcome to not follow that ruling, but the consequence of not doing is that they can no longer do business within the European Union. I'm not saying whether it's a good law or not, but Microsoft obviously has to follow it as long as it's in effect. Not really seeing as Chrome has a market share of about or less than 10% depending on whose statistics you use. That is hardly a monopoly. You're just not allowed to (ab)use a monopoly in one market (e.g. operating systems) to gain a monopoly in another market (e.g. internet browsers).
  7. MySQL isn't written in neither PHP nor C++, so your point is irrelevant. The querying speed on the MySQL database vs. the querying speed on the binary version of the database is the subject here. The API for querying the binary version is available in a multitude of languages, including PHP.
  8. Daniel0

    Sphinx

    Indeed.
  9. If we may believe that, we also may start believing in Microsoft pushing IE9 to all IE6 users. Not going to happen. The sets of operating systems that those two versions are compatible with are disjoint.
  10. Just store the previous one and subtract them: <?php $prev = null; $xp2 = 0; for($i=1;$i<=10;$i++) { $xp2+=10*$i; $xp=(1.3726*$i)*$xp2; echo "$i. ".number_format($xp).""; echo "<br>"; if ($i!=1) { $diff = $xp - $prev; echo "[DIFF: ".number_format($diff)." XP]"; } echo "<br><br>"; $prev = $xp; }
  11. $str = '/def/g/qaz/pol/cxz/cba/abc'; echo preg_replace('#(?:/[^/]+){2}$#', '', $str);
  12. How would I know? I haven't even seen your code...
  13. function getCostEstimate($words, $range = 0.05) { $base = ceil($words * 13 / 60) * 40; return array($base * (1 - $range), $base * (1 + $range)); }
  14. I wouldn't recommend that. http://blog.visionsource.org/2010/01/28/opencart-csrf-vulnerability/
  15. Your website claims that you have skills in developing websites using PHP and MySQL. It also clearly says "Web Developer" in the header. I don't think I'm being rude, but rather honest.
  16. I find it sort of disturbing that you're charging people money to do this while you ask other people how to do it and while you're looking for a teacher. Borderline scamming if you ask me. If I'm paying someone to do a job for me, I expect they're competent enough to do it without having a teacher at their side.
  17. Yes, I do. Not to be rude, but useless answers are a product of horribly asked questions. If you had just said what you actually wanted to do instead of having people try to guess it, you would probably have had a satisfactory answer by now. You said you didn't want to record from a microphone, but there are lots of other devices you can record from. Anyways, as far as I remember, you'll have to record from the "Stereo Mix" sound device. You can use a program like Audacity to do this. I don't have Windows handy, so I can't test it.
  18. What exactly do you want to record?
  19. Oh yeah. Thought you wanted to record you speaking or something seeing as you mentioned microphones. Can't you just plug it into your computer and use a recording program like Audacity? What have you tried to do?
  20. Yes. It's really annoying if you can only contact someone through some stupid form buried 100 levels deep into the site hierarchy. If you're worried about spam, get a proper spam filter.
  21. Maybe I'm missing something, but how does one record sound without a microphone? You clicking through a GUI in Windows doesn't really help much.
  22. Like this: SELECT SUM(total) FROM fakture WHERE kunde = '$id' Have a look at some of the other aggregate functions as well. Also, I would recommend you to keep all identifiers in your code in English regardless of the user interface language. This serves two purposes: 1) English only uses a-z, so you won't run into restrictions there, 2) Anyone will be able to read the code and understand what is going on. By the way, it's spelled faktura (with an 'a')
  23. Yes, you can just add them together. Beware of the limited precision in floating point arithmetic though. Like you can't express 1/3=0.333... precisely in decimal form, there are certain numbers that cannot be expressed finitely in binary. To illustrate this problem, try having a look at this topic. To overcome these shortcomings, you can store the values as integers, so you have 1350¢ + 550¢ = 1900¢ = $19. You can use BC Math or GMP to perform arbitrary precision mathematics. As for the comma/period thing, you can do something like str_replace(',', '.', $value); on user input. number_format can handle the other way around.
  24. You can try to prove that P = NP and compete with Deolalikar who is trying to prove that P != NP
  25. Let [imath]x[/imath] be the number of times it should be executed per day. Then the script will run every [imath]S=\frac{x}{86400}[/imath] seconds. Now let [imath]s[/imath] be the number of seconds that have passed that day. Then there will be [imath]\lceil \frac{86400 - s}{S} \rceil[/imath] times left that day.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.