Search found 755 matches

by Emu*
Tue Nov 16, 2010 3:57 pm UTC
Forum: Coding
Topic: Renaming a bunch of .javas
Replies: 11
Views: 1785

Re: Renaming a bunch of .javas

if you have numbers in your classnames, you're doing it wrong.
by Emu*
Tue Nov 16, 2010 8:13 am UTC
Forum: Coding
Topic: High School Java Class
Replies: 16
Views: 3791

Re: High School Java Class

It's switching with

Code: Select all

switch(s.substr(n,m)){
case "string":
}

Which has me excited, unless I've misread the infos...
by Emu*
Mon Nov 15, 2010 1:23 pm UTC
Forum: Hardware
Topic: Android Smartphone
Replies: 24
Views: 3978

Re: Android Smartphone

I have a Samsung Galaxy S. It's very nice and shiny but the lack of OTA OS updates is a pain in the arse. Get a second hand Nexus One or a HTC Desire. That way you can run whatever version of Android you like on it without messing about too much. TCO of iPhone vs Android handsets is higher when you ...
by Emu*
Mon Nov 15, 2010 11:38 am UTC
Forum: Coding
Topic: High School Java Class
Replies: 16
Views: 3791

Re: High School Java Class

Also there's one thing I noticed in your original post that needs correcting a bit: char CHAR = word.charAt(letter); You should never make a variable all capital letters unless it's a designated constant (which you may not have learned yet). Generally, in a case like this, you would do something li...
by Emu*
Tue Nov 09, 2010 2:37 pm UTC
Forum: Religious Wars
Topic: HP vs TI
Replies: 38
Views: 19122

Re: HP vs TI

There's an app for this?
by Emu*
Tue Nov 09, 2010 8:23 am UTC
Forum: Coding
Topic: Direction in Coding
Replies: 11
Views: 1997

Re: Direction in Coding

Threarah wrote:dual-booting OS's (I'm running Ubuntu as a virtual OS)


Dual-booting and virtualisation are two completely different things.
by Emu*
Mon Nov 08, 2010 9:23 am UTC
Forum: Computer Science
Topic: Hacking the CIA?
Replies: 55
Views: 35925

Re: Hacking the CIA?

That's what they want you to think.

There's probably at least one user who historically needed escalated privileges but now no longer needs them, and has installed the glorious security holes that are Flash and Acrobat Reader.
by Emu*
Mon Nov 08, 2010 9:00 am UTC
Forum: Hardware
Topic: Old spare dvd drive
Replies: 6
Views: 1331

Re: Old spare dvd drive

Rip it apart and build a robot using the motors. Tray motor for steering, spindle motor for drive.
by Emu*
Fri Nov 05, 2010 3:52 pm UTC
Forum: Computer Science
Topic: Why were certain types of encryption illegal until recently?
Replies: 29
Views: 13807

Re: Why were certain types of encryption illegal until recen

The Official Secrets Act in the UK kinda screwed up most versions of early stored program computer history.
by Emu*
Fri Oct 29, 2010 3:27 pm UTC
Forum: Coding
Topic: C# Memory Increase Issue
Replies: 11
Views: 3488

Re: C# Memory Increase Issue

You could store the last hour's ping in a variable so you only open, write to and close the file one an hour. I'm guessing most of the struff is being held in memory at the moment.
by Emu*
Fri Oct 29, 2010 3:25 pm UTC
Forum: Coding
Topic: Sorting and some parallellism
Replies: 42
Views: 3364

Re: Sorting and some parallellism

To what extent can these algorithms take advantage of something like Hyperthreading, or the funky pipelining stuff in POWER-6? If you can preprocess some of the data so it boils down to a plain numerical comparison it must be pretty quick.
by Emu*
Fri Oct 29, 2010 3:02 pm UTC
Forum: Coding
Topic: Help with optimizing code (VBA)
Replies: 10
Views: 1711

Re: Help with optimizing code (VBA)

Part of my retionale was about the LINQ-to-XML feature which should make the import process a lot simpler.

I also hate spreadsheets used as apps. When all you know is Excel, everything looks spreadsheetable.
by Emu*
Wed Oct 27, 2010 2:42 pm UTC
Forum: Coding
Topic: Help with optimizing code (VBA)
Replies: 10
Views: 1711

Re: Help with optimizing code (VBA)

Get these:
.NET Framework 3.5
VisualStudio 2010 Express (free)
Microsoft Chart Controls

Then using LINQ-to-XML and those chart controls should be moderately painless...
by Emu*
Wed Oct 27, 2010 10:40 am UTC
Forum: Coding
Topic: Help with optimizing code (VBA)
Replies: 10
Views: 1711

