« first day (446 days earlier)      last day (3342 days later) » 

1:00 AM
5 messages moved to Trash
@ObiWanWesabi There is a purple and a pink color, but you can choose your color for non-ladder games. Ladder games don't usually use pink or purple either...
 
m59
1:37 AM
I need to display a snippet of an article from a string that can contain html. Any advice on how to ditch the html and get a character limit?
 
parse it as html and read the text
I'm sure you can find code for it with a quick search
 
m59
Yeah, I guess :)
It's risky is all.
 
as in you don't know where the source is coming from?
 
m59
Well, I know, but that doesn't mean I trust it.
 
if you can't trust it to send good content then you can't trust it at all IMO
 
user652649
2:01 AM
@m59 htmlspecialchars() then split by paragraphs explode(".", $string) and take the first Nth paragraphs that fit your characters limit
 
user652649
be sure to replace three dots with the actual ellipsis character :P
 
m59
not using php bro :)
 
user652649
same thing with any language
 
user652649
:D
 
m59
String(str).replace(/<[^>]+>/gm, ' ');
 
user652649
2:03 AM
there is no DOM in node.js?
 
m59
kinda, but this is client side
 
user652649
client side js?
 
m59
haha, yes?
 
user652649
var x = document.createElement("div");
x.innerHTML = yourstring;
alert(x.textContent);
 
m59
not as safe ^
 
2:05 AM
@ObiWanWesabi exactly what I suggested :P
 
m59
I'm happy with my solution ;D
 
user652649
as safe compared to what?
 
m59
my solution :)
 
user652649
lol :P
 
you solution breaks as soon as a < is used in the text, no?
 
user652649
2:07 AM
if your string contains js, it doesn't get executed unless you add it to the document
 
user652649
but you aren't doing it
 
@ObiWanWesabi I found this Friday when trying to run my js
 
user652649
:D
 
m59
It can at least download images, I think @ObiWanWesabi
 
@m59 jsfiddle.net/6axG8 <-- your method breaks easily
 
user652649
 
user652649
no @m59 images won't start downloading unless you append the node to the document
 
m59
oh
I'm going to sleep.
 
lol
in other words
he doesn't give a crap xD
 
m59
nah, I just have narcolepsy =D
Dangit, why are you guy so smart.
 
we're not
 
m59
2:13 AM
I'm generally the smartest guy I meet, except for programmers.
around which I am generally the dumbest.
 
all programmers are dumb
 
m59
and lazy!
 
if we were smart we'd be in a different field that requires less work
 
m59
^
@ObiWanWesabi how can I know if I'm bad at my job?
 
@m59 you lose it
 
user652649
2:15 AM
haha
 
m59
Well, I'd have to either fire myself or my boss arbitrarily decide so.
 
exactly, so you're good at it
 
m59
I've seriously started spending 15 minutes of my personal time every day researching if I'm a bad programmer.
 
user652649
time to go to bed guys
 
@m59 I'm interested to see how
@ObiWanWesabi G'night!
 
m59
2:17 AM
Night! @ObiWanWesabi
 
user652649
i'd love to talk but i have too much beer in my blood
 
user652649
xD
 
hahaha
 
m59
@ZachSaucier google
 
user652649
gn
 
2:17 AM
@m59 so descriptive
 
m59
My study is inconclusive.
It took me 20 hours to write a sql statement
 
m59
typeof me === 'fail'
 
not at all
everyone has problems that stump them
even if it seems obvious afterwards
 
m59
seems like it happens a lot.
 
2:19 AM
so?
xD
so long as it doesn't next time you're better off
 
m59
++me.confidence
 
stop writing in code please, I see enough already, haha
 
m59
Oh come on, you know you go around seeing the world like The Matrix.
I do, at least.
 
that doesn't mean I want to
 
m59
haha
 
2:21 AM
it's nice to treat people as humans
 
m59
Should have taken the blue pill or whatever.
 
never!
 
m59
Hey now, I like people a whole lot =D
@ZachSaucier dern, the spacing: jsfiddle.net/kCMg7/1
sometimes the simplest things are quite pesky
 
?
I don't understand
 
m59
There's no spacing between elements, of course
 
