Search found 147 matches

by xulaus
Fri Mar 07, 2014 5:17 pm UTC
Forum: The Help Desk
Topic: Nuking A Ubuntu Installation From Within Ubuntu
Replies: 3
Views: 2404

Re: Nuking A Ubuntu Installation From Within Ubuntu

Thanks for the help. I booted a .iso from grub2 and it seems to be installing over the broken OS just fine. Happy times. For posterity here's the commands I used xulaus@laptop:~$ sudo -i root@laptop:~# apt-get install grml-rescueboot root@laptop:~# cd /boot/grml root@laptop:~# wget http://releases.u...
by xulaus
Wed Mar 05, 2014 11:44 am UTC
Forum: The Help Desk
Topic: Nuking A Ubuntu Installation From Within Ubuntu
Replies: 3
Views: 2404

Nuking A Ubuntu Installation From Within Ubuntu

Hi all! I have a very old Ubuntu installation that has been upgraded a lot of times (from ~version 9), and as a result a lot of it is configured incorrectly and drivers fail strangely and consistently. Its got to the point where the mouse no longer works and I have to manually configure the wireless...
by xulaus
Sun Jul 14, 2013 8:38 am UTC
Forum: The Help Desk
Topic: Help Setting Up Version Control
Replies: 10
Views: 4849

Re: Help Setting Up Version Control

Thanks for all the advice folks. I was just talking about putting a copy of the repo in dropbox to avoid dropbox doing its own version thing, sorry I didn't make that clear. But I guess if there are free hosts out there then its all a moot point anyway. No point using a hammer for a screw.
by xulaus
Sun Jul 07, 2013 12:35 am UTC
Forum: The Help Desk
Topic: Help Setting Up Version Control
Replies: 10
Views: 4849

Re: Help Setting Up Version Control

If it's only two users, you can use a service like Bitbucket, which is free for up to 5 users, and is designed specifically for repo hosting. Yeah after even a modest google there seems to be a butt-tonne of these services out there. Yet more research and decisions to be made I guess. But seriously...
by xulaus
Sat Jul 06, 2013 8:40 pm UTC
Forum: The Help Desk
Topic: Help Setting Up Version Control
Replies: 10
Views: 4849

Re: Help Setting Up Version Control

I wasn't sure if I need a server though, thats why "if it's needed" was in there. But anyway the Hg docs were clear as glass, so I got a repo up and running in about 5 seconds and was branching and all the good stuff within the hour. For my partner it looks like I can just shove the folder...
by xulaus
Sat Jul 06, 2013 7:09 pm UTC
Forum: The Help Desk
Topic: Help Setting Up Version Control
Replies: 10
Views: 4849

Re: Help Setting Up Version Control

I had looked at that bzr tutorial, but it seems to only go over the very basics and nothing much about sharing changes or setting up a server (if that's what's needed); The more advanced tutorial just jumps right in with technical jargon, so that's no good either. Thanks for the tipoff about Hg thou...
by xulaus
Sat Jul 06, 2013 5:45 pm UTC
Forum: The Help Desk
Topic: Help Setting Up Version Control
Replies: 10
Views: 4849

Help Setting Up Version Control

Hello there forumites, I've been hobby programming for quite some time, but I've only ever used flat files (with some backups) for source control and I've honestly never had a reason to change from that. However, in the not too distant future I am going to be programming with a friend on a joint pro...
by xulaus
Sat May 04, 2013 3:27 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9879
Views: 1795919

Re: Coding: Fleeting Thoughts

Using JavaScript and HTML5 is an awesome way to rapidly build and test ideas for algorithms that require graphics output. I'm glad I finally got round to playing with <canvas>
by xulaus
Tue Apr 23, 2013 10:10 am UTC
Forum: Coding
Topic: Save my brain from this LaTeX bug
Replies: 12
Views: 9182

Re: Save my brain from this LaTeX bug

