« first day (1704 days earlier)      last day (3470 days later) » 

00:26
@ircmaxell \o/ typedefs
00:37
(By the way, I prefer to do type only (no names) but I'm not sure how strongly I feel about it)
(It's just that at present they can't have any behavior and make type signatures even longer)
01:15
what is the problem in this code :--

include "db-config.php";


// Connects to your Database
$conn = new mysqli($db_host, $db_user, $db_pass, $db_name);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

$input = $_GET['url'];
//print $input;
$sql = "SELECT * FROM students WHERE name=?";

// prepare and bind
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $input);
$stmt->execute();

var_dump($stmt->fetch_all());


$stmt->close();
$conn->close();

it is showing this error : -
cany someone help me regarding the above error
 
1 hour later…
02:21
@NullPoiиteя can you help me regarding the above error
@santosh are you sure you are getting result ?
02:47
@NullPoiиteя no i am not getting results it showing error
@NullPoiиteя this is the error i am getting -- Fatal error: Call to undefined method mysqli_stmt::fetch_all() in C:\xampp\htdocs\mp3songshd\display.php on line 20
sorry right now i am really busy ...
@NullPoiиteя ok and i got solution of my problem as well as why this error coming and thanks for commenting even if you are busy
03:19
with doctrine/symfony anyone have any ideas a superclass that wraps two separate entities? like recipients -> AbstractUser (Admin table or Employee table)
i should've merged the Admin and Employee tables a long time ago but now we're stuck and i can't relate things to either/or
 
