I just got an email from IT about the certificate on the internal server being expired (it just expired). They sent a link about how to get around it, but since the linkpointed to our internal server, I had to follow the standard steps in Firefox (I understand the risks, yes add an exception, yes really add it) to actually view the web page that tells me how to do exactly what I just did.
Posts made by durnurd
-
Certificate Error
-
RE: I bet you thought you'd never see another one of these
@DescentJS said:
@HAX said:
Maybe it's made for Devices with a touchscreen and no keyboard. Also no on-screen-keyboard and the browser doesn't have javascript too.
Such as?
My brand new PDA! I'll give you a hint: It's 70% nitrogen. There's some oxygen in there too.
-
RE: An alternate way of alternating row colors
If you're running a respectable site where clients knowingly go to get a service, then you generally can require javascript without too much complaint. Or would you prefer the internet to continue to look like 1995 vomited all over it?
But yeah, run-time client-side design is a little silly.
-
RE: An alternate way of alternating row colors
tr, tr + tr + tr, tr + tr + tr + tr + tr{ background-color:red; }
tr + tr, tr + tr + tr + tr, tr + tr + tr + tr + tr + tr {background-color:green; }Just limit your table to outputonly 6 rows at a time, and this will work fine. It can also be expanded if you need more rows.
-
RE: An alternate way of alternating row colors
@movzx said:
Why does everyone use the %2 method? This is what I use:
<?php
odd = false;
foreach($lines as $k=>$v) {
echo '<tr class="'.($odd ? 'odd' : '').'">data</tr>';
$odd = !$odd;
}
?>And if you want to stripe every three rows?
use of the <?= shorthand makes me puke
Under
what circumstance is this a good and bad device to use? I find <td
class="<?=$class?>"> easier than <?php print '<td
class="' . $class . '">'?> to read and type frankly. -
RE: An alternate way of alternating row colors
@fyjham said:
Tchize, assuming you mean you can do it with just HTML/CSS (and you're not gonna use javascript or something) I'd love to see your answer that works on a dynamically generated table of data...
For that matter, I'd love to see your answer for generating dynamic table data without using script. In this case, I assume script to include php, since the Tchize's post was referring to php when stating that it's unnecessary to use script to do what the OP accomplished with script.
...or something like that.
-
IPhone makers love lolcats
While trying (and failing) to debug an app I'm developing on an iPhone, when the debugger couldn't run, the error report stated it was due to a boolean named "I_can_has_debugger" being false for some reason or other.
-
RE: Constant one-time pad
Depending on the system, he may have had to roll either a d65536 or possibly d4294967296
-
RE: Constant one-time pad
In the same code, I found this comment, which isn't so much of a WTF,but I don't think he knew he got his saying backwards:
//There is an implict limit of 2^31 outgoing
//packets in this setup but we'll come to that bridge when we cross it. -
Constant one-time pad
/** * the one-time pad we use to encrpt against (dont ask) */ public static final String AUTH_CODE = "...";
I found this gem while porting some security code. Notice:
- It's referred to as a "One-Time" pad
- It's final
-
RE: QuickStart Basic Security Wizard for UMD V1.1.35
Wow, that's...funny, I guess. I just had to deal with this very script for the past four years (just graduated from this very college). Basically, if you live on-campus, and you're using ResNet (your computer is hooked up to their residential network), you have to "verify" your computer before they allow you Internet access beyond their verification page. However, if you have Linux, verification essentially amounts to clicking "I have Linux" for which they have no verification program, and then you're on your merry way. Even if you dual-boot back into Windows, your comp is already verified, so you're set.
And don't get me started on why you can't have wireless on ResNet. One connection per roommate, and it must be a PC or Mac. No consoles or anything. Unless, of course, you have set up NAT so they can't tell the difference, and hide your router so they can't find you.
-
RE: Representative line: Java conversion
I'm guessing the above is correct.
Here's another favorite:
public int getImageHeight()
{
return m_Layout.getWidth();
}public int getImageWidth()
{
return m_Layout.getHeight();
} -
RE: Representative line: Java conversion
I believe the longs were converted to ints when the code was converted into regular cell-phone code from something else.
Also, I've found another:
//object was active and is no inter active
-
Representative line: Java conversion
I work at a company where we take applications made for cell phones (MIDP) and convert them into applications for blackberries and windows mobile devices. I think the one I'm working on now has already gone through this process, as it's a lot of search & replace in some cases. Guess what I'm talking about:
Timer m_iconBlinkTimer = new Timer(); // how int to blink the unit icon
-
RE: From a Facebook app.
Didn't quite follow you there... but the quiz also has the insanity check built in of the same person not being equal to them self 100%
-
RE: ...and how many seconds?
If rounding is occurring, then there certainly should be no decimal after the 60. Significant figures and all that. Unless it was rounded up from 59.95 or more
-
RE: Some Error'd screenshots [kinda long post]
But why has nobody explained the semaphore yet?
A semaphore is a handle to a resources that allows multi-threaded access to that resource without causing deadlocks. This may be just as confusing as the original message, but let it be known that a semaphore is valid computing terminology, and not something that program just made up. Sounds like the problem was another program was accessing i:\ . If not, then that message is a bit of a WTF.
-
RE: We've senselessly bashed "Right Click Revenue" twice now...
@savar said:
@durnurd said:
So what's the best way to actually protect an image? There are ways to deliver streaming content to your computer that don't stay in memory, and use that annoying technology where the print-screen only captures a solid block image where that color defines where the media shows through. Maybe all of your protected images should just be streamed from the server!
You could hardcode the image data into the page...this would probably confuse 99.9% of people out there.
To reverse it, they have to have a program to read base64. Of course the downside is that images have to be downloaded every time you load the page, so no caching...
Edit: I should add that this has to be used in conjunction with a right-click blocking scheme...
It would also confuse most of the browsers out there as well, but who cares? You can still, in that case, just right-click and save it, as with any method discussed earlier.
If you have the "data:" url for the image (view->source), you can just paste it into the address bar (in Firefox at least) to view the image alone, then just save it however you wish. -
RE: We've senselessly bashed "Right Click Revenue" twice now...
@Zylon said:
@durnurd said:
So what's the best way to actually protect an image? There are ways to deliver streaming content to your computer that don't stay in memory, and use that annoying technology where the print-screen only captures a solid block image where that color defines where the media shows through.
Holy crap dude, you thought that was some sort of image-protection technology? I'm LOLing on the inside. (and all you have to do to "defeat" that is turn off video acceleration)
To answer your first question-- the only way to protect an image is to not put it on the internet. That's it.
Oops, I forgot the </sarcasm> which seems to be necessary in every post that contains it.
No, I didn't think it was some sort of image protection. I know all about what it is. I'm just saying that it's another step that "most" people don't know about. I was just trying to think of an overly-complicated method of trying to protect an image which I know wouldn't really work, because as everybody knows (and has stated) you can't protect an image as long as you can actually see it with your eyes, which is kind of the point of an image. It is only another step that "pirates" would have to get around to steal the image, and wouldn't discourage any of the people who really wanted to steal it. It's just funny (for me anyway) to think about somebody going to such lengths (Streaming a still image!?)
-
RE: We've senselessly bashed "Right Click Revenue" twice now...
So what's the best way to actually protect an image? There are ways to deliver streaming content to your computer that don't stay in memory, and use that annoying technology where the print-screen only captures a solid block image where that color defines where the media shows through. Maybe all of your protected images should just be streamed from the server!
-
RE: Spot the WTF's game
Boy has this gone off track.
To keep it going:
http://en.wikipedia.org/wiki/Apostrophe#Use_in_forming_certain_plurals
http://www.soyouwanna.com/site/syws/wrerrors/wrerrors3.html
http://www.wsu.edu/~brians/errors/acronyms.html
http://owl.english.purdue.edu/handouts/grammar/g_apost.html
I'm afraid there's evidence both ways on this one. You could argue either way. But I would personally agree with the one from Purdue, stating"Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms."
-
RE: Straight to the point boolean evaluation
@campkev said:
@CDarklock said:
"if(!Page.IsPostBack)"
Intern: That's sloppy. I'll correct it. (not seeing the ! at the beginning)
why in the hell would that be sloppy???
Because he's an intern. Don't argue, my logic is infallible!
One could possibly argue that he was taught to always use "==true" in statements like that to show that the first statement obviously returns a boolean, as does the second statement, and we are comparing for equality. This way, even interns can understand it. -
RE: A few interview questions
@MetalPig said:
@CodeWhisperer said:
3. "Imagine you have a string composed of just the chars '{([])}" (curly braces, parens, square brackets). Now, assume that you have normal 'mathematical rules', and that sets of parens,braces,brackets have to close in the right order. For instance "()", "()[]", "(({[]}))" are all valid, "(]", "([)]", "{{{{" are not. Write a function that will take an input string and return true if the string is valid, false otherwise"
I would remove bracket pairs '()', '[]' and '{}' from the string repeatedly until no more removals can be done. If I don't end up with an empty string the original string was invalid.
This does require looping through the string up to half the number of characters in the string. A stack-based approach would only need to go through once.
As for immutable strings... well, I don't imagine using a simple char * would allow for easy stack-based operation if you were planing on just mutating the string.
-
RE: A few interview questions
@too_many_usernames said:
@Devi said:
But your algorithm is identical to mine, you just take the rather odd (though not particularly bad) choice to use a string instead of a stack... Anyways, I bet mine runs faster than yours :p
Isn't his string just a different form of a stack? (There's probably some equivalence theorem for stacks I should know about, but I'm lazy and don't want to look it up).
Similar in many respects in most programming languages in the way it can be used, except strings are immutable, which means you have to create a completely new string every time you change it, which is sloooooow. But you could use it as a stack, I suppose. Just because you can play Russian Roulette with a pistol with six bullets in it doesn't mean you should.
-
RE: To switch or not to switch, that's the question....
@Zecc said:
@pinkduck said:
The array dereferencing syntax makes me suspect that those apostrophes shouldn't be there.
They have to. A switch statement can only take constants (disclaimer: I'm talking out of my ass).
A switch statement can take more than just constants in most languages I've worked with. The final break is necessary, in particular, in C# (my current language of personal choice for ad hoc development). The only thing I can't explain is why the programmer didn't fall through with all four cases into the bottom. Or, alternatively, why he didn't use an if statement. This is just a gross misuse of the switch statement.
-
RE: Amazon knows me well
Wow. I preordered 12 Hardcore Sex Films and it said I should buy V for Vendetta. It must be a strong correlation if it goes both ways.
-
RE: Rebellion Against Rebellion Against Advertising
@asuffield said:
@skippy said:
@mattwho said:
So do these sites get paid for impressions or clicks? If it's clicks then the person using adblock most likely wouldn't have clicked on the ad anyway.
That depends on who you ask. Like how the big movie/music companies felt that every illegal download was a lost sale.
That's a funny concept, though. Every time I buy a CD from artist A instead of artist B, that's also a lost sale. Why isn't it stealing? It's a lost sale for the owners of artist B, isn't it?
Shut up! Now they're going to make us buy one of every CD!
-
RE: Rebellion against advertising
That's a rather verbose way to say "flying dicks"
-
RE: Great Project Management
I tried it with the tags, but they disappeared, so imagine there's a "grammar_nazi" tag around the following line:
"grammar errors", not "grammer errors"
and an "XML_nazi" tag around the following line (I know, I still used a quote, but whaddya gonna do?)
", not "
Or possibly
CDATA["] not " -
RE: HTML to Excel
I wonder how the French justify the "C" in CSV.
If you are going to use "CSV", then you've got to use all three letters
-
RE: The World's Worst Security System
@PSWorx said:
@lgeekery said:
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="tshm" && password=="thebigpicture") { window.location="image_download.shtm"; done=1; }
if (username=="kevin" && password=="tshm") { window.location="image_download.shtm"; done=1; }
if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}Guess what? It's unencrypted and found in the source of the login page.
The hardest thing with this one is deciding where to start with describing the wrongness...
Maybe... why is one member's user name another member's password? What is the mystery behind page3.htm? Which members have acess to page2.htm and page1.htm? What horrible tale of forgotten passwords has the toLowerCase to tell? The questions... they're burning...
What happens, exactly, if you just... go to image_download.shtm?
-
RE: How to make sure it worked
Hey, now. Interns aren't all bad. Some of them are actually smart. This is rare, but just look at Asok.
-
RE: GoHastings has a very interesting username/password system.
Odd... Most sites these days don't actually mail you your forgotten password... you know... security and all. Instead, they mail you a temporary replacement password. But not here, apparently. Security indeed.