« first day (917 days earlier)      last day (4256 days later) » 

13:02
@igorw ever read L'etranger?
@dyelawn nope, I tried once.
@igorw i think it was based on @tereško (don't get mad, just joking)
@igorw would you say this: matt.might.net/articles/by-example-continuation-passing-style is a good resource for continuation-passing style?
and if not, do you have a link to something better?
13:17
@Petah Why would one use twig?
@PeeHaa埽 why not?
Because there is absolutely 0 reason to do use it
what about for templating?
For templating there is.... PHP
Which is what twig mimics
Uby
Uby
@PeeHaa埽 totally agree
13:20
i think it's a little easier for designers to understand.
they should also learn php
and a little less likely to result in wasted time correcting silly syntax errors or sloppy php.
@PeeHaa埽 Not really. Twig mimics Python a lot more ;)
Everybody keeps saying that. But everytime somebody states that I wonder whether they really actually have seen twig
@MPKaboose what if they know django already?
13:21
@NikiC :D
@PeeHaa埽 pretty familiar with it.
And you are a designer?
what I liked about Twig at some point is the template inheritance
Though now I guess the good old compositional approach is better :)
@NikiC If somebody would say that I might give em some credit
13:22
@NikiC just use a class in your templates
@PeeHaa埽 yes.
Good morning
morning
morning
document.querySelectorAll("*:not(bad) > morning");
13:23
@PeeHaa埽 i just said that. @MPKaboose django's templating engine is very similar to twig. if a designer knows that, why make them learn php?
But saying it's easier for people to use / read, just cannot be the case
The syntax is puke at best
@igorw or better yet, recursive view objects which render with __toString() via templates
@PeeHaa埽 Actually, now that I think on it, I think Twig is the first open-source project I contributed too, because I found it so awesome at that time :D
@dyelawn yeah. and most designers know django
@NikiC /me is ashamed to know you ;-)
@ircmaxell oh the encoding.
13:24
@dyelawn I was just saying, I write php with my html, yet using a templating sytem wouldn't hurt
@hakre huh?
@hakre mornigns
most designers who have worked on a django project do. just saying, i think there are good reason to use twig.
There may be, but in most cases it is not easier for designers
@ircmaxell the idea is nice, but then you a) have generic objects (which should not implement tostring) otherwise you need one tree of those objects just for one encoding.
better to encode into a generic format like XML and then pipe into post-processing.
13:25
You've never tried to maintain a system built upon XML / XSLT views, have you?
@ircmaxell sure.
/me has, and oh the humanity
not xslt specifically but most of my webapps used a HTML output layer.
omfg
@PeeHaa埽 the reason i find it easier when i'm wearing my design hat is that it emphasizes the "viewness" of a template; keeps me from even considering business logic, and the relatively small number of functions keeps it simple
13:27
@ircmaxell @hakre @NikiC you guys all live at the same house or something given that you wake up at exactly the same time?
now macros, i see no good reason for those.
@MadaraUchiha now that would be a funny flat share.
@MadaraUchiha actually, we're about 6,000 miles apart...
@dyelawn If you have a decent implementation of the MVC pattern you will have the exact same thing. Only with sane syntax
The fact you have business logic in you views has nothing to do with twig vs plain php, but bad design decisions imho
@PeeHaa埽 of course it's up to the person writing to keep business logic out of the view, but it helps to keep me from doing so when i'm writing twig files instead of php.
13:30
Interesting... Opening the door drops temperatures by 3*C. And turning down GPU clock by 100mhz drops 7*C...
Summer is coming
@ircmaxell finally
summer
Nah, that means I need to shutdown my mining rig
anyone here familiar with puppet and can tell me how to manage modules in puppet? it feels kinda odd to use a provisioning tool that cannot provision it's own modules.
13:34
manage modules... I can't remember (I used to do a lot with puppet, but like 2 years ago)
@Gordon ditch puppet and use chef?
@dyelawn So as I read it what you are saying is: because I make bad design decisions I use some extra templating system with crazy syntax instead of fixing the design issues? :P
@ircmaxell psh, i don't see a single generateSalt() or generatePass() in your answer
@ircmaxell I can tell vagrant to tell puppet where to look for modules on the host but that still requires me to checkout the modules into my repository which feels superfluous when in theory I should be able to tell puppet use module xy in version z and download it when necessary. just that i cannot figure out how to do that
@dyelawn too much ruby
@PeeHaa埽 1) i don't think the syntax is crazier than raw php, but that's too opinionated to really provide any value 2) i do occasionally make bad design decisions when i've been working on development for a couple months, then jump to a designer role. twig helps me not do that.
@Gordon you do realize puppet is ruby as well, no? github.com/puppetlabs/puppet
@Gordon meh, i'd rather learn some ruby than whatever the heck that puppet stuff is; at least i can use it somewhere else.
@ircmaxell you should award that bounty to yourself (can you?)
13:37
@Gordon when you say modules?
@kaᵠ I can, but I lose the rep. I'm awarding it to the second answer
@ircmaxell yes, but puppet has a DSL and chef wants me to write to ruby
@ircmaxell iirc, the manifests have a unique language/syntax.
I can see arguments being made for both
@PeeHaa埽 :)
Hi all
@ircmaxell modules like github.com/puppetlabs/puppetlabs-mysql. I can install them manually on the VM with puppet module install puppetlabs-mysql but since I am already using puppet it just feels natural wanting to do that through the puppet manifest and then simply tell the VM to install that.
13:39
hey @Baba
@kaᵠ how are you doing
How's life?
@PeeHaa埽 Not bad .. hoping or the best
@Baba trying to decide if to install a freebsd on a box :)
@kaᵠ cool .. what are your intentions
13:41
@Baba fastness (php/gui/server)
@kaᵠ I use CentOS :)
i used centos
@kaᵠ why the change ?
@Gordon i use librarian (ruby people seem to prefer berkshelf) to grab cookbooks, which i think are similar to modules. so i have a simple shell script that first grabs all the cookbooks, then provisions.
bad for dev
13:42
@dyelawn i think I came across this librarian thing
@Gordon You can't write a shell script for that? And there is no way for puppet to automated installing of modules?
@Baba no change (just yet) just wanna test this out. @tereško mentioned something about linux being slow opposed to freebsd...
@ircmaxell of course I can. I just cannot believe I have to. And no apparently, there is no way for puppet to do that
no , i mentioned that ubuntu is slow
13:43
@Gordon just a ruby gem. i have no clue about ruby, but it was super easy to install. i did it expressly for the purpose you're describing, just with cookbooks instead of modules
ubuntu !== all the is to linux
@tereško but would you say freebsd is still faster than most linux distros?
depends for what task
@ircmaxell yes, I am looking at that right now, too
@tereško come on, wtf would you say that?
13:43
@kaᵠ Interesting
as a webserver - it would be faster (it's to do with network stack and multicore handling)
@Gordon that is ew.
@tereško huh? I said nothing about ubuntu. It's a Debian box nvm, context error.
that perfect
and you said as a dev box also @tereško
@kaᵠ I was about writing Bayesian inference for OP when i realized the OP said I'm not expecting code examples here
13:45
i never said hat it will be faster as a devbox
@Baba looool, disregard that, just push the code, make you answer pretty :D
that would depend entirely on your GUI , because speed of GUI depends on the environment much more then on the underlaying OS
@kaᵠ Strongly depends on the hardware
@kaᵠ I got bored after 300 lines :)
on IBM machines, RedHat linux will blow the doors off of BSD
13:46
@tereško you have a strange way with words... everything is crap... but then... actually not really everything....
-1
Q: User recognition without cookies or local storage

