« first day (925 days earlier)      last day (4249 days later) » 

14:00
@PeeHaa埽 I have tested by hand on a lot of different platforms
and I rely on 3pd testing
and I rely upon vetting of the logic
hello people
quick and simple question. I want to include stylesheet in my sitemap.xml
i use plugin on my WP blog
the plugin is written in PHP
i will give you the code of plugin
@ircmaxell kk
can I get some help to include this
@PeeHaa埽 can you give me tip on this one ?
@IceD The usage consists of exactly 1 single step :P
ok what step
i tried and got errors only :)
It's on the page you linked
Usage

Usage of these XSL stylesheets is easy, just add a line like this to the top of your XML output:
1
<?xml-stylesheet type='text/xsl' href='/url/to/xsl-stylesheet.xsl'?>
Let me know whether you like this, and what you’d like to add to these XSL stylesheets!
yeah i did that
but can get through the php
wait
take a look at pastebin i sent you
which line of code I add this?
14:08
At the top of you xml according to the usage item
but the file is not .xml it's .php
the .xml file is withing .php :\
@IceD then you just
echo "<?xml-stylesheet type='text/xsl' href='/url/to/xsl-stylesheet.xsl'?>";
???
  $xml .= '</urlset>';
  echo ( "$xml" );
how do i incorporate it in this
$xml .= "<?xml-stylesheet type='text/xsl' href='/url/to/xsl-stylesheet.xsl'?>";
isn't this some basic PHP-Fu ?
sure but i don't work in PHP
14:15
or am i missing something
so i have to come here as any other newbie
Oh ok sorry :)
and ask "dumb" questions
it's like you are really good as bike mechanic
come to car mechanic
and you get that "How don't you not know this? Are you not a mechanic?" type of look
@IceD well I automatically assume that someone knows the basics, which is "logic" IMO
yeah
14:45
Afternoon
evening
afternoon
night
morning
 
