« first day (1173 days earlier)      last day (3782 days later) » 

8:00 PM
@MadaraUchiha Seconding ImageMagick for your use case.
 
user895378
Do people really say "I accuse" in English? I've only ever really heard the French version, "j'accuse!"
 
@rdlowrey Meh
Is it worth setting the PECL extension up? Because I don't seem to have it
 
I've never worked with the extension, only with shelling out to the binary.
 
it's worth writing code that can use the pecl extension and fallback on the command line interface I'd say ... if you can avoid creating another process then generally a good idea ...
 
@JoeWatkins I'm designing a very small scale demonstration, not the whole app ;P
It's probably not even going to be OOP, or very efficient, but I don't mind.
 
8:24 PM
I wonder why people don't use heredocs more when working with HTML.
It seems much nicer than opening/closing the PHP parser a bunch of times.
 
user1607528
Please help, I am trying to ask confirm message when clicked delete link, if cancelled redirect it index.php
 
user1607528
 
user895378
Money needed, I am trying to take over the world.
 
user895378
Anybody?
 
@rdlowrey Sure; if you'll loan it to me first.
 
user895378
8:26 PM
@Muhammet See how that sounds?
 
user895378
better :)
 
user1607528
@rdlowrey can you help
 
Morning
 
@LeviMorrison: because they have an option to do it that way ;) I am also fan of open/close method. I think I have never used heredocs
 
user1607528
Please help, I am trying to ask confirm message when clicked delete link, if cancelled redirect it index.php
jsfiddle.net/U7b9F
 
8:39 PM
@Muhammet: that isn't PHP question.
 
@Glavić but it's redirecting to a .php file which makes it PHP related, well according to him =oP
morning all
 
@crypticツ: ahaam ;) @Muhammet: sorry, i thought it wasn't PHP related ;)
 
user1607528
@Glavić common, i assumed you have js knowledge
 
anyone here good at Regex ?
 
user1607528
It is not of a big deal
 
user1607528
8:43 PM
Also most of people who sit in this room know js, thats why
 
Need a small help with regex
 
@vongolashu yoooooooooooooooooo !
 
I have this string of url
 
@Muhammet: when I open your link, I get: SyntaxError: missing ) after argument list
 
#DEL http://rapidgator.net/remove/index/id/b568c3aab2f0ab2d8dd9076deb27ecf2b5/up_id/a215e15e47e1421087c71073772b5744
http://rapidgator.net/file/b568c3b2f0ab2d8dd9076deb27ecf2b5/[AOT]Neon_Genesis_Evangelion_01[720P][DVD][NACHI].mp4-MUX.mkv.html

From this I wish to remove the 1st URL part using Regex
http://rapidgator.net/remove/index/id/b568c3aab2f0ab2d8dd9076deb27ecf2b5/up_id/a215e15e47e1421087c71073772b5744
aka both urls are one after another with a linebreak, I just need the 2nd url and wish to remove 1st URL using Regex (the 1st url can be diff then that example)
but will follow same url pattern
 
user1607528
@Glavić here jsfiddle.net/U7b9F/1
 
@HamZa any idea ?
 
@vongolashu Is it always from rapidgator ?
 
@Muhammet: still. Don't you have Firebug or smth to see javascript errors?
 
8:50 PM
yeah and it will always follow that pattern
so even a Regex that searches anything starting with http till another http should do the job
 
@vongolashu Is the "#DEL" part there ?
 
yep
 
user1607528
@Glavić yes i do have fbug
 
@Muhammet: so you see javascript errors? Fix that syntax error that I pasted.
 
@vongolashu So basically if you remove a line with #DEL does the job ?
 
user1607528
8:52 PM
ok let me see
 
someone suggested me #DEL(.)+ and it worked xD
 
@vongolashu well, in fact #del.* should do the job, you could even remove the newline using #del.*\r?\n
 
not working
 
@vongolashu "not working" doesn't help me
 
@Muhammet: your had one } too many; try this: jsfiddle.net/U7b9F/2
 
8:54 PM
@HamZa my bad, I meant it doesnt selects anything
 
