« first day (2203 days earlier)      last day (2729 days later) » 

1:58 AM
I have a strange feeling Chrome is leaking memory…
It was using 20 GB memory for like 40 tabs…
 
2:31 AM
the times, they're a changin. and the memories, they're a leakin.
 
 
1 hour later…
3:34 AM
moin
 
morning all
 
3:56 AM
Morning all
 
Emails suck
 
:p why?
 
They're just shitty to work with. Inconsistent, annoying t debug.
 
ning
 
Hey Gordon
 
4:16 AM
\o
 
o/
 
4:29 AM
I need advices
gentlemen of the chat
 
@Valentincognito dont wear your underpants over your trousers unless you are batman
 
sorry I got interrupted, so hum how can I put this..
I am a web developer with no experience in mobile app development
and let's say I need to build a platform web + mobile app for Ios / android
do you guys have any recommendations about new technologies that would make my platform 'hybrid' without having to develop in objectiv C or java ?
actually I must say I am very confused about the whole mobile development process
I read here and there : native app / hyprid app / semi hybrid app etc...
 
see sitepoint.com/top-7-hybrid-mobile-app-frameworks - never done any mobile development though so I cannot recommend anything.
 
This one is good and easy to understand if you are new to mobile app development
 
have you already used it @BarneyStinson ?
 
4:40 AM
No I have worked on native app development never developed hybrid app! But I have read lot about this
 
(alert stupid question) when you use those frameworks then you can publish your app on the android / ios stores ?
 
yes you can @Valentincognito
 
@BarneyStinson As a native app developer what do you think about hybrid app development ?
what more native app development as to offer compared to hybrid ?
*has to offer
 
@Valentincognito It's awesome if we are hurry to launch a new app in some time limit otherwise I would prefer native. :p
 
okay I see
 
4:43 AM
@Valentincognito In native you can use each and every single services of the device In case of hybrid there are some limitation!!!
 
I can imagine
@BarneyStinson you develop android apps ?
 
Sorry we can't say limitation but if you want to use services then again you need to understand basic java concept for andorid @Valentincognito
Nope Currently I don't. I am working on PHP only. Before I have worked on android @Valentincognito
 
@BarneyStinson Android app are Java based right ? I have worked in the past (very little) with the spring framework. But is it the same ? I mean... if I have my web app developed with spring framework can I publish a native android app with it ?
sorry if it's not clear and my broken english
 
@Valentincognito it's fine! Again You need to know basic oops concept that's it. By the way you have google :p
 
yeah but google when you don't have the right keywords is a little hard sometimes
^_^
 
4:50 AM
HAHA @Valentincognito then I am here to make it right ! :D
 
sometimes I feel so stupid in front of the google search bar ^^
@BarneyStinson thanks anyway
 
@Valentincognito go for it !
 
I must say ionicframework.com is a beautiful website
designly speaking
 
Yes!! Agree @Valentincognito
 
Hi i have website in drupal in which there is a paid user registration i.e After filling all the details user has to pay some amount to complete the registration process and only after successful transaction user can login in my site.
Right now, I am using paypal as a payment gateway and my amount is in dollars($) but now i have to change my payment gateway because i have my clients in india and US so what i require is to auto change the registration amount displaying during registration according to the ip based on visitors country and also want my payment gateway pick that converted amount and currency and do the transcations according to that
.So please suggest payment gateway that automatically change currency according to ip.I have also used stripe but it didnot work for given requirement i.e INR.
 
5:01 AM
Taking 50~ minutes to receive an email -_-
plz
 
I would like to know, too. But I also need teh painment gateway to notify my coffee machine to uopdate the coffee quota we are allowed to draw from it. and a pony would be nice, too.
 
5:14 AM
@Fabor If not having any Credential Data then you can test on Yopmail
 
Thanks Barney
 
5:31 AM
hello
unfortunately, my question limit has been reached :'(
can anyone help me
i have a question
:'(
 