1 hour later…
16:10
hi,can i do this way: $query = $db->prepare("SELECT id FROM users WHERE email = ? AND registercode = ? LIMIT 1");
yeah... I wonder how many bugs are still in pthreads extension... I'd just reported the next...: github.com/krakjoe/pthreads/issues/104
@bwoebi Nobody knows how many bugs there are in any given piece of software :)
@PeeHaa埽 Yep, but what is really sucking is that those bugs are somewhere hidden where nobody encounters them for a long time...
@bwoebi It is an experimental thing for a reason ;)
16:26
@PeeHaa埽 PHP has also still bugs, but you don't name it experimental ;)
pthreads is something completely different. The fact that it even exists is as stupid as it is brave :D
I am tempted to tell the client to abort the migration
@PeeHaa埽 It's useful when you want to write daemons and don't want to use nodejs (I don't like this js syntax...) or compiled programs etc...
And daemons can be the most efficient if you use threads wisely.
@Gordon :-|
@bwoebi Don't get me wrong. threads are useful. It's just that implementing it in PHP is stupid brave
;)
16:41
@PeeHaa埽 why is it brave?
@PeeHaa埽 i told the client that I dont know how long it will take. I expected and told him at least two days. But given my current progress, I'd say it's just fair to let him reconsider.
user652649
evenings
@bwoebi Becuase working in threads in PHP is clunky at best
@Gordon Sucks to tell clients stuff like that
@Wes Evenings
@PeeHaa埽 well, I do believe the migration is more useful than keeping the application in the current state. but, the client has a tight budget.
16:56
@Gordon Yeah. Clients with a tight budget. I hear that a lot lately
@PeeHaa埽 he's a private person, so it's true in his case. although he makes some money with the application
@Gordon I was not saying it wasn't true. On the contrary. I really notice that people have less to spend
@Wes Unfortunately, this SME-music-content is not available in Germany because GEMA has not granted the respective music publishing rights.
17:00
@Wes are you trying to troll me? :)
user652649
@Gordon doesn't work either?
@Wes grooveshark ceased offering their services in germany due to too high cost. GEMA again.
user652649
:(
@Wes but im not in the mood for Judas Priest atm anyway :)
user652649
god no
17:03
I find her dance strangely entrancing :D
@Gordon is talking about Rebecca Black's dance
@Jimbo no. click the link. the wop.
user652649
please god no
:D
user652649
@Gordon every time you listen to rebecca black you make baby jesus cry
17:05
@Wes But I also make a lot of people happy and babys cry all the time anyway, so who cares?
user652649
people? happy? WHAT? :P
@Wes you have no idea. one of my friends plays this every friday as the first thing that day to his coworkers to boost morale :)
user652649
lol
@Wes :-)\
17:15
@Wes the TED talk is awesome. So insightful.
user652649
that's fantastic lol
@Gordon is he still alive?
@Ocramius very much so
@Gordon no accidents? Mutilation? Everything fine with him? O_o
17:21
@Ocramius yes. why?
just wondering :P
user652649
lol
user652649
a bit of me dies when i accidentally open fridays video
you guys are weird
the song aint worse than you regular mainstream stuff. its just much funnier because its so cheesy
user652649
depends by what your mainstream is. mine is "children of bodom" LOL
17:27
@Wes I can't listen to CoB when working. I start playing air guitar immediately => No typing done
mainstream at work is AC/DC
and I started to hate 'em
:D
user652649
i listen to soft music, classic music, just not dumb music :P
user652649
@Ocramius no!
user652649
@Gordon lol
@Wes too much rock/metal is too much
I now listen to bit-shifted sounds
17:29
been listening to open.spotify.com/artist/3QhNv79NoIvarU6N57GBzL all day long
user652649
best music while programming is electronica music, big beat... try for example "the crystal method"
user652649
runs smooth without bothering my neurons
@PeeHaa埽 Did you even try it? If you design your application a bit, it's not so bad...
user652649
@Gordon youtube.com/watch?v=hfUSyoJcbxU does link work?
17:33
@Wes Unfortunately, this video is not available in Germany because it may contain music for which GEMA has not granted the respective music rights.
@Ocramius we ceased our service …
@Gordon ah, the workaround for grooveshark is using a proxy only for the homepage =)
nvm then
user652649
^
@bwoebi Part of my job is knowing what not to try :P
user652649
also prodigy, chem bros, daft punk. serious shit
17:36
GEMA is one of the worst if not the worst RIAA bitches in the world
user652649
@Ocramius this particular song is too slow for my taste, but i'll give "Clask" a try. thanks
@PeeHaa埽 Then you might be wrong :-P
user652649
@bwoebi 11th commandment: @PeeHaa埽 is never wrong
pew pew! merge spree ended @_@
@bwoebi nice find ... well done
Good Evening ...
ping @PeeHaa埽 -t
17:45
@Wes added these to my list - will try and see how my brain brains with crystal the crystal method
user652649
@Ocramius also Orbital, Leftfield
user652649
Underworld
@Baba Hola!
@PeeHaa埽 how was your day ?
@Baba Slow as a sunday should be
17:50
this youtube.com/watch?v=Ws5bUQj4Aws is a pretty nice album to code to
@PeeHaa埽 hehe .. good time to sleep
@Baba You may want to check for DST on your answer about hours in a month
@PeeHaa埽 totally forgot ...
@Gordon Chill!
@Baba I did too at first :)
yellow
17:52
green!
Wow. Looks like people all woke up at the same time
Have you been sleeping together again? :pD
:)))
@PeeHaa埽 Well it should not affect much because the work hours would still be fix
@PeeHaa埽 Tatort coming up soon, so people will wake up
its start and end time that would be affected
my first visit here....Hi to all PHP lovers
17:54
@vinaysingh hello box
@Baba If it is not about work hours I would check the first date and last date for DST and adjust to hours based on that
@vinaysingh Welcome :)
@PeeHaa埽 true
@PeeHaa埽 one moment BRB
I like the notification sound.I have some problems with my code..
@Gordon This one is posting the -same- question again and again about CSRF, I don't want even to read the last one if is a modified one or not :(
http://stackoverflow.com/users/2201518/
18:11
@HamZaDzCyberDeV i wonder , if some day i will end up seeing a post which contains only: "Please help me, sir. I had error in php."
4
hahaha
@tereško check this one stackoverflow.com/q/16253347
well .. it could be worse ... it could have been closed as duplicate
@kaᵠ I might have deleted the thing
might have :)))
18:15
Evening puss!
evening!
eveling
leveling
General question: Is it really needed to have friendly urls on the Backend on of an app? I can understand frontend.
@markf no? :)
18:23
@markf I don't think so, but I do anyway, just so it makes things like bookmarking more friendly. I'd rather bookmark a backend URL that I can quickly and easily tell what it does based on the URL. But that's just me.
@crypticツ I use bookmarks only to bookmark things for example... And I never use the bookmarks once bookmarked :\
don't ever listen to me. I never know what I am talking about.
Also: as long as the page title is ok, any "smart" navbar should do, no? =D
Ok, thanks. Just wondering whether I should put the time in to do this or not. It does look nicer, but it's just one more thing that could break.
@markf If you already have the routing scheme setup for the frontend why not use the same thing for the backend?
18:30
Did anybody use oembed.js plugin which is used for embedding video urls. i have problems with the code of oembed.
18:43
@Wes may be true if you negate it...
@vinaysingh should you not be asking that in the JavaScript chat?
oh..sorry
@crypticツ I expect you to have at midnight UTC a next entry, then the weekend will be finished. An entry of the double size.
@bwoebi That's sexist!
@bwoebi chat has char limits. I can bitly the urls, but will only allow me to fit maybe 3 more in.
18:50
only headlines, top 'stories'...
@crypticツ Then do two posts, there's no excuse :P
Maybe I should make a Meta post, which I append to. I'm sure it will be closed within minutes though =o(
she has an excuse:P daily cryptic is send weekdays only
@kaᵠ yeah, the "Daily" should not be taken literally =oP
18:54
@kaᵠ sent, yes but it has to report about the weekend.
like some very short chronicle?
er, yes
coult work.. what do you say @crypticツ
weekend edition #1 ?
@bwoebi I'll see if I can browse the transcript quickly. It takes me about an hour for 1 day, so I would need to be doing it for 3 days (Sat/Sun and Mon)
ouch, lots of time @crypticツ do something faster
optimize damn it!
optimize
18:56
I need moar regex!!!
yeeehaaa
oww... sorry @PeeHaa埽 :P
@kaᵠ Sorry for what?
@kaᵠ for that @PeeHaa埽 nvm :P
@kaᵠ haha I get it now, Yeeehaaa @PeeHaa埽 roflcopter
i did that a few more times :P
20:21
Hi
This is awesome: look at this guys comment to my answer stackoverflow.com/questions/16264967/…
user895378
@hakre and @igorw sorry for slow response ... been out of town all weekend. I haven't used used stream_select on pipes at all really. I have had great success with libevent with pipes, though.
20:50
Am I the only one seeing the degree symbol in the query in place of backticks? stackoverflow.com/a/16267236/1592648
no, i see it too
edited
beat you to it =oP
also did some other corrections
questions is anyways
needs to be a flag "this is a wanky answer" on that anyway, gives a line of code with a half arsed "sort of" explanation. needs a better explanation as to why you shouldnt use spaces, and what back ticks to do help you
20:57
@Jocelyn you out of cv?
there also needs to be a flag "this is a stupid fucking question" that goes on to add "why bother asking this question? it has been asked hundreds of times on SO, and you even get a full page of google results if you type in your question as you asked it that are on SO... seriously, do some research before just thinking 'ill get somebody else to do it for me because i cannot be bothered'"
@bizzehdee we can dream of such features being added =o( But the power that be will say no, and that close votes are to be used instead.
m59
m59
21:18
$params = [':username' => $user];
$query = "SELECT id, passhash FROM users WHERE username=:username";
$dAdb->db->prepare($query);
$dAdb->db->execute($params); //this breaks it
What am I doing wrong??
That's pdo, btw.
i have reviewed 666 suggested edits
@m59 what do you mean by 'breaks it'? Error produced, nothing returned?
m59
m59
It stops. You can see the quick error pop up in the console. I'm not sure how to debug that sort of thing.
As in, if I echo something immediately after, I'm not going to see that.
I tried a try, catch block also, but same result, no error, just broken page.
@m59 Have you setup pdo to throw exceptions instead of silently failing?
m59
m59
ah, I'll try that.
And I messed with the chrome console, that error is definitely saying Internal Server Error when it reaches that.
21:28
@m59 That means a fatal erro in PHP has occured
m59
m59
right, and it's that line, that's what I am saying.
Well have you enabled exceptions on error?
WUT!?!?!
ini_set('mysql.connect_timeout', '9999999999999999999999999999999999999999999999');
ini_set('default_socket_timeout', '9999999999999999999999999999999999999999999999');
ini_set('memory_limit','9999999999999999999999999999999999999999999999M');
nice
@PeeHaa埽 needs moar memory!!
@PeeHaa埽 "monkey patch" may have been a little harsh
m59
m59
$dAdb->connect();
$dAdb->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$params = [':username' => $user];
$query = "SELECT id, passhash FROM users WHERE username=:username";
$dAdb->db->prepare($query);
try { $dAdb->db->execute($params); }
catch (PDOException $e) {
  echo 'Caught exception: ',  $e->getMessage(), "\n";
}
A monkey patch is a way to extend or modify the run-time code of dynamic languages without altering the original source code. This process has also been termed duck punching. Etymology The term monkey patch seems to have come from an earlier term, guerrilla patch, which referred to changing code sneakily at runtime. The word guerrilla, homophonous with gorilla, became monkey, possibly to make the patch sound less intimidating. The definition of the term varies depending upon the community using it. In Python, the term monkey patch only refers to dynamic modifications of a class or modu...
m59
m59
still gets a server error on the execute line
@m59 Enable error reporting and display errors
Also see your error log
21:35
@PeeHaa埽 NeinOverflow
@igorw :D
@m59 reaching through $dAdb to alter connection details seems like a really bad idea
wb
Evening @hakre
21:37
hi :)
yellow!
also , i died again ... that game hates me
@tereško What game?
what's that horse game @Ocramius ?
21:40
@kaᵠ hm?
clop?
yeah..
thanx
m59
m59
@tereško fill me in..maybe I'm trying to be too js like, but that seems to me a lot better than storing the connection as a global.
In other words, I did that for the encapsulation. $dAdb->connect(); sets the connection to $this->db so $dAdb->db is my connection.
you should be injecting the preconfigured PDO instance , or you should use a setter, that does not expose the internals, thus breaking the encapsulation
basically, you are violating Law of Demeter with no good reason
oh .. and if you are using mysql, then you should disable the emulation of prepared statements
m59
m59
Would you be able to give me an example? I'm reading about that, but it's hard to grasp. I'm an auditory learner, so this is hard for me (discussion helps). It's pdo.
how about just use MySQLi instead of PDO for mysql...
m59
m59
21:47
but I disabled emulate prepares anyway.
It's funny, I switched to pdo specifically for named parameters.
and now it breaks right there, lol.
@rdlowrey ah cool thx for message. just came back from trip as wel.
@Ocramius did you get "Game Horse Mode Unlock'd" ?
@kaᵠ nope O_o you're still playing that thing?
@Ocramius yeah... advanced like a snail with only the front legs, after a while the horse hot crippled :P (back legs dead) and can't control them anymore
@kaᵠ since you like nonsense: games.adultswim.com/…
21:57
@Ocramius wow :)))
dude, I was almost pro at nonsense
running around at cosplay events wearing a green box and screaming "I'm an alien" :D ah, good 'ol times
lol
9gag is ruining it. Now nonsense is mainstream
m59
m59
LOLLLLLL
$newVar = prepare, blah
$newVar->execute();
I was trying to execute the db
finally got error reporting on and it said PDO doesn't have such a thing as execute.
@Ocramius you have 3 wishes, you will fail :)))
also, i would like to note that has been weak this week .. there are lot of pending items in the backlog
wow, there are so many low quality "problem postings" (you can not even call those questions any longer) under the PHP tag, I can not find the correct words for that any longer.
insert british accent : i prefer to refer to those as "crap"
22:29
rubbish even
we should go on strike and not care any longer for one week starting monday morning 06:00 UTC.
The Daily @cryptic: BREAKING NEWS goes on strike, demands more votes! Bad questions getting out of control. SO declares state of emergency.
21
LOL, great weekend edition :P
what's that @igorw, your handwriting?
@kaᵠ indeed, it is
22:50
@igorw wow your handwriting supports Unicode :)
@hakre no, I used a small "o" character and put it in superscript
hmm ... could it be that my understanding og HMVC has been wrong all this time ..
would anyone here be willing to explain HMVC to me in his/her own words ?
accidentally broke this: games.adultswim.com/flight-adventure-online-game.html still flying 3000m ++
@Ocramius ^ :))
@kaᵠ you're sick :P
I'm really having a hard time understanding sorting of data structures in scala O_o
4
Q: Scala: what is the most appropriate data structure for sorted subsets?