slash197I'm building an analytic tool and although I can get IP address, browser and operating system from the user agent I'm wondering if there is a possibility to detect same user without using cookies or local storage? I'm not expecting code examples here just a simple hint to where to look further. ...

@kaᵠ ubuntu is crap. period
it is one of the worst linux distros (along with linspire)
hello everyone! Actually, i need little help in parsing the result from the Google Places api response(json format). Any example or suggestion ?
@Gordon then i can even use a Gemfile with bundler to install librarian (as well as other gems that might be pertinent; usually capifony, knife, and chef-rewind) if it's not there
@tereško is agree with you on a part 'standard ubuntu', Xubuntu/Lubuntu are good (not great) but good mostly because the huge repos
13:47
@style json_decode()
@dyelawn I have clue what you just said :) it's all rubyish to me
@kaᵠ have you seen it ?
@Baba 300, need to post.
@tereško there's mandriva and mandrake crap
oh .. the "it has different DE, therefore it must be a different OS" argument
@Baba seen ?
13:48
@kaᵠ It not complete yet except i fake the data with a random function
@kaᵠ sorry .. forgot. I had the impression that mandriva was discontinued
@kaᵠ this is the question : stackoverflow.com/questions/15966812/…
@deylawn : yes! i tried but it is printing the entire result. But i need to display only the Name of the place and their location.
I actually like Ubuntu, I installed it at my sister's laptop a few years ago, she is running it since, didn't get a single support call (she's hardly a computer expert) and it works.
@Baba The CSS history hack has been fixed a long time ago
13:50
@PeeHaa埽 It still works 100%
huh? no it doesnt
@Gordon ok. bundler == composer; knife == "chef cookbook (which == puppet module) code generator"; chef-rewind == "some messy thing that seems like backwards inheritance that i don't see the benefits of over inheritance but all chef people are like, 'USE CHEF-REWIND'"
lemme test ;p
@Baba Where?
@PeeHaa埽 What Browser are you using
13:51
If you mean the :visited it was fixed
@dyelawn i'd like to make this work with puppet before I switch to Chef
@dyelawn : yes! i tried but it is printing the entire result. But i need to display only the Name of the place and their location.
@Baba I'm currently on the turd that is called safari
@PeeHaa埽 tested on chrome visit ha.ckers.org/weird/CSS-history-hack.html
@Gordon fair enough. i'll desist.
13:52
@dyelawn but thanks for the suggestions.
@Baba +1000 for that answer (you should push the code since you wrote it if still usable) !
is your setup on github by any chance?
@BenjaminGruenbaum what do you mean where ?
I hate listening to myself
@Baba History hack
@Baba How is that a 'history hack'?
13:53
nopez doesnt work
@PeeHaa埽 works on Chrome Version 26.0.1410.64 m
@Baba Oh, I get what it was trying to do, doesn't work
@Baba When you say 'works' what do you mean? You don't mean the color of the links, right?
@Baba huh wtf. That shouldn't be able to work
Care to take a screenshot?
lemme boot my windows box
13:54
@PeeHaa埽 Hold on for screen image
@PeeHaa埽 No need, windows here, doesn't happen
@Baba now it has a 500 bounty.....
@Gordon is your setup on github by any chance?
It shouldn't be possible to get the color of the different state @Baba
@BenjaminGruenbaum they way it changed the color .. yes you can use that to track users
13:55
@Baba No, you can't
@dyelawn nope. it will eventually end up in a private repo on bitbucket
If you try to get the color you will get the default color
IIRC
@Baba You can't select on :visited , try it
@Gordon too bad, i was gonna rewrite it for chef and convert you. :)
@BenjaminGruenbaum trying getting link styles instead
13:56
@dyelawn then I wouldnt learn anything but thanks :)
@kaᵠ yeah ... :)
css hack doesn't work for me
@Baba No, that was the bug, which was fixed. If you select it, you'll get the same style for visited and not-visited links
can't really relay on bugs (at least not if you're not actively developing with new and new bugs)
13:58
nopez doesnt work anymore. not on canary as on stable
You're drunk @Baba ;-0
Either that or chrome screwed up at some point :D
This is fixed since Chrome 6, seriously
@kaᵠ you can .. you would be surprised how people don't update their browser
@PeeHaa埽 One moment
@PeeHaa埽 WTF ...
Guys i need to restart BRB
hehehe kk
14:01
@Baba i understand that, but your detection rate drops when a bug is fixed, you're looking for 'the best method' so you can 'have' the bug integrated in you script but you can't rely on a bug due to it's nature
Does anybody know how to enable the link preview when hovering over a link in safari?
I know SimpleXML is not that popular, but anyone did run over this already?
0
Q: Don't understand the output in XML Entities and PHP SimpleXMLElement

