Better HN
topnewbestaskshowjobs
Log inSign up

spz

6 karma · joined Dec 28, 2010 (15y ago) · 2 submissions

Submissions

comment 8y ago · link · parent

SQL with 1=1 makes sense to me.

Let's assume you start with "SELECT * FROM ITEMS" like query. Now you're adding the WHERE clause. Do you keep track if you have the WHERE already present? Do you then keep track of if you need the "AND" or if it's the first entry that cannot take the "AND"?

With 1=1 you're guaranteed to have the WHERE clause and you're guaranteed to be able to use AND in your statement.

Do you have a better way?

comment 14y ago · link · parent

TLDR: The combination is using the first of each sound type

Method:

1. grabbed the .swf file (Chrome Developer Tools -> Network -> one of the 6 .swf files)

2. used the incredible tools to extract and disassemble from https://github.com/CyberShadow/RABCDAsm

3. with luck came across \incredibox-0\incredibox_fla\MainTimeline.class.asasm lines 24827-24840

Took me longer to write this post than to figure it out, but, I am guessing I got lucky. I only decided to attempt checking this out as I started playing around with the RABCDAsm couple hours ago. I've little to no idea how to read those .asasm files yet, but I'm learning more about them.

Edit: extra spacing