Gregor ScheidtGiven a large collection (let's call it 'a') of elements of type T (say, a Vector or List) and an evaluation function 'f' (say, (T) => Double) I would like to derive from 'a' a result collection 'b' that contains the N elements of 'a' that result in the highest value under f. The collection 'a' m...

23:01
bah, suppose i better get some sleep. need as much as i can to force my self through the working day. seems every day my job gets more and more of a production line of installing stuff than actually doing any development work
@hakre the exercise here is not about using pre-existing structures :(
@Ocramius but creating your own ones?
user image
4
@hakre mainly sorting an existing one somehow... with existing methods in the data structure, so kinda weird stuff :) Won't paste any code nor ask for help, it was just a random rant :)
@kaᵠ there goes my evening
@igorw why ?
23:05
lol
@Ocramius rant le rant - it sometimes help to speak out and confess.
@kaᵠ because I have to play it now
@igorw loool, i'm a plane lvl3 :P
23:10
> Deprecated: Function ereg_replace() is deprecated in /home/imagetxt/domains/imagetxt.com/public_html/pictext-general.php on line 45
okay, the server is updated, but the website not.
now, if the website accepts input like "sourceimage=trafficsign1.png" should we look if directory traversal is possible?
is there a simple way to convert PDFs to HTML using PHP? i've started using the Google Drive API, but i was curious as to if something was easier?
Good example showing the US-American vision of the internet: customsigngenerator.com
@igorw broke it again (repro bug) flying supersonic @37.5m/s
23:25
so I all wish you a gn8
gn @hakre
23:38
Something that always bothered me; for (;;) loops forever. Wouldn't the absence of a condition expression be better semantically equal to false and thus not loop?
I wouldn't expect while { } provided it were syntactically valid, to loop.
@Bracketworks if you think of the condition as a constraint for the loop, then it makes sense to loop forever.
23:58
@igorw Yea, I suppose that way it's merely an unconstrained loop.
Guess I didn't think of it that way.

« first day (925 days earlier)      last day (4249 days later) »