« first day (889 days earlier)      last day (4284 days later) » 

08:00
@tereško can you suggest some books that are available on Amazon, considering I haven't read any?
@webarto no. i dont think so.
@Gordon You don't like "full-time", just freelancing?
@crypticツ You are really hooked on SO, aren't you? :)
@webarto genre ?
@webarto i do full time freelancing
08:05
@tereško OOP, PHP, SQL, JS.
oh ...
Yeah, those books :D
have you already read the Refactoring and PoEAA from Fowler ?
Soon to be wife provides "other" books.
@tereško Negative. Just hit me with titles.
If you want some too, do say, I can send them to you.
i don't read dead-tree books
08:08
I can order them in Kindle format or PDF.
If they are not to be found on teh Torrentz :P
@tereško i am still trying to convince amazon to replace my books with kindle versions instead of exchanging them with vouchers
@tereško Thanks, some more?
08:09
@webarto if they are not found on torrents/dc/rapidshare/usenet , then they are either not all that good or something really strange
@tereško True dat.
hell , i have several GBs of obscure medieval books on alchemy and mysticism from torrents ... so the "really strange" is somewhat scary category
@webarto I have my obsessions and SO is one of them =oP
@webarto , if you need to dip into web design (the technical variety), then this one might be useful in long term
it's the equivalent of "gang of four" book , but for graphical design
@tereško Oh, that's cool too. That can make you the same money as the code (good designs).
08:14
i rarely do entire designs, but it is nice to know some pointers, when you need to make small additions or changes
hey guys
anyone familiar with nginx + ubuntu server configuration?
"ubuntu server" is like "marlboro mint" ... it's makes for a crappy tea
@heron What are root folder permissions?
@webarto you mean /home?
@heron No, your website root folder.
@tereško :D
08:24
08:47
-4
Q: Delete "Closed as not constructive" with 10 Down Votes?

KarmicDiceHow about deleting the questions which are not welcome to be entertained? Few things: Some questions are closed as not constructive even when it has many upvotes - which means, people like them. Some questions are closed as not constructive and also has down votes - which means, people do not ...

@tereško Had one for a week... Switched to Debian
Hi Guys,
can anybody provide me very good link for mysql link for joins which gives examples of various scenario and their good explaination....Please
Hi Everyone..
I am newbie to PHP.. I am just trying to send mail
Here is my code
09:40
I am using linux hosting
@Mitesh please do not ping random people here with your problems. It's considered rude. I have moved your messages to a separate room. Please discuss it there.
@Gordon gr8
@Gordon Thanks
No, thanks, I'm fine :D
@Gordon is the zend optimizer plus feature in 5.5beta1 suppose to replace things like APC, memcached?
09:43
@crypticツ its an alternative to APC, but not Memcache. Because Memcache is not a ByteCode cache.
posting links to own site and YouTube channel? Conversation is kinda confusing as what is going on. stackoverflow.com/questions/15585059/…
@crypticツ purged comments. thanks
09:59
hey good news php5.5 is released.... php.net/archive/2013.php#id2013-03-21-1
Still beta, but compiling it right now =o)
@PHP5.4 so you're gonna rename yourself now?
But what about legacy support?! =oO
yes its beta :( but very good feature of github.com/php/php-src/blob/php-5.5.0beta1/NEWS
and not the least added new function which was most awaiting wiki.php.net/rfc/array_column
@Gordon hahaha...
10:27
hello
if anyone knows how can i pass the long integer in range() as highest value. when i pass 100000 then it takes too much time to execute . so is there any solution for that?.
@udgeetpatel Somehow I believe you are doing it wrong. What do you want to do?
@an1zhegorodov it might be $_POST['btn_save']...
post request
@PHP5.5 What constructive difference does it make?
10:42
Oh cool, we have a @PHP5.5 in here
Hey @NikiC, wild idea, would you like to be interviewed? :P
@webarto by whom?
@an1zhegorodov no constructive difference just the way u are taking the variables make that difference
@NikiC You're talking to "whom" :P
10:43
@NikiC what do u mean?
by php5.5
@PHP5.5 Well that seems to be a reason for edit, but not for downvote
@webarto why would you want to interview me?
@NikiC Wunderkind?
pff
Yeah, don't be so modest.
:=P
10:48
hm, my ff build is broken, it somehow messes up image display
@NikiC i am happy since I moved to chrome. no more lockups. no memory hogging. no tabs lost
I experienced glitches when I was running out of RAM.
@Gordon i'm happy i didn't move to chrome ;)
@Gordon also, I'm using a nightly build, so it's kinda expected that weird things happen from time to time :)
From what I recently heard about chrome, it has been much improved in the direction of adding more random chrashes :P
in JavaScript, 1 min ago, by SO ChatBot
I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. — Bjarne Stroustrup
@NikiC it didnt crash yet. the flash plugin broke down on FB once. But that's it
If you always wanted to learn about Chrome DevTools, this extensive course is definitely worth your time: http://discover-devtools.codeschool.com
Hate when people downvote leaving no comments :\
10:59
hello, I have a tiny application that uses a front controller, and I wanted to save the session to database, I setup a session class for that, where do I instantiated the session class? bootstrap level?
Oh god, that PHPClasses guy is so fucking stupid
And I am so fucking stupid too, for engaging in Twitter conversations with him
@NikiC what do you think
?
@JoeySalacHipolito yes
?
so $db = new Database($dsn, $username, $passwd);
$session = new Session($db);
yes, something like that
11:08
btw, i if you can see I called Database class, how do i use the database class if I need them in some of my classes, do i need to instantiate it again inside those classes? i would have inconsistencies on dsn username and password if yes, or and avoid globals..

