« first day (1772 days earlier)      last day (3185 days later) » 

12:00 PM
but the error of mysql_fetch_array is stay :'(
 
so, are you now 100% sure that your SQL query itself is correct?
 
yes
100%
it's need to work, but i dont know why i have error! :(
 
If only that error could somehow give you useful information to help you understand why you got it?
hmmmm
 
I work with mysql many time and its my first time that my error is too long
 
now check mysql_error() and then check the variables
 
12:04 PM
i need add to my code this line:
`mysql_error($connection);`
or
`mysql_error($top_users_votes);`
 
no
 
so just mysql_error()?
*only
 
Just stop using mysql_* functions. Seriously. Why are you damning yourself to failure when you're just starting to learn?
 
Well I gave in, I delete all of the code and re-writes and checks each line
@tereško and @sherif THANK YOU VERY VERY MUCH FOR TRY HELP!
(:
I will re-writes my code later :)
PDO is hard to learn?
I can working with PDO if i am in free web hosting?
 
Stop using free web hosting
 
12:11 PM
maybe I will buy web hosting but don't now. I once had a localhost
in my old computer
 
Why buy web hosting?
You aren't looking to host a web site. You're looking to learn PHP.
They are two completely different things.
 
@UnderPhp that would be most pragmatic option for learning
 
I am develop in php 1.3 years and I know php good. It's a bit embarrassing that my mistake was mysql_num_rows ..
I will come back later, Thanks for help!
 
@UnderPhp no, PDO is easy to learn
 
For someone that's using mysql_* functions and doesn't understand basic operator precedence you sure have developed quite an ego for your knowledge of PHP.
 
12:15 PM
@UnderPhp depends, but it's unlikely that a free shared hosting will have PDO available
 
What's really embarrassing here is that you just said you know php good.
@UnderPhp You know how you know you're good at something? When you don't need to tell anyone you're good at it.
 
12:33 PM
Hi. ;)
 
ok, that's it, I have had enough
I need to set up PF on my VPS
 
PF?
 
port forward
 
@tereško IaaS FTW :)
 
12:40 PM
What is IaaS?
 
Infrastructure As A Service
Like AWS, or Rackspace, or DigitalOcean
 
I actually like to control what happens to my stuff
I hate this apple-like mentality
 
Control is an illusion.
 
I answered a Swift question for the first time in my life.
 
12:42 PM
Nobody has time to setup infrastructure from scratch anymore. You're a developer. Focus on what you're good at so you don't have to focus on what is already a solved problem.
 
@Sherif Illusion is control
 
You have to ask yourself, do I want to spend all my time maintaining infrastructure, or do I want to develop software?
Because there's a difference.
 
@Sherif you have this annoying tendency to make broad statements, based on your subjective opinion
 
@RonniSkansing No illusion is illusive. You have complete control over what matters with an AWS VPN, for example. You just spared yourself the hassle of learning and knowing how to properly setup the same firewall rules on different systems.
 
12:44 PM
@tereško I actually make very narrow statements based on highly objective information :)
 
@Sherif giving someone the illusion that they got control, is a kind of control .. I was just babbling =]
 
ey ronni sup.
 
you must feel really proud of yourself, @Jimbo
 
@HassanAlthaf just came in after abit of sun time
coding abit
 
Damn teresko, he made an awesome edit of yours.
 
12:45 PM
Just going through all the images I've ever posted on SO chat :'-)
 
@RonniSkansing Had been playing RageRP all day.
 
@HassanAlthaf no, he insulted me
 
Killed like 50 people today.
@tereško Oh.. I didn't get the hidden meaning.
 
Never heard of RageRP
 
It's a game.
 
12:46 PM
yea [= I guessed that
 
It's basically a private server for the game Habbo.
 
@Jimbo if you recall, crap like that was why I left SO for half a year
 
That is the game which brought me into coding
 
@tereško Genuinely didn't know that, not a meme, sorry man :-(
 
12:47 PM
it looks abit like a freaky chat app =] @HassanAlthaf
 
