This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Topics - ruler501
2
« on: March 22, 2014, 11:54:33 pm »
What are some really interesting math problems you know of? One I worked on the other day and neither of my math professors had a quick answer to was: Construct 3 disjoint open sets in R with the same boundary, if it is not possible prove why. Anyone else have interesting theoretical problems like this? EDIT: I'm more interested in topics in topology and analysis(recently I've been looking at the cantor like middle-m sets).
3
« on: February 03, 2014, 05:05:58 pm »
Is there a fast way to test for membership in the cantor set. My only idea is to test out to some threshold(25 digits or so) and if there are no ones(in ternary) before that to assume it is in the cantor set. This might work, but it is likely to include more rationals than it should(though q will always be under 3^20). Is there a better(preferably fast) way to do this? My code currently spends 97% of it's time in this function(though it is called ~2 million times) and any improvements will give me massive performance boosts.
This is my current code(THRESH is 70 which should be more precision than unsigned long long provides)
bool testCantor(unsigned long long p, unsigned long long q) { unsigned long double rem = ((long double)p)/q, div = ((long double)1)/3; int test; unsigned long long mult = 3; for(int i=0; i<THRESH; i++) { test = rem * mult; if(test == 1) { if(rem > div) return false; else return true; } rem -= test*div; mult *= 3; div /= 3; } return true; }
5
« on: November 18, 2013, 02:05:10 pm »
I've been using my new desktop for a month or two now and the other day I put it into suspend while I slept. When I got up it was powering on for about half a second every five seconds or so. I rechecked all the wiring and it appears to be good(or at least unchanged) but the problem has persisted and I am unable to turn on the computer. I've tried clearing CMOS to see if I messed up with my overclock(4770k at 4.0ghz), but that didn't seem to change anything. At this point I'm not sure what to do. Any ideas on what is wrong or how to fix it? I have decent warranties on most of the parts so I should be able to get a failed part replaced(would that be PSU or motherboard in this case?)
EDIT: The customer support at MSI suggested I remove my graphics card to see if it would work with onboard video and that(predictably) did nothing.
EDIT2:It worked for a minute while the graphics card was out and nothing was plugged in except the front panel power switch. As I started plugging other things back in continued to not have problems until I plugged in the power led positive. Then the problem restarted and is not going away. It stopped earlier when I was unplugging things and had moved one cable slightly to the side(not unplugged just moved it away from the processor fan) I tried redoing everything I did, but the problem is not going away again.
7
« on: August 16, 2013, 03:06:34 am »
For the game I am working on I am trying to replace all the old assets with copyright problems or ambiguities with community made assets. These are what I have done for it. The file paths are where in the game distribution you can find what they replace(starting in packages). I could use critique on what I need to do better or what I am doing good. misc/obit/nuke.png misc/notexture.jpg misc/scorch.png misc/obit/headshot.png misc/eventicons/dropnade.png misc/eventicons/nuke.png these are all licensed with the CC BY-NC-SA license http://ourl.ca/19048 is the topic I made on the forums for it. Please put comments on the game itself there and leave this thread for comments on the stuff I'm working on replacing.
8
« on: July 13, 2013, 09:29:55 pm »
I was recently at a robotics conference where every night a large group of students would play Mao(a card game) together. I've started to really like it so I decided to write an IRC bot to let me play it. It is currently running on efnet and OmniNET in #omnimaga-games and supports OmnomIRC also It currently does just the basics required of a bot and should be ready for release Here is what it currently does Command List !join for joining a game !call <target> <rule> for calling someone on breaking a rule -wrong/bad card or out of turn gives someone their card back and gives them another card -wrong/bad call reverses the last call by target and gives them a card !view pm's you with your current hand !quit has you leave the current game !play <number> of <suit> plays that card. It is case sensitive !draw gives you a card !start creates a new game !order the order of players by join time !count <target> tells you how many cards the player has left !countAll tells you how many cards each person in the game has left It will also shuffle in a new deck if it starts running out of cards so you can always continue play(hopefully) Please join, play, have fun, and offer suggestions for further improvement and bug fixes. code is hosted on github at https://github.com/ruler501/maobotEDIT: Polished up first post
9
« on: June 08, 2013, 09:40:54 pm »
I have recently started as a developer on this game called AssaultCube Reloaded(ACR). It is a fork of AssaultCube which is a fork of the original Cube. So far I haven't done much other than tweak weapon damage/recoil, modify how grenades do damage, and some linux compatibility issues. Recently I have started working on adding in the ability to set custom teams. If anyone finds any bugs please post here or on the forums and the bug tracker, link below. Any issues or suggestions I'm glad to work on them. http://assaultcuber.codeplex.com/ downloads and code https://code.google.com/p/assaultcuber/issues/list bug tracker
10
« on: January 20, 2013, 09:52:22 pm »
My parents want me to find a way to setup a server in our house that will connect to the network and allow us to back up all of our home computers(about 2tb of data) for under $400. I would also like to be able to use it as a testing webserver, but thats just if I can for the price. What would you recommend for that price range? The main priorities are keeping the data safe and allowing some revision history and keeping the budget as low as possible. I can build it myself if its just parts and setup. Thanks in advance for any help
11
« on: January 04, 2013, 11:07:56 pm »
If you have not already seen Ubuntu the popular linux distribution is now releasing a mobile version. You can find information about it here http://www.ubuntu.com/devices/phone . The main idea that revolutionizes this OS over other mobile OSes is that it seeks to allow people to use a phone as a desktop too if you dock it. It is supposed to transfer over to the standard unity desktop if you plug it into a monitor, mouse, and keyboard. Another thing they have that android(the other linux mobile OS) does not is that they allow easy running of native programs instead of trying to hack it in like android makes you do. They have announced that they are trying to get hardware partners, but I do not believe that they have found any yet. I personally would like to see how this works on a modern phone. If there is a port I'll load it onto my MetroPCS Galaxy SIII. I probably will not keep it, but I think it is at least worth trying.
12
« on: December 26, 2012, 11:06:14 pm »
I got a yamaha keyboard for christmas because I have been looking into learning the keyboard. Right now though my family has some money/time troubles so I can't get lessons. Is there any free online courses or good ways to learn from home to play piano? I know how to read music and find where notes are on the piano I just can't really play anything right now.
13
« on: November 30, 2012, 11:13:54 pm »
In my engineering class our teacher gave us a challenge to draw a sketch of every unique combination of 3,4,5, and 6 cubes. I spent about 30 minutes on that before I realized that I was making lots of duplicates. I wanted to find a way to tell if one would be unique without having to actually make it. I'm not good at rotating it in my head so I wanted something like a formula for uniqueness. I was thinking maybe something like the polynomials, sets, and numbers used to represent knots would work, but I haven't been able to figure out how to do that.
The approaches I have tried are as follows: Have a set of numbers that just contains how many cubes it touches Have a set of ordered pairs/trios/etc that are at junctions that say how far it goes in each direction Have a sets of ordered pairs like above just group them with a number that says what the shortest straight line distance between the junctions are.
I saw that all of these failed. How else could I do this and would a representation allow me to generate all possible cubes without brute forcing it.
14
« on: November 24, 2012, 12:15:44 am »
How can I get video upload set up? I tried using this script I found <?php $uploaded_size = $_FILES['uploaded']['size']; $uploaded_type = $_FILES['uploaded']['type']; $target = "/home/omni/uploads"; $allowed = array('mp4','wmv' ,'avi','flv'); $filename = $_FILES['uploaded']['tmp_name']; $ext = pathinfo($filename, PATHINFO_EXTENSION); $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; //This is our size condition if ($uploaded_size > 209715200) { echo "Your file is too large.<br>"; $ok=0; } //This is our limit file type condition if (!in_array($ext,$allowed)) { echo "Only Video Files<br>"; $ok=0; } //Here we check that $ok was not set to 0 by an error if ($ok==0) { Echo "Sorry your file was not uploaded"; } //If everything is ok we try to upload it else { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; //echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";
if (file_exists("home/omni/uploads" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]); //echo "Stored in: " . "upload/" . $_FILES["file"]["name"]; } } } ?> and <html><body> <form enctype="multipart/form-data" action="upload.php" method="POST"> Please choose a file: <input name="uploaded" type="file" /><br /> <input type="submit" value="Upload" /> </form> </body></html> Though that doesn't seem to be working. When I try uploading a 10mb avi file it tells me that I need to use a video file. If I take out the condition it says I uploaded a file with no name that is 0kb. I have apache2 and php5. How can I get uploads working where people can only upload files <200mb and that are video files? I've been trying to learn how to use php and html but I still don't really understand it so it would really help if someone could just explain how to get it set up and what script to use. I'm hosting it on my server
|