Re: Help with optimizing code (VBA)

Ahem...

What does it do??? Might be time for a complete change of method, rather than optimising the current one.
by Emu*
Wed Oct 27, 2010 10:39 am UTC
Forum: Coding
Topic: Mysql, random and efficiency
Replies: 5
Views: 1406

Re: Mysql, random and efficiency

A plain select with a random number in the Limits it probably best for selecting one random record...
by Emu*
Wed Oct 27, 2010 10:24 am UTC
Forum: Religious Wars
Topic: Mac vs PC...Limerick form!
Replies: 52
Views: 16094

Re: Mac vs PC...Limerick form!

Cyrusm wrote:There once was a man named felix
he was looking to fill his PC fix.
he liked the look of a mac
but he wanted to HACK
Screw windows, he downloaded linux.


Many syllable fails, rhyme fail on line 5. :?
by Emu*
Mon Oct 25, 2010 12:15 am UTC
Forum: Coding
Topic: alright, some basics please. (PHP and classes)
Replies: 31
Views: 3362

Re: alright, some basics please. (PHP and classes)

BotoBoto wrote:I'll look into that thank you emu* ;)


Start here:
http://drupal.org/coding-standards
by Emu*
Thu Oct 21, 2010 11:08 pm UTC
Forum: Coding
Topic: alright, some basics please. (PHP and classes)
Replies: 31
Views: 3362

Re: alright, some basics please. (PHP and classes)

phpBB is not a good example of php development. It has mutated over its many iterations.

Drupal is better as a development example.
by Emu*
Thu Oct 21, 2010 9:44 am UTC
Forum: Religious Wars
Topic: EEE PC vs. Acer Aspire One
Replies: 12
Views: 4258

Re: EEE PC vs. Acer Aspire One

Woah, necrobump...

My eee's battery now holds a maximum of about 1% of its original capacity, and the up key doesn't work. My new Samsung Galaxy S is more powerful than it.
by Emu*
Wed Oct 20, 2010 3:05 pm UTC
Forum: Coding
Topic: need some guidance for connecting to database from phone
Replies: 2
Views: 787

Re: need some guidance for connecting to database from phone

Put a SOAP service on a server so only operations you plan to expose are permitted. For an extra layer of stuff, let that service connect to the db using an account which only allows stored procedures to be used. Watch out for bobby tables. edit: must read the whole post... What I mean by a service ...
by Emu*
Mon Oct 11, 2010 11:11 pm UTC
Forum: Coding
Topic: universal function for pawns.
Replies: 52
Views: 5716

Re: universal function for pawns.

Java would probably be a better language to learn OO concepts in, then apply them to C++ later...
by Emu*
Mon Oct 11, 2010 8:25 pm UTC
Forum: Coding
Topic: universal function for pawns.
Replies: 52
Views: 5716

Re: universal function for pawns.

headprogrammingczar wrote:This isn't entirely on the topic, but your code doesn't handle En Passant.


Lol. I used that rule once, and got a rather pointy queen thrown at me.
by Emu*
Sat Oct 09, 2010 6:37 am UTC
Forum: Coding
Topic: CS project.
Replies: 5
Views: 984

Re: CS project.

There are board layouts available so people can hand-solder their own arduinos, probably cost you half as much.
by Emu*
Mon Oct 04, 2010 10:26 am UTC
Forum: Computer Science
Topic: Programming / IT / CS Certifications.
Replies: 9
Views: 4345

Re: Programming / IT / CS Certifications.

Which country are you in? If you're in the UK, there are schemes which offer paid 10 week placements in degree-relevant roles. I did one during the summer before my final year and as well as providing some needed finance it definitely helped me get a job later and gave me some useful ASP.Net experie...
by Emu*
Fri Aug 27, 2010 9:03 pm UTC
Forum: Coding
Topic: Hopefully simple HTML question
Replies: 11
Views: 2259

Re: Hopefully simple HTML question

You seem interested in how stuff works. Use Drupal not WP.
by Emu*
Fri Aug 13, 2010 3:47 pm UTC
Forum: Hardware
Topic: how easy is it to damage a lithium battery?
Replies: 13
Views: 4372

Re: how easy is it to damage a lithium battery?

Actually, the heat theory explains what I posted above, my eeePC did tend to run quite hot, CPU@50deg-c
by Emu*
Tue Aug 10, 2010 8:31 am UTC
Forum: Coding
Topic: coworker rants
Replies: 92
Views: 14616

Re: coworker rants

Lack of comments or useful object names. That's an F for you. Must try harder.
by Emu*
Mon Aug 09, 2010 2:22 pm UTC
Forum: Hardware
Topic: Samsung Galaxy S or iPhone 4?
Replies: 24
Views: 5056

