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.
durnurd
@durnurd
Best posts made by durnurd
-
IPhone makers love lolcats
Latest posts made by durnurd
-
Certificate Error
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.
-
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