2:31 AM
it's in the console...
 
m59
No, where they were removed.
Sentences run together.
 
if there is no break or space, yes
what'd you expect? XD
 
m59
that :)
I just wan't thinking about it at the time. My fail solution left a space in between.
 
you can add one
but it'd be better to render it as HTML as we suggested, not as text
 
m59
Oh, I never noticed.
don't see it ;D But yeah, I guess I can give it a try.
 
2:34 AM
that way paragraphs don't run together as well
 
m59
Right, I kind of want the consistent look
But, I guess smart people will realize that and trolls will take advantage (but that might work out....long story there)
 
@m59 is it a user uploaded thing or something?
 
m59
think like bloggers, kind of
submitted articles with a wysiwyg
 
not sure what you're worried about. No scripts can run
 
m59
I display snippets on the homepage, which I want to look really good
it's the featured content
 
2:38 AM
so pick content that works with the layout...?
 
m59
I don't pick, users vote
 
even still, I don't understand what the issue is
 
m59
Think how SO homepage is
 
it should have a consistent look
 
m59
but with two section - highly voted | latest submissions
 
2:39 AM
I understand what you're saying, how it messes up just doesn't make sense to me
 
m59
Each with a snippet
trolls could use the wysiwyg to make the snippet look absurb
hmm....but I could just change the css :)
 
1. why would someone upvote a troll's post? 2. What content are you picturing that could mess it up?
 
m59
Like all in bold, rainbow colored text
 
you have CSS for that...
 
m59
yeah, I just realized that.
 
2:41 AM
xD
 
m59
well, it's not my first thought to practically reset all of the tags lol
 
should start out giving an example
@m59 and why the heck not?
it's your main page, you don't want user styles floating around
 
m59
dunno, lack of experience I guess.
 
lack of thinking it through IMO
maybe you're just tired ;)
 
m59
I told you I'm not as smart as you ;D
 
2:42 AM
I wholeheartedly disagree
though I don't know you well
 
m59
Oh believe me, I've been thinking about it a LOT.
 
speed of thought != only measure mental ability
 
m59
Not really speed either. I was stuck on tags and it's pretty hard to see outside of some boxes.
 
user652649
course changed: i got moar beer
 
:no comment:
 
user652649
2:46 AM
the reason is:
 
user652649
 
user652649
in fact i just had a codephany
2
 
user652649
you see i also invented a new term
 
user652649
xD
 
m59
codiphany, I think?
nevermind, that's fish.
 
user652649
2:48 AM
code + epiphany = codephany
 
@ObiWanWesabi enlighten us
 
user652649
eh, basically i'm stuck on the same thing in a month
 
user652649
had an idea to get a step forward
 
user652649
hopefully
 
hopefully indeed
 
m59
2:52 AM
lol, did Second Rikudo have a problem with some starred messages? @ObiWanWesabi
The PHP Room actually cares about stars. Here and JS room it's all about the humor (sometimes other things).
 
we star web related things occassionally
there's a web design proposal (9 stars) and a CSS selectors article (1 star) for me
2/10 not bad
 
m59
;D
 
I'd argue that we're one of the more helpful rooms (in my experience) though
 
m59
Yep.
 
user652649
@m59 we should actually star less crap
 
user652649
2:58 AM
especially things i say guys, don't do it xD
 
m59
Why's that?
 
@ObiWanWesabi disagree
 
m59
I come here and JS room sometimes and just read through the stars I've missed.
 
user652649
@ZachSaucier me too, but i'm the baddy
 
m59
By the way, stop posting nude selfies @ObiWanWesabi
 
2:59 AM
@ObiWanWesabi you're just drunk and self-pitying :P
we should get you in StarCraft and see how you do, haha
 
user652649
@m59 did i? i should be more drunk than i thought
 
m59
lol
 
@ObiWanWesabi you didn't
 
user652649
@ZachSaucier install AOE3. NOW.
 
nty, I waste enough of my time already
 
user652649
3:02 AM
the only answer i'm accepting is "yessir sir i'm installing aoe3 sir"
 
user652649
brb codephany
 
m59
@ObiWanWesabi I'd so play it with you if I could afford it.
 
