« first day (657 days earlier)      last day (4288 days later) » 

7:00 PM
MOTHER OF GOD, starting trolling framework sometime this weekend
tereško probably have a heart attack when I get in on Monday with it started
 
Trolling framework. Let me present you to OpenAura. so:php, it's OA. OA, it's so:php. (While it's not in PHP, it's really... a strange kid.)
I have a strange feeling that this should have been chunked up into two seperate questions. Or no. I really don't know.
2
Q: Implement bitmask or relational ACL in PHP

WhisperityI think PHP people are familiar with the E_ALL and various other bitmask constants from the error_reporting() function. They are number constants, example: E_ALL means 32676 and E_NOTICE means 8. I can say that I want all errors but notice shown, and I do this by passing E_ALL & ~E_NOTICE as ...

 
trololo framework
 
@webarto goto,global,mysql_*,eval,horrible OOP,what else
its gotta be functional, but bad
 
right, sleep and execute!
 
7:05 PM
@Event_Horizon there is Wordpress, Drupal, Joomla...
 
@webarto Oh no, no no no, I plan to make it much worse.
 
sup guys
 
Muahahahahaha cough hey whats up @hanleyhansen
 
whatcha making?
 
a:
// some code
goto a;
 
7:06 PM
what's with the evil laugh. sounds like your making something fun.
 
@Whisperity can you use a goto to break out of goto?
 
@webarto Because that while(1){} is too mainstream?
 
what do you guys develop on?
what OS and what software?
 
@Whisperity yeah for(;;){} is new while(1){} :D
 
@hanleyhansen Kubuntu + Netbeans
 
7:08 PM
@Event_Horizon I don't know but I don't want to see the face of the algorithm documentation guys if they want to model how the script works.
 
@MikeB that's your primary?
 
Aye
 
@hanleyhansen I develop on Linux (something Debian based) + PhpStorm (used Netbeans but its memory consumption is SO high).
 
@hanleyhansen Windows + Notepad++
 
Windows Me
 
7:09 PM
0
Q: Binary Search Tree post-order Iterator

Levi MorrisonI'm implementing an AVL Tree (a self-balancing Binary Search Tree) in PHP and have things working pretty normally. I have in-order, pre-order, and level-order iterators working, but I can't figure out how to do a post-order iterator for a BST. Google searches turn up how to do an iterative post...

 
anybody ever tried this jcxsoftware.com/vs.php
 
Hell no, do you think I'm suicidal @webarto
 
@LeviMorrison how do you like phpstorm?
 
@hanleyhansen ( windows::getRelease(win7::getServicePack(1), 64) && NPP ) || ( ubuntu::getRelease(natty, 64) && Geany)
 
hi folks.
 
7:10 PM
@hanleyhansen Compared to Netbeans, I like it a lot. I liked Netbeans too, but its memory consumption is double, sometimes triple that of PhpStorm. This machine only has 2GB of memory, so that's a big deal.
 
Okay this question literally got ~4 downvotes in a minute or so.
-3
Q: Can a scripting / programming language be a functional requirement for a website?

poolnoodlI make websites for a living. I've always used scripting languages (DCL, Perl, now mostly PHP) to enhance my productivity (templating for easy changes), even if a site was relatively static. I'm now working with a group that wants me to render out static files as they view scripting languages as...

 
@Whisperity Geany looks cool.
 
yeah
that's mine
what did i do wrong?
 
@LeviMorrison is it fast?
 
@hanleyhansen Is what fast?
 
7:11 PM
phpstorm
 
Compared to Netbeans it's lightning fast.
At least on this machine.
 
Whisperty? Thoughts on why the question is getting so much hate?
 
i'm dying to try this jcxsoftware.com/vs.php
 
Because its not a coding question
 
anyone ever developed in vs studio?
 
7:12 PM
your not asking "How do I do X with Y in language Z"
your asking "Whats your opinion on X?"
essentially
those kinds of questions belong on programmers.stackexchange (I believe)
 
Well, that wasn't my intention.
 
@poolnoodl I don't know. Maybe because it's more of a "Let's discuss" kind of one, not a "Let's answer" kind of one. But I am usually kind on downvotes and I only download way too s... questions.
 
My intention was to discover any unknown pitfalls of a static site.
 
hey @LeviMorrison are you doing iterative or recursive for BST?
 
@poolnoodl it's static
 
7:16 PM
@Event_Horizon Iterative, but it doesn't stop there. It needs to be an iterator.
 
Well, the question is dead.
 
@LeviMorrison It sounds simple but things rarely are in implimentation
 
@Event_Horizon Yeah, iterators aren't nearly so simple.
 
@hanleyhansen phpstorm > all ide
 
@Lusitanian why's that?
 
7:19 PM
it's designed for php and is amazing
 