@RonniSkansing No its a fkin awesome game.
@RonniSkansing Online game. :P
 
like a sandbox game?
 
@RonniSkansing CAUTION: If you try it once, you'll get addicted for ever.
 
@HassanAlthaf looks like a cow-clicker
 
It's like, a social media actually,
 
12:49 PM
yea, I will wait for fallout 4 with that
 
You have your own character,
You can design your looks, you can have your own rooms.
And design them and make friends.
And design them.
Play user-designed mini games, work at users-designed jobs
 
sounds somehow anti-social and disturbing
 
Such as an FBI, Army, Bank, whatever.
 
@HassanAlthaf ...and, it's for kids.
 
@jimbo Its for teenagers.
 
12:51 PM
@HassanAlthaf Teenagers are kids
 
Teenagers > Kids.
It got some clubs and shit too.
I started this game in 2011.
And in 2011, looking at some of Habbo fansites,
I also wanted to create and boom! I got introduced to HTML and CSS. :P
Ever since then, I decided to be a programmer. :P
I still code as a hobby.
Sometimes I do freelance though.
Is any moderator online at the moment?
 
@Trowski Chromium started to complain and mark SHA1 as insecure on desktop as well now.
 
Damn, no mods right now?
 
Morning
 
Morning.
Are you a mod? @PeeHaa
 
1:05 PM
@PeeHaa o/
 
Heya @kelunik
 
@PeeHaa beta.kelunik.com runs pretty well on DigitalOcean, no dumb thread limit. \o/
 
What do you have to pay for it p/m?
 
@kelunik Authentication required.
@PeeHaa just $5 a month for most basic. :P
 
@HassanAlthaf I'm lurking - wassup?
 
1:12 PM
@PeeHaa $10 free credit if you use a referral link
@JonClements lurking?
 
as in I forget chat auto joins rooms :)
 
what?
 
@PeeHaa Currently runs on their smallest instance for $5/m, 512M RAM with 4G swap.
 
@JonClements You got your mysql(i) answer yet? Because I have an answer for you, but don't think you will be happy with it :-)
 
@PeeHaa You can use this referral link for free $10 credit: digitalocean.com/?refcode=621103b232c0 ;)
 
1:14 PM
@PeeHaa was doing a good job of ignoring it until now - but go on - what's the answer I'm not going to like? :p
 
@HassanAlthaf Don't spam your link in here every time DigitalOcean is mentioned. ;-)
 
mysql_query and mysqli_query have their params switched so easy search and replace :(
 
@kelunik It's called marketing.
 
So I can only see two possible ways: manually fixing it or perhaps uopz and quick fixing it, but that is faaaaaar from optimal
 
Unofficial Marketing Manager @ DigitalOcean
 
1:15 PM
Bah... screw it then... it was a favour, I got it up and running... they want any actual updating/re-coding done, then they'll have to get someone to do it... it's SEP now :p
 
It's easy to cheat DigitalOcean's system and get free server hosting.. lol
 
@JonClements :-)
 
@kelunik but you have a dumb bandwidth limit.
 
What's the limit?
 
1TB/mo for the cheapest one .. basically, you can be messed with, if someone decides the fuck with your site.
 
1:17 PM
Just wasn't sure if there was something like Python's 2to3 tool which at least does most refactoring etc... for you, then normally a quick couple of manual tweaks... but if it's a manual re-write... no way jose...
 
1TB is a lot, who even uses that much in a month.
My whole family shares 40GB plan for the whole month.
 
hi i want to run a only function function some thing called function a () {} using cronjob
 
@tereško CloudFlare is a bae <3
 
I use about 100GB on my phone alone
 
I have thought about writing a migration library once, but it's somewhere down on my list of projects I need to do :P
 
1:17 PM
@tereško True, but that doesn't matter currently.
 
