« first day (1335 days earlier)      last day (3839 days later) » 

16:00
so thats not possible?
@DaveRandom I'd like some iframe that I can include on my website and not care about the rest
should be easy enough to make a generic widget for it that fetches stuff from the API
SO this just fetches content: api.stackexchange.com/docs/answers-by-ids
I dont know how should I be using it?
a'whibble
Cluck cluck, jibber jibber, my old man's a mushroom, etcetera.
16:03
I wish Rowan Atkinson was still young. :(
Not enough blackadder seasons
@Mahesha999 I might have a look at doing it shortly
@Fabien LOL
whois.domaintools.com/krakjoe.ninja quite a funny whois record, I think we can all agree ...
I do think it's pretty dumb you have to pay to keep privacy. Seems backwards.
16:18
i am new to php. i want to use it more on my website
it would be nice to use it with javascript
Unsure if there's a question forming here :P
:) there could be one soon. i would like to update my website. what are some cool PHP things i can start with?
I'd start by learning what PHP can do. Then decide what you want and see if PHP can help you achieve that goal.
Or decide what you want to do and see if PHP is right. Might be a more effective approach.
i think PHP is right. it is built in with my web hosting (justhost.com). i want to start making more interactivity on my site
im thinking of using Joomla as a basic foundation but using custom PHP to add some things
Well I can't advocate using joomla for anything other than practicing sudo rm -rf joomla/
16:28
what the cons about it that you don't like?
It's pretty terrible. I'd say that's a "con".
I suggest you start simple. Build a login system or something by yourself.
Hello,
Or a guestbook/forum kinda deal.
i can try that - a sipmle login and practice website all my own creation.
16:28
Yup
for a more serious site, do you recommend drupal? WP? somtehing else?
Or as Dan suggest. All are good tasks.
@nedshares No, no, and probably no.
I don't recommend any generic CMS/FrameWork
Not for learning.
Stick to plain PHP for as long as you can.
ah this is interesting. i never knew this. so within the dev community "in the know", the best practice is to not rely on these frameworks
16:30
Eventually you'll figure out yourself when to use those tools.
can php work with something like mongodb?
and javascript on front end
I have a question. First wat my mail confgured with a gmail adres... like [email protected] but I was using [email protected] to send mails.

When I receive a mail then I see in the 'from' bar : [email protected] for some reason now I receive from [email protected] ?

How is that possible? It's configured not to do that. With an answer-adres.