Not sure about why the bug is happening, but perhaps this is a good workaround?

Code: Select all

\documentclass[10pt]{report}
\usepackage{amsmath}
\newcommand{\al}[1]{\begin{align*}#1\end{align*}}

\begin{document}

\al{
x+y &= z \\
x-y &= 0
}

\end{document}
by xulaus
Fri Mar 15, 2013 11:36 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1186: "Bumblebees"
Replies: 90
Views: 20671

Re: 1186: "Bumblebees"

If you want something even worse, eat refined "natural fruit sugar" (almost all fructose, with the nutrients removed). I really don't see why fructose is a bad. Higher sweetness and equivalent effects on insulin and blood glucose levels when compared to sucrose. Low GI to boot. Seems like...
by xulaus
Thu Aug 26, 2010 8:33 pm UTC
Forum: General
Topic: Thoughts for ships
Replies: 90038
Views: 8011891

Re: Fleeting/Random/Thoughts (Random like the plague)

SlyReaper wrote:At least we still have Chipping Sodbury, Piddle Trentide, Scunthorpe, and Bognor. You know a country is great when its town names sound like curses.

I've been to Southampton but I've never been to Scunthorpe.

A bit late I know.
by xulaus
Sat May 22, 2010 7:21 pm UTC
Forum: General
Topic: Blistering blue barnacles
Replies: 28529
Views: 3100770

Re: Rant Thread - The Spites of Wraith

SlyReaper wrote:Rant: AARRGGHH my favourite shirt just ripped! ARGH ARGH ARGH!
I chose to read that as if you are narrating The Hulk. I lol'd
by xulaus
Tue May 11, 2010 10:51 pm UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8651
Views: 1617337

Re: ITT: We make xkcd slightly worse.

A question here: when will our comics get into xkcdsw.com? Are they posted automatically, or do I have to do it myself? Neither. There's someone that goes though the thread and does it, because they are such a nice person and I, for one, thank them. There is a massive backlog though, so don't expec...
by xulaus
Thu Apr 08, 2010 8:32 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9879
Views: 1795919

Re: Coding: Fleeting Thoughts

You, sir, name? wrote:In most cases, what I'm looking for isn't source code itself, but source-code being discussed.

Admittedly it was a bit of a tangent, but I have occasionally found useful things on there, and there is always the chance that a well documented piece of code will give you just the information you need.
by xulaus
Thu Apr 08, 2010 7:12 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9879
Views: 1795919

Re: Coding: Fleeting Thoughts

When looking for code the following searches are quite useful.
http://code.google.com/
http://google.com/codesearch
by xulaus
Thu Mar 11, 2010 10:11 pm UTC
Forum: General
Topic: Survivors plan. Am I the only one?
Replies: 31
Views: 2874

Re: Survivors plan. Am I the only one?

SecondTalon wrote:What was the scenario in Survivors?
Nearly everyone dies and governments collapse etc. Most of it revolves around people being bastards to each other, like rounding people up with the promise of food, then using them as slave labour.
by xulaus
Thu Feb 25, 2010 6:02 pm UTC
Forum: Gaming
Topic: You gotta get into Dwarf Fortress if you haven't already.
Replies: 4583
Views: 626241

Re: You gotta get into Dwarf Fortress if you haven't already.

From the dev logs
02/25/2010: Sieging humans brought some war polar bears, and one of them started a camp fire.
I swear, half of these bugs should be left in.
by xulaus
Wed Jan 27, 2010 5:24 pm UTC
Forum: Computer Science
Topic: Discarding "boring" images.
Replies: 40
Views: 8945

Re: Discarding "boring" images.

I've generated a list of 6455 4x4 "interesting" monochrome images. My maths says that is about 7x107 possibilities for 120x90 images. I've just got to write something to intelligently sort through those now. So you folks might be seeing some results soon :).
by xulaus
Tue Jan 19, 2010 11:44 pm UTC
Forum: Computer Science
Topic: Discarding "boring" images.
Replies: 40
Views: 8945