from a file
i have a file called file.php i want to run a function called function a () { } in that file using cron job
 
I will have to migrate soon to BSD/Linux as my desktop.
 
So @kelunik I am trying your fix for my risky tests, but either I am being dumb or I just don't get it :P Once I wrap it in a try / finally the exception doesn't bubble anymore. I even tries to rethrow it, but it looks like the exception still doesn't bubble
I just woke up so I am sure I am stupid
 
@PeeHaa Could you give me the link again?
 
Moment
I wrapped both in a try / finally here ^
I can push both attempts to a branch if that is easier for you?
 
1:27 PM
ob_start();

try {
	require $template;
	return ob_get_contents();
} finally {
	ob_end_clean();
}
^ just like that?
 
@tereško Try OS X. No bullshit like Windows. :)
 
@HassanAlthaf fuck apple
 
An apple a day keeps a doctor away.
 
no, it doesn't
 
Yes it does.
 
1:28 PM
you just end up in a locked-in infrastructure
 
What is that?
 
it's the worst possible option
 
OS X is so cute.
If it was a woman, I'd marry her straight.
 
@kelunik Yeap. Although I also have the obstart in it
    public function render(string $template, array $data = []): string
    {
        if (!empty($data)) {
            $this->variables = $data;
        }

        try {
            ob_start();

            require $template;
        } finally {
            return ob_get_clean();
        }
    }

    public function renderPage(string $template, array $data = []): string
    {
        $content = $this->render($template, $data);

        try {
            ob_start();

            require $this->basePage;
 
But unfortunately, it is neither tangible nor it is a woman, so not possible.
 
1:29 PM
Good morning
 
@ʎǝɹɟɟɟǝſ Sup Jeff.
 
@HassanAlthaf ya know, I probably should add you to the ignore list, since you have noticed you talking retarded things for several days now
 
I even went as far as:
    public function render(string $template, array $data = []): string
    {
        if (!empty($data)) {
            $this->variables = $data;
        }

        try {
            ob_start();

            require $template;
        } catch(\Exception $e) {
            throw $e;
        } finally {
            return ob_get_clean();
        }
    }

    public function renderPage(string $template, array $data = []): string
    {
        $content = $this->render($template, $data);

        try {
Sorry for code dumps all
 
:(
 
} catch(\Exception $e) { throw $e; } ... wat
 
1:30 PM
@PeeHaa Did you try ob_end_clean() to avoid the return in finally?
 
@tereško Oh god, chillax. :/ Ysoserious? #YOLO
 
@Ja͢ck Hey this is me dicking around trying to get it to work :P
 
chillax? were you stuck in the 90's?
 
Can anyone recommend an online presentation maker? I've seen simple ones with nice transitions but can't remember how they were made
 
@kelunik No I did not. Let me try
 
1:31 PM
@Ja͢ck What do you mean?
 
oh, okay, then by all means dick around some more heh
 
@HassanAlthaf I hope you are aware that what you write here ends up on google and someone somewhere will take it seriously
 
@tereško Wait, are you serious?
SHIT!
 
Given that I have a PDOException, is using regex the only way to get the actual message of the exception (and not the SQLSTATE code and other SQL specific stuff)?
 
i can tell hassan is a really classy individual.
 
1:33 PM
@tereško Damn man, should've told before. I'm a good boy from now on.
@Ja͢ck What do you mean? ;o
 
I know that there's errorInfo for both PDO and PDOStatement but both PDO objects and PDOStatement's are out of scope at the moment I need the message.
 
@Ja͢ck :P
@kelunik Yes that works. \o/
Explanation please? :)
 
Man, I am in serious need of a moderator.
I found out very very old accounts of mine of StackOverflow.
On Google images.
 
@PeeHaa Probably the exception in combination with the return, but I'm not sure. I stopped using yield and return in finally. While return may be OK, yield will totally not work.
 
@Jimbo slides.com and then probably actually host it yourself as it's powered by lab.hakim.se/reveal-js/#
 
1:36 PM
Maybe there is something in the rfc I missed and I RTFMing. brb /me is to the docs/rfc mobile
 
@Danack Ah nice, thanks. I have keynote on the mac but I just don't think it'll be good enough
 
I think you are right @kelunik. Because of the order of execution it would be strange consider you can also do:
 
@PeeHaa Another thing you might want to add is wrapping all templates in a closure instead of a require hitting the filesystem every time, but that depends whether you have a long running script of a web SAPI application of course.
 
try { return 'foo' } finally { // this gets called either way }
@kelunik Good point. Haven't even thought about that becoming an issue
 
@Sjon 3v4l.org/4Y1HD "Something is broken.."
I think return in finally is not even allowed in HHVM.
 
1:43 PM
We might want to add a note in the docs about it being not a good idea
At the very least
 
@kelunik There's no note about them not being allowed on docs.hhvm.com/manual/en/language.exceptions.php
 
@Danack Just wait until 3v4l works again, then we'll see.
 
BTW @rdlowrey / @Fabor the last two episodes of mr robot are craaaaazeeeeeee
@NikiC @bwoebi @Danack @others I can kinda see why return from finally is a bad idea now. Is there any official stance about it / do the docs needs updating?
need*
 
2:03 PM
I am making this ekart function in php and not getting proper result please do have a look at my query which is given in the link below:
http://stackoverflow.com/q/32156607/4791856
 
@PeeHaa One of the Britain's greatest military commanders: "I see no ships."
 
I just checked, Java supports return in finally as well.
 
There are almost certainly some very bad edge cases where a return inside a finally is a useful thing to do, even if it's absolutely horrible.
So....let's all just look the other way imo.
 
> Then he did raise his telescope to his blind eye and said, “I really do not see the signal.”
I could do that
 
@Sherif Need help solving a problem with my php add to cart button
please do view this link given below for details about my query:
http://stackoverflow.com/q/32156607/4791856
 
2:22 PM
hire a developer
 
Is uopz php7 ready @JoeWatkins?
 
not yet
 
k no worries
 
btw, how far along is php7.0-release?
 
@tereško about two months behind this schedule - wiki.php.net/rfc/php7timeline
as we just had the first of the 'RC's the other day.
And RC is in quotes as it's not really a release candidate, but instead it's a "OMG why does no one ever both testing software until it's released. Fuck it let's call this a release candidate and see if that makes more people test it".
 
2:30 PM
hmm .. several months ago I guessed that it will be realeased sometime in january
looks like I probably will be right
 
I'm more optimistic about a pre-xmas launch now. There's not been that many big issues found.
 
never underestimate the capacity for laziness in large groups of people
 
It's not an RC because an RC should be feature complete with (almost) all known major bugs fixed. They're still changing features.
 
And how is PHP 7 "behind schedule" - the schedule allows RC phase to start as late as october as I read it
 
2:34 PM
need to shop .. I am out of shrooms
 
@AllenJB Okay, behind the optimistic side of the scenario of "Release Candidate (RC) cycles Jun 16 - Oct 15 (3 months)". There's no plan to shorten the RC cycle, so the theoretical release date of "GA/Release Mid October 2015" is no longer valid.
 
DNC
Who can talk good english and likes to promote a game? You will get a % of the revenue.
 
Guys, if anyone of you knows Swift, consider reviewing this
@DNC Does an A in English Language at the GCE Ordinary Levels count as being able to talk 'good' english?
 
DNC
2:56 PM
@HassanAlthaf Yes, without any debt
 
Nice, I'm in then. @DNC
 
DNC
@HassanAlthaf Great, do you use Skype?
 
@DNC Yes.
 
DNC
@HassanAlthaf ID?
 
@DNC Not saying in public. I can add you if you want.
 

« first day (1772 days earlier)      last day (3185 days later) »