« first day (1558 days earlier)      last day (3381 days later) » 

12:00 AM
iirc implementing that was relatively tricky
even if you just consider it for arrays
because you'd want to replicate foreach semantics and ... well.
probably would have to work on a copy to stay sane
> I find it fascinating that through the business lens, Google is competing with Facebook to sell more ads by going into low earth orbit.
 
12:20 AM
good evening guys :D
someone still alive? :P
 
12:35 AM
not really, why? ;)
 
well I tried googling for "How to make text with outline" "(...) stroke" in PHP, and my host doesn't seem to have imagick, so, what alternatives are there?
 
12:53 AM
Any other graphics related extensions available? (Assuming you want this as an old school image)
 
I can give my PHPinfo? :)
 
@Gizmo You can replicate the stroke effect in GD by rendering the text one pixel in each direction - so one up, one down, one left,one right. Four total renderings. Doesn't work well if you like antialiasing.
 
@NikiC Why wouldn't that make sense? It's the equivalent to function (array $a) { return $a; }, no?
Oh, you meant from a readability standpoint. n/m, carryon
 
@Charles I think one pixel is too unnoticable on a 6400x1800 image which gets scaled down to 640x180 :)
 
@Gizmo Yeah, you might need to set your memory limit a bit higher if dealing with that image in memory :)
 
1:07 AM
hello , i'm writing a parser for xml-like language (i don't want to use other parsers) i have a simple questions about the encoding attribute currently i'm assuming everything as utf8 no matter what the user type in the encoding attribute is that ok ? or do i need to follow the encoding that the user enters ? will there be a problem if i don't ?
 
Depends what your definition of OK is......how much do you care about people complaining about corrupted data?
 
that's why i'm asking if utf8 can handle every character will there be a problem
i tried parsing very weired characters the parser is ok with them
the parser is written in C
 
UTF8 can handle every character, but that is not the same as every encoding. For example the extended ascii encoding for the copyright symbol is the byte 0xA9, but it is encoded in utf-8 as 0xC2 0xA9 - fileformat.info/info/unicode/char/a9/index.htm
 
1:24 AM
i think that will make a difference only if the file is saved with different encoding right ?
 
@someone No. 0xA9 is not a valid utf-8 character sequence (aka way to encode a character) so whatever you are sending the 'parsed' data onto will object when you send it invalid UTF-8.
You need to convert the characters from the source encoding to whatever encoding you are using internally or saving the parsed data as.
en.wikipedia.org/wiki/UTF-8#Invalid_byte_sequences - I'd strongly recommend using someone elses parser. It's just not a good thing to try to re-invent.
 
particularly if you don't understand the difference between an encoding and a charset
 
the problem is i can't use other parsers because it;s an xml-like language it has loops variables so i'm parsing them with flex and bison i think i will use site.icu-project.org for this
 
Be sure to pop back in 3 years when the parser is finished then and let us know how it's gone.
 
the parser i'm writing is for Artifical Intelligence markup language, no it wouldn't be that long :) actually most of the expressions are finished i'm just having some problems with encodings
 
1:33 AM
you're having problems with encodings and so you're asking if you can pretend different encodings don't exist...
 
:) encodings are painful in c
 
 
2 hours later…
3:14 AM
Hello
please are they other database that php can connect to on Windows Server 2008 aside of sql ? I have a customer who really is worrying me about this
 
I am fairly certain MySQL will run on Windows Server 2008.
 
@Levi Yes but the customer does not want Sql. So i am not sure he will be willing to have mysql since they are similar. He said his system does not allow the installation of Sql Server
 
SQL Server is the name of a specific product, by the way.
So be sure to clarify if they mean any SQL database, or if they mean the Microsoft product named SQL Server.
 
@Levi Thanks a lot. Now if they do not want any sql database, is there any other database that can be used ?
 
There are other databases that are not SQL based, but I am not very familiar with which ones will run on Windows, sorry.
 
3:25 AM
@Levi Thanks a lot
 
user895378
Windows Server .... -____-
 
user895378
My condolences.
 
lol
Now the bank says Secure 2008 is a server different from windows server 2008. Please does someone know a server name secure 2008 ?
 