2 hours later…
05:01
hi all
@NullPoiиteя r u there?
hello
05:33
when will we need like this in for mysql database in php $conn=seververconfig1; and $conn1=same serverconfig1; or $conn=seververconfig1; is enough
06:27
When will you need more than one connection to the same database? Is that what you're asking?
06:39
Morning
07:04
How'd we go from such a simple thing that works to this strange and complicated thing called #HTTP2? http://t.co/aXmI39Uqmx
07:32
Hello
07:43
How do you think, how to do better?
1. In ajax response return the generated completely view and client simply withdraw it.
2. In ajax response return json and in client expose where necessary.
07:55
withdraw?
mornings o/
morning
Hey guys, I was wondering, did you ever see a practice where juniors were writing more elaborate documentation from in-code documenation written by more experienced team members? Is that effective even?
@Ivan0x32 It's a way to let the people understand how it works
08:02
@SergeyTelshevsky nice!
Morning @Naruto @kelunik
@PeeHaa croissantje? ^^
breakfast at work (again :P ) should go to bed earlier ^^
@Naruto Nope. Just coffee :-)
o/ @Jimbo
Mogguh @Jimbo
08:11
moin
Morning
Moaning
omdfodmgodfmg all
@Sherif sorry for saying this, but you remind me of Jafar for some reason
@PeeHaa hey hey, what :D
Is there any option with NumberFormatter to not have decimals?
For currencies
08:20
@Silver89 Pass it a whole value?
@Silver89 Sure you just have to set the NumberFormatter::FRACTION_DIGITS attribute to 0 though I believe you need to set the currency code before you do that for it to work properly.
Or just max fraction digits as per the first example php.net/manual/en/class.numberformatter.php#103030
Well that would give you a decimal than.
See I've tried setting all 3 of those to zero but I still get decimals
@Silver89 Works for me codepad.viper-7.com/TmnYM3
08:26
@Silver89 Is en really valid?
I think in older versions you had to set the currency code attribute first or something, which is why I mentioned it.
ah there we go, needed en_GB, thanks
It's been a while since I've worked with intl
hello everybody!
do you have any idea about wifi password creaking or accessing wifi network without password?
@MahediHasan Yes. Search the web
08:30
The web is a scary place
@Sherif Only if you do it right ;)
@PeeHaa You mean I could be doing it wrong?
damn it
@MahediHasan there's a good tutorial here 1.usa.gov/1R3vXPE
@Sherif :P
@Silver89 What does that have to do with cracking wifi passwords though?
08:34
thanks @silver89
How do you guys deploy changes to the DB structure?
I mean without having to apply them manually?
@Sherif You're going to encourage users with 32 rep to crack wifi passwords?
@Silver89 No. But back to my question. What does that article have to do with cracking wifi passwords?
Closes tab
You do realize if I can see what you typed you clearly haven't closed your browser tab, right?
Anonymous
08:41
Morning
@Silver89 that's not that easy anymore :(
Morning
I'm making a form maker and I want to store the questions + possible answers (think checkboxes) into my database. Only how do I design it? Do I need to make the databse for the possible answers like 20 columns so I make sure there is enough columns for the answers (so 20 answers are possible then in checkboxes)
if ($result = mysqli_query($link, "SELECT Code, Name FROM Country ORDER BY Name")) {
in this if statement make sure that query is successful
but the same is not working on my machine
Or do I need to put every single possible answer in a new row?
@Silver89 this is not hacking tutorial
08:50
Hi guys,
need help with APNS, please check http://pastie.org/10242611
@brainforked What does phpinfo() say about libssl?
You're looking for Registered Stream Socket Transports
09:06
it says : tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
It works for 2-3 times then it shows the error and it works again after some time.
Sounds like a network issue then. Probably has nothing to do with PHP.
a database does not have columns. A database has tables which have columns.
Sounds like you need to read up a little on relations and joins before you start
@HuubS Do you know what a JOIN is?
A joint? hehehehe
Nope. Don't do that anymore :)
09:17
puzzle
@PeeHaa did you see this aivd.nl/@3269/ga-cyberchallenge ?
why would environ and getenv be inconsistent ? (C)
> Mag AIVD.nl cookies op uw computer plaatsen om de site prettiger in het gebruik te maken?
Fuck you
@NikiC @ircmaxell @bwoebi and so on ...
hehehe so ironic :- )
Why the fuck does a government site like use cookies that need consent??
the rules are unclear @PeeHaa
even to the people who wrote them ...
@JoeWatkins The rules are pretty clear over here ATM (that is after the last changes).
Even google analytics is allowed now (with the correct settings)
I think all of EU has same rules
@PeeHaa The UK implemented an EU directive in a really stupid way - and some governments are copying them .... cookielaw.org/the-cookie-law
09:20
not aware of latest changes but some time probably needed if rules changed ...
@JoeWatkins It was the same directive, but implemented differently in national law.
@JoeWatkins Nope. I don't think so. The public broadcasters over here loosened the law basically
I'm just going to ignore it - zero people have been prosecuted for it yet, and it's fucking stupid.
said most of the internet in unison ...
09:22
@HamZa btw FYI I can never get a job @ the aivd, because history...
I don't like being stuck ...
@PeeHaa do you think they would allow a half blooded human being?
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/php test.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 5, sapi_cli_register_variables (track_vars_array=0x7ffff7fbb2d0,
    tsrm_ls=0xc258c0) at /usr/src/php-src/sapi/cli/php_cli.c:342
