« first day (919 days earlier)      last day (4254 days later) » 

13:00
why do we need tag ?
we don't
I'm going to burninate-request that I think
@Hiroto Just request that it be made a synonym of
ahahahaha
Can anyone recommend a free e-mail address, that has the quickest page signup for? Cba with hotmail / gmail
13:10
@Jimbo In the time it took you to write that you could have created a Gmail account :-P
(I say that, not been through the signup process for ages, maybe they want your inside leg measurement by now)
@DaveRandom I actually said that to myself, but thought screw it I've written half of it anyway
And now I could've made two emails. Fine.
@Jimbo Depends what you're looking for. There is TempInbox for receiving messages temporarily.
@uınbɐɥs I'll need a perm one, it's for a paypal signup, but I won't ever use it for anything but that
@Jimbo You can append +whatever to Gmail addresses, and it will go to the same account, but sites will treat it as a different address.
13:14
@Jimbo Y U NO BUY A DOMAIN?????
It's not like it's expensive
@DaveRandom My first evar real freelance contract! :)
I'm not handling domain stuff
and you can get infinite granularity with your addressing
@uınbɐɥs The overwhelming majority of sites fail at email validation, and do not allow you to use a + in an address
how do you search if tag is the sole tag on any questions?
13:24
@DaveRandom 5.0.0 - if you leave the private out of the line. - thx for the quick test.
i should probably try rewording that
@hakre That's a pretty weird implementation they did at first :-S
@PeeHaa埽 no
@Hiroto You mean "how do I search for questions that only have one tag" ?
13:26
@DaveRandom Weird? I would say this is the perfect example of implement as you go principle. :)
while specifying it, yes
Defer the details ^^
@Hiroto Pretty sure you can't, although the search algo is almost completely undocumented so there might be. There doesn't seem to be a way that I can find with any sensible syntax though
13:44
0
Q: Burninate the [godaddy] tag

HirotoFirst off, godaddy has 903 questions tagged with it. godaddy-economy-hosting has 15. GoDaddy is a platform for hosting, and these askers seem to think that tagging their questions with their service provider, when it doesn't make too much of a difference1, will in some way solicit more answers. ...

there, done
@Hiroto no. let's just replace it with
lol
Good morning again
hi @ircmaxell
(Just waking you up :>)
14:04
Nah, at the office
Go home rainbow, you drunk
lol
Where're my Linux experts?
0
Q: Chromium doesn't play sound

Madara UchihaI have Chromium installed on Ubuntu 12.10, but aside from flash things, it seems I can't get a sound out of it. For instance, I installed an extension, SpeakIt, which is supposed to read paragraphs aloud, but I get no sound out of it. The test includes listening to an audio file, I don't get any...

If anyone wants to help out and get easy rep on Ask Ubuntu.
posted on April 22, 2013 by Anna Filina

A montreal-based newspaper recently released a new mobile product to read news. It’s very nice, but it cost them 40 million and took 3 years to ship, with some 100 people on the team. My company has enough experience with news corporations and other industries to know that there was a lot of waste. My associate stated on social media that he could save them millions on their next project. It’s