user895378
Devops rule #432: If a piece of software has "Secure" in its name it is almost certainly NOT secure.
 
what's #431?
 
user895378
3:40 AM
Rules #1-#431 are all some derivation of "if you don't know just go ask on stack overflow."
 
@JohnMax you really need to be sitting down with your customer to hammer all this out. If something is obscure, ask them for the details you need. Asking others to clarify what it is your customer might be talking about is a recipe for disaster.
 
"competent people know not to [implement security sensitive code]" --@ircmaxell, author of password_hash() http://t.co/2GulO2nqfq
 
Ok thanks
 
Does anyone know how to edi this code to create texts with strokes like here? The code currently does this.
 
user895378
3:56 AM
As a room owner I probably shouldn't add so many folks to my tiny avatar list ...
 
:P
 
@rdlowrey you're no good to us if you crack up. enlittlen however many you need.
 
user895378
Trying to figure out what's going wrong in Bob's php7 port of the php-uv extension ...
 
user895378
I made the mistake of going to the gym really late (which means I took my horse caffeine workout powder way too late).
 
user895378
It necessarily follows that I'm going to be jacked up writing code until very late/early.
 
4:05 AM
I asked this in the C chatroom but no one is active there, wondering if someone can answer it here
This may seem like kind of an odd or dumb question to some... If someone was to write a web application in pure C and serve it up using CGI do you think there would be extreme performance gains over using something like PHP or ASP.net?
I am trying to decide if it is worth the effort to build an application out of C. It could be a fun learning experience and a complete waste of time
 
zan
Good morning
 
user895378
I don't think it's worth the effort, no.
 
user895378
> The importance of a framework or library is not the amount of overhead that it has, but what it gives you for that overhead.
 
user895378
Web applications are mostly concatenating strings.
 
user895378
Unless you have a very extreme use case I don't see much value in rolling your own C web app.
 
user895378
4:09 AM
That said, learning projects are great. Knock yourself if that's what it is.
 
I am just pondering the idea of creating an OpenSource C CMS. From what I understand because C is a compiled language and is so close to the hardware level it executes extremely fast, so the hopes of the project would be to create the fastest CMS. I know that with proper caching and CDN's you can get extreme performance already but I think it would be great to try and make something that is just as fast, without the caching.
 
user895378
Sounds great. But if your goal is adoption then a high-level language probably makes way more sense. There are far more devs out there who can write in those languages and companies don't hire comp sci graduates to manage their blogs.
 
Although your always limited to the bandwidth so even with the fastest executing program the bottleneck would probably be the connection speeds..
 
Hey, @Sara, in HHVM are all methods and functions just special cases of closure, by chance
(And my baby has apparently removed my question mark and delete keys from my keyboard)
(I guess all my sentences for a while will be statements when on this machine)
 
hi friends..
I m yatishRaj
 
user895378
4:22 AM
@LeviMorrison lol Levi doesn't ask questions, he only declares things.
 
4:34 AM
^^
 
zan
4:44 AM
hi @YatishRaj
how are you doing
 
c9s
good morning guys
 
4:55 AM
@zan I am a Php developer......
 
zan
5:19 AM
lucky me too
 
6:17 AM
Mornings
Job inteview #2 in bout 45 min .. =]
 
 
1 hour later…
7:33 AM
morning
 
hi guys
hi @Patrick
 
posted on January 21, 2015 by kbironneau

/* by IcedLime */

 
vs7
7:55 AM
Any body with piwik experience
 
moin
 
8:18 AM
hi all
 
Hai all
 
hi
 
mommmmmmmrng
 
Who got projects dat doesn't work?
 
8:48 AM
good meurning!
 
hi all , how are you ?
 
mornin'
 
Smoking weed, Monnin mon.
 
I need to make a web application that i can upload excel sheets to it and it should output an analysis for this sheet and chart
I am beginner in PHP , i need anyone to guide me from where to start , what is the keywords to search about that , Is phpExcel can help me in this issue ? appropriate ur help and support.
 
8:59 AM
hello Guys, i need to integrate google wallet in my website
 
Good moanings, Room 11 :)
 
how can i do this, i am beginner and i wanna this on my site
 
@bwoebi where?
 
USE YOUR GOOGLE-FU PADAWAN.
 