@m59 :smirks to self:
 
m59
what's up?
haha that's a stretch :)
PUNNED.
 
Missed the "it"
 
3:10 AM
I know tis isnt the webmasters page but anyone familiar with mod_rewrite?
this*
 
@DasBeasto define familiar
 
m59
I am a little.
 
Aka fetch as google is ruining my life and idk why, so if someone could tell me what Im doing wrong while webmaster chat is dead I would be forever greatful haha
 
"ruining my life" - that's not good
but I can't help most likely
 
Im just trying to remove the .html from my pages URL but then Fetch as Google (googlebot in general) 404's when I do :(
 
m59
3:13 AM
Post your rewrite
 
ruining was a bit of a stretch haha
The rewrite will probably stay formatted better in my post than in chat:
http://webmasters.stackexchange.com/questions/67241/mod-rewrite-google-can-no-longer-fetch
 
Its strange because my site finds everything fine but googlebot crashes it.
 
@DasBeasto you should probably ask a question in your "Question"
 
@ZachSaucier valid point, I didnt realize I never actually say what the problem is verbatum
verbatum(sp?) idk
 
3:17 AM
verbatim
chat has spell check BTW
 
how do you trigger the spell check?
 
type a word with a space after it -> if misspelled it will be red -> can right click it like any spell check
 
Hmm so it does, unless "verbatum" is the first word in the sentence...strange
Oh I see I have to type more after
 
m59
Does anyone know the best approach for a tic-tac-toe border on a list?
 
3:22 AM
Is that a chat specific thing or the browser doing it though?
 
@m59 do explain yourself
@DasBeasto browser for all text fields
well, all text fields its allowed on
 
gotcha thought so, good guy google
 
not just google that does it
 
Yah figured just meant thats who Im using
and yah @m59 not sure what you mean
 