"failure is not the worst outcome, mediocrity is"
@ircmaxell Tell that to all those similarly boring-looking webshops out there.
@MadaraUchiha I guess you checked the pulseaudio mixer for separate toggles for Chromium and Flash?
We0
We0
14:19
Hello people
that code in PHP
quick question
I need google oauth to open in a popup
through php
@TillHelge No? How do I check that
@We0 PHP doesn't open popups.
PHP cannot directly interact with the browser.
We0
We0
I know
so I do a request to google
@MadaraUchiha Open pavucontrol (or install it first, if it isn't available yet).
We0
We0
they give me a redirect url
i redirect to goolge and when they are done they redirect back to me
now
you can set a parameter to make it a popup version
@MadaraUchiha You then can tell Chromium to use that for audio output. Maybe it helps.
We0
We0
14:22
just wondering if anyone knows if the same can be done for google
with the facebook one
anyone?
@MadaraUchiha But aside from that...you should somewhere have a pulseaudio mixer that shows channels for every audio source you have running at the moment. Check in there, if Chromium is tuned up at all.
@TillHelge Yeah, where do I find that?
@We0 I have no idea what you are talking about.
We0
We0
@MadaraUchiha I knew that thanks
@MadaraUchiha Can't recall the name of it right now. Check the menu. I can check that when I'm home in an hour.
14:25
Is it good to use Vagrant for building normal websites? Or is that too advanced?
We0
We0
ok have you ever worked on a login with facebook or google oauth? @TillHelge
I used Google OAuth...never implemented it anywhere though.
user895378
@Leigh I plan to, but it likely wont' be for a couple of months. Don't hold your breath :)
We0
We0
then you won't know what i am talking about
no offense
@We0 The only thing that can create popups is JavaScript.
We0
We0
14:27
dude
u
an
are
Ok. I'm done talking to you. Go troll somewhere else.
We0
We0
i can easily create an popup
I asked
user895378
@DaveRandom I'd have to refresh my RFC-fu to be sure but I think the trailing dot is technically allowed. Man is it ugly, though.
We0
We0
you can set a parameter to make it a popup version
You didn't ask. You were rude, so you don't get anything more from me.
We0
We0
14:29
you don't have an answer so I don't care
@rdlowrey Yeh I re-read some stuff and concluded it's legit. I hate it, but it is probably allowed (there's an element of ambiguity)
@TillHelge found it, Chrome doesn't even show up
We0
We0
read my question
(It does when I play a YouTube video though)
The plugin that is
Mhm. That's curious.
@MadaraUchiha I'm not familiar with Chromium...check the preferences for any way to tell it what sound device to use.
Maybe it's hooked up to something wrong or something broken.
@MadaraUchiha There is at least one bug that might cause this.
@Duikboot that's just being ready for the worst :)
Im totally not getting it :p Vagrant and Puppet :P
@Duikboot Vagrant is easy. Puppet sucks has a stiffer learning curve
Can you give me a 'real life' example when to useVagrant?
14:40
@Duikboot whenever you need a Virtual Machine
@Duikboot each project on its own VM
@TillHelge But even after restarting Chromium I get the same behavior after changing
@MadaraUchiha You changed the audio device in Chromium? (If yes...to what?)
Can I compare it with a VPS?
but then softwarematicly
Vagrant.configure("2") do |config|
  config.vm.box = "debian6"
  config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210.box"
  config.vm.network :forwarded_port, guest: 80, host: 80
  config.vm.network :private_network, ip: "192.168.33.10"
  config.vm.synced_folder ".", "/opt/foo"

  config.vm.provider :virtualbox do |vb|
     vb.customize ["modifyvm", :id, "--memory", "2048"]
  end

  config.vm.provision :puppet do |puppet|
     puppet.manifests_path = "puppet/manifests"
14:41
@TillHelge Haven't found an option to do that, doesn't look like it's even possible.
@Duikboot its a simple configuration file for a Virtual file
So I have to install Vagrant on a webserver, and vagrant is used for creating multiple projects on it. And each project is running on a vagrant virutal machine?
the above would download a VM from the box_url, boot it up, forward some posts, configure network access, mount a folder from the host in the VM, give it some memory and run puppet
@Duikboot no. you use Vagrant to boot a virtual machine on your computer. That Virtual Machine will be the development environment that your webserver runs on
@Gordon hi
@MadaraUchiha I'll check when I'm home. I remember a similar issue with a browser. Been a while though. And without actually having a Unix in front of me it's starting to become guesswork now. ;)
14:44
@Duikboot i use vagrant for my projects to set up nearly identical boxes for development (on my local machine) and production (on aws or rackspace using vagrant-aws or vagrant-rackspace). that's the mouthful version. to take out the mumbo jumbo, its like having a new computer for every project
Okay that makes sense :)
@ircmaxell here's a crazy idea. how about being able to define PHP SAPIs via PHP code.
For example, I have to create a new website, I create a new vagrant box with apache, mysql running on it and that's my new development environment?
it also separates administration concerns from development concerns. i don't have to worry about whether or not each change i make to things like php.ini or installed extensions is going to break something else.
@Duikboot yes. or rather you use Vagrant to boot the VM and then Puppet (or Chef or Ansible) to make it configure the LAMP stack for you
14:46
Isn't that heavy for the webserver?
and when i get mad that the machine isn't doing what i want, i get to destroy that sucka
@igorw in what sense?
@Duikboot heavy how?
I understand now what is does :) But I think im not able to setup a vagrant service :p
I currently use MAMP, is it possible to setup a vagrant environment XYZ for a new project on it?
Well, I did separate the parser, but I'm keeping the parse() method as static, because I prefer to HueParser::parse('...') to $p = new HueParser; $p->parse('...');localhost 2 mins ago
14:49
@Duikboot uninstall MAMP
OR, do I still need MAMP? Can't I just run vagrant?
vagrant replaces that one MAMP you have with the ability to have infinity LAMPs at your disposal
@Duikboot the whole idea is to have a Virtual Machine that simulates your actual production environment as closely as possible.
Yep. You need PHP version X.Y.Z? Fire up a VM with it :)
very useful
@dyelawn he's unlikely to find a VM with Mac on it though, let alone a production server
14:51
@Gordon i don't know what you're talking about
posted on April 22, 2013 by Pádraic Brady