@Lusitanian i'm going to charge $2000 for that project. bc there db needs to be cleaned up
 
perfect code completion (nearly anyway)
 
Guys, How can i rewrite a URL like this: `www.my_site.com/post/8349458` to `www.my_site.com/image/8349458` using `.htaccess` I can't found any question specific like this on main site :)

Thanks :)
 
ask the question on the site
 
7:20 PM
@Lusitanian better than Aptana?
 
kills aptana
 
Should I retry on programmers.se?
 
i'm going to have to check it out then
ftp support?
 
@poolnoodl I would
 
yes, but who uses ftp
 
7:21 PM
my stupid job
 
ew
it has great git support built in
 
i hope you mean sftp at least @hanleyhansen
 
@Lusitanian that's all i really need. i'm trying to standardize across all 3 platforms win mac and linux since i develop on all 3
@poolnoodl yeah
@Lusitanian but i need ftp support if i wanna make it my ide of choice at owkr
to bad i gotta buy it
 
@Lusitanian Is this for me? :)
 
@hanleyhansen Free trial is free.
And if it really is better, isn't it worth buying? I have an OSS license, but I would buy it if I needed to.
 
7:26 PM
@LeviMorrison yeah i would buy it for myself. i aint buying for my damn job though. i don't even plan on being here longer.
 
so buy it for yoruself and use it for your job
it's probably allowed under the license
 
yeah i will.
 
ok
programmers isn't letting me post.
i give up.
 
Answer some questions here and there. I guess you need more reputation.
 
night fellas
 
7:34 PM
Ah. I was getting an error, not a you don't have enough rep message
 
Whisperity@WHISPY-43AD5F /c/xampp/htdocs (development)
$ git st
# On branch development
# Your branch is ahead of 'origin/development' by 12 commits.
 
git git git push push push, cuz its friday friday
 
don't just push shove! lol
 
gist: Gitnologist, 2012-07-26 18:27:11Z
Fork it, use it, break it, fix it,
Comm it, push it, pull - request it,
Fetch it, branch it, patch it, fake it, 
Merge it, ssh it, never - https it.

Write it, cut it, paste it, save it,
Build it, check it, quick - rewrite it,
Clone it, crack it, crop it, comp it,
Drag and drop it, gzlib - gzip it.

Protect it, pub it, grep it, drop it,
view it, code it, bug - just doc it, 
Scrape it, scroll it, refresh and click it, 
Copy it, paste it, rm - and erase it.

Name it, watch it, follow it, star it, 
Gist it, encode it, salt - md5 shit,

Rebase it, encase it, protect it, reflect it,
Burn it, leave it, git - format it.

... Gitnologist...
 
7:37 PM
sounds like a rap
 
@Whisperity Thats what I was thinking
 
@Whisperity perfect lol
 
That's because that's what it is based on . . .
 
@Whisperity facepalm
 
7:42 PM
My brain is officially dead for today I think.
 
Well I will leave for sleep now. Good night/day everyone.
 
how to match this pattern exactly
/%5B[a-zA-Z0-9-]+%5D/
 
by using that pattern?
 
if you use preg_match('/%5B[a-zA-Z0-9-]+%5D/','%5Bexample%5Dexample') result is true
if there is any extra character beyond %5D it must return false
 
7:56 PM
@BasicBridge Use ^ and $ to designate the beginning and ending of the string.
 
/^%5B([\w\-]+)%5D$/
 
@webarto Perfect :D
 
:D
 
@webarto $(/^%5B([a-zA-Z0-9-]+)%5D$/) will do the job :D
 
@webarto Thanks it worked.
@Truth thanks to you too :D
 
7:58 PM
@BasicBridge @Truth told it first :P
just so you can test "live", if you already don't know that...
 
@webarto I like gskinner.com/RegExr
Has a desktop version too
 
@Truth there is one more "regexbuddy"
 
@BasicBridge Yeah! And it's only $40!
:P
I vaguely remember someone else asking the same question before. Will try to find his answer. — Truth 10 secs ago
Anyone remembers?
 
is anything interesting going on , or s should just start working on my vegetable stew ?
 
8:15 PM
@tereško Does making a post-order BST iterator sound interesting?
I have it mostly working, but has duplicates.
Correct order, at least.
Post-Order:
1
1
3
2
2
7
7
12
10
5
 
nope , not interesting
 
@Truth that guys nickname is literally dickhead :D
 
@webarto Heh, but his question does have a point
After a bit of testing 72 characters does seem to be the limit for some reason
 
