Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Try reading a page of a thread after running this :P

$('.msgcontents *').contents().filter(function(){return this.nodeType===3&&this.textContent.length>3}).replaceWith(function(){return this.textContent.match(/[\a-zA-Z]+|([^a-zA-Z]+)/g).map(function(a){return a.length<=3?a:a[0]+a.slice(1,-1).split('').map(function(b,i,c){return c[i==c.length-1?(1==i?0:1):i==1?0:i==0?2:i+1]||c[1]}).join('')+a.slice(-1)}).join('')})

Original message details are unavailable.
Waht srttead out as a slmal pjrecot to fix bkreon txet in lkins has gwron itno flul bwlon tool taht adds neuroums fteureas and eanncemenths to the ReuScapne Fuomrs. Waht meaks RS-Lkiifny scpiael is the fcat it's lgaelry bluit on pylear fdebacek.

The pnoit of tihs tehard isn't to jsut to ionrfm ppeloe taht RS-Lkiifny esxtis. It's to tsos aurnod iades, dciusss the ndees of fuorm urses, and to be albe to paly aurnod and tset out the fteureas of RS-Lkiifny. The aim is all aubot irmovinpg the eexriencpe for fuomrs urses and hvae smoe fun at the smae tmie.

The fsirt tehard was garet fun, I lrenat hpeas and mdae new ferndis. I hpoe tihs tehard ctoinuens in the smae way :)


i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

23-Jan-2014 19:20:10 - Last edited on 23-Jan-2014 19:28:39 by Blasty

Amaethwr
Aug Member 2008

Amaethwr

Posts: 14,634 Opal Posts by user Forum Profile RuneMetrics Profile
Haha, nice one, Blasty :P

E: I just kept entering it a few times into the Console thingy in Chrome, and it almost fixes itself after a few times :o
http://puu.sh/6vusB.png
Selective Completionist

23-Jan-2014 19:45:22 - Last edited on 23-Jan-2014 19:50:44 by Amaethwr

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Amaethwr said :
E: I just kept entering it a few times into the Console thingy in Chrome, and it almost fixes itself after a few times :o


It's not random, it's got a specific shifting pattern that loops :P

2 mixable chars = 2 combinations
3 mixable chars = 3 combinations
4 mixable chars = 4 combinations, etc...

So it'll be all fixed if you do repeat the function the lowest multiple amount of times.

For that sentence, the lowest common multiple is 24 (lcm(2,3,4,8)) so it should be return to normal after 24 repetitions ;p

i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

23-Jan-2014 20:28:48

Blasty
Feb Member 2017

Blasty

Posts: 9,319 Rune Posts by user Forum Profile RuneMetrics Profile
Amaethwr said :
I had a fleineg it wlodun't be rdaonm :P I cloud kdina see a ptaertn in how the lteerts wree cnhginag, but ddin't gvie it mcuh tuhghot.

Smoe of the tnhgis you cook up are ptrtey fun. :)


hehe :P



https://hlf-polls.appspot.com/

I didn't do a full rewrite, but I did fix some of the problems I created when I started working on it. I was hoping some of the changes I made would noticeably reduce the file size but it didn't really do much :@

I've added some more features to the poll creation page, still lots of things to refine. (Press enter to create a new question)

Then there'll be the joy of form validation >.>

Hopefully followed by a fully functional user-created poll system, and then probably lots of people reporting bugs.

I hit a wall for being able to edit polls: they shouldn't be linked to the user ID because it's unique per ip, so switching ip or computers means you'd lose access to your polls. I'd need to set up a system that lets you log in, not to keen on putting polls on hold for that.

It's something I want to look into though. Do you have any tips about having a user database? The only video tutorial I watched on the topic said that it's best to let users log in through their google/facebook/twitter accounts instead. I definitely don't want to have to worry about personally spending time managing a password reset request system >.>

i

­­
­­<
Blasty
the Blue
>­­
­­
Blasty
// @BlastytheBlue // Blasty#5167
| Co-owner of Mine Nation

23-Jan-2014 21:06:21 - Last edited on 23-Jan-2014 21:07:27 by Blasty

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Here you go :)

­­­­Miss Lioness­­ http://www.indecentcode.com/rslinkify_images/10329.png­­10329­­­­

­­­­

@Blasty,

I do have a few tips since I've been through it.

Knowing the basics MySQL is a pretty good skill to have so it's worth venturing into it for that alone.

My tips for something like this are...

- Don't bother with emails for password recovery and validation, storing emails is a pain because you have content that makes you a viable target, particularly with sql injection attacks. My site has had many attacks aimed at my database, none have been successful but they really hammer your site and become a heavy load.

- Protect against bots that want to flood your database. I use captcha plus some redirects to shake off bots, so far that's been very successful.

Password creation...

- only allow lower case a-z and allow digits
- Disallow uppercase letters
- Disallow leading and trailing spaces
- Disallow consecutive spaces
- Disallow all symbols

Reasons for all lower case is because 99.9% of all my recovery requests are because of case issues. Always the password is correct aside from case. If I disallowed uppercase I'd be much happier and so would many of my users.

No symbols because they have meanings in sql. You instantly avoid the quoting issue that occurred here. Prevention is the best security measure, so don't provide the tools to break security. Sure there is real escape string, use that too but don't solely rely on it.

Spaces are just a pain.

Password storage...

Use one way encryption, you never need to decrypt, the idea is store the encrypted password. When a user submits their log in, their submission is encrypted, then matched in your DB.

That's about all I can think of off the top of my head.

Funny thing is most users are worried about seedy sites. But with my site for example I'm letting strangers write data to my hard drive. I'm the one at risk, every visitor must be treated as a potential threat.

23-Jan-2014 21:56:54

Quick find code: 261-262-33-65181208 Back to Top