user1607528
@Glavić thanks man it works like charm
 
ah wait nvm its #DEL.*
 
#DEL.* and #DEL.+ works
wierd
same code is not working in RegExr
 
@vongolashu regexr is JS based ...
 
8:56 PM
It did the job in notepad ++ though, had to replace from a paragraph and your string worked perfect
thanks man
btw are you the same Hamza as on WJ ?
 
@vongolashu WJ o_O ?
 
wjunction, nvm
 
you need to know the difference
#DEL matches "#DEL"
. matches anything except a newline
* repeat zero or more times
+ repeat one or more times
? repeat zero or one team
\r and \n well you know :P
 
@vongolashu, @HamZa: why don't people use vertical whitespace \v escape sequence, instead of \r?\n
 
@Glavić heh, or just \R ?
 
8:59 PM
@Glavić if I wasnt a Regex noob,I would be glad to answer that xD
 
> \R matches any Unicode newline sequence; can be modified using verbs
 
@HamZa: new info, tnx ;) I always used \v for vertical spaces.
 
@Glavić I'll test right now what does \R match: does it match only "\r" in "\r\n" or do we need to use \R+ ...
 
@vongolashu: what are you trying to to here? Only delete lines which start with #DEL ?
 
It seems that \R matches \r\n directly, which is nice
 
9:04 PM
@HamZa: so does \v ?
 
@Glavić It only removes \r
if you match once ofc ...
So you would need \v+
Sometimes, I think there should be a quantifier for 1 or 2 times :P
 
@HamZa: great to know. \R is better use in his example, since he only wants to remove lines which start with #DEL and one newline after that, if there is one, like #DEL.*\R?
 
@Glavić yeah, afaik \R is supported in perl/pcre
 
You posted this an hour ago and it was closed back then too. stackoverflow.com/questions/20873031/… . It was a duplicate question then and it is a duplicate question now. — Benjamin Gruenbaum 53 secs ago
-_-
 
@HamZa: \R is only mentioned in comments ;( php.net/manual/en/regexp.reference.escape.php#108096
Does this happen to any1? ;)
 
9:20 PM
\R is not PCRE only, afaik...
@Glavić Installing windows is outdated, hacking facebook is more popular. :D
 
@Leri: ;)
 
@Glavić Well, sometimes consulting the perl manual would be better perldoc.perl.org/perlre.html. We need to mention that perl regex != PCRE
\K        [6]  Keep the stuff left of the \K, don't include it in $&
\N        [7]  Any character but \n.  Not affected by /s modifier
\v        [3]  Vertical whitespace
\V        [3]  Not vertical whitespace
\h        [3]  Horizontal whitespace
\H        [3]  Not horizontal whitespace
\R        [4]  Linebreak
Damn, I didn't know ...
> \R is equivalent to (?>\x0D\x0A|\v) . (The reason it doesn't backtrack is that the sequence is considered inseparable.
 
I'm wondering how @jocelyn is doing ...
 
9:44 PM
Trying to write this carousel in a modular fashion
But at least its progressing.
 
well ... I am currently looking at unit tests that I wrote about ~2 month ago and wondering whether I was drunk the whole time
it's a little bit ... how to put it ... completely fucking retarded
 
Isn't that the best way to look at code from 2 months ago?
 
10:09 PM
I was just reading the the HTML 4.01 spec on headings and it displays some pretty basic HTML that is much better than what I see people actually do.
<DIV class="section" id="forest-elephants" >
  <H1>Forest elephants</H1>
  <P>In this section, we discuss the lesser known forest elephants.
  ...this section continues...
  <DIV class="subsection" id="forest-habitat" >
    <H2>Habitat</H2>
    <P>Forest elephants do not live in trees but among them.
    ...this subsection continues...
  </DIV>
</DIV>
 
Nowadays just replace the divs with section tags...
 
Yes, but my point was that you wrap your sections in sections.
 
10:31 PM
phpUnit's documentation for mocks sucks
 
@LeviMorrison Problem is that (as far as I understand) the section based heading outline conflicts with the non-sectioned. Hopefully I'm wrong, but I believe each <section> needs to start with it's own <h1>.
 
gods below
 
I recall a quote from Berners-Lee where he basically said that he wanted just an <h> tag, with <section>. Back in yonder early days.
 
phpunit's source code is horrible
 
Then someone fucked it up with <h1> through <h6>.
 
10:37 PM
@DanLugg that was in the XHTML2 .. which got buried
instead of actually fixing the web, vendors just wanted slap more shiny features on the existing crap
 
@tereško No, I think the quote predated XHTML; it was from awhile ago.
I could be wrong; either way, the death of XHTML2 angers me with the force of a million suns colliding.
 
I was trying to say, that that was what XHTML2 spec tried to create
 
Yea, XHTML2 would have fixed many things.
 
@DanLugg couldn't agree more .. and the worldwide hymns to glory of HTML5 just added insult to injury
maybe people will try again in 2020th-ish
 
I completely agree. It makes me want to slap a hipster designer in the face with a trout.
> Closing tags and quoted attributes aren't ironic enough.
 
10:46 PM
are there any serious alternatives for PHPUnit?
 
Not that I'm aware of.
 
I try not to look inside phpunit itself ;-)
morning btw
 
