- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
100% Geek not from concentrate.
I tend to do a lot of website making, but I also do heavy development of essentially useless things in Java, C++, and Python.
For example, I made a web-based inventory manager, that doesn't even look pretty.
- Interests
- Computer Programing, Making webpages. Making useless applications
- PC Specs
- OS: Windows Massive gaming PC, Google Nexus One, Acer Aspire 76552G-5488 Multimedia Laptop, and a useless…
39 Posted Topics
Hi there! What I'm trying to do is have multiple lists have the same length (size) so I can iterate easily over them later. I want to "extend" the size of the smaller lists to match that of the largest list without just tacking on entries, I want to distribute … | |
Hello, I currently have this setup for a "download a mp3" php page: [CODE] <?php include "class.php"; $account = new account(0); $id = $_GET['id']; $u = $_COOKIE['username']; $a = mysql_fetch_array(mysql_query("SELECT * FROM items WHERE id='$id'")); $file = $a['actualPath']; header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$file"); header("Content-Type: audio/mpeg"); header("Content-Transfer-Encoding: binary"); … | |
Simply enough: Call the function, get the returned filename. Function Variables: $file : The input file (source/background) $destination : Where you want the new watermarked image to go $overlay : The overlay image (foreground), this is default set (if not passed in) to "images/watermark.png" $X : X-Position of overlay (default … | |
Hello, I'm working on an application that uses a ServerSocket, but it (at points) stops the server thread and restarts it, throwing a java.net.BindException: address already in use exception. How can I unbind the ServerSocket (.close() is not working to unbind) so I can re-use the same port seconds later? … | |
Re: Stack traces help a lot, are you able to provide those? | |
Re: What code do you have already made? What is your form's code? What have you tried? | |
Re: Can you show the full, unmarked code please? From the looks of it your code is marked to tell us where the errors are, but that does not help us in terms of what TOP and BOTTOM mean. If this is your actual code, I suggest you look heavily into … | |
Hello, [[All sample links may not work after the thread is solved, I will keep them up as long as I can though]] I'm trying to make a graph work, which it does, not when CSS is present on a page though... In my setup I use graph.php to create … | |
![]() | Re: [CODE] import java.util.Scanner; class ClassName{ public static void main(String[] args){ Scanner in = new Scanner(System.in); System.out.println("Message to user here."); String line = in.nextLine(); //Handle line here } } [/CODE] |
What this script does is take in an image and export a thumbnailed version. Function Arguments: $file : Desired image to create a thumbnail of $destination : End location for the thumbnail $zoom : Setting type, explained later (default: false) $t_width : Thumbnail width (default: 150) $t_height : Thumbnail height … | |
Hello, I've been trying to create a script that will take defined pages of a PDF and display them to a webpage using PHP. I've looked through the PHP Manual and only came up with ways to create a PDF, but no read options. --Detailed Scenario-- My school wanted me … | |
Re: I cleaned up your code for you, but I can't help you any further if you don't describe with comments what $ss, $nn, and such actually mean. [CODE]<?php include "db.php"; //Rows $qtyRow = '<tr>'; $priceRow = '<tr>'; $nn=3; $s=mysql_query("select * from test1"); $c=mysql_num_rows($s); if($c%$nn==0){ $cc=$c/$nn; }else{ $cc=$c/$nn+1; } $ss=@$_REQUEST['ss']; if($ss=="" … | |
Re: An [URL="http://www.w3schools.com/tags/tag_iframe.asp"]iframe[/URL] is a webpage inside a webpage. The web browser will interpret the content in the iframe like it would if you went to the actual page. ![]() | |
Re: I'm not going to write it for you but what you need is an array of types (C, T, B), an input reader, and be able to split the input into it's components with error checks. Once you split the input you run the tests on it, these include "IF … | |
Hello, I am making an online gallery for a friend and have this (partially listed) folder structure. root/index.php root/inc/gallery.inc.php root/inc/setup.inc.php root/inc/includes.inc.php Gallery.inc.php has various functions in it (Get image, album, etc), setup.inc.php has config variables (for my friend's ease of access, contains SQL stuff and date formats), here is what … | |
Re: Instead of this: [CODE]File curdir = new File ("."); File soundFile=new File(curdir.getCanonicalPath() + "\\beep.wav");[/CODE] try this: [CODE]File soundFile = new File(System.getProperty("user.dir") + "\\beep.wav");[/CODE] As well make sure that "beep.wav" is spelled correctly, it is case sensitive including the extension. (as far as Java is concerned .WAV is different from .wav) | |
Hello, What I am trying to do is use the following query: [CODE] SELECT * FROM players WHERE NOT EXISTS (SELECT * FROM raidgroups WHERE players.name=raidgroups.player) AND itemlevel>=346 AND level=85 AND NOT EXISTS (SELECT * FROM verification WHERE players.name=verification.username AND verification.organizer=1) AND suspended=0 ORDER BY RAND(); [/CODE] What the above … | |
Hello, I have a table that looks like this: [CODE] +----+-------------+-------+-------+-----+ | ID | Player Name | Col 1 | Col 2 | ... | +----+-------------+-------+-------+-----+ | 01 | Some Guy | 2 | 3 | ... | +----+-------------+-------+-------+-----+ [/CODE] the ... represents a (technically) unknown amount of columns. What … | |
Re: Start by getting a working login/logout/register script. Once that is done, look into file uploads, html/css, javascript, and what other "edit account" pages look like on other websites. Structure your "edit account" to be easy to use and understand. If you don't know how to o this, as Amr87 said, … | |
Hello, What I am trying to do is restrict access to something if 48 hours hasn't passed since the last access. I have a MySQL table with the last access time (col name: lastAccess). If they are within the 48hours, deny access and tell them how many hours and minutes … | |
Re: Like stultuske said, [QUOTE=stultuske;1563542]if your employer demands an .exe file, and threatens to fire you, now this might be a reason I can understand[/QUOTE] You can also use this tool: [url]http://launch4j.sourceforge.net/[/url] What it does is essentially change the extension and make it run correctly. Even when my employer says "Make … | |
Re: If you are trying to get the screen of a JFrame, use my example, otherwise ignore it. As well, I don't think you can get the desktop image if the computer is locked. Don't use a robot then to get the JFrame image. I use the following setup: You will … | |
Hello, I am trying to create a update section of a game but running into a problem of JFrames. What I want to do is have a single JFrame that will have the update script, then after the update it will start a jar file in the JFrame (With the … | |
Ok, So I'm amking a game and need walls so you can't walk through walls (This is a top down view game, screenshot [URL="http://turt2live.servebeer.com/game_stuff/walls.png"]here[/URL]), although, my calculation for seeing if you are going to hit a wall slows down the game with the 3 walls I have (I stopped making … | |
Hello, I currently have 2 JFrames for my "game" (Not really a good one), one for the actual game and one for a minimap. What I can't figure out is that when you click off the game (for example to a browser or something) the game and minimap loose focus, … | |
Hello, I currently have this code to buffer an image: [CODE] public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; ImageIcon icon = new ImageIcon("back.gif"); Image image = icon.getImage(); BufferedImage buff = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_ARGB); Graphics2D b = (Graphics2D) buff.createGraphics(); b.drawImage(image,imgX,imgY,this); b.setColor(Color.BLUE); b.fillRect((window.getWidth()/2)-13, (window.getHeight()/2)-13, 26, 26); g2.drawImage(buff, 0, 0, … | |
Hello, I have a query that needs to perform the following: where verified=1 AND where name is like '%$term%' AND/OR owner is like '%$term%' I have a basic knowledge of SQL and was wondering if the above is possible. I need the and/or because i would like it to return … | |
Re: You might want to look up 'em'. Other measures are found here: [url]http://www.w3schools.com/css/css_units.asp[/url] You could also view source, open their CSS, and find the element. Just see what they did. | |
Re: [QUOTE=wingmark;1543753]Hi All; I have a MySql database set up called users. The only things required to register to my website are a username and password. When this is completed, the database populates with the users info as requested. How does MySql make this new users permissions to have it where … | |
Re: IE (Internet Explorer) commonly hates CSS attributes compared to other browsers. It is VERY common for one browser to work, another to not, and then the third to just throw it all over the screen. I don't quite know how to make it so it checks your browser. The reasoning … | |
Hello, What I am making is a block of code where it "balances" the load for support tickets on a website. I know that my setup may (most likely will) not be the best. I'm looking for working, not a lecture on how to do everything and have it all … | |
Hello, In my code I am getting this error: [CODE]Warning: mysql_connect() [function.mysql-connect]: User turt2liv_demo already has more than 'max_user_connections' active connections in /home/turt2liv/public_html/demo/jamond_website/class.php on line 11[/CODE] That method looks like this: [CODE]//Constructor function __construct($debug){ if(!$debug){ $debug=0; } mysql_connect("localhost","turt2liv_demo","demoacc") or die("Connection Error: ".mysql_error()); mysql_select_db("turt2liv_demo_jamond_website") or die("Selection Error: ".mysql_error()); error_reporting($debug); date_default_timezone_set("America/Edmonton"); if($this->isLoggedIn()){ … | |
Hello, I have a PayPal button that uses a submit button to pay, but I have a small problem with it. The client I'm making this for also wants tracking (Hits). Is it possible to have the submit button also run a javascript before going to paypal? If you need … | |
Re: I don't know much about action script, but your PHP code is correct, although a small thing I noticed, line 21 says PLease, Won't effect the code though, just wanted to point that out. | |
Hello, I was wondering if there is some sort of Java code that can get information from a webite ONLY when it needs to. To better explain (by using an example) let's say I have a slow webpage (minimal traffic) where a user clicks a button and Java opens my … | |
Re: Hello, Are you looking for a replacement of the for loop? If yes: [CODE]String word; String letter; int index=0; char singleLetter; Scanner keys = new Scanner (System.in); System.out.println("What is your word?"); word= keys.nextLine(); System.out.println("What is your letter?"); letter=keys.nextLine(); singleLetter = letter.charAt(0); int i = 0; while(i<word.length()){ if( word.charAt(i) == singleLetter … | |
Hello, For some reason when I use the particualr block of code below it will work the first time, but when called again with RemComps as true, it will work almost the way I want it to, but instead of the one set of buttons it has 2 (or the … | |
Hello, I recently took up a challenge to make a full screen pong game in java. So far it is full screen, it does the basics (bouncing off floor/roof/paddles) with a minor point system. I also added support for every 20 seconds it speeds up the ball by 1pixel per … | |
Hello, I have run into a problem where I need to update multiple rows in an SQL table at once. I have found and tried to use the tutorials on setting an ID and then looping through the data that way ([url]http://www.daniweb.com/forums/thread35096.html[/url]) but my setup is a little different: The … ![]() |
The End.