mornings
 
9:00 AM
can any one give me links and some tutorial guide for learning and start for google wallet
 
I need to make a web application that i can upload excel sheets to it and it should output an analysis for this sheet and chart
I am beginner in PHP , i need anyone to guide me from where to start , what is the keywords to search about that , Is phpExcel can help me in this issue ? appropriate ur help and support.
 
hello Guys, i need to program a deep recurrent convolutional neural network with hebbian learning. how do i do dis. i don't know programming... pls help. is urgent
 
i think here all the member are only for asking questions, no member able to answer these questions
 
@LeviMorrison I guess it could go to vote. I've got no time whatsoever to do any FOSS work for the coming 2-3 weeks though, @NikiC said he'd be prepared to put a patch together at the time, are you still happy to do that? (ref: wiki.php.net/rfc/additional-splat-usage)
If so it's a simple yes/no 67% vote and then needs to be implemented (I understand that's relatively trivial though)
 
morning :)
 
9:03 AM
no morning dude
 
Also, @m6w6, I haven't forgotten about/abandoned the pending pq work, it's pretty much top of my list of things to do once I get this pesky RL-stuffz out the way :-)
 
morning
 
:( no one answers me
 
what type of analysis? @Bassem
 
@Bassem you might want to start learning PHP first? or go straight into what you need
 
9:07 AM
@Prabhash , it will read simple values and display it on diagram chart
 
great wait i`ll give you links, i hope this link is work for you @Bassem
 
@Bassem google is your friend
 
@MarijnvanGool i know PHP , i know how to deal with DB , Files
by saying i am begginer , i mean that i not developed advanced projects
@patrick
 
oh ok :) misunderstood it then
 
@patrick i already search but i thought that i can find quick help here :)
 
9:09 AM
http://pchart.sourceforge.net/documentation.php?topic=advexemple17
http://pchart.sourceforge.net/download.php
@Bassem this will help you
 
@Bassem phpExcel will let you read the data
but creating charts is a different part f the problem
 
download the basic library for it from the download links
 
@MarijnvanGool , no problem :)
 
then just upload csv and then generate chart
 
yeah, CSV is much easier to handle
 
9:10 AM
can any one answer of my question now
 
@Prabhash I am not sure if anyone here has done gWallet integration
 
@tereško and @Prabhash thank u so much , i will go ahead with these. :)
 
there are a much of materials here developers.google.com/wallet
but nothing php-specific
 
ohhhh @tereško
i have searched a lot but i got nothing
i wanna start from scratch
 
"more resources" section has github repositories
 
9:13 AM
that why i am asking
 
and one few of those are for php
 
ok @tereško
now i am going to search again and try to implement on my site,
and try to make my self first gwallet integration person in this room
:) :)
 
> This is a card game for people who are into kittens and explosions and laser beams and sometimes goats.
sold.
 
Hello
function setAction(){
var value;
var id = document.getElementById('id').value;
if(document.getElementById('action1').checked==true){
value = "Active"
}else if(document.getElementById('action2').checked==true){
value = "Inactive";
}else{
value = "other";
}
jConfirm('Are you continue?', 'Confirmation Dialog', function(r) {
if(r==true){
var strURL="process.php?task=setActionProposal&id="+id+"&status="+value+"&value="+document.getElementById('other').value;
var req = getXMLHTTP();
var obj='';

if (req) {
 
> Copyright © 1995-2003 by Digisoft Computers, Inc.
I'm supposed to work with this. FML.
 
9:21 AM
getting error here obj = JSON.parse(req.responseText);
 
@user4464505 E_JAVASCRIPT

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
@DaveRandom Well...
 
Also, if you are getting an error there it's because the response body is not valid JSON
 
> Windows ® Embedded Handheld 6.5 Classic
 
@DaveRandom Can I borrow your time machine sometime?
 
9:22 AM
I'm sorry for bothering
var req = getXMLHTTP();
 
and...
> Internet Explorer Mobile 6
 
@user4464505 you should be very sorry because you are posting in the wrong room.
 
Fuck. My. Life.
 
@Jimbo That's just Windows mobile 6 with the "mobile" crossed out and "embedded" written in though. It's retarded, but it's not as retarded as this thing, which appears to be some kind of macro-based DSL for VB6
There are almost no situations in which I'd say this but: I'd rather just work with VB6
 
lol
 
9:25 AM
@rdlowrey where is you bro dude?
 
@Jimbo That's not actually IE6 though, is it?
Surely it's like IE9 arch or sth?
Even IE8 is a trillion times better than 6
Obviously I'd rather not touch it, but needs must
Mind you if you are working with windows embedded, why would you use a browser?
Embedded systems are for native apps. That's almost the whole point.
 
Hi
everyboddy
 
@DejanMarjanovic Asleep, but he is still alive, he reappeared a few days ago
 
i have a one question
 
Is it "how much wood would a woodchuck chuck if a woodchuck could chuck wood"?
 
9:27 AM
@DaveRandom Oh, right-io, Dave mate, cheer-io :-) How is you GentleSir?
 
is that possible with paypal escrow integration in PHP ?
 
@DaveRandom Nope.. I can't get the actual version, but I see the default address is: \windows\iemo6_default_0409.htm
 
@DaveRandom Trolololo
 
I believe it is IE6, other sites have detected it as such
 
@DejanMarjanovic OK but v. busy, barely been here much myself recently, only here now because waiting for meeting
 
9:28 AM
Good fucking morning
(:
 
> Jscript v5.7 from Internet Explorer 8
So basically IE8 I think @Jimbo
 
is that possible with paypal escrow integration in PHP ?
 
4
A: payment integration

pivotal developerFrom what i know, Paypal does not allow escrow of funds but they do have adaptive payment products What you need would be the Delayed Chained Payments model to simulate the escrow model. The flow is as such: Send the Pay API request setting the actionType to PAY_PRIMARY Execute the Secondary le...

And please don't repost your question 1 minute later
That's the fastest way to get flagged for spam
 
so i need combine paypal and escrow integration right ?
so what's the basic requirement for that
 
Configuration read from /vagrant/tests/integration/phpunit.xml

.

Time: 40.86 seconds, Memory: 36.50Mb
I hate integration tests :(
 
9:33 AM
posted on January 21, 2015 by kbironneau

/* by jishi */

 
@DaveRandom Just did a check. It's detected as Internet Explorer 6 on Windows XP lol. It's a device that has a barcode scanner on it, so enterprise bollocks
 
@DaveRandom I'll look into it later today, if I don't forget ^^
 
@NikiC no worries :-)
@Jimbo Y U NO WRITE NATIVE APP???
 
9:51 AM
because
 
@AlmaDo Sorry, 40 secs for one test??
 
Long running PHP processes. Do you A) let them run as long as possible. Or B) Kill them for a fresh process every X amount of time?
 
@DaveRandom Because "suit nobs". Business dicks.
 
@Fabor Depends what the process is doing
You I tend to recycle workers, but not the master
 
It's just workers for background processing.
 
9:53 AM
@DaveRandom that's why I hate integration tests
 
When jobs come through the queue they process them. If there's no jobs it currently just waits.
 
It pisses me off a bit, this "The Web Is The Way" attitude that people have. Native applications are not evil.
@Fabor In general I recycle workers every n jobs (not time)
 
got a strange thing..
see this regex
but in php
output displayed is
OBKFA-4F26OR-JI3ALF-YI3QB4-ZN
 
The value of n varies widely, depending on the nature of the work
 
@DaveRandom Ah that's a good idea thanks.
 
9:55 AM
Why?
 
Adz
err guys, is it bad to use php in html? sorry I'm new to php and some people say no some say yes online ...
 
@AvinashRaj 3v4l.org/C69GY
\K doesn't exist in PCRE afaik
 
@Fabor I went with kill them after x with fire earlier this week
 
But also...
 
heh
 
@DaveRandom i had posted n number of solutions using \K.
all works for me.
 
Ahh yes, so it does, my bad
but still, works properly without it
 
hi friends I am yatishraj and i m a php developer..
 
Hey Yatish
 
is there any advantage of using :name in place in ? in prepared statements? one I can think is if I want to validate a user by name or email and that is coming as a parameter, then I can do "... where user_name = :name or email = :name", $_POST["user_name"]
 
10:09 AM
@argentum47 the same advantage as typing a website vs typing the server's IP address
 
emm
 
Is it good practice do put all your computations in a separate file?
to*
 
@MarijnvanGool what computations?
 
oh let's say I have a couple of progressbars, and i have to calculate the width of it as to how much it is filled in
$progressBarWidth = ($getPrefixes[$i]['pfx_used'] / $getPrefixes[$i]['pfx_capacity']) * 100;
it's just one line, but if I need to do more calculations i might want to put them all in a single file and call the functions from that file
 
@MarijnvanGool sounds like something that would belong into a viewmodel. If you can't do that, I would recommend passing the already calculated value into the template
 
10:14 AM
not really familiar with either viewmodels or templates, i can look into it
 
@Jimbo yes......
 
@YatishRaj In English, "Hey" is a greeting. I was greeting you. "Hey" = "Hello".
 
@MarijnvanGool what do you mean by not being familiar with templates? Are you currently writing all your php code in the same files at the html?
If so, have a look at mustache or twig
 
@Patrick No, not really, im rewriting my code into more readable functions
and classes if necessary
 
@MarijnvanGool are you familiar with basic oop?
 
10:21 AM
yes
 
@MarijnvanGool did you see this tutorial yet? Might be useful for you :)
 
Ok ..@Jimbo
 
@Patrick thanks :) all can be very useful for me, it's just that I started writing in PHP and got familiar with it, but you could say i'm still pretty much a beginner
not really into terminology you could say :P
 
PCRE has \R as shorthand for \r\n|\r|\n
Also @LeviMorrison when I upvote comments on php.net, a green bar appears at the top of the page that says "thanks for voting". (Chrome Win7 x64 at least) the "thanks for voting" text is a very light grey, so light as to be almost indistinguishable from the light green background of the bar
^ screeny
 
@DaveRandom Thanks for clarifying it is a screeny :P
 
10:28 AM
Just in case you though it was a picture of me or something
 
@MarijnvanGool that's fine. just keep learning and at some point you won't be a beginner anymore
 
:D
 
@Patrick when is that? :P
 
no idea
 
Is swapping tables an atomic operation in all rdbmses?
 
10:38 AM
I got a template recruiting email mentioning my PHP "escapes" library. pffffft
> Hi Andrea, I browsed through your escapes repo and wanted to reach out. I thought you'd make a great contributor to sharing career advice for software engineers, making it more accessible to people learning. I'm building a website to accomplish that.
If you think "escapes" is good my career advice is "stop"
 
I hate the words reach out
 
You should reach out to someone to talk about it.
3
 
moin
 
moin
 
moin
 
10:44 AM
@Jimbo I'm gonna reach out for my desk and pull myself out of bed
 
moi... damn someone ruined it...
 
@AndreaFaulds What is "people learning"
> making it more accessible to people learning
 
Bed at 10:45 am on a work day... I remember those days :(
 
@Jimbo they're alien cyborgs tasked with infiltrating humanity
 
morning
 
10:48 AM
morning
 
@Jimbo Yes..
that's how you do it right?
 
@MarijnvanGool What the actual f**
 
I need a cup of tea...
 
so british
 
10:52 AM
> This number is based on a blog post by Tony Marston (an active
contributor to that thread), which I cannot link to because his blog
is currently on the Spamhaus Block List.
bwahahahahahaha
 
that is pretty funny ...
 
11:37 AM
Does sorting include paths has any benefit regarding performance?
 
hi guys
am building custom paginator with laravel 4.2. I'm following Anthony Vipond Custom Pagination tutorial on youtube. Which is nice tut though am stuck here.
<ul class="pager">
<?php
echo $presenter->getPrevious($trans->trans('left'));
echo $presenter->getNext($trans->trans('right'));
?>
</ul>
The function above doesn't create links while getTo() and getFrom() return values.
It create an empty div.
Any help would greatly be appreciated.
Thanks.
 
12:10 PM
Any one here able to help with an issue I am having?
Didn't want to throw it on SO so thought I would ask if possible here first
 
@JustSteveKing just ask, if someone is interested he will throw in his opinion
 
@DejanMarjanovic Sorting how?
Oh, you mean the search path
Well potentially yes, but in the real world it's not likely to gain you much
It's basically just saving you a few stat()s
also, you should be using absolute paths anyway
 
Ok, so I have a login form. I pass this back to the same page to authorize. Once this was authorized I do one of two things : Redirect to the same domain as an authorized user or Redirect to a different domain as an authorized user. The only problem I am having here is I want to pass some of the $_POST data across so I can set the session variables to match
I want to keep the URL as cler and clean as possible
 
@JustSteveKing it's not possible. You have to directly interact with another server from your server.
 
There is no way I can [ass anything over in header() ??
 
12:19 PM
@JustSteveKing redirecting to a different domain or path?
 
A different domain - but same server
 
It's easier if it's the same server
But it's still server-server interaction
 
/me wonders if $_SESSION would work on both domains (same server)...
 
I thought about using cURL - but I would pass the data, and not be at the other end to collect!
No it doesn't (tested)
 
I see TIL
 
12:20 PM
$_SESSION only works per domain - which I am trying to find a way around
The only way I could think of way to use the file system, but that is not a great idea
 
@AndreaFaulds Was at the time ^^
I actually sent the message originally with the link and it got rejected.
@DaveRandom I'd rather just remove that whole bar ^^
 
@JustSteveKing I'm not sure what is the rightest way from the security point of view (if someone knows chime in) but the basic idea is this:
1. you authenticate user on the server-1
2. server-1 talks to server-2 directly saying that it just authenticated user-1 with token-123
3. you redirect the user to some page on server-2 and include some kind of token in the uri (in our case it's token-123)
4. server-2 reads the token, decides if it's valid and from that point it can send a new Set-Cookie header to the user to persist the act of authentication
 
@nikita2206 See I did do that - but I wanted a way to do it without cluttering the URI :/
I have to pass so many things over it would be massive!
 
URI is the only way to send any kind of data in this case. And BTW apart from server-server interaction actually there's the second option (which will clutter your url even more) - it's to use JWS token
Or just anything asymmetrically encrypted
 
Why can't server 1 POST to server 2
 
12:28 PM
Why don't you authorize on the other domain instead of the current one?
 
@LeviMorrison this is what he does now
 
I need to authorise on both domains
What I have is 2 restricted areas which a user can go to. domain1.com/foo and domain2.com/foo . To authenticate we go to domain1.com/login and then they login and create a valid session on domain1 -> now I need to pass this SESSION data over to domain2.com so that access to domain2.com/foo is available.
I can authenticate - but it means the autofill from session is not available
passing something like auth=1234 is simple and clean but all the session variables are not going to work :/
 
@LeviMorrison Yeh it is kinda redundant with the display change around the vote buttons
 
This seems like the same use case stackexchange has. I wonder how they handled it: ie when I login into security.SE and then go to codegolf, I automagically get logged in...
 
Same as using google and youtube I guess?
Complicated as hell!
If there was a shared domain I could pass data to quickly ...
 
12:33 PM
27
Q: Cross Domain Login - How to login a user automatically when transferred from one domain to another

smashedmercuryWe offer a number of online services. We are required to develop a system which provides a quick/simple experience for users if they are transferred from one service (on domain1.com) to another service (on domain2.com). Is there a safe and secure way to automatically login a user automatically o...

 
but then session would still not populate
@HamZa This is exactly what I am doing - but want to pass session variables
 
can't you store session data using an external solution (redis?) and fetch+write from there once the user is authenticated (doesn't matter how) on both domains?
 
@HamZa best option would be to implement OpenID
at least the most straight-forward
 
I see
 
hhmmm, quickest solution for now is query string. Implementing OpenID or some sort of OAuth would take awhile
 
12:39 PM
yes, openID would take some time to implement
 
I hope you're using HTTPS all over the place :-)
 
then again, if your bosses are asking you to make a complete solution in a day, then it is not realistic
 
@HamZa Yes I am using SSL everywhere - but also encrypting before sending anyway
@tereško welcome to where I work
 
nice
 
@HamZa Here is the encryption function I made : reddit.com/r/webdev/comments/2t5lfu/…
 
12:43 PM
@DaveRandom Absolute paths for sure, sorted as in.. grouped, whatchamacallit. Thank you for input!
 

« first day (1558 days earlier)      last day (3381 days later) »