( I am using imap. imap.googlemail.com )
@nedshares Largely disputed. But my 'bias' opinion is "You learn more from writing than copy pasting".
@nedshares More-or-less. There are circumstances where they may be useful, but those situations are few and far between. And any non-trivial website/service is going to buckle under the constraints (and issues) imposed by a generic framework.
do you think this chat here is using PHP on the backend? or all javascript?
16:32
No, it's (I'm pretty darn sure) ASP.NET back + JavaScript front
interesting
im new to web sites in general (creating/building them). i found that my generic host (justhost.com) doesnt allow java backend, or node.js backend
pretty much PHP is their main focus
or straight HTML
also python backend is interesting
Well, get started with some PHP toy projects; guestbook/forum/whatever. Don't use W3Schools at all, and try to use php.net for most of everything (because tutorial sites often leave you needing to unlearn more than you learn)
Not sure if cool or evil - github.com/jeremeamia/super_closure
@Danack It's a cute idea, but it's finicky.
sounds like a good plan
when i learn PHP, i want to learn it right, with best practices, security built in etc
i hear so much about WP and other CMS having so many security holes
why dont they do it right the first time
16:38
@Danack If you could get the starting/ending byte offsets of a closure definition (when you reflect it) instead of just the start/end line, you could guarantee extraction.
@DanLugg Yeah, when are you going to submit a patch for that?
@Danack *shrug* Summer to-do list item #29384789273
Oh wait, that uses PHP_PHP. Should be solid (though possibly a bit non-performant)
understatement detected
@Danack Understatement indeed, it's more like item #298374892374982734897239847293847234
:-P
16:45
working with C++ here
is OO PHP possible or practical?
@nedshares yes.
so mainly a functional language - write functions and use them as needed -- oh wait, @Danack
...@Danack appears to say the opposite
Joe Watkins + procedural code, sitting in a tree, KAY-EYE-ESS-ESS-EYE-ENN-GEE
@nedshares Due to lack of a decent way to load procedural code, having everything (even stuff that shouldn't be) in a class makes life easier due to the niceness of class autoloading.
is it easy to make secure PHP code
@Danack - nice
16:54
For anybody here who is familiar with C and wants a quick laugh:
https://gist.github.com/ForTheYin/c8ad95a6851602a6c6fe
@echo
@echochamber, that looks intriguing
How to generate a segfault 101 lol
@echochamber that only works in kernel-space^^
@bwoebi right, I get that. It's not my code, just something I found really funny.
16:59
many C and C++ over-use pointers. they have a purpose, but many people go crazy with them
C and C++ people*
they reference and const reference are nice
the*
good point ...
Joe do you write a lot of PHP for websites?
So I'm (finally) going to get round to using queues for requests that are not trivial, e.g. image processing requests. Does anyone have a good example of what behaviour should be shown to the client? e.g. I imagine I should be redirecting the client to a status update URL, and redirecting (301/308) to a 'result is now ready' URL when the processing is done, or a 50x on error etc. but am guessing there may be some subtleties to the best practices. /cc @DaveRandom
@Ocramius if I'm hiring? Or available for hire?
17:13
crazy
@ircmaxell Going solely off your twitter feed, I'd be likely to believe you work for a camera company and dabble in tech on the side ;)
@ircmaxell Selfie driven development?
nah, due to a good photo, not a selfie
namely, this one
@SecondRikudo 1.) you need to store it as binary blob (which many do not know) and 2.) it executes code on unserialization which you should prevent with data from databases.
17:25
@hakre Why do you need to blob it?
@ircmaxell All your dog photos are awesome; they're very emotive.
Man return []; is not supported in php 5.3.20 or so?
return [
    [
        "name"      => 'index',
        "pattern"   => '/',
        "values"    => [
            "controller"    => 'Index'
        ],
        "type"      => 'GET'
    ]
];
PHP Parse error: syntax error, unexpected '[' in /home/rstopli1/public_html/web/Library/Configurations/Routes.php on line 6
Line 6 points on the return line
@BenBeri Nope - short array syntax is php5.4 - php.net//manual/en/migration54.new-features.php
Damnit, what should I do now >.>
just change [ ] to array( )
@DanLugg thanks!
17:39
Not interested in the domain ircmaxell.photography? @ircmaxell? :)
@DanLugg because PHP needs binary safe strings here, otherwise bytelengths will vary when connection encoding changes.
^^ Ah, yes.
ca. 90% of PHP users are probably missing that when they think: Hmm, why not store this serailized ... :)
Actually, they should use JSON then, it's easier to handle and to debug.
(IF at all)
i like JSON
17:59
:( I'm having to post xml to a server, what a nightmare.
18:10
@JosephCasey why? XML in PHP is as easy as creating JSON or an array
I started off learning js, so I transitioned into node.js for servers. Now that i'm learning php, all of php is a nightmare. It's absurdly different than the other languages.
should i have administrator privilage to turn off Server Signature
joseph, this is something im interested in, as i've been curious about node.js
im new to php too
i was reading about the MEAN stack - mongodb, expressjs, angularjs, node.js
anybody can help me
From what I understand PHP is not as efficient due to the need to end your server calls, and Node.JS doesn't require this. That said, far more companies have websites that use php than there are companies that use node.js.

Express JS is slowly losing it's necessity as node matures. Soon most node stacks will be a minimal MAN stack.
Sounds hot.
i am pasted this code in .hdacess file but my server signature doesn't turned off
# Disable server signature
ServerSignature Off
any idea
18:26
.htaccess is not used or the directive otherwise inherited.
user895378
@JosephCasey Define "end your server calls"
you do not need to be server admin and you can use it in .htaccess
@rdlowrey he thinks the internet is one big machine that never stops :)
user895378
I thought the internet was the cloud? What am I misunderstanding?
@hakre so how can i turned off
18:32
@JosephCasey nice explanation
It was? Really?
@cs
@cspray, are you referring to @JosephCasey's comment?
@Markberg Troubleshoot your issue. I normally call for the Sysadmin if I can't figure out it my own :)
how to Troubleshoot this issue
^^ Now that is a minimal-man-stack.
18:34
gggggggoooooooooooooooooooooooooooooaaaaaaaaaaaaaaaaaaaaaaaaaaaaaallllllllll
user895378
lolololol self-censoring my laughter to avoid offending people of less than average height.
@Markberg If I don't want to wait for the sysadmin to respond, I just read through all here: httpd.apache.org - most often I find it then if not even learn what I did wrong so far.
@rdlowrey LOL
the main problem is that i can not find httpd file
this is why i asked the question do we need administrator privilage
@rdlowrey I didn't feel right searching "midget stack", so I had to do it on my phone.
18:36
@rdlowrey Thank you. I appreciate your sensitivity to the plight of the height challenged.
@DanLugg I wouldn't feel right about that search for all kinds of reasons
@Markberg well I think you should really contact your server admin.
user895378
@DanLugg lol sometimes I go into pr0n mode to search for weird things like that because god forbid someone type "m" in my phone and see autocomplete for "midget stack"
eating some general tao's tofu
@rdlowrey I was more concerned about the NSFW in general, as I'm at W.
History is of no concern, big brother is though.
18:38
/at W too
user895378
@DanLugg Nah, just install a covert proxy server on a co-workers machine and you're all set :) yeah you're right.
@rdlowrey I could be entirely wrong because of my lack of familiarity with PHP. From my understand, Node.JS allows for everything to be run on a single process that stays active, unless forced to shutdown. As for PHP, I simply read that this was not possible.
0
Q: Why custom metabox value being added to the permalink