Re: Samsung Galaxy S or iPhone 4?

I've had an SGS for a week: THERE IS NO NOTIFICATION LED! Otherwise, very nice. I can watch BBC TV live, stream old shows or download them. Each format plays quite smoothly. The notification bar doesn't impose itself over full-screen apps, which is a bit annoying. My first night out with it a bar pe...
by Emu*
Fri Aug 06, 2010 8:14 am UTC
Forum: Hardware
Topic: how easy is it to damage a lithium battery?
Replies: 13
Views: 4372

Re: how easy is it to damage a lithium battery?

Leaving a laptop plugged in for prolonged periods will reduce the battery capacity, better to remove the battery if you know you're going to be static for a while. This is a fine example of how battery myths get started: someone makes a statement about a battery without mentioning any of the releva...
by Emu*
Thu Aug 05, 2010 8:10 am UTC
Forum: Coding
Topic: Help with C# macro workaround
Replies: 12
Views: 2814

Re: Help with C# macro workaround

Draw us a picture.
by Emu*
Wed Aug 04, 2010 3:59 pm UTC
Forum: Hardware
Topic: New graphic setup (IPS monitor and card)
Replies: 13
Views: 2472

Re: New graphic setup (IPS monitor and card)

VGA: take a digital image, convert it to analogue, send it along a low-quality minimally shielded cable and see how fuzzy it looks on a digital TFT display. DVI: digital graphics system, digital transmission, digital display. Why wouldn't anyone choose DVI for a TFT display? The only reason I can se...
by Emu*
Wed Aug 04, 2010 3:55 pm UTC
Forum: Hardware
Topic: how easy is it to damage a lithium battery?
Replies: 13
Views: 4372

Re: how easy is it to damage a lithium battery?

Leaving a laptop plugged in for prolonged periods will reduce the battery capacity, better to remove the battery if you know you're going to be static for a while.
by Emu*
Tue Aug 03, 2010 11:44 am UTC
Forum: Coding
Topic: [Unnecessarily-] Compact coding tricks
Replies: 112
Views: 17584

Re: [Unnecessarily-] Compact coding tricks

++$_ wrote:Besides, shell script exists so that you don't have to write in perl, ever.


Fix'd.

My Conky setup uses shell scripts with sed et al for weather and twitter mention listings.
by Emu*
Tue Aug 03, 2010 8:35 am UTC
Forum: Hardware
Topic: Building first rig
Replies: 19
Views: 4897

Re: Building first rig

It's almost always more cost-effective to go for single-slot solutions.
by Emu*
Thu Jul 29, 2010 10:42 am UTC
Forum: Coding
Topic: The eternal XML argument: attribute vs. element
Replies: 13
Views: 2881

Re: The eternal XML argument: attribute vs. element

The decision whether to have something as an attribute or element can come down to whether it's expressible using a simple datatype or not.
by Emu*
Thu Jul 29, 2010 10:39 am UTC
Forum: Hardware
Topic: Building first rig
Replies: 19
Views: 4897

Re: Building first rig

I go months without even using a CD. Optical drive death occurs more through bearings drying out than worn out lasers or motors... The R2's power button, audio and USB ports are on the top too, which is great for putting the case under the desk for an additional noise barrier. If I wasn't on the eas...
by Emu*
Wed Jul 28, 2010 2:10 pm UTC
Forum: Hardware
Topic: Building first rig
Replies: 19
Views: 4897

Re: Building first rig

what CPU cooler are you using? heatsink/fan very nice :) http://www.thermaltakeusa.com/Product.aspx?C=1417&ID=1960#Tab1 Nah, read this then decide. http://www.silentpcreview.com/Recommended_Heatsinks There's also a sale of review and test items going on: http://www.silentpcreview.com/forums/vie...
by Emu*
Wed Jul 28, 2010 10:23 am UTC
Forum: Coding
Topic: [Unnecessarily-] Compact coding tricks
Replies: 112
Views: 17584

Re: [Unnecessarily-] Compact coding tricks

In grails, the Elvis operator ?: is very useful and occasionally needs explaining too...

Code: Select all

var?:default


is equivalent to

Code: Select all

(var != null)? null : default


Saves a lot of typing!
by Emu*
Wed Jul 28, 2010 10:18 am UTC
Forum: Coding
Topic: Phone screening for programmers
Replies: 18
Views: 2627

Re: Phone screening for programmers

If they use the same IDE now as you do, ask them what their favourite/most hated feature/quirk of the IDE is, and keep dragging info out of them. If they mention something really obvious they obviously haven't done that much programming in it.

Go to advanced search