« first day (1361 days earlier)      last day (3813 days later) » 

12:00
oks @Magikaas lemme try this
@Magikaas thanks for solving 1 biggest problem of mine
Good to hear, good luck with your programming :)
@Magikaas kindly look over this link
@Magikaas bro i need 1 more help
Have you tried it yourself?
yr i am a android developer
i am trying to make a webservice for myself searching
i dont know much about php
Oh yeah, I thought you looked familiar
I remember talking to you a few weeks ago
12:07
http:\/\/demo.kdtechnologies.in\/vk\/abstract\/abstract_1.jpg
oks
this is the image address
but it is giving \
What is the problem then?
ah the backslashes
1 message moved to bin
not getting why i am getting \
12:08
Sorry, that was making my eyes go funny
Haha :p
Because you json_encode it
json_encode adds those backslashes in there iirc
@Magikaas Are you talking to tiny-avatar people?
12:09
6
Q: Why is json_encode adding backslashes?

StevenI've been using json_encode for a long time, and I've not had any problems so far. Now I'm working with a upload script and I try to return some JSON data after file upload. I have the following code: print_r($result); // <-- This is an associative array echo json_encode($result); // <-- this r...

thanks @Magikaas
@SecondRikudo What do you mean?
@SecondRikudo Still doesn't ring a bell, what am I supposed to see there?
Apart from a person with a gravatar (random image as avatar)
If that is what you mean, then I don't see anyone with an avatar like that in this chat
@Magikaas When you ignore someone his avatar appears small in the user list
12:13
@SecondRikudo Ohh, I guess so then? I don't know who you have ignored, so I probably am, since I was responding to someone in chat just now
@Magikaas I know you were, and I know who it is too
Okay
TBH I don't know why I have him ignored, but if he's on my ignore list, there's probably a good reason for it./
Feel free to help him, but beware of help vampirism
heh .. same
Last time I spoke to him I told him to go try something himself before asking but he kept asking, that may be why. This time it was a small problem so I thought, eh, I can help him in a short time and get on with my life
12:16
If you people dont like that I ask query here
so I'll never ask
It's not that you can't ask questions, just that you have to put effort in, yourself, before you ask
@DevilAbhi Your questions are so simply answered, that it seems like you didn't even bother trying anything yourself
@Magikaas i dont even know a single word of php
kekekeke
12:18
n i make these codes by myself
@DevilAbhi then go learn the language first
i started my career 5 months ago
@DevilAbhi Then learn, read, inform yourself. How do you think the people you are asking these questions have learned this?
n firstly i have to become good in android
@DevilAbhi I selftaught php by practice, trial and error and google. Not by asking everything I could not figure out on a chat
12:19
thats why i took help from you people
Then do something in Android, not in php
dude i require webservice for that
don't try to use 2 unknown services at the same time, if you are not going to bother putting effort into learning them
You NEED a webservice, to make an android app?
That's new to me
Don't you dare make us look bad now, lol
@Magikaas I warned you, haven't I?
Yeah, I'm ignoring him now, I figured he'd be reasonable, but your instincts are correct
12:21
@Magikaas hehe most of the times yes. That is if you don't want to end up putting your API key in the sourcecode :)
oh there, a question: why did PHP5 remove the constructor being the function named after the class, and instead use __construct?
@HamZa In my opinion, an application should rarely do any business work in it.
@HamZa But you don't need an API key or even an API for every Android app you make, right? I mean, even for those games and such?
@FlorianMargaine For when you extend and want to override the constructor.
Also, PHP5 didn't remove it, it's still available.
@SecondRikudo the thing is, all the other languages do it like PHP4 did
@SecondRikudo yeah... doesn't work with namespaces though
12:23
@Magikaas Technically you don't. But say you want the user to be able to log in with his facebook account. You don't want to do the authentication process (with the API/developer key) on the android IMO
@FlorianMargaine I have no idea how other languages solved this problem.
@HamZa The application itself should do nothing but presentational work
Much like most of the business work is done on the server in a web application, and the client is only used to present the resulting data.
@HamZa True. But if he's learning Android, that means he should not be involving other languages into this, as far as I understand, if he DOES need a webservice, he can either make mock-data to use while developing the app and then focus on the business end of the webservice, to make it work properly
Ah found the link to understand where I'm going: thehackernews.com/2014/06/…
@Magikaas indeed, but if he's talking about "career". Then it might be possible that he's already been employed...
But yeah, I guess you would need a webservice for that
@SecondRikudo yup
12:26
@HamZa What are you implying? That he has prior experience with android or php? Or just that he has to make these things without even knowing how to, for a client?
I'd like to stop this discussion here. Nothing good will come out of it.
@SecondRikudo ok
@Magikaas, HamZa is from India, he's well aware of the "cultural" problem. Ranting about it will lead you nowhere.
@SecondRikudo hehehe I'm not :)
@HamZa You're not?
I was pretty sure you were.
12:28
Okay, not sure what you mean by that, but I'll stop about it, don't know why I went on about it as much as I did anyway
@SecondRikudo I'm the regex guy
Yeah, I know
@SecondRikudo the mixed blood
So wait, where are you from?
Jul 29 '13 at 10:51, by HamZa
@Mr.Alien @dragon112 I've got arabic blood, dutch and indonesian. I'm the mixed human being :D
I live in the netherlands, Amsterdam :P
12:29
Cool
@HamZa Huh
Not sure why I was confused then.
@HamZa There's just something about that guy that I hate. I can't put my finger on it, he just comes across as an ass cactus.
@SecondRikudo there was another Hamza who is indian AFAIK. Also "Hamza" is a name that you might encounter a lot in india
Certainly the way he seems to be saying "they didn't fix it in 5.3, look how irresponsible they are" pisses me off a bit. Compounded by the fact that he then goes on to say "we can help you fix you 5.3 installation" instead of just suggesting that people upgrade
@DaveRandom I don't know him personally. It's just that I was surprised that I didn't read it anywhere until now. I thought "Am I living under a rock?"
12:32
@HamZa It's not it. I thought you were from India since before fake Hamza came along, and I'm pretty sure we've had a discussion of some sort which implied that you were from India as well.
But oh well, it doesn't really matter
@HamZa It was reported to the security team, things don't get exposure until they are fixed
@SecondRikudo meh, I've never been to india and I've got no indian blood so far as I know :)
Although I did read about that particular issue the other day, I forget where though
might have been in irc
Makes sense
Good afternoon.
12:38
any one know how to work this out in php? y = 110.76x-0.066
The -0.066 is a small number
A negative power i think
user924016
?
Is that supposed to be 110.76E-0.066?
If so that is a horrible abuse of scientific notation
Possibly an equation with x as an unknown?
For a graph or something
Yeh I wondered that, x doesn't make much sense
x is an input
12:41
@StephenWolfe Wait... what?
Its an excel formula
What's the equation, exactly?
you said "A negative power i think"
@JoeWatkins Sorry what's the command to switch the cli php version on multi?
@StephenWolfe Please copy it directly from EXCEL then
12:42
@sec
@SecondRikudo i did
@Fabien rm -rf / I think
@StephenWolfe Well, y is a function which accepts an input x.
If there was only a way to write functions in PHP...
(Hint, you can write functions in PHP :P)
@DaveRandom lol. Fat chance. One of my old co-workers typed that on a production box and the boss shit himself :P
x and y are values on a power curve, I want to find out the value of y by giving the value of x
Fortunately he knew enough to not press return :P
12:43
@Fabien lolwut
45 secs ago, by Second Rikudo
@StephenWolfe Well, y is a function which accepts an input x.
user924016
^
Yeah. I asked him what the worst possible thing I could do in CLI was and he said 'This' and typed it out,.
Boss walked behind him and went... "Stfhffhf! WTF you doing!"
@SecondRikudo I am trying to work out how to create the equation so i can make it in to a function
$y = (110.76 * $x) ** -(0.066) or use pow()
12:46
@Fabien [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
@iroegbu what does the double ** mean in php?
@Fabien old co-workers, guess the boss didn't take it well? :P
@StephenWolfe power
Brilliant
12:47
@StephenWolfe It's a power operator, which you can't use before the as-yet unreleased 5.6
@Magikaas lol no it was a very relaxed work environment and the guy who typed it was our best sys admin :P
Use pow() for now
I spent ages working out second order polynomials and then realised it was better to use power.
@Fabien Again, was :P
@StephenWolfe MOAR POWER
@Fabien Was not meant too seriously, that was probably not want ended it, but it does sound funny. And extremely dangerous xD
@SecondRikudo Hahaha
12:48
@SecondRikudo He left a little after I did :p
@SecondRikudo does this look like i have it right pastie.org/9367708
@StephenWolfe No
lolwut!
@Fabien ahhahahaha
user924016
12:52
@StephenWolfe you should read the docs for each function you use
@SecondRikudo was i mean to have the brackets like that.
ok
My bad, check out how pow() works
@Fabien source php.env version [zts] [debug]
yeah just reading it.
I really don't think ** adds much value.
12:55
@DanLugg consistency.
Relative to what?
All other A ? B math operations have an operator. Why shouldn't power?
Why doesn't sqrt()?
@DanLugg I think it does... I prefer to see power as an operator than as a function imagine add(1, 2)
@JoeWatkins Thank you
12:56
@DanLugg sqrt is a single argument operation.
@SecondRikudo nth-root.
@DanLugg another syntactic sugar, nothing more
@DanLugg Not available in PHP anyway, you'd use pow regardless.
@SergeyTelshevsky I agree with that.
Ah it was right in front of me [TARGET=/opt/php] source php.env version|list [zts|no-zts [debug|no-debug]]
12:57
in my equation what would be the exponent and what would be the base?
Meh. I dunno. Perhaps I just don't use exponentiation often enough to see the value; any time I have, the pow() function is perfectly sensible.
I literally can't remember the last time I used pow().
16 ** (1/2)
@salathe Neither can I. I know I have...
12:58
:/
@DanLugg Yeah, I definitely have too. But... when... ...
the function expects two perams
@SergeyTelshevsky Why? no.
where did you get the 2 from?
13:00
@StephenWolfe 110.76X is the base, -0.066 is the exponant.
sorrey, thought you need square
@SergeyTelshevsky $va = pow((110.76 * $quantity),-0.066);
@SergeyTelshevsky that didnt work
Would you not need to POW the quantity with its power and then multiply by the first number for 110.76x^-0.066 ?
@StephenWolfe Define "didn't work"
@SecondRikudo was not my expected out out
13:03
Given the order that math has for its operations
@Magikaas Umm, yes, you're right
@StephenWolfe My bad (again) $quntity is the base
A*(X^B)
powers, multiplication, division, roots, addition, reduction
so the above^ would be your answer
13:04
thats to formula in excel
x = quantity
110.76*POW($quantity, -0.066) then
lol @Magikaas
Dangit xD
A bit big
13:05
Would make a good favicon though
tnx :)
guys. srsly...
@Magikaas thats more like it
RT @krakjoe: if I don't get a #phpnw14 ticket, I'll cry ... is that what you want ?
hint well and truly missed ...
you still didn't get one?
13:07
no :( I guess not obvious I'm asking because they on hold for everyone
Your own fault, you were given plenty of advance warning and nudges! :P
tickets are sold out?
I haven't had the money to buy a ticket anyway ... but figured it's in october ...
@salathe I think oversold more precisely ...
@salathe I think oversold more precisely ...
dude, my internet sucks ...
@salathe I think oversold more precisely ...
I'll be quiet again ... it works better if I don't use it ...
That's rubbish, I was holding off on getting a ticket.
It's working Joe. Just not showing you it is.
@salathe me too. I was hoping my company would buy one
now I have missed the boat
13:20
yay guys, hello everyone
@Fabien You should have bought one and if the company offered to buy you one you could have asked for a refund for the one you'd already buy.
Company bought would include accom though
tbh I had planned on asking firmly upon return from my holiday and if they were unsure I was going to buy.
^ +1 :(
Tis cool though. Joe and I have plans that day to hang in room 11 and discuss how awesome we are. It's definitely going to be way sweeter than hanging out with the rest of you drinking beer and discussing php et al! ... yup ... definitely... :(
has anyone here worked with FedEx shipment rate API ?
13:26
i have a philosophy question. We have some service which produce about 1k rows to database everyday, server is too damn little, 1 core of Xeon, 2 gb memory. But it's working, perfectly, we create some invoice with 10-20 rows to record, put it to db and all ok and nice. BUT sometimes, sometimes that cow put some records with 1-2 broken columns, for example it can put some timestamp as 0 (omg). With php-script all ok, can it be problem of machine overload or some mysql problems or something ?
databases don't make up the row contents, you have inserted data wrong would be my guess ...
are you completely sure that your input data is completely valid ?
yes 100% sure
you get 0 in timestamps when the value was not a timestamp to begin with
that's what "philosophy question"s look like?
13:30
i just need to know, can mysql be wrong with recording when server overload ?
@Abyss no, that's part of the definition of ACID
synced files <3 thank you @Danack
Good morning
Hey @ircmaxell
13:42
@JoeWatkins they didn't oversell
Morning, @ircmaxell
they just sold more then they thought they would, so they put on hold
Shame they can'tupgrade the venue
PHPNW is turning in to a pretty serious conference
they can
In that case fingers crossed.
13:43
they did a few years ago, but it was... different
Well hopefully they can again.
not for this year though
Well that hope was short lived :P
lol: while instead of IF eval.in/170507
@CSᵠ well, the page isn't loading.
13:54
hi i'm going to select my web domain so , there are a bunch of domain that are not used but i don't know what are they. so i decided to find it by giving a list of a suggestion domain to a php script and it find it automatically
is it possible
I'm afraid replacing "magically" with "automatically" doesn't make it work
ok people
@JoeWatkins how far are you from Manchester?
Let's say I a friend dropped a mysql database and I my friend only has a backup from a couple of months back, but I do have a huge ibdata file
Any chance on recovery like at all?
@FlorianMargaine no i have it's script
13:56
database was dropped and created again
Only empty
i wanted to know is there a better ways
@PeeHaa the huge ibdata file comes from when?
Joe is WAY south of Manchester. Below London.
or some website that suggest me something like that
@FlorianMargaine From the dropped database
13:57
@PeeHaa so, it's full?
Yes totally full, but the database in mysql is empty
@FlorianMargaine i fear, i fuck my webserver by this script
sorry for bad word
because it's check all four possible domain :D
four possible char domain of course
@FlorianMargaine So basically what happened is that a database was copied into the wrong direction. So an empty database has overwritten the full one. And now I have two empty databases. I do however still have a 60G ibdata file which should contain everything if I am not mistaken
@PeeHaa I'm no expert at mysql unfortunately, the best thing I've done was backupping the ibdata files and restoring them, and it worked...
@FlorianMargaine s/un//
14:04
@JoeWatkins ping me when you have a few minutes
@SecondRikudo <3 working with web interface of an accountancy packet... HOLY SHIT.. don't make it if you can't handle anything :D
@Naruto Eh?
Hello
Just to be sure, there's no way to export only certain functions from a file, right?
@FlorianMargaine Only based on ibdata file?
@Jefffrey "export"?
14:11
Ow wait entire thing
@SecondRikudo Like I have a file x.php and inside it I say: "only make the following functions visible".
Of course without classes.
@ircmaxell you know whether it is possible to restore from ibdata when database is dropped by any chance?
@Jefffrey No, that's not possible, and it sounds to me that you do want a class.
user895378
morning
morning
14:12
@PeeHaa I'm not sure. Try spinning up a new mysql instance, creating the table, and then swapping out the ibdata file.
guys, is it possible in WHM/cPanel to create an account with a pre-defined website/database?
@ircmaxell The issue I am having is that I think the drop and create database is also in the ibdata (if I understand correctly how mysql works) and that is something I do not want
ah, you want to roll back a transaction after it was committed
and I assume you don't have binary logging turned on?
yes
I mean no I don't have it enabled
I think
I have the following files in my data dir:
-rw-rw----  1 mysql mysql 59571699712 Jul  8 15:59 ibdata1
-rw-rw----  1 mysql mysql     5242880 Jul  8 15:59 ib_logfile0
-rw-rw----  1 mysql mysql     5242880 Jul  8 15:26 ib_logfile1
what about in your log dir?
without a dump, and binary logs to replay, I think you're SOL
14:20
Nope. Nothing in log
Damnit
user895378
@DaveRandom Does the Addr\Resolver do any caching of DNS results internally or do I need to handle that myself?
@rdlowrey It has a very simple memory cache that respects TTLs to the letter. It also has github.com/DaveRandom/Addr/blob/master/lib/Addr/Cache.php but that's sort of a sucky solution because it is implicitly blocking so that will prob get improved at some point
@ircmaxell God it sucks having to look at that huge file with all your data in it and no way to recover :P
tnx anyway
yeah, I get that :-/
sometimes the best lesson for backups is when you don't have them
user895378
14:29
@DaveRandom thanks
@ircmaxell The sad story is that I was copying the database to create a backup :P
Another notch for the bedpost @PeeHaa
@rdlowrey the other important point is that lookups are stacked, so if you ask for google.com, then ask for google.com again before the first lookup has returned, both lookups will be satisfied by the original request and a second request won't be sent. This plus cache means that (in theory :-P) only one lookup for a given name will ever be done within a given TTL period no matter how many application level requests there are for it
Morning.
user895378
@DaveRandom awesome. That's the behavior I was hoping for.
user895378
14:36
@LeviMorrison morning
Making the cache interface async could be... interesting
I'll have a look at it later
user895378
@DaveRandom I do have one beef ... I'd like to be able to modify the request timeout and server addr/port after instantiation (instead of inside Client::__construct) so artax can expose those options transparently.
user895378
@DaveRandom If I PR that is it something you're okay with? Would just be an additional Client::setOption(Client::OPTION_CONST, $value) method
user895378
Because the resolver is a dependency of the artax client I have to instantiate it before the http client for injection and have no ability to set those DNS options on the http client object (currently).
@SecondRikudo Working on a project.. Writing data to accountancy packet from client, but the interface to use this packet is shit :D
14:43
@Naruto Adapter?
@SecondRikudo What?
@Naruto If the interface is ugly, write an adapter to prettify it
You are getting the wrong picture...
adapter/wrapper
My application is clean and runs totally independent from the packet. But now data like orders and supplies not to be written to the accountancy packet.. But the communication interface written by the company that made this packet sucks :P that's the problem :D
user895378
14:45
1 min ago, by Second Rikudo
@Naruto If the interface is ugly, write an adapter to prettify it
wtf don't you understand about my application is fine, it's not me it's the other side?
Little melodramatic.
crazy tuesdays :(
@Naruto When your problem needs to interact with the "ugly outside world", you write an adapter over the ugly outside API
That way if the API changes or becomes even more ugly, you only need to change your adapter.
pastebin.com/m1BGjVJR @JoeWatkins @bwoebi halp!
14:47
Someones mother is going to get an adapter joke soon.
4
user895378
@Naruto People are trying to help you and it's clear from your responses that you need that help. Please don't be rude and resort immediately to "wtf don't you understand."
Woah. More flags than the world-cup.
@fabien ^^
@rdlowrey Yeh go for it. I'll look at refactoring the caching layer to allow for non-blocking so you could e.g. put a pgsql caching layer in place, also want to look at handling records that return multiple addresses in a more effective manner (at the moment just always returns the first one and discards the rest), which would be more opts I guess, but for a quick fix for that issue you may as well PR it because I likely won't have time for a couple of wks
The public API prob won't change with any of those things, except the Cache interface, which I guess doesn't affect you immediately anyway
@Danack You operating an older version of vagrant because :extra is now an array in :mount_options. Just incase you ever get that error.
user895378
14:52
@DaveRandom yeah, don't worry about it. I'll PR what I need when I need it. And don't worry about the async cache -- when I have time I can do that as well.
Your list grows :P
You'll need a PA just to keep it organised.
user895378
I'm just happy that @DaveRandom has handled the DNS protocol details so I don't have to do it myself :)
user895378
It's easy to massage things like that once the details are taken care of.
Dave's all about the massaging and touching.
Some of the rarely used bits in libdns are still buggy as hell, but none of those bugs affect Addr so f*ck it
Actually it doesn't support SRV properly atm which really needs fixing asap because that is actually useful
14:56
@DaveRandom where's the buildconf step?
I really do wish CLI wasn't so ugly in Windows. cygwin included.
@Fabien cool and np for the tip. tbh I think I was only putting that there to debug something that turned out to be a filesystem inconsistancy error on the host. Which was a bit scary.
@bwoebi oh, good point

« first day (1361 days earlier)      last day (3813 days later) »