342             char   *docroot = "";
(gdb) p *environ
$22 = 0xc244f0 "XDG_VTNR=7"
(gdb) call getenv("ENV_NAME")
I need an explanation ...
ThW
ThW
Morning
09:23
@HamZa That is no problem for them as long as you have never been in contact with the justice department
@ThW Mornignj
@JoeWatkins lol
@PeeHaa I C... At the moment, I'm just interested in the challenges, not the jobs. I actually ranked 3rd single handedly in a CTF this weekend.
Cool!
@FlorianMargaine kick me while I'm down ... why not ...
since you're all so quiet, I'm gonna assume you're all busy investigating ...
:-P
09:32
@JoeWatkins isn't environ pointer to pointer to char?
yes, supposed to contain env, but why would getenv be inconsistent with environ ?
we .... don't know, do we ?
can't even get gdb to work with php. /me gives up
moin
wait, I fucked up
ThW
ThW
@PeeHaa I got lucky and got the keyboards on Ebay. Yeah! :-)
09:44
oy
I just used blackfire
it's awesome
very well done.
If I look up access tokens in a MySQL database, that would be a potential timing attack vector, right?
@ThW \o/
Nevermind, that token isn't something is the user's control...
Nope :)
You just make requests with the token and it either fails or succeeds
Do you really spell is like that succeeds. Looks really retarded
Good morning
09:53
Morning o/
@JoeWatkins got the explanation?
not yet
but they are consistent
If anyone was ever a fan of the original Shenmue on Dreamcast, you must see this... almost 16 years later.
this is what I'm investigating
Best news ever! Shenmue 3 has a kickstarter campaign and has already almost completed its backing. Been waiting 14 years for this day ;_;
09:55
@PeeHaa Yeh that one gets me a lot as well, I always want to write "succedes".
@JoeWatkins interesting
@Fabor Nice timing ;-)
@PeeHaa You can identify a user based on the returned token and log him in without a separate request for the user info.
@kelunik You are using an access token as a remember me token?
@JoeWatkins what does p environ[1] show?
09:59
Hi Jimbo
Did you like Shenmue?
@FlorianMargaine yeah it's there, I read it wrong ... is at 32 or something
but it still doesn't make it to the right track vars array ...
@Fabor It was absolutely amazing. I loved the series, played the games so many times... I hope they can get the original Ryu voice back
something wrong in sapi, still looking ...
Yes!. There's two responses to that question. It's either one of the best games of all time or you've never heard of it.
Need to start practicing my QTE buttons
@PeeHaa No, totally not. But because they're unique, you can directly use the result of the first request to identify him with a stored access token (if it exists and didn't change).
@JoeWatkins ok, C is not broken yet :P
php is, but that's a known issue
@Fabor If they re-release HD versions of 1 and 2 as well on current formats... that'd be effing brilliant. Thing is SONY still own the Shenmue 1 + 2 rights so it'd be up to them.
Weird that it came out on Xbox and Dreamcast though
10:01
@kelunik Ah I think I see what you are getting at. YOu are talking about caching results basically?
(gdb) r
Starting program: /usr/bin/php test.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 1, zif_filter_input (ht=3, return_value=0x7ffff7fc7db8,
    return_value_ptr=0x7ffff7f8a2b8, this_ptr=0x0, return_value_used=1,
    tsrm_ls=0xc248c0) at /usr/src/php-src/ext/filter/filter.c:740
740             long   fetch_from, filter = FILTER_DEFAULT;
(gdb) n
741             zval **filter_args = NULL, **tmp;
(gdb)
742             zval  *input = NULL;
@FlorianMargaine yes
@PeeHaa Basically, just about saving a request if it's a already known token which can be used to identify a user.
@kelunik FYI AFAIK dupe tokens are allowed (as in the spec doesn't say they have to be unique)
YMMV :)
@PeeHaa There can't be any dupes, because otherwise a simple request to /user would fail, because it returns the currently authenticated user the token belongs to.
@kelunik Not everybody has that endpoint
Also it's not at the same time
Think of it like this: I oauth your app -> token expires -> somebody else grants your app, but get the same (now expired for me) token
/me is reading the spec btw it's been a while so I might very well be wrong
10:12
@Fabor Yeah, but Xbox isn't definitely not in the pipeline if you look at the FAQ at the bottom of the kickstarter... it might be in the future but primarily it's PC and PS4 atm
I'd prefer PC anyway
Funny @kelunik either I cannot find it or it isn't actually in the spec (the expired token reuse part). For some reason I expected at least a paragraph about it
ram
ram
Hi guys any one out there....
I have a question.......
is it a good question.......
ram
ram
I hope so.....
10:20
@PeeHaa An application can not know if the token is still valid for the current user. If something like the scenario you just mentioned happens, it would operate on another account without even knowing.
Yes which is (also) a problem for offline tokens I see that now
ram
ram
@Fabor How to store select box value in session array variable?
Still strange that there is nothing about it in the spec
10
Q: Storing Form Data as a Session Variable