do you have any related article about this?
@crypticツ Not (currently) possible, the API doesn't expose the review queues :-(
(mornings @all)
My slippers are fuzzy. Your argument is invalid.
@NikiC yes
@Gordon I know, I never learn :(
@Gordon I blame it on you. You started :P
11:20
@NikiC but I ended it after two tweets, so yes you never learn ;)
@DaveRandom Morning, England. Fancy a cup of tea?
@webarto Rather, old bean, jolly good show, wot ho and all that
Spiffing idea
LOL :D
Anonymous
hmmm...
11:29
hello
how to echo an object
@gurudev print_r or var_dump
echo 'an object';
the object has set of values, if i var_dump its showing, but am not able to store them in array and print @MadaraUchiha
@gurudev You asked about echoing. Not about storing them in an array.
11:44
get_class_methods(); get_class_vars();
@GeoPhoenix @MadaraUchiha thanks :) let me store them in array
sam
sam
Hi guys, I need help getting my php file to act like an mp3
I'm trying to link to a file in the same directory ending with .mp3 and I'm using Content-type: audio/mpeg
It doesn't seem to read it though. Can anyone help?
12:02
@sam seems ok for me
sam
sam
@ka if you visit the link can you listen to the track?
uhh.... no, i can actually see your php code! that's bad!
`function smartReadFile($location, $filename, $mimeType='application/octet-stream')
{ if(!file_exists($location))
{ header ("HTTP/1.0 404 Not Found");
return;
}

$size=filesize($location);
$time=date('r',filemtime($location));
`
@sam you need to add the mp3 extension to be executed by PHP, you can do that from a .htaccess file or by adding to your web server's config
@MadaraUchiha @GeoPhoenix
var_dump($get) //produces something like
`object(stdClass)[21]
public 'Movies' => string 'Movies' (length=6)`
//but..
foreach ($get as $values) {

echo "<br>the value..".$values;
}
this is producing error :
`Message: Object of class stdClass could not be converted to string`
sam
sam
@ka apologies, in middle of testing. please try again
@sam `<?php

$track = "01.mp3";

if(file_exists($track)) {
header('Content-type: audio/mpeg');
header('Content-length: ' . filesize($track));
header('Content-Disposition: filename="01.mp3"');
header('X-Pad: avoid browser bug');
header('Cache-Control: no-cache');
print file_get_contents($track);
} else {
echo "no file";`
still no cigar\
12:08
why does the answer here got downvoted, stackoverflow.com/q/15585628/1328014
Object of class stdClass could not be converted to string....how it can be converted
using codeigniter?
@gurudev it cant
@JoeySalacHipolito yes using CI
there's the answer
12:11
@Gordon but I need to store the values in a string to retrieve later
sam
sam
@ka I'm adding it now
@Gordon @JoeySalacHipolito please see this for more clarity
@gurudev how about you stop doing what you are doing right now and do a basic PHP tutorial instead. You seem to be lacking a foundation of general concepts.
@Gordon anylink which may help me in this case
sam
sam
@ka I added the mp3 extension but still not luck.
AddType audio/mpeg .mp3
@kaᵠ
12:21
@sam retstart webserver?
sam
sam
@kaᵠ I'm using hostgator for my hosting and services. How would I restart the web server?
doesn't apply then, .htaccess @sam ?
sam
sam
@kaᵠ Would you like to have a look at my .htaccess?
@Gordon thanks :)
12:25
post a question @sam
sam
sam
@kaᵠ thanks
Good morning
morning
SO slow/
0
A: Have I been punished or banned by the community?