8:30 PM
Ok, guys, I have something to share with you...
I worked on this too long
jQuery.add().addClass().after().ajaxComplete().ajaxError().ajaxSend().ajaxStart(‌​).ajaxStop().ajaxSuccess().andSelf().animate().append().appendTo().attr().before(‌​).bind().blur().change().children().clearQueue().click().clone().closest().conten‌​ts().context.css().data().dblclick().delay().delegate().dequeue().detach().die().‌​each().empty().end().eq().error().fadeIn().fadeOut().fadeTo().fadeToggle().filter(‌​).find().first().focus().focusin().focusout().get().has()
.hasClass().height().hide().hover().html().index().innerHeight().innerWidth().in‌​sertAfter().insertBefore().is().jquery.keydown().keypress().keyup().last().length‌​.live().load().load().map().mousedown().mouseenter().mouseleave().mousemove().mou‌​seout().mouseover().mouseup().next().nextAll().nextUntil().not().off().offset().o‌​ffsetParent().on().one().outerHeight().outerWidth().parent().parents().parentsUnt‌​il().position().prepend().prependTo().prev().prevAll().prevUntil().promise().prop(‌​)
.pushStack().queue().ready().remove().removeAttr().removeClass().removeData().re‌​moveProp().replaceAll().replaceWith().resize().scroll().scrollLeft().scrollTop().‌​select().serialize().serializeArray().show().siblings().size().slice().slideDown(‌​).slideToggle().slideUp().stop().submit().text().toArray().toggle().toggle().togg‌​leClass().trigger().triggerHandler().unbind().undelegate().unload().unwrap().val(‌​).width().wrap().wrapAll().wrapInner().link().template().tmpl().tmplItem().unlink(‌​)
but it doesn't work
 
The jQuery ABC's?
 
should have shuffled
this will be my answer when I see 10+ chainings... try this: and boom
Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
or
$_SERVER['REQUEST_URI'];
which one to be used... (first one looks like jQuery)
 
Former
 
probably a sad thing to do, but inside a model?
 
You should pass the request object into your model from a controller
new Model($this->getRequest())
You shouldn't need to use the static call on Zend_Controller_Front
Unless you're way out in left field trying to do something bad :)
 
8:43 PM
I actually pass Doctrine object to Model
because I don't want to "poison" controller with irrelevant code (to that Controller)... doing it wrong force is strong in this one...
 
lol
public function createFromObject($object, $raw_url) ?
 
that sucks, global is better ;D
 
lol, if you really have to.. definitely use the request object instead of $_SERVER
Some of ZF's test mocking alters the request object.. but probably not $_SERVER (I'm not 100% on this)
 
I want to get request URI instead of generating one (link)
thanks Mike
 
9:02 PM
hi
i have a widget made that has 3 urls. this redirects to some other site where counters are incremented. it is same as google ads but i do not kow how i can find unique clicks made
not repetations
 
@webarto What are you trying to achieve with that code?
 
i want to track unique vistiors brought to website by that widget
 
@AfnanBashir You can't track users at 100%.
 
well 80% would save life too
 
A user determined enough will be able to break whatever protections you may place
@AfnanBashir You can try a combination of the user's IP, sessions and cookies
 
9:07 PM
some say IP would do
 
IPs are easily changed, cookies are easily deleted
 
@Truth pass an object with newly created record to Model which handles Notifications (which for every use case need different data and are formed differently)... so I decided it was better to pass an Object then make a mess in the Controller (which is specific for that use case), so basically... I would like to leave Notifications specific code out of the other Controllers... :)
 
That's why I'm saying, you can only filter the users which are ignorant/not aware of their power.
@webarto I bet there are...
1. Why are you storing another instance of the same class inside of itself?
 
2. Why are you not using type-hinting?
 
9:10 PM
for passed Objects?
 
@webarto Aye, in createFromObject
 
can we get private IP of user
?
 
@Truth yes, but I can then only type hint one object, and I need to be able to pass several object types, and form appropriate notification based on object...
 
@webarto Use an abstract class
 
example, please?
 
user895378
9:11 PM
@Lusitanian I've updated as much as I could but I have to run out the door. I have no problems in my tests using the client as of now. I've posted a gist gist.github.com/3251540 of example usage. Hopefully you don't have any issues, but I still have a lot of tests to write before I can confidently say that everything works exactly as expected.
 
@webarto Hold tight
 
@Truth I braced myself
 
<?php

    class Foo {

        private $bar;

        public function getBar(Bar $bar) {
            $this->bar = $bar;
        }
    }

    abstract class Bar {}

    class BarA extends Bar {}

    class BarB extends Bar {}

    class BarC extends Bar {}

    $foo = new Foo;
    $foo->getBar(new BarA);
    $foo->getBar(new BarB);
    $foo->getBar(new BarC);

    //All works up to now

    $foo->getBar(new Exception);
The code will only complain about the exception, because it's not a subclass of Bar.
But it will accept BarA BarB and BarC as Bars
 
Oh, oh, dat, got it, thank you very much for explanation and sorry for wasting your time.
 
9:33 PM
@ircmaxell @NikiC @rdlowrey Data-structures now has BST iterators. I understand level-order, in-order, and pre-order well, but the post-order seems like voodoo c code magic.
 