Antoine-KaI use entities in XML and I don't understand my results. I have an XML file wich calls an external entity, this is config.xml : <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE config [ <!ENTITY totalInstances SYSTEM "totalInstances.xml"> ]> <config> &totalInstances; </config> Here i...

@hakre Use domdoc damnit!
;-)
Who can help me with debugging an annoying Nginx error?
See our room description ;)
14:10
2013/04/20 17:09:03 [error] 10678#0: *14 rewrite or internal redirection cycle while internally redirecting to "/geva/", client: 127.0.0.1, server: localhost, request: "GET /geva/ HTTP/1.1", host: "localhost"
++
k, so your rewrite is wrong
Not sure what's wrong there, I've looked at the conf and saw nothing out of the ordinary.
I never made any rewrites..
server {
	listen   80; ## listen for ipv4; this line is default and implied
	#listen   [::]:80 default ipv6only=on; ## listen for ipv6

	root /usr/share/nginx/www;
	index index.php index.html index.htm;

	# Make site accessible from localhost
	server_name localhost;

	location / {
		# First attempt to serve request as file, then
		# as directory, then not fall back to index.html
		try_files $uri $uri/;
		# Uncomment to enable naxsi on this location
		# include /etc/nginx/naxsi.rules
	}
Relevant piece of the conf ^
@PeeHaa埽 I had to delete cache and restart my system
14:12
@MadaraUchiha does your index.php use redirection? headers() ?
@BenjaminGruenbaum Bug is dependent of Browser Information example do you know how many people still use XP ?
@kaᵠ It's a wordpress project,
@Baba where would one get relevant statistical info like that?
try_files $uri $uri/; is like saying: If you can not find / go to / and again and again.
14:13
but even when I tried other directories, it gives me the same result
@Baba It's fixed in IE6 7 and 8 too you know...
@hakre So... I should kill it?
@MadaraUchiha I'm not fluent with nginx, I can not tell you. Just for that try_files I did read in the manual and it confirmed what I had in the nose.
@Baba I'd quit while you're ahead if I were you..
OK, now it's a different error
14:14
No offense or anything
@MadaraUchiha lemme grab my config
@BenjaminGruenbaum I wish i was not in a hurry to restart ... it actually worked on my system
It says "Access denied." nothing else
Let's see the error log
@Baba many many many many - most popular windows version today.
2013/04/20 17:14:15 [error] 10950#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /usr/share/nginx/www/geva/index.php (Permission denied)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /geva/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost"
So basically... needs sudo?
14:15
needs chmod @MadaraUchiha
or chown
and microsoft windows department is puking like hell. They don't can scare banger to shitinstalll their users to vista / 7 and vista2 (8).
location / {
   index index.php;
        try_files $uri /index.php?$args;
}
@hakre am not even talking about most popular ... even the ones that are not popular run into millions
@kaᵠ How do I change that? Terminal?
and
location ~ ^/index.php($|/) {
    fastcgi_split_path_info ^(.+.php)(.*)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_pass   127.0.0.1:9000;
    include        fastcgi_params;
}
14:16
@MadaraUchiha yes, first get the name of the http user
How do I do that? XD
then chown that_user:that_user -R *
@MadaraUchiha cat /etc/passwd
@MadaraUchiha see your php-fpm config
or that
I've set mine to nginx:nginx
user652649
14:19
O_O
@MadaraUchiha after you know the user, first go in the project dir and then type the chown cmd
user652649
x_x
@PeeHaa埽 Under what entry do I look?
user652649
afternoon
@MadaraUchiha still faster: cat /etc/passwd
14:19
user = something
group = something
@kaᵠ I see a large list, nothing looks like it matches
@PeeHaa埽 I have no such entries
@MadaraUchiha nothing pops in eye? last entries... any of em httpd/nginx ?
@kaᵠ nope
@MadaraUchiha nothing in your php-fpm config?
Or in one of the extra php-fpm configs?
@PeeHaa埽 config? or php.ini?
14:22
config
@PeeHaa埽 Nope, not there either :X
ls -la /etc/php-fpm.d
@PeeHaa埽 what version of Safari are you using ?
ls: cannot access /etc/php-fpm.d: No such file or directory
14:23
@MadaraUchiha What OS are you on?
Ubuntu 12.04
Hmmmmm. Idunno exactly how debian does its directories
locate php-fpm?
@MadaraUchiha cd /var then ls -al paste what you get for www
@ircmaxell @dyelawn ok. I think I am approaching this from the wrong angle. I'll try git submodules and vagrants provisioning first before I try with a shell script or librarian
Good luck
14:24
drwxr-xr-x  2 root root     4096 Apr 18 22:16 www
@ircmaxell thanks. I asked a friend who's more savvy with puppet and he said that's how they do it, too
probably 'www-data' anyway
@Gordon vagrant's provisioning? how's that going to work?
@MadaraUchiha go into your webroot folder, then: chown www-data:www-data -R * then check site
14:26
@kaᵠ Yeah?
@dyelawn basically, you check out the modules you want into your project repo and then tell vagrant's puppet provider where the modules are. when you then boot the vm, puppet will use the modules. that means I will have them on the host, but I guess I have to live with that.
usual for buntu
@MadaraUchiha does nothing wrong, you can sudo chown to whatever if i'm wrong
@kaᵠ That fixed it, thanks
yw
/beer; new coffee('milk','sugar');
@kaᵠ Staph messing of perfectly good coffee with milk and / or sugar!
:)
14:29
The hell is going on with this PHP installation?
@Gordon oh, got it. i know vagrant provision (i use the chef-solo provisioner for what i was describing earlier), just misunderstood the approach.
@PeeHaa埽 it's not perfectly good... because i made it :PPP
I think it doesn't have PDO installed :X
@kaᵠ :-D
@MadaraUchiha php -m | grep pdo no pdo?
@PeeHaa埽 It should come with it!
It's 5.4
What the hell
14:31
pdo might be, but you still might need to install the correct drivers
I swear I did not have this problem on the VM of Ubuntu I installed on my Windows
@dyelawn it feels kinda superfluous to me to have the submodules in my repo but seems to be less hassle than writing a shell script or using librarian. especially since I am trying this on Windows and my last attempt at using Windows+Ruby together was … lets say … improvable.
@MadaraUchiha IIRC the only driver installed by default is sqlite
@PeeHaa埽 Yet when I did it on the VM, it just worked, no additional drivers needed.
And that was before I installed the guest additions, so don't use that as an excuse!
14:33
@Gordon the advantage i've found with librarian is that i can just pull down the git repo, run my shell script, and have everything installed (like .gitignore with vendor files in composer), so it's really portable.
really portable without being really heavy, and makes it easy to keep third-party stuff up to date.
@MadaraUchiha why is there "-1~precise+1"?
@dyelawn Good question, I've been asking myself that too
@MadaraUchiha you know what it might be? someone could have built that from an unofficial package; is that ubuntu 12.04?
@dyelawn Yes
And it is the unofficial package, because the official one only provides 5.3.x
14:43
could the provider of the package have changed the version name when it was built?
ello'
@MadaraUchiha do you have access to rebuild?
bc supposedly there are major problems with that unofficial package that everyone installed
0
Q: How to combine multiple arrays

