Oh come on give the guy a break! Who hasn't written a 3k line single file ORM and copied the contents around 10 or 20 times in their lifetime??!!??
Posts made by trwww
-
RE: Try-ing code
-
RE: Car Salesman
@Master Chief said:
Now employers check your credit, as if your credit score means dick as to how good you would be at a job.
It does. The same people that don't pay their bills and are irresponsible with credit are the same people that call off work twice a week and seem to have catastrophic job-affecting life events happen to them constantly.
Now, personally I think it should be illegal to use a credit score to make decisions on business transactions that do not involve providing the other party credit.
But acredit score is a good indicator of the types of life choices a person makes.
-
RE: They need to add a wooden table...
Whenever I see stuff like this, I wonder if its a case of the person forgetting to ask themselves if there is an easier way, or a case of them knowing there must be an easier way but this is the way they know so the way they know becomes the easier way.
-
RE: An error was unable to be described usefully
cygwin will solve all your problems. I believe tar and gzip and selected by default.
-
RE: Smoke less associative array, please
@Chewbacca said:
@trwww said:
Yeah you got me all the way around there... performace is an acceptable reason to roll your own, and it only takes 5 minutes to spot that bug, not 5 days.Well, the API that is provided is pretty limiting.... SQL::Abstract has been around for 5 years now:
DBIx::Class and SQLA quality is so impressive that I have to raise an eyebrow when something else is being used.
I'm quite familiar with SQL::Abstract, Ima::DBI, Class::DBI and most of the other even remotely relevant stuff.
They are all either massive performance killers or don't support the "removed for simplicity" stuff. :-)
They are also massively beside the point. He should still have spotted why it didn't work, and if not 9 days ago, then 8.
-
RE: Smoke less associative array, please
Well, the API that is provided is pretty limiting.... SQL::Abstract has been around for 5 years now:
http://search.cpan.org/~ribasushi/SQL-Abstract/lib/SQL/Abstract.pm
DBIx::Class and SQLA quality is so impressive that I have to raise an eyebrow when something else is being used.
-
RE: Exciting new feature -- run a program full screen!
@Rootbeer said:
OSX, so far at least, doesn't really have a "maximize" -- the equivalent is more or less "resize window to the ideal size," but the guidelines aren't detailed anough about what that means, so every app behaves differently, and often not even the same way twice.
Its a non-free app... but Divvy helps with this. Takes away the absurdity of having to manually put the top left corner of the app in the top left corner of the screen, and then drag the bottom right of the app to the bottom right of the screen anyways.
-
RE: Source control of the damned
@RHuckster said:
I'm a little confused as to why you can't always keep the codebase on your own internal SVN server and when you are ready to make a new build, just put it in Synergy as a tarred file (which one could say is a bastardization of tagging).
Yo dawg we hurd you like revision control so we put a source code manager in your source code manager so you can manage revisions while you manage revisions.
YES!!!!!!
-
RE: Pushes my button
@DOA said:
I agree with the OP. It ticks me off when people go out of their way NOT to use basic HTML that would accomplish the exact same thing.
I think some people don't know any better.
A while ago this company I worked at took on an intern, and he would build this custom javascript that would grab all the data from the form fields, build a query string, and then window.location.href in the script to "submit" the form.
Even funnier was that his form was otherwise properly set up. His jaw dropped when I removed all of his javascript and the onsubmit form handler and everything still worked properly. He just didnt know that the browser already knew how to submit the data.
-
RE: I hope your patch dosen't kill me...
@Weng said:
@trwww said:
probably would have been forced to abort the landing as they approached the surface.
This assumes the abort switch still worked (actually, they'd probably remapped another switch to be the abort switch instead... So assuming THAT was done properly)
The part you are replying to had nothing to do with the switch whatsoever. Because of the software patch to bypass the faulty switch, landing radar stopped working (there was a bug in the patch). The radar had to be power cycled before it would start working.
Shepard at first was going to try to land without surface radar. After they cycled the radar it started working (just in the nick of time) so it never came to that. But later data shows that landing without radar probably wouldn't have been possible and the lunar module would have had to abort the landing (a process that did not involve the faulty switch).
-
I hope your patch dosen't kill me...
The guys who flew the apollo program were crazy. Imagine if this happened to you:
After separating from the command module in lunar orbit, the LM Antares also had two serious problems. First, the LM computer began getting an ABORT signal from a faulty switch. NASA believed that the computer might be getting erroneous readings like this if a tiny ball of soldering material had shaken loose and was floating between the switch and the contact, closing the circuit. The immediate solution—tapping on the panel next to the switch—did work briefly, but the circuit soon closed again. If the problem recurred after the descent engine fired, the computer would think the signal was real and would initiate an auto-abort, causing the Ascent Stage to separate from the Descent Stage and climb back into orbit. NASA and the software teams at MIT scrambled to find a solution, and determined the fix would involve reprogramming the flight software to ignore the false signal. The software modifications were transmitted to the crew via voice communication, and Mitchell manually entered the changes (amounting to over 80 keystrokes on the LM computer pad) just in time.
A second problem occurred during the powered descent, when the LM radar altimeter failed to lock automatically onto the moon's surface, depriving the navigation computer of vital information on the vehicle altitude and groundspeed. This was later determined to be an unintended consequence of the software patch. After the astronauts cycled the landing radar breaker, the unit successfully acquired a signal near 50,000 feet (15,000 m), again just in the nick of time. Shepard then manually landed the LM closer to its intended target than any of the other six moon landing missions. Mitchell believes that Shepard would have continued with the landing attempt without the radar, using the LM inertial guidance system and visual cues. But a post-flight review of the descent data showed the inertial system alone would have been inadequate, and the astronauts probably would have been forced to abort the landing as they approached the surface.
-
Y2K all over again
just found a reddit that suggested to check out this nntp thread:
<font face="arial,sans-serif" size="-1">Computer bugs in the year 2000</font>
http://groups.google.com/group/net.bugs/browse_frm/thread/64696a1b035aab72/9d78b6a94111c70e?tvc=1#9d78b6a94111c70e
Pretty entertaining.
<font class="fixed_width" face="Courier, Monospaced">She pointed out that fixing it would require expanding the demand
deposit master record format, a mammoth undertaking. About a billion
COBOL programs would have to be recompiled.</font><font class="fixed_width" face="Courier, Monospaced">First, I modified the daily demand deposit program with code that
checked for the date and about mid-1979 started printed warnings on the
console of what would happen come new year. Then the systems analyst
and I got new jobs. This is known as stepwise interactive development.</font>hahahaha. heres another good one:
<font class="fixed_width" face="Courier, Monospaced">Forecasting programs are already encountering this sort of problem.
1975 was a bad year for 25-year forecasts... </font>hahaha... hahah... ha.. ehrm.
-
RE: Oh Korea, what will we do with you?
@tdb said:
TRWTF is that Microsoft just had to diverge from the established standards and have a different directory separator character.
Microsoft uses forward slashes just like everyone else does. Its just that you have to quote the path so the shell dosen't interpret the forward slashes as command switches. The following are quivalent:
C:\>dir /w/p "c:/windows/system32/drivers/etc"
C:\>dir /w/p c:\windows\system32\drivers\etckind of handy, actually.
-
RE: IT and Donuts
@Weng said:
It looks just like any other line of code written by a poor software engineer on the planet.
FTFY
parse an outlook express dbx database file and output the subject of each email:
use Mail::Box::Dbx;
my $dbx = Mail::Box::Dbx->new(folder => 'c:/path/to/database.dbx')
foreach my $mid ( $dbx->messageIds ) {
my $message = $dbx->find($mid);
print $message->subject, "\n";
} -
RE: Axes are hard.
Could you put a red arrow to the wtf? I'm not seeing it. Are you saying its the 4.7, 4.8 , 4.9, 5.0?
Thats exactly what I would want it to say. If the thing I'm looking at a graph for has a variance of less than 1 over the x axis, I would like the y axis to be in increments that are the right scale for the variance.
-
RE: "I need the codez, sir" guy posts a project in Guru.com
I think this is a little different than the "I will pay $200.00 for a myspace clone" type of posts.
Facebook has infrastructure where you can basically integrate your site in to facebook.
-
RE: The Stupidest Company On Earth
@trwww said:
@astonerbum said:
I have a need for sshfs in windows.
Check out http://www.webdrive.com/
60 bucks a pop but well worth it. I couldnt work without it.
I think netdrive is a skinned version of webdrive. It even uses the same installer icon.
-
RE: The Stupidest Company On Earth
@astonerbum said:
I have a need for sshfs in windows.
Check out http://www.webdrive.com/
60 bucks a pop but well worth it. I couldnt work without it.
-
RE: Cafeteria Drone WTF
@mrprogguy said:
@MasterPlanSoftware said:
@Welbog said:
That's the thing, though. Change-making is one of the simplest algorithms ever, provided you can subtract and compare numbers. And it's not like the subtraction is hard. It's nearly always subtract-by-one or subtract-by-five.
That is still really no reason to be mean to someone.
Of course it is. Especially since we, as an enlightened society, also allow these same people to drive cars and vote. Should they be allowed to get away with being idiots for free? No. The price should be, at minimum, public humilation. Maybe--just maybe--they'll catch on that they're idiots and do something about it.
Probably not, but I'm a hopeless idealist.
Still no reason to be mean to people. Growing up I thought I was better or stronger or smarter than every one else. Experience has shown me though that on average I'm all three of lesser, weaker, and less intelligent than any one person. Experience has also taught me that (usually very soon) after treating someone as less important than me, I need help or some type of assistance from them.
At the very least you have to be nice to the food lady because if you dont she'll spit in your food the first chance she gets.
trwww
-
RE: The Database Manager
@dtech said:
Your 2 (and thus 3) options make no sense.
Yep. I must be crazy :-)
@dtech said:
It's not like I have a PHPMyAdmin-alike web-interface, I have a web-interface which is gluid together with 7 different iframes and 300 KB of javascript.
So? If it has a web interface, it can be automated. You can automate it at the IE level with something like Win32::IE::Mechanize, Or use a web proxy to determine the required HTTP inputs to control the data. Heck, HTTP::Recorder will even store the procedures as you click around, so you can use the clickity-click method for the first, and use the HTTP::Recorder output to do the rest.
@dtech said:
I cannot modify the database shema, only the values in it. Trough the web interface.
Your task involves fixing relationships and sanitizing the data as opposed to data entry, hence my use of the word "schema".
@dtech said:
And your 1 option is almost exactly what I'm doing, see an adbove post of mine.
You're starting to head down the right path. I did only read the OP before posting.
I agree that not giving you direct access to the database is a WTF... but your reaction to this is TRWTF.
Bottom line, your task is MAX 30 hours for a competent and proficient engineer.
-
RE: The Database Manager
Of course its possible:
1. Write a perl script to pull down the db out of the UI and add it to a local one
2. Reformat the db schema as good as you can
3. Write a perl script to mirror the local db to the remote.
I wish I could use my scarcasm tag, but this stuff is not that hard. They even gave you a web UI.
-
RE: How to write a multi-page website
@Carnildo said:
Notice anything?
I notice TiddlyWiki. A perfectly representative way to use it. Not even close to a WTF. Please play again, better luck next time.
-
RE: Crackheads make great money
So this is Web 2.0, eh. In other news, lying alone is way more profitable than taking on the full responsibilities of a crook:
-
RE: Apparently India has not learned about Regular Expressions yet
Plz sirs email teh codes, I like them a lot. And how use.
-
RE: H1-B Admits To Being "Modern Day Slave"
You could probably at least get some content from http://www.programmersguild.org/. They are activists involved in immigration/job issues.