Watching some asshat fail at cross site scripting attacks against gearfuse.com. (Photo credit: vissago) Summarising knowledge has as much value as writing a 200 page treatise on a topic, so here is a list of 20 brief points you should bear in mind when battling Cross-Site Scripting (XSS) in PHP. Minus my usual book length brain fart . Chances are good that ignoring or

@dyelawn he's got a MAMP, so Mac Apache Mysql PHP.
( The only things I currently need :) )
@ircmaxell the SAPI PHP script would define the behaviour of echo, header, setcookie, how _SERVER gets populated. and optionally define the outer loop that the requests happen in. PHP would load this on startup. that would allow (for example) writing a SAPI for mongrel2 (echo just gets sent over ZMQ socket) that works with all existing PHP code.
@Gordon i was making a bad joke; i edited the post to say LAMPs instead of MAMPs
14:53
Vagrant is now running.
@Duikboot have you already installed puppet?
not yet
@Duikboot yeah, but most servers on the web dont run on a Mac OS. They are either Linux or Windows. More likely Linux, so you want your dev environment to be close to the production environment because that allows you to avoid incompatibilities, which is why MAMP or WAMP sucks. That's why you should use a VM and the easiest way to do that is through Vagrant
My prodcution server is a Linux server
Hi...
Can we add font-opacity and text Shadowing in imagettftext function ?
imagettftext($im, $font_size,$rotation_angle, $x, $y, $black, $font, $line);
14:54
I saw there are a few options like using Puppet or Chef.
Those are apps to monitor the box you craete with vagrant?
@igorw Ahhh SAPI. I thought you meant arbitrary API. I don't think that's possible due to the self-boot-strapping problem (it needs the SAPI to bootstrap PHP, but it therefore needs PHP to bootstrap the SAPI)
@Duikboot they dont monitor it, they are configuration management tools. They allow you to write config files which are then applies to the machines. The benefit is that you can version control the config files easily
Cool
This is already advanced stuff to me but I want to learn :)
Anyone here who used ElasticSearch as KV store?
14:58
@ircmaxell I don't know exactly how SAPIs are implemented, and how much control they have. I was thinking the SAPI script would simply not have access to the SAPI specific stuff.
@wes Any idea? stackoverflow.com/questions/16150000/… :: This is seriously the worst documented 'official' API I have ever come across
@igorw Example: the SAPI dictates the file to run. How would you get around that?
there would have to be a SAPISAPI
basically a SAPI decorator
@Jimbo @wes has suffered the pain of the PayPal API quite extensively IIRC
user652649
@Jimbo seems the sandbox has changed. i'll look at it
15:00
@Duikboot if Puppet and Chef confuse you, have a look at ansible.cc
What are those 3 called?
php --sapi sapi.php
user652649
@DaveRandom citing myself, there is a place reserved in hell, for the paypal api developers
6
Webserivce management tools?
@Duikboot configuration management software
15:02
@Wes U gave me a great Idea and now am using osclass on my site thanks alot www.housetostay.co.za
@wes Facebook's developers are worse
user652649
@ircmaxell there's a place in hell also for them, but the bottom end is reserved for paypal ones
disagree
@ircmaxell Yeah, but slightly above PayPal's though
Hey i was just looking at the requests made by the chat system through firebug and noticed that it is not making any get requests when updating the chat... how does it do this? I always thought it was an ajax get request...
15:05
At least PayPal's API doesn't change significantly every few weeks without warning or documentation
@Duikboot when you start looking at what these things actually do, they're super simple. i recommend sshing into your first vagrant box and installing apache, mysql, and php from packages. then you'll see what chef or puppet does for you (another option that "serious" sysadmins rave about is salt stack)
@ShadowZzz probably uses sockets instead
@West I need help: my facebook like button still remember the old icon I used Long ago which I do not like to show I wanna show a new one : please how can I do that
Thanks everyone for explaining this all to me this makes it all a lot more clear to me!
I heard everywhere ' vagrant - puppet - chef ... ' but I didn't know what to do with them and when to use them.
Hey @dyelawn, you considered creating a github repo of the node stuffz we were discussing the other day? Would be interested in looking at it/throwing in my two cents
15:09
@DaveRandom definitely going to, question is when; probably late this week. actually have to do real work over the next couple days.
probably need to write a test or two beforehand as well
Tests are for wussies. Complaint-driven development ftw!
@ircmaxell exactly. SAPISAPI has a special "null" SAPI (for lack of a better name) that loads only that sapi.php and aborts the script on echo, etc. SAPISAPI then delegates all SAPI calls to the loaded sapi.php code.
hrm...
I
I'd need to dig into the execution chain, but it might be plausable
sapi.php could even take options via $argv
15:17
right, which are then nuked once the SAPI interface is engaged
user652649
@Jimbo i'll look at it later or tomorrow ok? i'm a little busy now :(
@wes No worries man - hoping a PP dev comes on the forum and sees it as they tend to respond often and well to these sorts of things
php_define_sapi(SAPI $sapi_instance)
@ircmaxell I may have to dust off that copy of K&R soon...
nice
what would SAPI look like... hrm...
lets do that again...
@StenW It's not the correct syntax for a markdown code block, no... :-P
Fail
It's either ` in one line, or 4 space indent over multiple lines
thx
if (mb_strlen($contact_Subject, 'UTF-8') > 50) {
$errors['contact_Subject'] = 'Detta ämne är för långt, får inte vara över 50 tecken.';
exit();
}
2 messages moved to bin
1 message moved to bin
Ther ya go
@StenW Looks like valid PHP and sensible-ish logic to me, what's the problem you're having?
the problem is I think the majority of the SAPI functionality is called before the engine is fully awake
I'll be back in a bit, ping me if you have any new insight :)
Its not a problem, never used mb_strlen before and I just want to know if it is a good example how to validate post input
Is it a good idea to use exit this way, there are many opinions out there on how to use exit();
15:27
@StenW My opinion of how to use exit is: 99.99999% of the time, don't.
Especially since you assigned a value to $errors['contact_Subject'] - don't you want to use that somewhere? ;-)
Thats true, did not think about that part.
I am starting to think that I should skip all the error messages since they are only there for people who have javascript turned off. My sites entire menu system does not work without javascript.
"I was never afraid of failure, for I would sooner fail than not be among the best." -- John Keats
Just be aware that search engine crawlers cannot traverse sites that require JS for their navigation. If you don't care about this then go ahead with that approach, but don't dig a hole for yourself that you can't climb out of.
Epic typing fails today
Is that the case? I use twitter bootstrap, it should be smart enough to not have this problem I guess?
@MadaraUchiha Sorry. I can't recreate the problem. Everthing works fine here...and I can't really recall what I did to fix it...I guess it's been longer than I thought.
15:45
so compiling php from source on a t1.micro ec2 with all the requirements for symfony2 only takes an hour an twenty minutes. sweet. what am i doing wrong?
@DaveRandom busyyyyyyy
thanks for mega ping
and hi @crypticツ
@StenW bootstrap aside, you should use javascript on top of plain links. see the second answer to this terrible question i asked about a year ago: stackoverflow.com/questions/8810174/…
that way you can have the href attribute there for search indexers, no-JS users, etc. it shouldn't be terrible difficult to work this into whatever your current menu system is
@Lusitanian You're welcome @Lusitanian, any time @Lusitanian @Lusitanian @Lusitanian @Lusitanian
1
Q: UTF-8 is giving me question marks

AnonymousJI have this simple PHP-script, which searches a mySQL database and outputs the result to the user. I used to use ISO-8859-1 as my charset, but was advised to use UTF-8. But I have trouble going from my former charset to the new one. To clarify some things, I have: Created a database and table ...

Is it just me, or does that title make it sound like question marks are akin to hemorrhoids?
@DaveRandom erm, I don't know what effect UTF-8 has on you...but...
15:52
eih
@dyelawn called Progressive Enhancement
@Lusitanian Really fighting the urge to make some erection-based joke. However I suspect the tone is already low enough.
@DaveRandom ehhhh, this is the PHP room. go ahead and make it
@dyelawn thank you!
@ircmaxell is there anything other than CPU, RAM, and internet connection that might influence the speed of the compile and build processes of a C program?
disk speed
15:59
@StenW happy to help
My rep % 1000 == 404
"I was never afraid of failure, for I would sooner fail than not be among the best." -- John Keats
^ Re-post! :)
@ircmaxell ircmaxell not found
3
@ircmaxell Unable to ask ircmaxell anything. He's unreachable.
hey @Lusitanian
16:11
hey @NikiC @NikiC
@NikiC hey
hi @NikiC
Hey everyone!
@NikiC @NikiC @NikiC @NikiC @NikiC @NikiC @NikiC @NikiC @NikiC sup?
O_o
@Lusitanian What have you been up to?
ehhh being busy with a combo of things
how about you
16:24
@Lusitanian I don't get that waterfall thing on that github issue
And hiya :)
@PeeHaa埽 is the cv-pls extension called cv-pls or [cv-pls]?
Idunno :P
let's go with the latter so its unique to people using cv-pls
@PeeHaa埽 also may I copy the features list from the cv-pls site to here? gist.github.com/cspray/1689430#browser-extensions
@crypticツ Yes you may
@Ocramius Any particular questions regarding github.com/Ocramius/ProxyManager/issues/34?
16:39
@PeeHaa埽 yeah i'm confused lol
git sucks
there … I said it. And I mean it.
it's complicated crapware
it's simple... It's the underlying concepts that are hard
@Gordon i hereby revoke your moderatorship
2
@Gordon and for this one, ban you from SO
2
treason.
blah!
16:45
@Gordon If git sucks, then what does svn do?
2
@NikiC blows and sucks
@NikiC simply work
@Gordon You mean simply not work or be absurdly slow when it does? Yes, I agree :)
3
@Gordon keep talking. you're digging yourself a bigger hole. you're now banned from the internet.
16:46
@Gordon I agree, found it lacking ease of use.
@NikiC Have you tried cloud9?
user1125394
men does 5.4.7 support: explode(';', $row[3])[3]
@NikiC at least svn is intuitive to use
@c'c It should.
@Lusitanian hahaha
@Ihsan no
16:48
@NikiC I loved it... Give a try.
PSA: Gordon has been banned from the internet for blasphemy against git. Formal legal reddit court proceedings will commence shortly.
6
user1125394
@Jack it does thx
user1125394
what is the method please, sorry forgot it, to modify the iterated array:
@Lusitanian Which honourable judge is residing?
user1125394
foreach ($accounts as $row) {
    $row[3] = explode(';', $row[3])[3];
}
16:49
@Gordon lolwut
I should try Mercurial
Git needs a consistent UI, that's all.
@NikiC No need to run a apache on your machine, you have a linux terminal and a working IDE
I'm allowed to say that, I have a bronze git badge.
@c'c Did you mean to add & in front of $row (the one inside foreach clause)?
user1125394
16:50
@Jack ah yes
@Ihsan Is that IDE PhpStorm? No. Thus it's no good. Right?
@NikiC :D
@Jack I believe the Honorable Confession Bear or the Honorable Happy Kitten.
user1125394
k works thx
@Lusitanian Lol I was just too late to close that one :P
16:51
What is going on in SO, I see too much careers ads now... Does anyone know why?
It was a matter of seconds
@PeeHaa埽 hehehehe
beat ya <3
@NikiC yes. it is. I went to the svn book. read the parts I needed and then could use svn consistently and reliably. I tried the same with git but I find myself ending up googling for anything I want to do with it repeatedly. check out a branch? should be easy. I did that before. typetypetype. oh noes. I broke the frigging esoteric magic again. go fu git.
I was just reading tht :)
16:53
@PeeHaa埽 i just replied so refresh :)
@Gordon I think Linus is giving master classes in git ;-)
@Lusitanian github does auto updates ;)
@Gordon git bash.... in Turkish : Git == go, Bash == Baş == head so: get away from my head.
and if anyone needs further proof that git sucks he should check the upvotes on questions and answers in . that must be the tag with the most votes ever
@Gordon More votes than this even?
16:55
@Gordon You are so close to be cruxified... And this chat may turn to golgotha...
@Gordon Haha, you're seriously telling me you have to google how to checkout a branch when the command for it is literally git checkout branch?!
Yeah but then you have the remote tracking thingy
I honestly can't understand you here @Gordon. My experience with SVN has been similar to my experience with PEAR. And you know what that means ^^
@NikiC yeah, that's the command when you are on a Happy Path.
@Lusitanian Not sure... parseAccessTokenResponse() might be a bit redundant, but than again. Not all service have expiring tokens
16:58
May I blaspheme too? :)
@PeeHaa埽 ahhhhhhh
One particular "intuitive" aspect of SVN was how you revert commits by doing a negative merge. I tried to do that once and I think I spent half an hour without getting anywhere.
@NikiC what's wrong with PEAR?
@PeeHaa埽 because, y'know, what are standards?
@tereško in particular but @everyone also, for your probably ridiculing pleasure: programmers.stackexchange.com/questions/195740/…
16:58
I think amazon web servers (AWS) sucks.
I'm heading home, catch y'all in a bit
@DaveRandom stop
@Ihsan it's great for prototyping and S3 is awesome
Then again.... config based would be doable and not too insane I think
@Lusitanian hammer time?
No, in fact, home time
@DaveRandom pajama time

« first day (919 days earlier)      last day (4254 days later) »