Rixhers AjaziFirst off this question in in relation to this question. My issue is that a friend of mine has upwards of around 300 or so arrays that she needs to insert into the database. I get the database part as you notice in the question I linked I have that part down. My question however arises on just ho...

If any one is bored ^^^^
@dyelawn I can uninstall and reinstall
Not sure what version to trust though :X
14:58
@MadaraUchiha build it
@MadaraUchiha the precise there is from Ubuntu's codename 'Precise Pangolin'
@MadaraUchiha and you installed a 1yr old release? just now?
@kaᵠ I installed Ubuntu now, Is there a 13.04 stable release yet?
15:01
at least you could install a 12.10 version
it should be released on the 25th
13.04
I'll upgrade
@MadaraUchiha 12.04 has LTS
that's why i've chosen it; don't know if that's important to you.
Long Term ...?
support
Oh
12.10 is still beta?
15:05
you're gonna upgrade to the newest anyway since using it as a dev box...
1210 is stable for half a year
13.04 is beta
just not a LTS version
beta2
@MadaraUchiha would you like a build script i'm using on 12.04?
@dyelawn Meh, I'll upgrade to 12.10
good deal
15:12
:D
15:36
that's it
monday i am handing in my resignation
14
i have reached the limit of my tolerance for this amount of stupidity
6
@tereško ... congrats?
user652649
@tereško congrats
@tereško What broke you?

« first day (917 days earlier)      last day (4256 days later) »