Re: Discarding "boring" images.

I came up with the idea of using standard deviation aswell, if the standard deviation of the pixels is too high the picture is noise, and if it is too low it is uniform. I don't know if I buy this. What about coherent images with multiple highly contrasting regions? A picture of a dark mountain aga...
by xulaus
Tue Jan 19, 2010 5:26 pm UTC
Forum: Computer Science
Topic: Discarding "boring" images.
Replies: 40
Views: 8945

Re: Discarding "boring" images.

The very sad thing is there is no way to compute this space because the "filtering" function would actually incur more overhead than actually just going and computing the extra image. I was planning on combating this by seeing is i could reverse engineer filters into generators, so that I...
by xulaus
Mon Jan 18, 2010 11:09 pm UTC
Forum: Computer Science
Topic: Discarding "boring" images.
Replies: 40
Views: 8945

Discarding "boring" images.

This quote from the "What would you do with an infinitely fast computer" thread really got me thinking. Something a CS professor pointed out a while ago, to illustrate the size of combinatorial search spaces: If you enumerated all possible 24-bit 1600x1200 bitmap images, you'd have photos ...
by xulaus
Sun Aug 23, 2009 6:35 pm UTC
Forum: General
Topic: Thoughts for ships
Replies: 90038
Views: 8011891

Re: Fleeting/Random/Thoughts (Random like a pox)

Dargon Cophe wrote:
Kewangji wrote:You can kill tiny vampires with toothpicks.
Tiny werewolves would be a bit more problematic.
Just mash them with the silverware.

I don't care if you only use it for special occasions, there's tiny werewolves! How is that not a special occasion?
by xulaus
Sun Aug 23, 2009 11:17 am UTC
Forum: General
Topic: I do want.
Replies: 4
Views: 789

Re: I do want.

iamevn wrote:...I'd care

LTB'd
by xulaus
Mon Aug 17, 2009 4:48 pm UTC
Forum: Coding
Topic: NOTing in Python
Replies: 19
Views: 1691

Re: NOTing in Python

What about something like this? (idk python so it's python like pseudo-code with C style bit wise operators)

Code: Select all

not_not(x):
   return x^((1<<(ceil(log2(x))+1))-1)
by xulaus
Wed Aug 12, 2009 11:48 am UTC
Forum: General
Topic: Heading for England
Replies: 107
Views: 6206

Re: Heading for England

OT: Having lived in Wales and currently in Scotland, I have found that the recurring theme is light-hearted animosity towards the English, from a few people. Some are not so light-hearted, but let's not talk about them. I used to visit Wales regularly, I tended to find no-one really hated the Engli...
by xulaus
Mon Aug 03, 2009 4:15 pm UTC
Forum: General
Topic: Lucky Ten Thousand (TIL)
Replies: 13405
Views: 1515702

Re: Today I Learned

Zohar wrote:...wrote that doesn't mean he's write...
That was probably a mistake, but one I found funny. If it wasn't, kudos to you good sir.
by xulaus
Sat Aug 01, 2009 2:06 am UTC
Forum: Coding
Topic: What are you working on?
Replies: 45
Views: 4259

Re: What are you working on?

Check so it isn't over-writing memory in some other part of the program. A buffer overflow in one place can overwrite code in another, completely unrelated area (making library calls fail, etc.) Try libefence or something similar to track it down. Thaks for the advice, but it turns out that gdb was...
by xulaus
Sat Aug 01, 2009 1:30 am UTC
Forum: Coding
Topic: What are you working on?
Replies: 45
Views: 4259

Re: What are you working on?

I am making a fractal generator, I have it successfully making mandelbrot and julia sets, but I keep breaking it, as my plea's for help in various threads show. Currently it segfaults when writing to a file (if one option is true), and it doesn't average colours quite right. :/
by xulaus
Thu Jul 30, 2009 11:45 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9879
Views: 1795919

Re: Coding: Fleeting Thoughts

You, sir, name? wrote:...
Please keep us posted on this language, it seems like it might be awsome when finished.
by xulaus
Sat Jul 25, 2009 1:04 am UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 128153

Re: Tabs vs Spaces

I use tabs for others convenience, but have set my tab width to 1. Suddenly it doesn't matter which one I use, provided no-one else uses my code.
by xulaus
Fri Jul 24, 2009 1:40 am UTC
Forum: Computer Science
Topic: RGB Blending
Replies: 21
Views: 4609

Re: RGB Blending

IIRC paint relies on light absorption so you end up with RYB as the primary colors, but screens relies on light emission so you end up with RGB (approximately). I say approximately because true violet cannot be imitated by RGB screens, and assuming that there is a similar deal for paints. If parts/a...
by xulaus
Mon Jul 20, 2009 11:54 am UTC
Forum: General
Topic: Wow. Guys, this is why we have spambot protection.
Replies: 17
Views: 30040

Re: Wow. Guys, this is why we have spambot protection.

My fave anti spam project is Project Honeypot not only do they provide junk emails, but also a list of IP and keywords often used.
by xulaus
Sat Jul 18, 2009 10:14 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 518357

Re: The "IT DOESN'T WORK!" thread

PPM does seem interesting, but I dont want to ditch BMP as I just got it working.
InkL0sed wrote:Why not use PPM, then convert it with, say ImageMagick?
Thats what im doing at the moment just with BMP -> PNG :)
by xulaus
Sat Jul 18, 2009 12:05 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 518357

