bluefish1405241537
Members-
Content Count
72 -
Joined
-
Last visited
Everything posted by bluefish1405241537
-
It seems like an opportunity for a "Yahoo drive". Though I imagine they would take steps to prevent that (and they already have with limited attachment sizes).
-
He He...firefox Supporting Microsoft A hidden something
bluefish1405241537 replied to nakulgupta's topic in Software
I did a search for it, and Microsoft came up as number 6. I think that it may have moved because either traffic flow changed or Google improved its search algorithm for more relevant results (i.e. the W3C thing on HTTP first). -
I really don't like this, but from what I read in the article - GO MOGLEN! I'm a great supporter of open-source, but I understand that some companies need their profits. Nonetheless, I don't believe that such basic concepts as menus should be patented. Nowadays everyone uses them. I mean, there aren't really that many ways to do such a thing without compromising efficiency or something else. The Mac seems to avoid the windows interface pretty well, but what about the bar at the top of the screen? Honestly, it is probably much more difficult to find something completely different than it was to create the idea in the first place.
-
Liquid Webtoy -- A Fluid Similation Game Java browser game
bluefish1405241537 replied to mtnbluet's topic in Software
Wow, that was pretty fun. I like making a lot of magma and having the water go through the cycle of evaporation and rain. It kind of reminds me of the Falling Sand Game - the same sort of concept with different materials that interact with each other. -
Well, as for connecting to the wireless router, my router is personally not connected to any computer. It's on the first floor, where no computer is, so that the computers in the basement and on the second floor all have clear reception. I do have a laptop, but if someone did only have desktops, none of which were connected to the router, it would be very inconvenient to need a wired connection.
-
It would probably be best to just order them using a PHP script or whatever if that's all you want. I'm not sure if MySQL is capable of that.
-
Ok, here's what I got from one website: XHTML (using object tag) <!--[if !IE]>--> <object classid="java:Sample2.class" type="application/x-java-applet" height="300" width="450" > <!--<![endif]--> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="300" width="450" > <param name="code" value="Sample2" /> </object> <!--[if !IE]>--> </object> <!--<![endif]--> You could use some sort of JavaScript to display the correct one. The site is http://www.cs.fsu.edu/ if that's not exactly what you're looking for (they have more).
-
Another way of doing it that might be simpler would be to: 1. When the user buys the item: 2. Loop through the array of item ids; 3. At each iteration of the loop, check to see if the item ID is the same; 4. If so, increment the quantity value and update that for the database; 5. If not, add the ID. Also, you could just have that multiple ID thing, and have a code like the following to put it in a key-value pair of items and quantities. e.g. $array = explode(",", $item_ids); //Create array of item IDs, including multiple entries$keyval = new Array(); //Create the array to hold the key-value pairsforeach($array as $id) { //Loop through each IDif(isset($keyval[$id])) { //Check if the id has already been seen once$keyval[$id]++; //If so, increment the count} else {$keyval[$id] = 1; //If not, set it to 1}}The only problem with this method could be that some parts of the array are undefined and you need to be careful when accessing values. If you do use this, use the isset function to check if there is at least 1 of the item.
-
Ssi And Javascript Browser Friendly Navigation
bluefish1405241537 replied to swiideman's topic in Programming
This is physically impossible. You see, when a webpage is loaded, it is requested from the server. The server then runs the SSIs, etc. and sends the page to the client. On the clients machine, the page is loaded and e.g. javascript is run. You are trying to add SSIs in the Javascript part of the process, but it has already finished processing SSIs. It might be possible to do this with AJAX, but I think the simplest solution would be a cookie based approach. When you figure out whether a browser is compatible or not, set a cookie. <script>if(compatible)document.cookie="version=new";elsedocument.cookie="version=old";location.href="#"; //Refresh the page</script>Then in your server-side language, you need to check the cookie. If a) the cookie does not exist; Display the javascript to check the compatibility. the cookie has a value of "new"; Include the new page c) the cookie has a value of "old"; Include the old page. -
Well, how far have you gotten with the database? Do you have a database yet? Do you know how to do simple MySQL (I assume MySQL) queries? If so, you should use two different SELECT queries - one on the user's table that should fetch the row with that user's username, and one for each item to check it's description. For example: $q1 = mysql_query("select `items`, `quantities` from `users` where `username`='$username';"); //Get item data from user$array = mysql_fetch_array($q1); //Put into array$items = explode(",", $array['items']); //Set $items as an array of ids, assuming that items are stored as e.g. "0,1,2,3"$quantities = explode(",", $array['quantities']); //Set $quantities as an array of numbers, assuming that they are stored as e.g. "2,1,7,4", synchronized with the items fieldfor($i=0;$i<count($items);++$i) { //Start a loop for each item$id = $items[$i];$description = (get from mysql, using item id);echo "Id: ".$id." | Description: ".$description." | You own: ".$quantities[$i];} Sorry about the bit of pseudocode there - I didn't really want to write all the SQL. I assumed that IDs and quantities are stored in two comma separated fields - the first id in the ID field corresponds with the first quantity in the quantity field. If you need more clarification, just ask. As for tutorials if you don't know MySQL, I learned my first PHP from phpbuddy.com (see Working with Database), but I'm afraid I don't know any other tutorials. The official MySQL manual is good for checking syntax, but not much else.
-
I'm no expert when it comes to Windows stuff in C++ - however, I can tell you that your problem must be in converting the char* to TCHAR*. I checked the values of the variables, and they're fine. I couldn't find the _sprintf function when I looked around, so I can't help you there, but try checking the documentation for what you're using to make sure you're using that function correctly.
-
Firefox Plugins For Web Developers
bluefish1405241537 replied to delivi's topic in Websites and Web Designing
Nice list. And yes, IE Tab is better.The two I personally use the most are Firebug and Web Developer. Firebug is awesome - there is nothing, Firefox or no, that can match it for debugging pages. And Web Developer is handy, especially when I want to disable cache if I am editing pages often. -
I'm a pure HTML kind of guy. But then again, I have never really had to do any sort of heavy-duty coding. Most of the things I design have a simple, functional layout because the guests will be a select group that don't really care about the visual style except for not looking bad.
-
GMail... Extra storage? I don't really see how this would be an issue, unless you are using GMail drive or something. I understand that Google needs to make money, but I don't see how this could really be an issue for the typical user. I mean, I would think that going deeper into the results takes more out of the servers, and if it's too much lag for Google then I can understand how they would want to limit it. And if they let people pay for it, then that would be fine too. I don't think they would be making this change to make money, but rather to save it (and if people pay to make up for the money Google would lose, then it wouldn't be a problem).
-
It actually has nothing to do with the casting. You see, you are using substr as the following: string substr(string $str, int $start, int $end); when the correct syntax is as follows: string substr(string $str, int $start, int $length); So you should use: $sub2 = 0+substr($text, 3, 3);$sub3 = 0+substr($text, 6, 3); in the appropriate place. I've come across this problem many times because of differences between programming languages. To check a syntax, just go to http://de1.php.net/substr/ to get it instantly.
-
Symantec: Windows Is Most Secure Os
bluefish1405241537 replied to xboxrulz1405241485's topic in Websites and Web Designing
This seems kind of crazy, but I suppose it depends what you do on your computer. If you keep your Windows locked up in an airtight safe with no internet access, I suppose you might be able to avoid any security leaks. And why, may I ask, is Linux the most trusted OS to run a web server on? I read a few of the comments, and here's what they were basing it on (apparently): As you can see, Windows has the fewest. However, it has by far the most severe ones. Also, the average fix is much slower than for Linux (though it turns out that Mac takes over two months on average). From these stats, anyone that looks closely can see that in fact, Windows is the least secure: 12 severe problems, while Linux has a sixth of that, and Mac has only one! Personally, from a security standpoint, I would choose Red Hat. For one, it only had 2 severe. I wouldn't choose Mac even though it has many fewer, just because it takes so long. My second choice would be Mac. Also, as also pointed out in the comments, the number of patches does not correlate with the number of bugs. Windows could have 169 unpatched bugs. -
Nice tutorial. Very easy to understand, and very simple, which I suppose was your goal. I now know how to program Pascal without ever writing a single line of code. That's kind of cool. I've never used Pascal before, but it seems like a pretty good language. Personally, I prefer to stick with the more complex stuff (C#/Java, depending on the project), but I think I'll have a go at Pascal now that I've read this tutorial. It seems more like VB than anything else I've used (actually, I think it's most like Delphi, but I haven't used that so I can't be sure). It's nice to have some built-in stuff instead of having to import it all (includes in C/++, using in C#, import in Java). It would certainly be a good building block to base learning programming on - functional, but without unneeded complexity. I have yet to see how it stands up for really big projects, or with graphics, but from first glance it seems to be a good one.
-
Computer Model Of The Brain Created
bluefish1405241537 replied to Yaghoob's topic in Science and Technology
There are far too many books written about this subject. I think a computer modeled completely after the brain would just be... A brain. Without a body. After all, that is pretty much what we're talking about - something to "imitate" the human brain as closely as possible, but with faster processing. It sounds a lot like a computer geek with a laptop (no offense to computer geeks, myself being one). Except, of course, for the balance in different areas, as opposed to the system we use, which isn't practical for the kinds of advances that we want. And the eternal servitude. -
I had this old computer that I was configuring to run a server, and whenever I typed a search term in the address bar or clicked a link from Google it directed to this random website. It completely messed up my Google results. I did a quick search for a Ad/Spyware scanner, typed the address in my browser (because Google links didn't work), and found one. I can't remember exactly which one I used, but I remember that it did the job. It found at least a half-dozen various spy/adware on the computer. Presto, gone. Now I can't get the address bar to search, but that's no big deal (especially since I use Firefox most of the time, and like I said, I don't use the computer much). It bugs me when these programs even exist.
-
LOL. This is insane. Personally, when I thought about Mac/other OS's, I wondered what sort of interface they would use because I found the windowed interface to be the only effective one; but I never for a moment thought that it was the "only" way! Once I actually used I Mac, I saw that it had the same sort of idea, but personally, I like it better. It just goes to show that you can't say one system is the "only" and the "best" - I proved that to myself a long time ago.
-
Thanks for the reply.This seems to be pretty effective. The only thing is that I was speaking of a raster object, not a vector one. I could see though how this could be used anyway (either make vector objects instead of raster or generate a vector from the raster). This would certainly be faster than my solution, because the main thing is calculation instead of iteration, and computers tend to do calculation faster.
-
A try block really does nothing on its own. If you want it to ignore exceptions, just put an empty catch block as shown above. The compiler doesn't do this automatically because there is to reason for it to "think" that this is the intended effect.