Kevin JohnsonSo I was wondering if it would be possible to store data coming in from a form as a session variable. Heres what I have so far, but I don't know what to put for the Form Action. Thanks for looking! <strong>Test Form</strong> <form action="" method"post"> <input type="text" name="picturenum"/> <...

Does anyone have a link to a good git branching model that they use in their company / oss and would care to share? I'm being tasked with making an informed decision, so I thought I'd ask you guys ^^
ram
ram
10:22
stackoverflow.com/questions/30864310/… is the one i posted in stackoverflow...
@ram At least have the decency to properly indent your code
ram
ram
@PeeHaa sorry ...this thing is making me miserable...
Reason to more to ask a proper question
Irony or satire, I am unsure.
@Jimbo Ask ocramius......and it really depends on whether you have complete code coverage in test suites (both unit, integration, and live testing) or whether you have a more traditional "the code is now ready to be tested by the QA department" release process. If it's the latter then - nvie.com/posts/a-successful-git-branching-model
probably.
10:28
@Danack No tests, but I'll be pushing for integration testing (no QA)
Me with knowledge and senior with experience are going to turn this boat around :-) so it begins now
ram
ram
@Fabor i want my select box value to be stored in session array...the input text box storage works for me but not the select box value....
Print your whole $_SESSION and see what's there.
Also why are you alternating from strtpnt1 and strtpnt. Name you variables more sensibly
var_dump($_POST);
ram
ram
did u c tat code...strtpnt is the name of the select box...whereas strrtpnt1 is the name for session
@Danack I saw that post btw, was just skeptical becase 2010
@ram wtf. Seriously. Your variable names are terrible.
10:38
ram, dump your post data, debug it from there.
@FlorianMargaine News to me
Also, stop assigning something to $foo then reassigning $foo to an array
@Jimbo Goal reached.
WTFOMFGBBQAPPELGEBAK
is there any such rule that says one should not call $obj->__toString() directly but use (string) $obj or just the context instead.
/me hits mysql error 1136
10:46
@Fabor We're getting it! YES
/me looks at statement
$newId = self::$dataAdapter->insert(self::SQLINSERT, 'iiiiiiissssssssissssssiiiiiiiisssissssssssiiiiissiiii', $parametersIn);
Oh joy...
@Gordon Good question, always wondered that. Tbh, I'm not sure which one is nicer. The function call and casting are of the same verbosity imho
Seriously, who thought that the mysqli API was sensible when it was being designed?
I've always cast, though
@PeeHaa it spells ISIS. report them for potential terrorisms
10:47
@Jimbo I would say that the past participle of "cast" is just "cast"
@Jimbo imo, one shouldnt call the magic method directly because its supposed to kick in automagically when the context asks for it.
@DaveRandom You are correct, the more I learn about a programming language the less I care about writing proper english
@Gordon But then, magic is bad... `mmkay
for instance, I have a comparison here like this: $this->type->__toString() == $element->type->__toString();
that looks wrong to me
Strict comparison all the things :-)
that as well
10:50
@Gordon Depends what you want. If what you want to do is "stringify this object" then you should just cast it, just in case someone one day changes the name of __toString() or something like that. That doesn't necessarily mean you shouldn't explicitly call __toString(), you may have some reason for calling that specific method (e.g. if an interface specified __toString(), it's now a part of the API that can be relied upon)
if ((string) $this->type === (string) $element->type)
I'd say the use cases for "I want to invoke __toString()" are likely to be a lot less frequent than "I want the string representation of this object" though
Yeah, definitely nicer than having a load of __() just to get a string representation
Guessing type is a VO
more or less
it's an enum
so basically yes
@Jimbo tbh if you don't have good tests already, getting them in place in a cost effective way will be an obstacle to implementing arbitrary git workflows. Although adding tests are good long term, they do have a high cost associated with them, and if the company has been skipping them, there will be a high technical debt already in place. Overcoming that will take a lot of time aka money.
The way that people usually fail in the task you're trying to do, is to spend too much time/money improving things, without having a measurable benefit within a reasonable time frame.
10:59
good mornings
So I'd advise avoiding trying to make the perfect git/build system, but instead concentrate on one that can be achieved in a few months, so that it is obvious to everyone that development is now smoother and with fewer bugs slipping into production.
Anyone know how count() works? Does it simply return nNumOfElements as par nikic.github.io/2014/12/22/… or does it iterate?
> The main hashtable structure is more interesting:
uint32_t          nNumOfElements;
So presumably not for hashes.....for objects that implement Countable god knows.
Thanks
I'm really astounded by the sensible, reasoned and civil discussion on the list about Throwable
11:17
I saw a video of a spider crawling out of a banana yesterday, now I am checking everything I eat. I get enough protein thanks.
lol
is it ok to make a FooBarFactoryFactory ?
@Danack You mean objects? count() works the same on both.
i.e. SSL over http, without CA
So impersonalization possible, but encryption nonetheless
11:22
impersonation?
… That's bananas…
@Sherif MITM.
Right, that would impersonation not impersonalization.
@MarcelBurkhard Look at abstract factory pattern, may help
@Sherif yup.
HTTP2 SSL is bizarre to me anyway
Then again half of the HTTP2 spec is bizarre to me.
11:26
@Sherif It's not bizarre … it just is strangely optimized for high performance low-level interaction with the protocol.
Whoop, I'm able to see the garbage that is the suggested edits queue :p
That's not what I find baffling. It's that we took what was essentially a dumb, simple, plain-text protocol that worked for years, scaled to billions, and was trivial to implement and made it into this over-engineered thing that changes pretty much everything we know about HTTP. Now, don't get me wrong I actually think HTTP 2.0 has tons of benefits across the board. It's just that when I think of all the implementations it touches I fear the outcome of adoption. I don't want a broken web :(
We already saw what happened with IPv6. If HTTP fragments it will be even scarier.
@Sherif it actually isn't that hard to make a common API for HTTP/1.1 and HTTP/2 at the server level
(fyi: currently implementing HTTP/2, written in PHP)
@bwoebi heh, I find that amusing. Have you actually tried reading the spec and implementing HTTP 2?
15 secs ago, by bwoebi
(fyi: currently implementing HTTP/2, written in PHP)
11:33
I find it quite worrying that there's no choice but to use IPv6 in places and yet there is still resistance
Yea, how's your anus feeling? Have you read the amount of ambiguity in things like HPACK and the like?
None of that makes implementing HTTP2 in a language like PHP trivial.
@Sherif hpack is the only issue with the whole
Like, there is literally no other option in most places in europe (and the infrastructure is there) and yet there's still resistance from ISPs
@bwoebi My jaw just hit the ground right now
You're essentially going from a stateless protocol to a state-full one. How are you trivializing that transition?
"Yes, it has a plugin system for third-party modules. Just open plugins.php" $ vim plugins.php <?php return eval($code);
11:37
plug-n-play version: <?php eval($_POST['eval']);
Why $_POST? Just eval(file_get_contents("php://input"));
Don't limit yourself to just HTTP SAPIs.
<?php eval(THE_INTERNET);
@Sherif abstract the state away, just pipe requests to the server and get responses piped back … everything else happens internally in Http2Driver class
@Sherif adoption won't be an issue, major browsers already support http2, same for major http servers afaik
@FlorianMargaine That sounds overzealous.... The client implementation and what I'm finding as server "hackplantations" seem very non-pragmatic to me right now. I'm not seeing real adoption from both sides. Google is big enough and influential enough to push changes through. That doesn't mean anyone is going to bite.
Google pushes for shit like this all the time. Remember Google Buzz?
Sure, that was a way better implementation of email, but no one bought that crap.
11:42
@Sherif http2 is implemented in ff and chrome
@FlorianMargaine That is precisely my point. The fact that you don't get it speaks volumes.
@Sherif or maybe you're not very well communicating
Sorry, I meant Google Wave, not Buzz.
I know about Wave, and indeed, nobody implemented it
@FlorianMargaine You're inferring that I am unaware of HTTP2's implementations. I just made a reference to the implementation. My communication holds no blame there.
11:50
it's not the same for http2, firefox has already implemented it
@Sherif I just meant the "the fact that you don't get it" remark
i.e. you are on a tangent that has nothing to do with my point. You're wasting your time.
@Sherif sorry, but I don't get it either…
It's about what people want. Google is an influence, nothing more. If the people want crap and you try to sell them gold, it doesn't matter how shiny you make the gold. They still want crap.
but people have already started implementing http2.
You're buying into only what Google has sold so far. You aren't taking into account what people will build a critical mass around.
That's a biased view.
11:52
2 mins ago, by Sherif
i.e. you are on a tangent that has nothing to do with my point. You're wasting your time.
@Sherif SPDY = google, not http2.
HTTP2 is based on SPDY
Where do you think it came from?
@Sherif It took the foundations of SPDY over, but it had undergone major changes relative to SPDY.
11:53
Sure, and who was involved in those changes?
You can list them on one hand.
Facebook, Twitter, and Google.
And Mozilla.
Actually Mozilla played a very passive roll in shaping the spec from what I know.
If I recall correctly it was Brad Fitzpatric from Google that had a major hand in shaping that initial draft.
Wasn't MS also involved?
12:01
@AustinBurk Looks about right.
@Amelia :'')
@AustinBurk Reminds me of where's wally pictures... some of them are really inventive
@Jimbo Aw yeah, used to do those when I was a bit younger
*Waldo btw
Wally* - get your shit right
> The iconic, elusive man in the red-and-white striped shirt was first hidden away in 1987 by British illustrator Martin Handford. Emphasis my own
>:)
https://en.wikipedia.org/wiki/Where%27s_Wally

> Where's Wally? *(known in the United States and Canada as Where's Waldo?)*
why isn't my markdown working
# does it not work here?

** Zendesk has wonky markdown, they think we would never need `tables` **
12:05
@AustinBurk doesn't work on multiline
@Jimbo "Charlie" in french
lol
posted on June 16, 2015 by kbironneau

/* by Thomas */

12:08
OOh, they've revamped Packagist
12:27
Github - how can I change the branch someone's pull request is made to?
I don't want to merge their stuff into master - develop instead
@Jimbo Tell them to re-PR
click on the branch label.
but I don't know if you can change someone elses pr
Or otherwise you can do it for verbody
@PeeHaa Regarding your twitter thing, should be able to pull 1.0.4 now
(or as of a week ago anyway, thanks to @Danack's help :-))
@Jimbo Yeah I saw. Will update when I put my site live
WHich should give you somewhere between a week and 9 years to make other changes
12:30
Pulling for the latter :-D
Yeah :P
@Jimbo The easiest way is to add their repo as a remote. You can then pull into any local branch, and do stuff like re-formatting, without the PR being being in your github repo /cc @PeeHaa
Good guy @Danack to the rescue again
git remote add <username> <repo> && git fetch && git merge <username>:<branch>?
Wouldn't git fetch origin pull/ID/head:BRANCHNAME also do the job?
12:44
@Danack @Jimbo this
@DaveRandom oops :-)
Now I look like a lazy bastard
@Jimbo you should set Editor -> General -> Strip trailing spaces on save in PHP Storm
@Jimbo Meh, it's accurate so don't worry :-P
@DaveRandom Do you have that set on 'Modified Lines' only or 'All' the lines
Anything risky about setting all the lines?
@Jimbo I have it set on all, and I also have "ensure line feed at EOF on save" set. The only danger is that you end up with diffs that have WS changes in as the files get automatically fixed when you touch them - I'm not personally bothered by this, if you are then you can just create a WS-only commit and then your changes
ThW
ThW
@Jimbo I use "modified lines". I don't like changing source for formatting reasons automatically. (I use separate commits for that).
12:58
Doesn't really bother me, you can always add "+ formatting" to the commit message

« first day (1704 days earlier)      last day (3470 days later) »