Re: The "IT DOESN'T WORK!" thread

phlip wrote:Because you might be running into padding problems... each line of pixels in a BMP file is supposed to be padded with zeros to a multiple of 32 bits.
Yay, you fixed it! I did have a look at some specs I googled and couldn't see anything. Oh well, Live and Learn I suppose.
by xulaus
Fri Jul 17, 2009 3:43 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 518357

Re: The "IT DOESN'T WORK!" thread

Still no change in the output. Gah this is driving me insane.
by xulaus
Fri Jul 17, 2009 2:55 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 518357

Re: The "IT DOESN'T WORK!" thread

I think you're right with the off by one looking at the tilt on the broken one, but I changed the code to use int's and it didn't help. The parts I changed: double oY=0,oX=0; /* snip */ oY=0; /* Get average colour for subpixels */ for(unsigned int i=0;i<res;++i,oY+=grain_height){ oX=0; for(unsigned ...
by xulaus
Fri Jul 17, 2009 1:30 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 518357

Re: The "IT DOESN'T WORK!" thread

My fractal generator has some funky stuff going on based on the image width and height. I have no idea whats causing it and it works fine somtimes. Some ideas of where I went wrong please? It's writing raw bitmaps to harddisk if thats any help. Heres an example of it going wrong, and there is anothe...
by xulaus
Thu Jul 16, 2009 8:07 pm UTC
Forum: General
Topic: Blistering blue barnacles
Replies: 28529
Views: 3100770

Re: Rant Thread

Derek Lord is a silly twat, and The Press and Journal newspaper is just encouraging him. In his review of Torchwood in the Saturday paper, he says such things as "...when they [parents] have to explain to their little darlings why Captain Jack is kissing the face off another bloke every chance...
by xulaus
Mon Jul 13, 2009 11:36 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9879
Views: 1795919

Re: Coding: Fleeting Thoughts

Thanks for the help. I think I'll go with GD as I've used the php version before.
by xulaus
Mon Jul 13, 2009 11:07 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9879
Views: 1795919

Re: Coding: Fleeting Thoughts

Quick question:
I am trying to make a fractal generator in C++ but haven't done any image manipulation with it in the past. Can someone link me to a hand-holdy library please? All the ones I found on google scared me off.

Go to advanced search