stackoverflow.com/questions/24846575/… (I don't think anyone ever votes to close when I post at night like this)
 
m59
3:28 AM
item | item | item
------------------
item | item | item
------------------
item | item | item
 
@m59 Use border-left (on all non-first of row cell elements) for the vertical lines and border bottom on the row
 
m59
figures. gosh css is nuts.
 
yes, but not entirely in the way I'm thinking you think it is
@m59 or use a table (depending on what's in it)
 
m59
not really tabular
it's those snippets =D
 
then yes, the first way is suggested
 
m59
3:54 AM
 
4:26 AM
moronings~
 
user652649
hola
 
@ObiWanWesabi come stai signor?
 
user652649
ahah :D
 
user652649
4:45 AM
 
user652649
at least in chrome
 
user652649
damn browsers
 
@ObiWanWesabi it works for me o.O
 
user652649
it seems that works but it doesn't, compare with firefox
 
user652649
firefox shows the correct ones
 
user652649
4:48 AM
(ish)
 
ah yes, it's slightly different
@ObiWanWesabi nadeausoftware.com/articles/2010/12/… if you need their hex, but they look so outdated, u sure u want to use them?
 
user652649
the cool thing is that they are changed dynamically accordingly to your OS's theme
 
user652649
setting the colors manually won't help
 
user652649
:(
 
user652649
4:58 AM
anyway i can live with this xD
 
user652649
was just saying
 
user652649
check also -webkit-appearance or -moz-appearance on mdn
 
user652649
!!mdn moz appearance
 
aren't those used to design windows app btw? like in vb.net
 
user652649
yes, kinda
 
user652649
4:59 AM
web app in my case :D
 
user652649
i'm creating a test theme for a webapp gui framework i made youtube.com/watch?v=Q92xuoBGF78
 
@ObiWanWesabi looks kool! what does the webapp do?
 
user652649
it's a dashboard of a website
 
user652649
anyway thanks, it was just a first attempt
 
the browser support?
 
user652649
5:05 AM
im improving it now
 
user652649
chrome only
 
user652649
but hopefully in future it will work on any browser
 
user652649
since it's a private area of the site i don't need to support all browsers :D
 
yea, if only the staff use it then IE is not all needed xD
 
user652649
the staff shouldn't even try to use firefox xD
 
5:08 AM
FF doesn't support flex?
 
user652649
it does, but it sucks
 
user652649
and i got bored of reporting bugs that they never fix
 
wth xD the dog cant bear the stinky man
 
user652649
ahahah
 
user652649
asians
 
5:10 AM
japanese
 
user652649
true
 
user652649
my dog totally looked like the shiba, but bigger
 
user652649
it was a "blonde" husky dog
 
wow:3 u had one or still have?
 
user652649
had one
 
5:13 AM
sorry to hear that
do u own any now?
 
user652649
it's ok, passed away lot of time ago :P
 
user652649
nope, this time i'd first buy an house with a garden xD
 
user652649
it's not good for a dog to live in an apartment :)
 
user652649
but then i'd love to have one
 
user652649
of course another husky xD
 
5:16 AM
huskies need a lot of space
and boy, they shed hair u can build a coat in while u comb them xD
 
user652649
lol
 
user652649
 
so furry :3
 
user652649
it looks albino but it wasnt, it's the actual breed that is like that
 
how friendly was he with strangers?
 
user652649
5:21 AM
always very friendly, it always depends on the environment. there is no aggressive breed
 
user652649
it's people that makes them aggressive
 
user652649
:(
 
true that
 
user652649
not just people that abuses them. but also people that treat animals like humans
 
user652649
can cause them lot of issues
 
user652649
5:24 AM
i couldn't never stand people that puts them clothes, or talks to them like they were babies
 
user652649
it's so wrong
 
user652649
:|
 
yea, clothes make them very uncomfortable, silly people do that xD
 
user652649
time to go to bed
 
user652649
like this
 
user652649
5:29 AM
 
user652649
gn :D
 
@ObiWanWesabi g'nite!
 
 
3 hours later…
8:30 AM
@ZachSaucier sorry bro, the game got downloaded this morning, and that too just playable mode
 
9:08 AM
@Mr.Alien hola!
 
@ICanHasKittenz o/
atlast desktop notifications are working for me
 
umm.. you mean on your app or generally?
 
nah general SO notifications
 
oh I don't get it xD
what did you do?
 
@ICanHasKittenz we can get desktop notifications from stackoverflow in chrome, never worked before and now they are working because I restored an old version of my laptop
 
9:11 AM
now that I think of it, I guess they stopped happening after I updated chrome
 
yea
this version is old version
this is 33
 
9:48 AM
SO UNFAIR! x( public sector get 5 days off for Eid (which makes it 9 days including the weekends) and we get only 2 days off ._. the heck...
 
10:05 AM
posted on July 20, 2014

New Cyanide and Happiness Comic.

 
10:34 AM
@TylerH ping me when you online
 
 
1 hour later…
11:41 AM
What should I say to him?
Thank you for your comment :) What part am I doing wrong ? jsfiddle.net/79FHN/1Hatul 1 min ago
 
@Mr.Alien "You should be using transitions, not animations"
 
@SecondRikudo meh, already explained that he is using wrong thing to get his job done..
 
@Mr.Alien I believe he doesn't understand the diference and doesn't seem to want to...
 
@SecondRikudo nah, he needs a reverse animation as well
@web-tiki some users have an habit, they never read what we write, they instantly click on demos - copy paste the codes - am the king types
 
11:52 AM
@Mr.Alien Oh? That's even easier
 
already provided him the solution
 
I intentionally went out of my way to not have a reverse animation because the original didn't havei t
yup
Although, are you sure that the webkit vendor prefix is needed?
I'm running chrome without the prefix and it works nicely.
 
To be honest, it doesn't look like it spins the same way. it kinda spins from the bottom of the image and not from the center, or am I wrong? :X — Hatul 1 min ago
now he didn't read this part
> If you feel the animation nudges your icon or you deliberately want to nudge on hover, you can use transform-origin property.
 
@Mr alien it is, I guess the image isnt centered
 
@web-tiki center as in?
his stuff - jsfiddle.net/79FHN/7 (tweaked the timer, thats it), and here's my stuff jsfiddle.net/79FHN/2
I don't see any difference whatsoever
or am dumb
:p
 
11:58 AM
@Mr.Alien His is linear
And his doesn't have a reverse animation
 

« first day (446 days earlier)      last day (3342 days later) »