user1851816PUT NEGATIVESSS IN YOUR FUCKINGG ASSSSS , STUPIDSSSSSSSSSSSSSSSS PUT NEGATIVESSS IN YOUR FUCKINGG ASSSSS , STUPIDSSSSSSSSSSSSSSSS PUT NEGATIVESSS IN YOUR FUCKINGG ASSSSS , STUPIDSSSSSSSSSSSSSSSS PUT NEGATIVESSS IN YOUR FUCKINGG ASSSSS , STUPIDSSSSSSSSSSSSSSSS PUT NEGATIVESSS IN YOUR FUCKINGG ASSS...

morning
I'm going throw some of my older zero-score answers now. I can't believe some of the crap that I posted...
Hello, i have done json_encode in php and am wondering if this is the right syntax

[{"id":"985","thread":"90","name":"System","from":"system","message":"Please Wait For The Next Available Agent!","time":"2013-03-23 12:58:58"},{"data":{"lastmessage":"985"}}]

if it is how do i get the data.lastmessage i have tried this console.log('id = ' + result.data.lastmessage)
?

i have tried the javascript room
so, show of hands. XML RPC, JSON, XML over REST, or other for API to use between a service and both a web app and a desktop app?
@ircmaxell nice
@bizzehdee depends on more factors than you listed. No clear "winner" or "loser" in that context
except SOAP. SOAP always loses...
13:35
@bizzehdee yeah, SOAP is really just for washing
soap is the cancer of cross server machine communication
yeah, thats why i didnt mention it, its just bad. and a pain
Dev: Hrrm. And what happens if I move the service to a different endpoint? Do I get a 301 back?

SG: No. SOAP doesn’t really use HTTP response codes.

Dev: So, when you said SOAP uses HTTP, what you meant to say is SOAP tunnels over HTTP.

SG: Well, ‘tunnel’ is such an ugly word. We prefer to say SOAP is transport agnostic.

Dev: But HTTP isn’t a transport, it’s an application protocol. Anyway, what other “transports” does SOAP support?

SG: Well, officially none. But you can potentially support any of ‘em. And there’s lots of platforms that support JMS, and FTP, and SMTP.
@ircmaxell, service and web app are to be written in php 5.3 (maybe 5.4), its a customer database that stores just over 10,000 customer rows, and around 50,000 invoice rows. needs to be able to pass back any given subset of these based on a given query passed to the api and needs to be multi user aware, needs to be able to handle heavy load. desktop app will more than likely use C# and just be a desktop version of the web app mainly for the purposes of showing off
@bizzehdee I didn't mean that as a "explain more", but more of a "your question is unanswerable" in the sense that there are pros and cons to each of the ones that you listed, and their fit is going to depend very highly on the very specific details of just about everything your application does, will do, how it interacts, etc
13:41
@ircmaxell so really, "it makes no difference, they are all as good/bad as each other and its whatever you feel comfortable with"
it's more complicated than that, but if that's where you want to go, that's fine
@bizzehdee I'd say just use REST and be happy
xml-rpc is just POX anyway
14:03
1
A: Given an encoded message, count the number of ways it can be decoded

