Archive for May, 2007

trying to get the separate integer rgb values of a specific pixel in a BufferedImage object

I'm trying to get the separate integer rgb values of a specific pixel in a BufferedImage object. I'm using the following, which seems to get the red value OK, however the g & b are too big: rgb = colCorBImage.getRGB(r, c); red = rgb & 255; green = rgb & 65280; blue = rgb & 16711936;

You need to learn how bitwise operators work.

Actually, the red assignment is the blue sorry

Surely what I have shoudl work no? I guess I could get the green also by shifting the lot >> 8 bits, then & that with 65535?
it isn't sufficient just to mask out the bits you need.
because the bits are still in the same position they were in before
you still have to shift them to get them in the position you want

Oh of course onlineTrafficSchool++
I was trying to simplify the simplest solution :-s
were you speeding

like a sinner
A study in 1999 found that kids' favorite TV commercial was for:
thanks for pointing out the obvious Number-6 :-)
i'm good at that.

Comments

win2k3 permission error

the problem that trying to back up a folder in win2k3 is giving me permissions errors, and even though I know I can take ownership a
nd override the permissions, that'd destroy the entire existing permissions structure, which = major pain to redo

There's a tool iirc, to show permissions. I think it's in the SysInternals Suite.

what are you using to back it up?

Trying the simplistic approach of dragging and dropping to a network share. When that didn't work, I did an xcopy /c to the same net
work share (except now mounted to a drive letter)

I think you might be able to use NT Backup.

at least xcopy lets me continue past the files I don't have permissions to, unlike drag and drop. But it still doesn't copy those fi
les, obviously

are you doing it as an admin user?

If you are willing to use xcopy you may want to look at robocopy out of the Windows 2003 resource kit.

Member of Domain Admins and of Backup Operators

Although, be sure to override the default retries. It's set to 1 million retries by default.

that's pretty strange then, IMO

Well, apparently "backup operators" works because all objects grant permissions to that group by default
when those default permissions change, that's no longer the case
e.g. I have some users who are in the habit of setting permissions on their files and folders so that ONLY they can read them. And t
hose users are currently not being backed up as a result.
I'll look into robocopy

http://johnhgoodwin.com/resources/sysadmin/windows <== look at he SysInternals Suite.

well, tell then that if they want the files backed up, they need to include backup operators group

The first 2 apps look like they may be of use.
Also robocopy summarizes failures at the end of the report.

Comments

wiki

is there a good wiki out there for making a live cd?

I have this which is very brief using Paul's Boot CD but I cannot seem to make it work with ubuntu 6.10 http://www.geocities.com/potato.geo/pbcd.html#download ?

maybe this http://www.blender.org/ though there is already an ubuntu 6.10 live cd Making one from scratch?

yeah but I added beryl …yes scratch

Adding apps yourself, etc?
you might want to just edit the existing iso
here you make built cars,… in 3D
Hmm. Maybe modify the existing one? so owes me copyright royalties how would I modify the original iso? hrm, not sure how to open another network

how would I modify the original iso?
hrm, not sure how to open another network with xchat on the live cd..
it closes when i run /server XYZ
use CTRL+S
that causes it to "save transcript"
thanks again nagyv i posted it
it's crashing with a segfault, oh well

Comments