[...]Seems like a waist to me, buying a laptop [...]
Posts made by Lord_abletran
-
RE: Desktopfication of Laptops
-
RE: Optimize code with StringBuilders
Well, ideally, you'd write the whole thing in asm, and just leave the value in a register if you could.
-
RE: Fixed dialog sizes
@blakeyrat said:
<snipped a surprisingly reasonable blakeyrant>
A friend of mine used to know one of the guys who worked on the NT kernel while they were developing Win7. He was a smart guy, but it worried me, because he had never even been in a meeting with a filesystem guy, or a UI guy, or anything. From what I gleaned, they have all the separate parts of the OS written in almost complete isolation. While (maybe) not bad in principle, since it should help to avoid overly-tight coupling, it still makes the whole system lack a unity of design. -
RE: Linux is great! All hail Linux!
@boomzilla said:
@thistooshallpass said:
Sadly it was necessary to reboot the machine at least once a week because the software was lousy, and booting was super slow, so each time it took +30 minutes to do a full reset.
It took me longer than normal to understand what you meant by that, since the standard way to write it is "at least 30 minutes."
-
RE: Optimize code with StringBuilders
Personally, I just use some inline assembler to increment.
for(int i = 0; i < something;
__asm (
mov eax, i
inc eax
); ) -
RE: Linux is great! All hail Linux!
@Weng said:
i1586, not i586.
Sorry, I never learned how to read.
@Weng said:There actually is a (really stupid) reason Linux devs did this. The P4 and up are still technically i686 (with sprinkles) in the engineering documentation, but Intel set the family on the P4's to 0xF instead of 0x6 (which everyone else copied) - and the Linuxfailures read the family to determine what number to put in that spot. They won't fix it, because "it's what the CPU is reporting itself as. Not our bug."
Maybe I need to learn how to read, but I'm assuming that you're implying that AMD copied that? And that the devs, for no reason, used... printf("i%d86",vnumber); or something? -
RE: Linux is great! All hail Linux!
@Weng said:
Well, it does kind of make sense. In that not actually making any sense way.@Lord abletran said:
So,.. outdated OS has problems with outdated hardware?
This OS/system pair has been running happily unmolested for YEARS. The apparent cause is that I had the nerve to shut the shit down while I did some electrical work on their circuit. And naturally, a soft-reboot fixed the fucking problem, so it might have just been cosmic rays or some shit.But uh, i1586?
Edit: To clarify: It makes some sense that it might detect it as an i586 instead of an i686; for one thing, an AMD64 architecture wouldn't support the PAE of an i686, what with it already being 64-bit, however, it would still have the capabilities of at least an i586, so that makes a reasonable guess, I guess.
Either that or your Opteron has the fdiv bug, and Debian detected that on startup somehow. -
RE: Linux is great! All hail Linux!
So,.. outdated OS has problems with outdated hardware?
-
RE: Fixed dialog sizes
@pbean said:
[...] most windows and dialogue boxes in GTK and QT/KDE are resizeable, regardless of their size or function. I really like that, they should've put that in Windows 7 too.
...You can get GTK, QT, and KDE for windows. -
RE: Fixed dialog sizes
The only thing I can think of, is that this dialog was designed to work in the pre-install environment, where the display may well be running in Very Low-Resolution™ mode.
-
RE: Optimize code with StringBuilders
The real WTF here is code that generates so many exceptions that you have to worry about the efficiency of the loop that processes them.
-
RE: Let me complain about my workplace.
@hoodaticus said:
... had a sex sling in his living room.
So... were you in his living room? Seeing his sex sling? -
RE: Let me complain about my workplace.
@Cyrus said:
@TsukikoRain said:
17. 'Efficient' co-worker has been reported for sexual harassment twice by two different women. He still has his job. He claims that repeatedly asking women up to his apartment and sniffing hair and suggesting he 'steal them away' was a joke/misunderstanding. Boss believes him. Recently, he was put in charge of both women when boss went on vacation. Fortunately, no disasters yet.
At my last job my balding, near 300 lb manager got comfortable enough around me that one day he started tell me about one of his favorite hobbies...S&M. I think I instantly developed an eye twitch from the effort I put into suppressing the mental images.
...So was he a dom or a sub? -
RE: Let me complain about my workplace.
You say you'll pay him, then after he's helped you steal the RAM, you blackmail him for even more money. Bonus points if you can get the efficient guy to do it.
-
RE: Let me complain about my workplace.
@TsukikoRain said:
@dhromed said:
@dohpaz42 said:
'nother factor that can affect the amount of available RAM is whether or not the RAM is being shared with the video card
Yep. :\
Welcome to why I could probably take one stick of RAM out of every PC on this floor and double my annual salary.
-
RE: Trouble Ahead
@Scarlet Manuka said:
@pjt33 said:
@boomzilla said:
NUMBER(1) is not a one-bit integer; it is a one-digit (decimal) integer. So it's got plenty of capacity for Dev, QA and Prod, with room for future expansion if they get a separate Test environment. Also, if you add two integers (of any size) together, you should get their sum. If you attempt to store this in a field that's too small for the result value, you should get an error. TRWTF would be if, as you suggest, 1+1 could be stored as 0 and not raise an error.@The_Assimilator said:
Booleans aren't the same as one-bit integers. What should you get if you add two booleans together? Either an error or the logical OR is defensible, whereas adding two one-bit integers is a logical XOR. (Keeps thing simple for the ORM writers, too, but that's not a massively high priority).I'm presuming they're using an RDBMS that doesn't support boolean datatypes, which is quite frankly something that would make me run for the hills.
Why would you need an explicit boolean data type? Still assuming this is Oracle, the standard way to do it is a number(1) field. Maybe your statement is just a proxy for detection of Oracle.
A number1 of architectures use modular arithmetic for unsigned integers. For 16-bit arithmetic, x86-style, this would mean that 65,535 plus one is, guess what? Zero2. Would it raise an error? Depends on the program and architecture.
1I'm not going to look this up.
2With the flag set, of course. -
RE: If I did not have to use this application form...
@Jaime said:
@Weng said:
My guess is that the file extension of aspx caused Visual Studio to act as the default file handler, but then it choked on it. He used vim to see the first few bytes, and since it started with "%PDF", it was obvious that this was a PDF file.@Rhywden said:
Visual Studio was not happy about a PDF file masquerading as an aspx (to my defense: it was late and I wasn't thinking). Opening the file with vim determined, however
What the fuck?
BTW, this is exactly why I do this type of thing as an HTTPHandler instead of using an aspx page that screws with the content type.
I think the wtf is a computer with both Visual Sudio and vim installed alongside each other. -
RE: Tales From the Intervie... Or not
@Weng said:
2) Had a phone screen where the hardest question was "what is web.config for" - and was apparently the first person to answer it correctly (I'll bet those of you who aren't .net developers can at least take a good stab at it)
web.config is how spiderman controls those things on his wrist, right? -
RE: Missed the point...
@toth said:
What's the problem? They're using sprocs.
Oh wait, I see the problem, they're using global variables too.
-
RE: Mozilla have lost their mind - The 4 part trilogy continues
@steenbergh said:
@Lord abletran said:
Fun fact: Opera users are, on average, more intelligent than users of other browsers.
So are you smart if you use Opera, or do you NEED to be smart in order to operate it?
Or maybe Opera renders the IQ test differently, or fills it out for the user
-
RE: Mozilla have lost their mind - The 4 part trilogy continues
@derula said:
@boomzilla said:
@blakeyrat said:
@Lord abletran said:
Fun fact: Opera users are, on average, more intelligent than users of other browsers.
source: http://www.aptiquant.com/IQ-Browser-AptiQuant-2011.pdf
Fuck I knew that piece of shit "study" would show up here sooner or later. How does something so obviously flawed, and even more obviously AN ADVERTISEMENT go viral? I hate people.Did you know that Opera users on average have 1.21" shorter penises than Firefox users?
That may be, but Chrome users are the biggest dicks.
-
RE: Mozilla have lost their mind - The 4 part trilogy continues
@blakeyrat said:
@ender said:
@ShatteredArm said:
Opera has this. You can tile horizontally, vertically, or cascade tabs within a window.
Opera had this before it had tabs, since it's been a full MDI application since the beginning.Opera also single-handedly won the Cold War and saved a baby puppy from being run over by a bus full of nuns, I read that somewhere too
Fun fact: Opera users are, on average, more intelligent than users of other browsers.
source: http://www.aptiquant.com/IQ-Browser-AptiQuant-2011.pdf -
RE: You get what you pay for
@MiffTheFox said:
Avast is VIRUS DATABASE HAS BEEN UPDATED! a nice AV, but CAUTION! A VIRUS HAS BEEN DETECTED! it has some quirks.
I actually used Avast! as an alarm clock for a while, it worked well.
-
RE: EA is for awesome!
@Weng said:
I had to get a real hobby instead, and it's WAY more expensive than just sitting on my butt grinding for gear.
Cocaine is a helluva drug. -
RE: Meters, Yard, Same Thing . . .
@da Doctah said:
@Lord abletran said:
@blakeyrat said:
Edit: the real problem is that there's no way to tell the different between 100 (1 significant digit) and 100 (3 significant digits) in our writing system. You just have to kind of eyeball it and think to yourself, "eh, I guess he probably wasn't getting out a tape measure while bombs were going off..."
1.00x102
Which would get cut-and-pasted into the final article as "1.00x102".
Which would then be converted to 111.548556 yards
-
RE: Meters, Yard, Same Thing . . .
@blakeyrat said:
Edit: the real problem is that there's no way to tell the different between 100 (1 significant digit) and 100 (3 significant digits) in our writing system. You just have to kind of eyeball it and think to yourself, "eh, I guess he probably wasn't getting out a tape measure while bombs were going off..."
1.00x102
-
RE: Yet Another Representative Code
@C-Octothorpe said:
@hoodaticus said:
@C-Octothorpe said:
What do you mean? I put as much of the business logic in the service layer as possible, and only hydrate ViewModels in the controllers. You can also argue that even some rendering logic is business logic; lets say some property like Total, if it gets below zero, it turns red and bold. Isn't that also a type of business logic? If this is true, then you can never really seperate your views from your business logic (although MV[C|P], MVVM patterns will get you as close as possible).have all the business logic behing the service layer and the controllers are pretty empty only passing stuff to and from the client proxy and view.
Nice. Controllers don't usually get that complicated in business apps in my experience. But God save the maintainer if you forgo it entirely. -
RE: The sysadmin from noob
@astonerbum said:
My co-worker comes up to me in furious anger.
"I just got an email from our system admin. He is asking what this 'Tomcat' process is and to give him a reason why it keeps using CPU all the time. And can he eliminate it."
Background: Tomcat runs the web application which is the sole responsibility of that admin, other than creating backups, which he is no longer entrusted with.
I see no problem with this; if you don't run tomcat, you can use a fraction of the hardware, and you'll never need backups.
It's just an optimization from a maintenance and cost perspective. -
RE: Netflix WTF
All things considered, you had already paid for the rest of the month's DVD delivery service, no? Canceling the (future) subscription doesn't let them out of a prior contractual arrangement with you to provide the movies.
Not saying it isn't annoying or unintuitive, just saying that they kind of have to do it that way. -
RE: Backup strategies
@Xyro said:
ls -lt
gives you the dates and sorts them from most youngest to oldest. Of course, instead of$$
, the author could have just used common sense, but that would make it too easy.FTFY
-
RE: Backup strategies
@blakeyrat said:
@PJH said:
a randomly named directory that
To ask a possibly stupid question, how did the person who implemented this "system" intend to restore (say) yesterday's backup if they weren't named by date?
Keeping a day-old mirror on the same partition isn't that big a deal to me, frankly, because it can solve a lot of easy backup problems without having to go to your "real" backup system. Stupid stuff like, "oh shit I hit delete too fast, and it's a network drive so there's no recycle bin".
something like
ls -l | grep "insert date here" -
RE: Backup strategies
@PJH said:
Got to work to be greeted by an email saying our Trac[1] website was reporting disk full. I start digging. The main problem at the moment can probably be summarised by:
[root@trac ~]# crontab -l [...] 01 00 * * * trac-admin /srv/trac/site/ hotcopy /trac/backups/$$
.That's horrible.
Why not just make a symlink to it instead, it'd be a lot faster...
-
RE: It took them long enough to get my student loans through.
@AisA said:
The default PIN, it says, is FLmmddyy (first name initial, last name initial, date of birth). How is it related to the ID number?
As it turns out, I was thinking of the default password for the other parts of their site, which is first, last, last six digits of student number.
-
RE: It took them long enough to get my student loans through.
There are a number of security wtfs in the system dealing with default pins; they're based entirely off of the (sequential, not random) ID number. It's a very minor thing, but it's funny to me that it shows up as "year 1112"