bluefish1405241537
Members-
Content Count
72 -
Joined
-
Last visited
About bluefish1405241537
-
Rank
Member [Level 1]
-
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.