AlexanderYour current approximation to the problem is correct. Although, you need to be really careful that you are handling all the cases which it is not clear and this will make my answer a bit longer than needed. A correct way to see this problem is from a Dynamic Programming perspective. Let's consid...

ascii tables FTW
"your system has run out of free memory, please restart"... no, your dam 32 bit compile ran out of memory. I still have 30gb free...
is this allowed in codeigniter $this->load->view('view2',$data,$data2);
@gurudev IIRC not. CI wants you to pass an array in that case
@PeeHaa thanks bro
@gurudev why are you coding CI again? You are not done reading tuxradar.com/practicalphp yet!
14:19
@Gordon :) foreach ($get as $values) {

$no[]=$values->no;

}
> If it takes 2 people 4 days to dig a hole, how long will it take 4 people?
@Gordon If the hole represents a software problem and the people represent developers. 6 - 8 weeks
@PeeHaa the hole is just a hole and the people are just people. some of the backhoe operators might require special training though
@Gordon depends
SOunds a lot like manual labor so I'll pass this one
14:37
they may be confused or there may be argument war so it may take more time .. or it is also possible they solve same problem in less time may be half time
What’s the rate limiting step?
– pumping water out of the hole
• What are the resource limits?
– backhoe, not people
• What are the scheduling constraints?
– only certain workers available now
• Is the problem parallelizable?
– no room in the hole for 4 people
• Will it help to finish earlier?
– other steps might be delayed anyway
• Can everybody do all jobs?
– backhoe operators require special training
it's fun. it sounds like a simple problem. yet it's not that simple.
i found it on some slides about software development
@NullPonyPointer so it depends was actually quite correct
14:54
@Gordon, I'm curious here, can mods see who flagged what for moderation attention?
No idea if that is something you can answer though.
@Alexander yes, we can see who flagged what.
If you've asked what you later discover to be an unanswerable question, or a question where the only valid answer is "No", and haven't received a response, what's the best course of action? I'm guessing in the latter, to answer it yourself with "No", provide reference, and accept. In the former though, what? CV your own question, or just leave it?
15:10
unanswerable question as in asking for the impossible (no ammount of info. will make it answerable)?
@Bracketworks Questions without answers can be deleted
then flag as "Other" and ask for deletion
What question are we talking about?
For example
0
Q: Capturing the resolved SASS parent selector

BracketworksI'm trying to find a way to capture the resolved parent selector (&) in SASS (running 3.2.3), likely in a mixin. Unfortunately (and I've found discussion of this on github) the following go-to solution doesn't work: @mixin append-to-captured-parent($append) { $selector: "&-#{$append...