@HamZa What \R is equivalent to depends on your BSR setting
 
@NikiC :O reading on wiki now ...
I see, what would you do ?
Write \r?\n
or \R
or \v+
or (?>\x0D\x0A|\v)
??
 
Or something else ?
 
Depends on context ^^
If I want to match all unicode newlines I use \R
otherwise I go with the explicit \r?\n
 
@NikiC Nice blog post ...
 
anyway, guys .. don't forget to spend few votes in backlog
/me is going to sleep now
 
good night :P
 
It's not about programming, it's about linux tools... — Adrian B 2 mins ago
hehehe
 
Can any1 explain to me what is this backlog you are using? http://cv-pls.com/backlog
How does it work?
 
@crypticツ lolwut {2,254}
@Glavić github.com/cv-pls/site/blob/cv-pls.com/cv-pls_chat_docs.md "Links marked with tags will be indexed in the cv-pls chat backlog."
 
someone edited it also to {?}
 
wow ...
 
11:26 PM
Would someone be willing to give me some pseudo code of a modular javascript slider/carousel? Just so I can get an idea of formatting?
 
@HamZa: so if I don't put here, it will not be shown on this list > cv-pls.com/backlog
 
@Glavić exactly
 
And why are you doing this? Why do you need this list?
 
@Glavić correct, kinda, if you choose the chat source on top right it will show cv-pls links that were posted in chat. /backlog defaults to the API source not chat source so it will show most recent questions that need action done to them in somewhat real-time. Those are independent of what is posted in chat.
@Glavić github.com/cv-pls/site/blob/cv-pls.com/… it makes it easier for us to moderate bad content with the backlog.
 
@crypticツ Not sure if I should seriously review that ...
 
11:31 PM
apparently it was accepted, why I don't know.
 
I was just reading the REASON part, but I am still not convinced that this is "better" than review link on SO?
 
@crypticツ Well, I edited it a bit
 
@Glavić review link is far different from the backlog
 
Can you explain how?
 
Hmm, it would be kinda nice to have a callback feature on array_merge() ... that way you can decide what should happen when two items would be merged :)
 
11:33 PM
@Glavić *sighs* sure, gimme a few mins to write up explanation.
 
Tnx ;)
 
@Glavić actually gimme awhile longer, going to nicely format it so can post it to the docs and also need to make dinner. I'll ping you with link.
 
ok
 
11:56 PM
@hakre I wonder if OP is talking about PUT vs POST ... it makes a lot of sense for PHP to only start decoding a posted upload once it's all there :)
 
@Jack I read it as POST but probably it's PUT as well.
Anyway, tomorrow working again and it's late.
So gn8 and till then.
 
Sun is rising here :)
 
have fun with the new day :D
 
thnx!
nite!
 

« first day (1173 days earlier)      last day (3782 days later) »