Search found 79 matches

by DavidH
Wed Aug 21, 2013 1:35 pm UTC
Forum: Coding
Topic: Reading from a local file in sandboxed JavaScript
Replies: 3
Views: 2302

Reading from a local file in sandboxed JavaScript

I'm currently attempting to write a web browser application that can convert saved games into different formats. These saved games can be rather large, so I'd rather not have to have the user upload the file to my server, and download the file back to their client using AJAX. Rather, I was hoping th...
by DavidH
Wed Jan 30, 2013 4:44 am UTC
Forum: Coding
Topic: Convert 3-byte pixels into an image
Replies: 6
Views: 5664

Re: Convert 3-byte pixels into an image

If you're using Java, you might as well just use the built-in image libraries. Assuming that width and height are int s containing the image's dimensions, and data is a byte[] containing the pixel data in red-green-blue, left-to-right, top-to-bottom order, the following code should work: BufferedIm...
by DavidH
Tue Jan 29, 2013 5:36 pm UTC
Forum: Coding
Topic: Convert 3-byte pixels into an image
Replies: 6
Views: 5664

Convert 3-byte pixels into an image

Hi all, Right now I'm translating a 16 bit pixel into 3 bytes of red, green, and blue. I'm then transmitting that over a COM port, and trying to recreate the image (I'm using Java for this, if that matters at all). I haven't looked into image file types in a very long time, but I recall there being ...
by DavidH
Sun Jan 27, 2013 3:00 pm UTC
Forum: Coding
Topic: Viewing the machine code associated with x86 assembly
Replies: 6
Views: 4275

Re: Viewing the machine code associated with x86 assembly

You may also find it helpful to tell us what you're ultimately trying to accomplish, because you seem confused. Your two examples were exactly what I was looking for, thanks. I might have been using the wrong terminology, but essentially I was trying to find the hex equivalent of a series of assemb...
by DavidH
Sat Jan 26, 2013 10:16 pm UTC
Forum: Coding
Topic: Viewing the machine code associated with x86 assembly
Replies: 6
Views: 4275

Re: Viewing the machine code associated with x86 assembly

As in.. assemble it, and then disassemble it? I tired that using objdump and got the mnemonics back again (damn thing trying to be helpful!).
by DavidH
Sat Jan 26, 2013 9:44 pm UTC
Forum: Coding
Topic: Viewing the machine code associated with x86 assembly
Replies: 6
Views: 4275

Viewing the machine code associated with x86 assembly

Hi all, I'm looking for a way to convert x86 assembly into the hex or binary equivalent. I've looked into the flags on the GNU assembler ("as"), but it only seems able to convert directly to object code. Right now I'm manually referencing the x86 documentation, but it's brutal combining th...
by DavidH
Tue Jan 08, 2013 12:12 am UTC
Forum: Coding
Topic: Using Wireshark filter to measure traffic sent to a site
Replies: 0
Views: 1487

Using Wireshark filter to measure traffic sent to a site

Hi all, I've used wireshark before, but this type of filter is beyond my understanding. Basically I'm curious about what portion of traffic on my home network goes to what site. What I'd like to be able to do is, for example, capture in promiscuous mode and output only packets that are going to and ...
by DavidH
Fri Dec 21, 2012 10:44 pm UTC
Forum: News & Articles
Topic: Wife gives up daughter for adoption behind husband's back
Replies: 37
Views: 9205

Re: Wife gives up daughter for adoption behind husband's bac

Only if you are married. For unmarried fathers, not all states require the father's signature or even notification. It is very easy to circumvent a father in Utah. There was one case where a text message saying that she was in Utah was notice of an impending adoption. That's astounding (and incredi...
by DavidH
Fri Dec 21, 2012 10:27 pm UTC
Forum: News & Articles
Topic: Wife gives up daughter for adoption behind husband's back
Replies: 37
Views: 9205

Re: Wife gives up daughter for adoption behind husband's bac

I don't understand. How is this not just kidnapping? Why don't you need both parent's signature since you're giving up both of their rights? Could a man adopt out a baby when the mother was away for a weekend? This entire situation is just incredible. I mean, shit. If you can't find someone you're t...
by DavidH
Wed Dec 12, 2012 11:18 pm UTC
Forum: News & Articles
Topic: Voltage Pictures Targets Canadian ISP for copyright troll
Replies: 1
Views: 1021

Re: Voltage Pictures Targets Canadian ISP for copyright trol

Teksavvy is my ISP too. I didn't get a notice, but the way I see it, if I ever do, I'm not going to be very profitable. The maximum fine is $5000 (and there's no way a Canadian court is going to give that out to someone besides the original uploader), and I'm perfectly capable of going to court and ...
by DavidH
Fri Nov 30, 2012 1:10 am UTC
Forum: Coding
Topic: Roller Coaster Tycoon in... Assembly?
Replies: 39
Views: 38191

Re: Roller Coaster Tycoon in... Assembly?

When writing code for PC's I never use the backward counting loop, unless the logic counts for it (say you are trying to reverse a string) since it is harder to read, and therefore more likely to have an error. The backward count loop, is efficient because of the removal of an instruction, so it no...
by DavidH
Fri Nov 09, 2012 1:50 pm UTC
Forum: General
Topic: Why/how does odd/even gas rationing help?
Replies: 21
Views: 4601

Re: Why/how does odd/even gas rationing help?

Most importantly having desperate people wait in line for gas and having the station run out tends to lead to violence and/or riots. Limiting the people per day helps make sure people who wait in line will actually get the gas. It's better to know you can't get gas that day than to wait in line and ...
by DavidH
Wed Oct 31, 2012 10:50 pm UTC
Forum: News & Articles
Topic: I wonder what Jesus's tax plan is?
Replies: 15
Views: 3220

Re: I wonder what Jesus's tax plan is?

Second, it would be amazing to see the scramble they'd have to do to not get the write ins disqualified for being a fictional character Not sure what you mean here. Even if you are an atheist, the evidence for Jesus being a real historical human being is strong and not limited to the Bible. It's no...
by DavidH
Wed Oct 31, 2012 10:40 pm UTC
Forum: News & Articles
Topic: I wonder what Jesus's tax plan is?
Replies: 15
Views: 3220

Re: I wonder what Jesus's tax plan is?

Second, it would be amazing to see the scramble they'd have to do to not get the write ins disqualified for being a fictional character Not sure what you mean here. Even if you are an atheist, the evidence for Jesus being a real historical human being is strong and not limited to the Bible. It's no...
by DavidH
Sat Aug 18, 2012 1:41 pm UTC
Forum: News & Articles
Topic: Teacher gets 5 years in jail for sex with 18yo students
Replies: 53
Views: 9130

Re: Teacher gets 5 years in jail for sex with 18yo students

You're trolling if you think teachers should be allowed to have sex with students. Think about a male student who was in his last year of school in a place like Ontario where final year grades dictate what University program you get in to. If a teacher who was grading you made advances on you and yo...
by DavidH
Wed May 30, 2012 3:56 pm UTC
Forum: The Help Desk
Topic: Where do you store your money?
Replies: 14
Views: 3689

Where do you store your money?

And I don't mean under the bed! Growing up and having an actual income has led me to a problem. I had always just stored my money in a savings account, but the returns are terrible. My account gives me only 0.3% interest (at the bank of Montreal). This is obviously far below inflation, but it has be...
by DavidH
Sat May 26, 2012 12:42 pm UTC
Forum: News & Articles
Topic: Woman falsely accuses man of rape, admits it 5 years later
Replies: 184
Views: 22729

Re: Woman falsely accuses man of rape, admits it 5 years lat

If he suffered abuse in prison you can't count that against the woman in question. That is the fault solely of the abusers. Yes of course he shouldn't have been jailed and that is where the perjury comes in. But she did not commit the abuse. If abuse is that common then there is something deeply wr...
by DavidH
Sat May 26, 2012 12:54 am UTC
Forum: News & Articles
Topic: Woman falsely accuses man of rape, admits it 5 years later
Replies: 184
Views: 22729

Re: Woman falsely accuses man of rape, admits it 5 years lat

These issues are never easy. She certainly did a brave thing in admitting the allegations to be false, but we need to be very careful. Rape is already under-reported and often goes unpunished. Encouraging that is hardly a good idea, nor is discouraging people from admitting they brought false accus...
by DavidH
Fri May 25, 2012 9:53 pm UTC
Forum: News & Articles
Topic: Woman falsely accuses man of rape, admits it 5 years later
Replies: 184
Views: 22729

Re: Woman falsely accuses man of rape, admits it 5 years lat

Having said all that. This case is strange. Was the guy convicted based on her statement alone? Because that almost never happens. Very few rape cases lead to convictions, and the ones that do generally have overwhelming evidence (unless she was rich and white and he poor and black. That's a possib...
by DavidH
Fri May 25, 2012 5:23 pm UTC
Forum: News & Articles
Topic: Woman falsely accuses man of rape, admits it 5 years later
Replies: 184
Views: 22729

Re: Woman falsely accuses man of rape, admits it 5 years lat

And she was a minor when she did it. Anyways, there's no sense in retribution. Punishing her isn't going to make his life any better, and it will only make the next false accuser less likely to set the record straight. That's a pretty disgusting outlook. Retribution (or whatever word you want to us...
by DavidH
Fri May 25, 2012 4:26 pm UTC
Forum: News & Articles
Topic: Woman falsely accuses man of rape, admits it 5 years later
Replies: 184
Views: 22729

Woman falsely accuses man of rape, admits it 5 years later

http://www.huffingtonpost.com/2012/05/24/brian-banks-ca-football-p_n_1543992.html During an initial meeting with him, she said she had lied; there had been no kidnap and no rape and she offered to help him clear his record, court records state. But she refused to repeat the story to prosecutors beca...
by DavidH
Wed May 02, 2012 2:40 am UTC
Forum: News & Articles
Topic: Canada will administer 'charter' city in Honduras
Replies: 38
Views: 6175

Re: Canada will administer 'charter' city in Honduras

poxic wrote:(Thus the caveat "if Canada's government continues rightward".)


Harper at his most extreme wouldn't be an aggressor in a war. You're confusing "right" with "insane".
by DavidH
Wed May 02, 2012 2:33 am UTC
Forum: News & Articles
Topic: Canada will administer 'charter' city in Honduras
Replies: 38
Views: 6175

Re: Canada will administer 'charter' city in Honduras

Are you people insane? When has Canada's military last been the aggressor in a war? I think you're confusing us with the united states.
by DavidH
Tue Apr 24, 2012 7:27 pm UTC
Forum: News & Articles
Topic: Planned Parenthood Concerned About Suspicious Visits
Replies: 81
Views: 13502

Re: Planned Parenthood Concerned About Suspicious Visits

So, presumably, you do have a problem with gender specific abortions if it doesn't balance out? (Note: I don't think there should be any laws against gender specific abortions, but I do find the idea repugnant) You find it repugnant? But you don't find it repugnant that people have an abortion if t...
by DavidH
Tue Apr 24, 2012 7:22 pm UTC
Forum: News & Articles
Topic: Planned Parenthood Concerned About Suspicious Visits
Replies: 81
Views: 13502

Re: Planned Parenthood Concerned About Suspicious Visits

Even if every abortion was on a female there's not much you can do. Terminating a pregnancy for gender reasons is no different than terminating a pregnancy for financial reasons, developmental reasons, etc. Edit: If you disagree you're suggesting that a line be drawn on what is acceptable and what i...
by DavidH
Fri Apr 20, 2012 12:44 pm UTC
Forum: News & Articles
Topic: Marine Corps opens combat school to women [Trigger warning]
Replies: 138
Views: 50216

Re: Marine Corps opens combat school in Quantico, Va. to wom

What happens if a woman is captured? Seems like she might have a harder time of it than her male counterpart :(
by DavidH
Wed Apr 18, 2012 11:27 pm UTC
Forum: News & Articles
Topic: Overpopulation Rhetoric is Alarmist and Counterproductive
Replies: 286
Views: 37193

Re: Overpopulation Rhetoric is Alarmist and Counterproductiv

Citation? I seriously doubt that will be the case and without some hard data I'm gonna call bullshit*. *And will offer an apology if there is anything to back up your assertion. http://www.npr.org/templates/transcript/transcript.php?storyId=135241362 The prices are too high, but the idea of flushin...
by DavidH
Tue Apr 17, 2012 4:00 pm UTC
Forum: News & Articles
Topic: Rape victim jailed... in California (Trigger!)
Replies: 76
Views: 11662

Re: Rape victim jailed... in California (Trigger!)

I do wish/hope that the accommodations would not be the same given to actual criminals. It still feels like adding salt to the wound. They did offer house arrest in a foster home, which is roughly identical to the living situation she'd have anyway, but that might just be because she's a minor. No ...
by DavidH
Tue Apr 17, 2012 3:30 am UTC
Forum: News & Articles
Topic: Rape victim jailed... in California (Trigger!)
Replies: 76
Views: 11662

Re: Rape victim jailed... in California (Trigger!)

Read my post. We already believe as a society that we should let 10 murderers go free rather than convict one innocent person; hell, I believe that is somewhere in your constitution (if it's not, forgive me, I haven't read the piece of trash ever). How the flying fuck is this any different? You're ...
by DavidH
Tue Apr 17, 2012 2:20 am UTC
Forum: News & Articles
Topic: Rape victim jailed... in California (Trigger!)
Replies: 76
Views: 11662

Re: Rape victim jailed... in California (Trigger!)

Contempt of court means that she is no longer innocent. The situation is terrible, we can all agree. But even though she was raped (and I strongly do not want to make light of that fact), she is not above the law. If I am beaten to within an inch of my life, my family is murdered, and they eat my do...
by DavidH
Mon Apr 16, 2012 10:27 pm UTC
Forum: News & Articles
Topic: Rape victim jailed... in California (Trigger!)
Replies: 76
Views: 11662

Re: Rape victim jailed... in California (Trigger!)

So, in this case it's not just statutory rape, but for starters, are you comfortable with what you just said as applied to a statutory rape case? If by "just statutory rape" you mean "consensual sex where one person is below the age of consent," then I doubt that anyone would be...
by DavidH
Mon Apr 16, 2012 9:48 pm UTC
Forum: News & Articles
Topic: Rape victim jailed... in California (Trigger!)
Replies: 76
Views: 11662

Re: Rape victim jailed... in California (Trigger!)

This is a pretty shitty situation, but.. I understand. Once a crime is reported to the crown (or whatever you call it in the US), the victim just becomes another witness, and is utterly unable to stop what happens next. It's like this for a reason. You don't want abusive husbands to make their wives...
by DavidH
Sat Apr 14, 2012 2:10 am UTC
Forum: News & Articles
Topic: The War on Women
Replies: 96
Views: 17208

Re: Ongoing attacks on modern medicine, and half of all peop

With regards to "women being coerced in to abortions by their doctors" I'm going to say [citation needed]. I don't think anybody in this thread is claiming that. I'm more concerned about coercion from family/SOs/employers. Yeah, that's actually exactly the reason for the posters. The reas...
by DavidH
Fri Mar 30, 2012 5:13 pm UTC
Forum: News & Articles
Topic: No more pennies, at least in Canada
Replies: 102
Views: 14465

Re: No more pennies, at least in Canada

What company would be willing to risk pissing off customers by rounding up every item? Seeing the cash register say a number, and seeing it increase when you say you're paying with cash would be a terrible, terrible public relations situation. I bet most companies would prefer to make it so that it ...
by DavidH
Fri Mar 30, 2012 4:10 pm UTC
Forum: News & Articles
Topic: No more pennies, at least in Canada
Replies: 102
Views: 14465

Re: No more pennies, at least in Canada

Really, I'd be surprised if they recouped their investment during the current century. On the other side, the Canadian government is taking this on to save 11 MILLION dollars per year in expenses at the mint. I'm concerned when a major currency decides to abolish nearly a decimal point of precision...
by DavidH
Wed Mar 28, 2012 7:02 pm UTC
Forum: News & Articles
Topic: Racist Twitter user jailed for 56 days
Replies: 62
Views: 8532

Re: Racist Twitter user jailed for 56 days

If it was just a fine, then hate speech legislation would have no teeth, and wouldn't be as enforced. In Canada, it's part of our charter, that the right to free speech has a hate clause. What's worse, using words to emotionally hurt someone or depriving someone of their liberty for 56 days? I hone...
by DavidH
Wed Mar 28, 2012 3:04 pm UTC
Forum: News & Articles
Topic: Racist Twitter user jailed for 56 days
Replies: 62
Views: 8532

Re: Racist Twitter user jailed for 56 days

It's definitely a strict sentence. We should point that judge to the comments on YouTube :D

However, a lot of countries (Read: Most besides the US) have some law against hate speech. I'm amazed you can get jail time for it though. I would've assumed just a fine..
by DavidH
Tue Mar 27, 2012 4:39 am UTC
Forum: News & Articles
Topic: Woman beaten to death (probably for wearing a hijab) in US.
Replies: 27
Views: 11270

Re: Woman beaten to death (probably for wearing a hijab) in

Colour me cynical, but this sounds like a great way for a family member to kill her and lead the investigation in a different direction. Plus, beating someone to death seems like it would require a little bit of anger. Sitting down to write a note before or after seems oddly.. calm. Of course we don...
by DavidH
Mon Mar 26, 2012 10:54 pm UTC
Forum: Coding
Topic: The Red Spider Project
Replies: 246
Views: 189628

Re: Idea for a fun joint effort: xkcd hacking project

Updated the name of the repo. Although this is going to be a "heterogenous" project, it still needs to be coherent. We definitely need a real plan and timetable moving forward, as Mat suggested. I kind of agree that some level of coherence is a good idea, but I think that should be possib...
by DavidH
Wed Jan 11, 2012 4:03 pm UTC
Forum: The Help Desk
Topic: Offsite data backup
Replies: 9
Views: 1950

Re: Offsite data backup

Ah, can you explain to me how you would do an onsite backup, then? I thought the ideal part of RAID is it protected against physical damage to a drive (In RAID10, RAID5, and RAID6). I was hoping there was a separate way to protect against data corruption through software, but I didn't know how. A fe...

Go to advanced search