devoI have this code to add a custom meta box speaker to the custom post type event. /* |-------------------------------------------- | Speaker Meta Box in events |-------------------------------------------- */ function speaker_box() { add_meta_box( 'speaker', __( 'Speaker', ...

18:55
... Can you keep a PHP script running indefinitely?
@JosephCasey You found out more with your 422 response code problem?
@JosephCasey just as long as your OS runs.
Yea, the problem was my double HTTPHEADER for curl. The issue with not receiving an error after fixing that problem was due to how their server behaves. Their server sends out an sms. If the user (me in the testing instance) doesn't look at the sms then you can't send another sms.
Now I just have to set up variables to change the url and xml posts to account for 600 different varities of possible answers... 0_0
Yes, don't use constants for that. You perhaps just copied bad code.
Yep, I copied a broken script and tried to fix it from there by using the curl documentation. Usually error logs are specific enough for me to be able to solve any problems, but the documentation was sparse for this api.
user1994804
20:02
Hey @webarto I'd like to ask you about accessing array elements inside an object
user1994804
similarly to what we were discussing yesterday
user1994804
Plz lemme know if you're available
So, first game of World Cup started :)
user1994804
Nice to see u
user1994804
As we've established, I'm very novice so please bear with me
20:04
Beer? Yes, Erdinger on the table.
user1994804
Im wondering how I can access the PictureURL array that can be seen here: classifieds.your-adrenaline-fix.com/…
user1994804
Plz use Ctrl+A to see array
I don't know, @hakre is XML expert.
/me hides
user1994804
Mainly wondering how I can make use of the elements in the PicureURL array while skipping element 0
user1994804
"/me hides" No worries @webarto
20:09
I don't know, what else to say, not sure.
user1994804
@hakre if you could assist I'd be most grateful
@tereško You know? I think you'll thoroughly enjoy Code Review?
I have posted some replays there =P
@tereško I saw the one on mine
:]
also, my damned knee is itching
managed to do a horn-flip (it should be a technical term) on my bicycle last friday
20:19
@YourAdrenalineFix Yeah, that's an easy one. Don't use that var_dump() or print_r() output with SimpleXML, just use ->asXML() and see the XML itself. Then proceed as shown in the examples here: php.net//manual/en/simplexml.examples-basic.php
@JoeWatkins no, please have a look… I don't know why github.com/krakjoe/phpdbg/commit/… doesn't fix the tests but breaks it for all the functions…
user1994804
Thanks so much for the tip @hakre I've got to run out for a bit but when I return I will study that article in full. Many, Many Thanks
@webarto Actually @ThW is, when I read his answers :)
mysql under windows: db import took 1h:15m
the same computer, mysql inside vagrant on virtualized (virutalbox ) linux: 0h:13m
same dump. WTF.
@pce ping ^^
ThW
ThW
20:39
@hakre hehe, I am using it sometimes :o)
I like XML... So much hate.
@hakre Maybe you're using localhost instead of 127.0.0.1, it happens :P
If it's connecting and not keeping open connection... maybe.
Dunno.
@webarto nope.
ThW
ThW
@hakre how good are you with xsd?
I know-ish XSD.
20:49
@ThW good in which sense? reading it fluently and saying if an XML document matches by looking at it quickly?
How many basic types does XSD have?
ThW
ThW
@hakre writing it, I need to write one for the phpcss xml namespace ...
xml namespace?
why that?
I think it would be cool to have a shim for DOMDocument and querySelectorAll()
ThW
ThW
I build a visitor that creates an XML from the selector
that sounds a bit that you do that because you can.
Ahh, like zen?
20:51
no offence please :)
ThW
ThW
$dom->documentElement->nodeValue actually returns the selector again
now that's a nifty idea
hmm, let's see
ThW
ThW
hehe, I had a reason the demo app uses a xslt do generate a linked html from it
@bwoebi because Test::__construct() takes it's args by ref and stores the prop by ref. github.com/krakjoe/phpdbg/blob/master/tests/run-tests.php#L433 ends up using the same value for all the tests when you return an array, it doesn't when you yield because they are processed on the fly
what do you want to map on the XML elements then?
have you released source of the demo app yet?
ah now I'm getting eager to program as well.
20:53
@DaveRandom don't want to dig deeper in bad code with side effects…
ThW
ThW
@hakre Nope, but that's not much
@ThW well, consider putting it under AGPL so that copycats can't run on it.
I think it would be nice to have it as an example.
@bwoebi it looks to me like just removing the refs is safe, just open a PR though and then you can get Travis to run without merging commits that don't work
also I didn't understood all checkboxes and looking into source can help, too :)
ThW
ThW
I use MIT for most of my projects
20:55
@ThW you can use that, too. however I wouldn't use MIT for webapps (but that's really just what I wouldn't do)
I prefer 2-clause BSD
... then again, I am a FreeBSD user
I think @JoeWatkins may have had a moment of insanity when he wrote that, there's no obvious reason why the refs would be required and passing an object that is only ever instantiated once by ref makes no sense at all
Also @JoeWatkins generally gratz on one of the least legible pieces of code I've seen in a while :-P
btw, today I used the first time getopt in a bash script :)

« first day (1335 days earlier)      last day (3839 days later) »