9:43 PM
@Truth but in general, is this bad practice?
 
@NikiC Which part of that page are you wanting down votes on?
 
the main thing
obviously
click the link, see where it's leading
 
I'm assuming they are all micro optimizations?
 
@LeviMorrison timing in microseconds -.-
 
I didn't actually look at code sources, I have seen the site before, though.
font awesome is font. Oh wait, crap, meme doesn't work.
 
10:20 PM
I heard meme
 
10:31 PM
@ircmaxell found a "bug" (of sorts) with your PasswordLib
 
user895378
@LeviMorrison I'm looking forward to going through the whole php-datastructures repo this weekend. I'm hopeful I'll be able to limit myself to 1-2 adult beverages this evening and will be able to code late tonight.
 
Oh yeah?
 
@rdlowrey lol, more social obligations?
 
user895378
@LeviMorrison Yeah -- my sleep schedule has gone off the rails again because I've been coding until 4 and 5am every night this week. So unless I'm impaired I'll be able to do it again tonight :)
 
@orourkek what's that?
 
10:33 PM
@ircmaxell version_compare() giving false results in the blowfish implementation file
related to this
wait wrong comment
 
@rdlowrey Next few things on the agenda for data-structures: SortedSet, tests for iterators, Queue implementation.
 
...?
 
@ircmaxell Basically, on my system it ran version_compare('5.3.13', '5.3.7'), which returns 1 instead of -1
So blowfish returns the wrong prefix
 
user895378
@LeviMorrison Nice. I could really use SortedSet. As for Artax\Http\Client ... I have a working implementation of parallel request downloading via socket streams that I need to refactor and streamline. I'm pumped about it (like curl_multi_init but without the cURL).
 
> It should be noted that version_compare() considers 1 < 1.0 < 1.0.0 etc. I'm guessing this is due to the left-to-right nature of the algorithm.
 
user895378
10:38 PM
But I had to do a half-baked push of things in the Http package this afternoon just to get something upstream that (should) work because I think @Lusitanian was going to try to use the Client tonight. There are several unfinished tests and half-transitioned immutable response things going on in there now. I hate to push it like that but I just didn't have enough hours in the day. That said, lots of integration tests on my end work just fine with it.
 
$ php -r "var_dump(version_compare('5.3.13', '5.3.7'));"
int(1)
 
^ exactly
 
it's supposed to be 1...
> By default, version_compare() returns -1 if the first version is lower than the second, 0 if they are equal, and 1 if the second is lower.
 
it should be -1
 
No, it should be 1
 
10:40 PM
am I missing something?
 
5.3.13 > 5.3.7
 
I know I'm splitting hairs here, but if you're OCD like me

(version_compare(PHP_VERSION, '5.3.0') >= 0)

is about 13% faster than

(version_compare(PHP_VERSION, '5.3.0', '>=')
@orourkek see Zend Framework versions to figure it out...
 
well then it's probably an issue on my system then.... interesting
 
No, 1 is the correct return...
 
user895378
bug report smackdown is always fun.
 
10:42 PM
Yeah, I read the docs wrong, and it all fit into the issue I was having so I assumed too quickly
 
user895378
"Hey, there's something wrong with your code."
"Uh, no. There's something wrong with *your* code."
 
E_PEBKAC
2
 
If you're curious about my delusions, I thought it was saying that *.13 was lower than *.7 because of the extra digit, but now I realize it's just the end-of-day-friday cloudy vision
sorry for the wasted ping @ircmaxell :}
 
@orourkek Yeah, that's a very common mistake
and once you said version compare, that's what jumped into my head
 
@orourkek wait, 13 is lower than 7 ?
 
10:46 PM
@webarto In my own crazy world, it sure is
 
you probably thought .7 was .70, that is how it's like IRL
 
@webarto I mis-read the return values (because they're soooooo intuitive...) and thought it was dropping the 7 from .17, basically.
 
ah, rule of thumb is, whenever you think there is an obvious bug, there isn't...
 
I just wanted to call ircmaxell out
 
:)
 
10:53 PM
@webarto ?
 
@NikiC what did I do?
Jeffrey: Your beloved Laravel is not going to exist for very long ;)
--
Phil Sturgeon
@ircmaxell ^ do you know wuts dat mean?
 
11:19 PM
@NikiC lol
@rdlowrey lol still having the same problem, i'm going to try on a different machine just to make sure i'm not driving myself crazy. i don't get why the switch to sockets broke it
 
11:40 PM
@webarto someone might inform Mr. Phil , that Laravel is month older then FuelPHP
 
11:52 PM
@NikiC lol
 
@ircmaxell I think that there is some truth in it :D
 
there is
 

« first day (657 days earlier)      last day (4288 days later) »