Having perused the source, it's apparent that this sort of functionality cannot be supported, and won't be supported.
This is not an "unanswerable" question, but one for which "No" would suffice.
@Bracketworks If you think the "no" answer (with more info ofc) will be useful for others answer it yourself. Otherwise just delete it
15:13
Alrighty; in this specific instance, I've been tooling with a work-around, so I may post that as an answer provided it .. well, works.
However I was curious in the broader scope.
This is pure bullcrap: . Choose your number [tag:http-status-code-###]
I wonder how to ask on MSO to clean-up that shit
@Alexander Just ask on meta and asks whether it warrants a cleanup. If the community agrees it should be burninated it's a simple cleanup of only 85 questions (for 400 that is)
@PeeHaa there are worse ones though, :p
I will see how it goes
15:27
@Alexander What's frowned upon here?
Useless tags (?). Although, it is still to be seen
Hmm, I don't know how useless they are. Would you rather see them simply truncated to ?
If you truncate them then it's better to "synonymize" them
@Alexander Well it'd be better than the current synonym
If you release PHP packages that require PHP 5.4 _JUST_ because you want to use short array syntax, then I hope your pet gets run over.
@ircmaxell and how is that the pet's fault?
it's not
@ircmaxell then it shouldn't get run over
it's like a "god kills a kitten" joke
@Gordon Nuts to that, I release PHP packages that require PHP 5.4 JUST because I want them to not work on 5.3.
Nah, I don't release packages anyway
Since when aren't you allowed to PHP a version yourself? I think I missed that memo where Phil chooses the version everyone should target
15:40
@ircmaxell there is fine difference between god killing kittens and him hoping that.
fair
@PeeHaa no, his point was short arrays buy you nothing. it's better to use regular arrays and expand your audience, than to arbitrarially limit for no technological or feature reason other than you want [] instead of array()
besides, it's Phil Sturgeon. God knows how many kittens died for his CI work
amen to that
Someone needs to be held hostage though; otherwise 5.2 will perpetuate.
Or, god forbid, 4.X
different story
15:44
is too ugly to put in production?

<script>
if(!is_chrome){
window.location = alert('Unsupported browser');
}
</script>
@Happyninja That's even too ugly for debug / test environment
Of course; but the root of the problem they're discussing. Sure, it's trivial, the short array syntax, or other sugar that's been sprinkled into recent versions. And I can agree that if sugar is the only differing element between supporting legacy and not, then throw out the sugar. However, it's thinking like that, that perpetuates this idea that frameworks should support long-should-be-deprecated versions.
And that cascades of course to hosts, etc.; as we all know.
@Bracketworks No, I am only agreeing with him on sugar. I completely agree with not giving up real functionality. But it doesn't perpetuate the idea that frameworks should support old stuff. It's more that frameworks shouldn't cut support for old stuff for completely trivial reasons...
@PeeHaa i'm kind of a little pissed off because there is a app we use internally and some folks still try to use internet explorer with it, causing issue we don't have time to fix
15:47
Instead of monkey patching it in the most strange stupid way (sorry) fix the app
There is just so much wrong with those 3 lines that for some reason I have the feeling it's not the user's fault it doesn't work in some browsers
@ircmaxell Right, no dispute. But I'm seeing a "give and inch, take a mile" sort of problem. By supporting trivial up-version changes like sugar, thus making legacy support impossible, you're helping the ecosystem by pushing the version threshold. While in itself it's a stupid idea, the principle behind it is in good intent. It seems that alot of popular framework developers have lost sight of everything to market share. But what else is new.
pus the threshold because there's a reason to push it. Don't just do it for the sake of it
Of course. I think 5.2 is a reason.
The thing with PHP is that there are a lot of people on shared hosting. And shared hosting is sloooow to upgrade @Bracketworks. So you can push all you want it just doesn't matter
Unless people start revolving, but than again. Anybody doing even remotely serious stuff won't use shared hosting
@PeeHaa Exactly; the incentive isn't there. One-click Wordpress installs will work with crap, so why change it?
15:52
I am looking for an "IDE" for databases, I am using PostgreSQL. I want something like MySQL Workbench
Does anybody know about a product like that?
@LuckyLuke on windows?
What's wrong with the default gui?
Nothing is wrong about it, but I wonder if there exists something like IntelliJ for databases?
At the end of the day, I'm just going to blame Wordpress for everything. Including male pattern baldness, paper cuts, and cold coffee.
15:55
@LuckyLuke What does IntelliJ do?
Uby
Uby
hello :)
Hello @Uby
imo requiring PHP 5.4 as a political/strategic decision makes sense, in order to push hosts into upgrading.
@igorw Yeah because that always worked out pretty good
:P
meeeeega ping
16:09
Jo
@PeeHaa if PHP projects don't require 5.4, then users don't use it. if users don't ask their hosts for 5.4, hosts don't upgrade. if hosts don't upgrade, we can't ever have nice things. it's a chicken and egg problem.
also, was that ping directed at me?
yeah :)
Good hostings offered 5.4 long time ago ;)
people who want wordpress would not recognize good hosting if it was dancing naked in front of them
Uby
Uby
Some bad hosting is offering php 5.4 too, tho
16:23
@PeeHaa how would you restrict usage to google chrome only then?
I wouldn't
It's a terrible requirement
@PeeHaa okay, imagine you should, how would you do it? Imagine you don't have the choice
I have no idea how is_chrome is filled
But you are using some terrible alert
And even worse you are putting it in the location.url for some reason unknown to anyone
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
@PeeHaa I want the app to crash stop, whatever
@Happyninja So I can just change my UA string so I am not forced to use Chrome, because the developer who made the app has no idea what he is doing
16:27
why am i witnessing only half of this conversation .. hmm .
@PeeHaa yeh you can do it. then enjoy more deep problem as you ran into it. I got requirement which is to ensure noob will not use anything but google chrome. Without detailing the whole mess thing is it's for internal purpose and i don't want to deal with ie6 , ie7 and so on
I sometimes get the requirement to prevent users from viewing the source or saving images
The answer is always the same
i know it can be a modal and stuff but it need to look like it can't work but in chrome, it is absurd but (i need to) i'm working within the requierment
Also I doubt there are a lot of peolpe with ie6 installed
@PeeHaa you be surprise how many internal app make requirement of ie6.
16:33
@Happyninja Uhhhmmm no
Not any more
Almost every kinda decent vendor has been upgrading the tools a long time ago. If you are still running software that has ie6 as a requirement people in IT should be fired
@PeeHaa that you don't know. i know stats, and my point is not to argue with it. it's something recurrent on forum; people just assume you are wrong and tell you what to do instead of just answering the question or just say "i don't kn ow"
@Happyninja That I do know
The "ie6 is still used often in enterprises, because of legacy" is a moot point mostly
IE6 is 23% of all browsers in china
@BenjaminGruenbaum No it is not
@PeeHaa ie6countdown.com ,You're right, it's not 23% it's 25.8%
(FWIW, we don't support IE6 where I work)
world wide: MSIE 6.0 1,058 M 0.49% 321 M 1.43%
@BenjaminGruenbaum I hope not :P
Yeah, it's uncommon worldwide, but a lot of people in china use a web browser (whose name I forgot) that is built on the horrible IE6 engine skinned or something.
The more people who don't support IE6, the better though. If the websites you use don't work in a browser you change browsers :)
@BenjaminGruenbaum I think that's 25.8% of 6.7%.
12 mins ago, by Benjamin Gruenbaum
IE6 is 23% of all browsers in china
16:51
Anyone familiar with ubuntu?
Everyone is familiar with ubuntu
Uby
Uby
@heron is something php related?
I'm newbie to ubuntu. Accidentally ran sudo chmod -R o+x /home . Want to know if it's dangerous to keep open access for`other`?
@heron Why would you do that?
16:53
@PeeHaa I said accidentally did it. I have to revert this?
7
Q: What if I accidently run command chmod

fl00rI accidently ran sudo chmod 755 -R / instead of sudo chmod 755 -R ./ I stopped it after few seconds, but now there is some problems such as sudo: must be setuid root How can I revert permissions back?

@heron sorry, it's not simply 'reversible', you should have regular back-ups of your systems.
@BenjaminGruenbaum lol. That sucks
@PeeHaa you can't fire a gov it department, believe me
@Happyninja ANARCHY!
sudo should be used as rarely as possible and only when you understand the consequence. A part of learning how to work with linux is making these sort of mistakes.
16:56
We've all done stupid things like that at some point :(
So what me to do? reinstall whole system because of this?
@heron do you have a backup from a previous time of /home ?
@BenjaminGruenbaum no it's /home directory and it's seperate partition
@PeeHaa yeah lol, in the mean time i need to make it look like the whole thing will crash if the manager try to use internet explorer and they can't use agent spoofer because they cannot do it, even if they somehow knew how.
@heron I can try to help you, but I'm not sure it'll work 100%, I'd just restore a backup of the partition. You can chown that folder and then chmod -644 it
16:59
Oh... I have no backup of whole partition

« first day (889 days earlier)      last day (4284 days later) »