I dislike .htaccess. Can someone please give me the rule of /assets/* to /public/assets/* ?
  RewriteCond %{REQUEST_URI} ^assets/*$
  RewriteRule ^public/assets/*$ - [QSA,L]
?
 
5:48 AM
@Fabor you might want to put that in the httpd.conf though because .htaccess files are parsed on every request
 
Doesn't work currently though :(
 
RewriteRule ^ /assets/(.*) $/public/assets/$1 may this will work @Fabor
 
thanks barney
 
6:22 AM
Good morning!
!!rebecca
 
@Epodax Happy Prebeccaday!
 
He lives once more!
 
Wes
\o
 
Man, with only 2 days left of work it's hard to get into things.
 
6:37 AM
o/
 
morning
can somebody of you help me to create a good readme for my git project ? im not that sure what to put in and my english is not that perfect :D
 
6:59 AM
@Traxstar start with why, then add how. done.
 
@Gordon okay, i will try : D
 
@Traxstar do or do not. There is no try. And yes, I know dealing in absolutes makes me a Sith.
 
haha but you are right
i do ^^
 
question: putting ini_set("opcache.enable", 0) at the top of my script will cause it to never get opcached, right?
 
Wes
i don't think that setting can be set from userland
 
7:06 AM
it's PHP_INI_ALL but it will only allow disabling from userland, enabling will cause a warning. thats fine with me. I never need to enable it. I only want to make sure a one-time script is not cached because it would be a waste.
 
Wes
no idea. i don't think it works at all with ini_set but i could be wrong
 
> opcache.enable boolean: Enables the opcode cache. When disabled, code is not optimised or cached. The setting opcache.enable can not be enabled at runtime through ini_set(), it can only be disabled. Trying to enable it at in a script will generate a warning.
 
Wes
:P
 
Oh well, away it went.
 
7:19 AM
@Gordon can you have a look at the readme ? github.com/Traxstar/zendesk-API-Script/blob/master/README.md
 
@Traxstar good enough
 
thy
 
@Traxstar don't forget the what
nevermind, you already got it
 
@Patrick ähhhh what ? :D
 
@Traxstar "Traxstar start with why, then add how. done."
Too many readmes forget to say what it actually is
 
7:25 AM
@Patrick but i did it, or not ? ^^
 
yes you did, I only checked what your readme after replying :)
 
okay, thy :) would be happy if you got the time to have a look at the code :) give my best to make all clear and document it as good as i can
 
Related @Traxstar: I would stay away from using constants in the project
 
@PeeHaa so you would just safe it in normal vars ?
 
save*
And yes
Or rather I would make a credentials class
public function __construct()
   {
    define('ZDAPIKEY', '');
    define('ZDUSER', '');
    define('ZDURL', '');
    define('ZDPLAN', 10);
  }
^ that prevents people from using different credentials in the same request
 
7:28 AM
how could they use differenct credentials in same object like that ?
so you mean creating a credential class, and pass the class object to zendesk class ?
 
Yes
If possible
No idea how zendesk works
 
okay, i will try it later when i got the time.
Yeah i just need to work then with getters and setters i guess
and would you expect the construct of the credentials to pass the data ? like __construct($name...) or just "hardcode" set it like before just in another class
 
Anonymous
mon
 
morn @JayIsTooCommon
 
7:52 AM
@Traxstar Yes always
The first that is
 
Wes
\o morn
 
Anonymous
o/
 
o/ wes
 
morning wes
 
mornin PeeHaa,Jay
 
7:54 AM
Yet again an earthquake in your country? @Wes
 
Wes
yeah
 
Anonymous
moin jimeboob
 
momring
@Wes Where did it happen this time?
 
Wes
same place of previous, it's part of the same series
 
7:57 AM
@Traxstar I would expect something like this where you setup your credentials and pass them into the thing that needs it
 
Wes
we have a serious one each 5-10 years tbh. we are used to it. villages made 200+ years ago are all cool and stuff but i think people shouldn't live there anymore, unless buildings are actually restored to be earthquake proof
 
\o
 
hey sean
 
Anonymous
o/ sean
 
Wes
\o
 
Anonymous
7:58 AM
!!wotd
 
delectation: delight; enjoyment.
 
Wes
diletto/dilettazione ^ not a word of the day in italian, just a common use one :B
 
Anonymous
@PeeHaa but but, he would appreciate it if you didn't ?
 
Reason the more to kill it off and make all his hopen and dreams go poof
 
Wes
8:05 AM
anyway i need some oop tip. i have a strategy pattern thingy involving potentially dozens of strategies. i've reached the point that generating classes using eval() would be much easier :B basically each method has one or more potential implementations and each of these is almost completely independent from other methods
in other words the strategy is the single method, eg i'm gonna need to do
$obj->setMethodStrategy('methodName', $methodImplementation)
$obj->methodName()
i am fucked, right?
any idea how i could improve this?
 
UI\Size and UI\Point
these are interchangable, and it's useful to interchange them
 
Wes
moin joe
 
a common thing to do is to check if a point is within the bounds of size, or vice versa
what should the api look like?
moin
$p->x >= 0 && $p->x <= $size->width && $p->y >= 0 && $p->y <= $size->height
 
wtf level friday
-2
Q: How to retrieve password from users using facebook-sdk-php v5

Jese DennHow can i retrieve the password? I look up on reference but password is not indicated does anyone knows how to retrieve the user password? $profile_request = $fb->get('/me?fields=name,first_name,last_name,username,email,birthday,gender,picture'); $profile = $profile_request->getGraphNode()->asAr...

 
$p->within($size)
?
where lower bounds are omitted, they can be assumed to be 0x0
is it strange to have the upper bounds as first arg?
 
8:20 AM
@JoeWatkins What is size? A collection of points?
 
just width and height
and point is just x and y
 
@PeeHaa If you know the answer, could you tell me please? I'd also like to know how to get people's facebook password :D
 
:P
@JoeWatkins How about $size->contains($point);?
Although size looks stupid in that case
 
Wes
$rectangle->contains($point) :B
 
Exactly
 
8:27 AM
Rectangle has an origin
3rd time lucky
 
lol dat edits
 
Wes
$plane->contains($point)
 
Even better
 
well yes, but we're not choosing variable names
we're choosing the method name ...
 
Wes
i like contains
 
8:28 AM
and it should be same for Size and Point
 
Yes but Size and Point are not related
 
point::contains doesn't make much sense ?
ah but, they actually are
 
plane::comprisesOf
 
Size defined size point is just a point :)
 
@PeeHaa did you know? Facebook (and the Stack Overflow chat for that matter) will automatically mask your password when you put it in a post. See, this is mine ******************
 
8:29 AM
asshole!
 
:D
 
:P
 
the words are loosing meaning
 
hunter2
morning! :)
 
8:30 AM
@Gordon Fun times when we did that on msn when we were young
@pmmaga o/
 
look at the diff of starfield, a lot of the work you do is this kind of calculation using points and sizes
 
Wes
.123_.your.mom._123.
did it work? :B not my actual password
 
@JoeWatkins Indeed, but this discussion betrays a more basic problem: it doesn't usually make sense to ask if a size contains a point. Points are generally based on the window rectangle, and a size doesn't have a position. As such, I think that containsCoordinate() or something would make more sense, something to make it clear that it's only checking if the point exists relative to the as yet unknown origin of the size
 
Wes
/me goes change it
 
Anonymous
:P
 
8:31 AM
maybe the method names could be different, they'd do the same thing, but if it makes it easier to read the code ..
 
@JoeWatkins fyi: I decided that I will only add an endpoint like the fpm scoreboard to my extension for now that will give me the opcache stats when I call it.
 
yeah that'll work, only really basic stats though @Gordon
 
Not sure I understand. What wouldn't I get?
 
I wonder if we can overload spaceship operator
@Gordon you can only get what opcache stores in globals for itself
 
@JoeWatkins My vote is $size->containsCoordinate(int $x, int $y) in fact
 
Wes
8:34 AM
@JoeWatkins yes. i think
 
which isn't much, it's only a basic allocator
@DaveRandom breaking apart the point defeats the purpose ...
-		$hWidth = $size->width / 2;
-		$hHeight = $size->height /2;
-
+		$hSize = $size / 2;
-			$k = 128 / $star[1];
-			$px = $star[0]->x * $k + $hWidth;
-			$py = $star[0]->y * $k + $hHeight;
-
-			if ($px >= 0 && $px <= $size->width && $py >= 0 && $py <= $size->height) {
+			$pos = $star[0] * (128 / $star[1]) + $hSize;
+
+			if ($pos->x >= 0 && $pos->x <= $size->width && $pos->y >= 0 && $pos->y <= $size->height) {
 
@JoeWatkins Then it needs to be really clearly documented that if you do $existingControl->rectangle->size->contains($point) it's not going to do what you might expect
i.e. if that control has an origin at 12, 12 and I pass it a point of 1, 1, that's going to return true even though the point I refer to (in terms of the window) is not within the control
 
I've confused myself
t
 
@JoeWatkins that'd be good enough for now I think. it's what these various foss monitors, like @PeeHaa's use, too. Or?
 
I basically use opcache_get_status():
 
8:41 AM
yeah it's all they can get ... with ^
 
yupp, thought so. will do.
another question: when using add_assoc_str, will the char* used for the keys get interned?
 
wat of the day
 
also the str macros are not binary safe, we avoid them internally and use ht api directly
 
    $filepath = Config::get('app.documents.dir') . "/../instructions/" . microtime() . ".xml";
    if (file_exists($filepath)) {
        sleep(1);
        $filepath = Config::get('app.documents.dir') . "/../instructions/" . microtime() . ".xml";
    }
2
 
8:45 AM
hahahaha
 
@JoeWatkins would it make sense to intern them when I am creating a structure like [ ["foo": 1], ["foo": 2], … ] ? and what's the ht api?
 
or use _ex, if takes a length it's binary safe ...
hashtable api
 
ah
 
That is just awesome @Sean
 
omg who does that @Sean
 
8:46 AM
I dont understand the point of what @Sean just posted lol
 
It's a perk of the job, finding snippets like this every day in this codebase.
 
@Gordon if you're going to keep making the same structures, then you want a string table (or structure) in your module globals, you don't really want to use interning as it only works sometimes ...
 
@Sean halloween code
 
(not in zts, so not during testing on travis)
 
At least you have something to do :)
 
8:46 AM
Does it explain anywhere why it had to sleep then read again?!
 
ThW
Morning
 
or i should say "Why the developer thought it was a good idea to do that"
 
or if you are really brave, you could have a properly global strings struct outside of module globals, allocated persistently ...
 
@MarkPhillips Or rather: is he/she still alive
 
tbh though the kind of savings you get from doing this are not usually worth the additional complexity ... putting them in globals is enough ...
 
Wes
8:49 AM
@JayIsTooCommon === justin bieber, right?
 
(still allocate persistently because you don't need to do refcounting, free in rshutdown, and alloc in rinit)
 
hi every one
 
@PeeHaa you're saying that after they coded that wonderful If Statement there, the "Coding Gods" put a curse on them to punish them by death at a random interval? - Yeees.
 
Anonymous
@Wes I think that's just @PeeHaa's fantasy. == maybe, my type isn't God, yet.
 
Either said gods or the developers after them :)
 
8:51 AM
i want to customise message alert in symfony
when i add or updated edit an entity
i use sonatadminbundle
 
'Message alert' is client-side
As in, JavaScript
 
@JoeWatkins thanks
 
Wes
i'm making your avatar. and i realized i was staring at justin bieber
 
its not really alert
 
@Wes Do we have a lmgtfy in jeeves?
 
Anonymous
8:52 AM
lol
 
message
 
!!list
 
!!command list
 
Thanks
 
ugh wtf
 
8:53 AM
Jeeves is dead
 
some thingns like this
Item "AppBundle\Entity\Product:000000004284b7de00000000791d9693" has been successfully updated.
 
I will wait for @DaveRandom this time
 
@AitFrihaZaid Why would you alert that to the user?
That's a dev-only message
 
Anonymous
!!uptime
 
sonataadmin make this
 
8:53 AM
For some reason it got worse
 
by default
 
Anonymous
@Jimbo yeah, but i disabled it for this room
 
I think @bwoebi added extra debugging info
 
ok
thanks jimbo
i use sonatadminBundle
this bundle who mak this handling
 
8:56 AM
Hey guys, I'm playing around with storing images on the server, and there's a scenario where I don't want the clients to know where the image file is stored. Is delivering an image via php fopen has a downside? images are stored at /images/(date)/file.jpg and I will have them show up as /category/file.jpg , php page will do a mysql look up on where the file is then do the fopen and show the file.
 
morning
 
@Darius s/fopen/readfile
 
the reason I want to do this is a post can expire, so i don't want the image to be shown anymore to the public, but if it's renewed i am ok with showing the image again.
so was debating between s/fopen/readfile OR just moving the file to a different location
 
@Jimbo hows düsseldorf?
 
8:58 AM
@PeeHaa god damn it
 
I know :(
 

« first day (2203 days earlier)      last day (2729 days later) »