« first day (762 days earlier)      last day (4202 days later) » 

7:08 PM
@Christian Perhaps there is an advantage there, but C will always win. I promise. I would be very surprised if C ever died. I believe it will live forever.
@MadaraUchiha Not true. We did a mixed refactoring and mixed rewrite on certain portions. The portions that were rewritten completely were the ones that were known to be buggy and we needed extended features for. The rest we refactored. Guess which task did better? The refactoring.
We introduced way too many new bugs in the rewritten portions. The refactored versions had few new bugs and but fixed considerably more than were created. The rewritten portions can't say the same.
 
@LeviMorrison Refactoring works well if you have very well defined units, which you can safely tinker with without affecting anything on any other parts of the application.
Which wasn't the case for his 12 years old, 100k LoC, no unit tests monster we were discussing.
 
@MadaraUchiha Not true. You take the root pieces that can be tested and start testing them. You refactor those and work from there, picking the next simplest pieces that use the tested portion.
@MadaraUchiha Our monster is fairly similar, but not quite that old.
I will hardly ever suggest rewriting an application from scratch. I would do so only if the application is fairly new and is hardly used.
 
@LeviMorrison Good luck doing that on a mega-sized 100% procedural application :X
 
is there any difference in using favicons when its for my wp stuff
 
@MadaraUchiha Procedural code can be tested, but it's not as easy.
You'll have fewer unit tests and more integration and system tests.
 
7:15 PM
@benlevywebdesign The use of favico is only for people to have a visual icon for your site when placed in their bookmarks/tabs.
 
So no, there is no difference between a WordPress site from any other site in that sense.
 
@MadaraUchiha To set one is no different then a regular site
 
@MadaraUchiha Fine then moderator will have to open it. Flaged. — Joe Schultz 2 mins ago
Good luck with that! lol
 
7:18 PM
tis just this code <link rel="shortcut icon" href="images/favicon.ico" > but doesn't seem to wanna work for me
 
@benlevywebdesign In the <head>?
Try just "icon" without "shortcut"
 
@MadaraUchiha yus
 
@benlevywebdesign Also, try clearing your cache (CTRL+Refresh usually does the trick)
 
Or even better open the favicon in separate window and refresh
 
This one too please.
Nice spotting @Baba, when you're sure a question needs to be closed/deleted, don't be afraid to link it here with a or tags like we do.
It would allow us to close it faster, before it lays eggs.
 
7:26 PM
hey guys, anyone can answer this please? stackoverflow.com/questions/13420761/…
 
@MadaraUchiha Hmmm?
 
@user1406071 The external server you're sending the request to is responding with a 500 error message. I think the error was crystal clear on that?
@benlevywebdesign ?
 
@MadaraUchiha so its 100% that the expertnal server gives me that error?
 
@user1406071 Their code is broken, that's true. It might be that your input is the cause, try sending different requests with different parameters, and also try accessing the server directly with your browser.
 
rad
can I ask a .htaccess question here?
 
7:30 PM
@rad Don't ask to ask, just ask.
 
rad
I need to allow access to my website only from 2 IPs
How do I do that ?
I tried..
Order Allow,Deny
allow from 74.113.164.226
allow from 184.75.19.210
deny from all
but its denying everyone
 
Are you sure your IPs are correct?
Try allow from 127.0.0.1 and access it from the same machine
 
Order deny,allow
Deny from all
Allow from 74.113.164.226
Allow from 184.75.19.210
@rad
 
rad
@MadaraUchiha yes, the IPs are correct
 
@MadaraUchiha Nothing yet....
 
7:32 PM
good evening
 
@benlevywebdesign Have you tried what I told you?
@Jocelyn evening
 
@MadaraUchiha Yep
 
@benlevywebdesign Link?
 
rad
@MadaraUchiha allow from 127.0.0.1 ... works, but I dont know how that will work, will it block everyone except 127.0.0.1 ?
 
7:33 PM
@rad Try what @ShaquinTrifonoff told you first.
 
user1125394
@rad what is your site?
 
@MadaraUchiha it doesn't show in firefox but I checked opera and got my main site one
 
rad
@ShaquinTrifonoff is that suppose to block localhost?
@cyril its an admin panel
 
@benlevywebdesign I get a 404 when trying to access your favico.
Make sure it's really there.
 
7:35 PM
Note that wordpress uses prettified URLs, use absolute paths.
 
@benlevywebdesign http://benlevywebdesign.com/templeisrael/images/favicon.ico shows a 404 error (a 000Webhost 404 error)...
 
@ShaquinTrifonoff try again, it should be tifavicon
 
@benlevywebdesign Are you Israeli or not? :o
 
user1125394
@rad is your panel publicly accessible?
 
@rad This isn't the way.
 
7:36 PM
@MadaraUchiha no but I am jewish
 
What would happen if you want to for some reason, log in from a different computer?
@benlevywebdesign Still fails.
Are you sure it's found on /templeisrael/images/tifavicon.ico?
 
@MadaraUchiha got it
 
@rad It denies access to everyone except those IPs, so add Allow from 127.0.0.1 if you want to allow localhost.
 
rad
@cyril nop
 
user1125394
7:54 PM
@rad so you want just to protect it from local network?
 
rad
I got it solved :)
it was..
Allow from 127.0.0.1 x.x.x.x y.y.y.y
thats all :)
just that in the .htaccess file
 
@rdlowrey Very informative, but you haven't addressed the original question at all.
 
user895378
8:06 PM
@MadaraUchiha Good point. I was incensed by the other answer. I'll add to it.
 
I'm having a Wordpress problem... can't get older/newer posts links to work properly when only showing one category. Can someone help? :)
 
@rdlowrey then add a disclaimer , that it is not an answer , but a long form comment
 
user895378
@tereško :)
 
Anyone knows a very quick place to host a single PHP file free and permanently?
 
8:19 PM
pastie.org
though there might be an "remove inactive" limitation
 
@MadaraUchiha Have it run, or just show the code?
 
@Lusitanian Any reason for the bounty on stackoverflow.com/q/7893581/538216 ?
 
@ShaquinTrifonoff Only have it run, without showing the code
(I need a location header)
 
I'm getting rep from it, but I want to know if I should revisit my answer.
 
@MadaraUchiha I use HourB.com for my site. Although, I think it suspends inactive accounts.
 
8:20 PM
It's been a long time since I've really looked at it.
 
@ShaquinTrifonoff I use zymic.com, but that's hardly "quick"
 
@MadaraUchiha So you just want to paste code in, and have it stored and run permanently?
 
@ShaquinTrifonoff Exactly.
 
Hmm...
I could make one :-)
 
8:36 PM
Hey all, does this seem reasonable for a 32-bit safe way of casting to int? Assuming that what I am bothered about is a sensible result when I eventually pack('N') it later on:
$long = current(unpack('N', pack('N', (float) $long)));
When the input is '4294967295' the output is -1 which is correct, as are some other random values I've tested, but I've only tested on WinXP because I don't have anything else with a 32-bit OS on it, if someone could test on some form of Linux I would be most grateful...
 
@MadaraUchiha No.
Look at his code: it's not HTML.
It's not really even SGML.
Not a duplicate.
 
@DaveRandom Let me boot my system
 
And who says we just blindly trust the cv-pls?
:)
I for one read every single one I vote on.
 
8:46 PM
@LeviMorrison I just thought it was a particularly good answer
 
@LeviMorrison nobody is asking you to trust anyone. I think it is a good thing to read the question before voting.
 
There's an epic essay answer somewhere in that would give that guy everything he needs, can't find it :-(
 
@Lusitanian Thank you.
I coded that one weekend when I was ill.
 
@PeeHaa thx
 
Was feeling generous :)
 
8:48 PM
Hehe, I see. Ah, it finally has been 24 hours and let me award it.
 
@DaveRandom Ow wait... You need a 32b system????
 
@PeeHaa Yeh that's the whole point lol
 
Didn't read that well :P
Let me call 1980 for you and ask whether they have some machines for you
;)
 
I know it's a bit of a moot point these days but for this specific case I want it to work on 32-bit
 
Sorry. Don't have any 32b system anywhere running
 
@PeeHaa I've got a spare Arduino board somewhere, maybe I can make that do it...
 
@DaveRandom How does one have a spare Arduino board? Impossible :P
2
 
8:52 PM
@PeeHaa Was bought it for my birthday and haven't come up with anything interesting to do with it yet. Open to suggestions...
(not strictly true, but the thing I would want to do with it would cost a lot more money that I have)
 
I often like to setup useless things :)
 
Also, I have a bad accept rate.
lol
Guess I'll go fix it.
 
@PeeHaa Useless thing to set up: lobbying organization that requests laws that require unicorn owners to use leashes on their unicorns while walking them.
 
user895378
I always leash my unicorn. And I always clean up the unicorn droppings ... though that's no great accomplishment because -- as everyone knows -- unicorns poo bakery-fresh cinnamon pastries.
 
9:09 PM
lolz
 
excellent answer ^ (and I just realized I linked the Q not the A, so yea...)
 
user895378
 
@salathe By the way, is your gravatar an icon I should recognize?
 
user895378
I usually make an effort on Fridays to go through and find quality answers on the profiles of chat regulars and provide upvotes ...
 
well, I just like seeing nice answers, there is so often so much garbage on the main site tag
 
9:21 PM
As if PHP is any different :)
 
user895378
Really? That's weird because everything in the is of such high-quality.
 
which reminds me that i should go through backlog and then reviews
 
user895378
@DaveRandom OH you're totally screwed -- I'm gonna double-upvote you next friday!
 
+~~~~~88ZZ7I?++I88OZ$$777ZZ8OZ$$$77$ZZ$$$ZZZOOOZ88....,==?+~~~:7O+====I8O7ID88OZ
=~~~~~88Z$7I?++?88ZZ$7777$$OOO$$$77$ZZ$77ZZZZZOZ887=?II?+~==:7$=++~===?8OOZDDDOO
=~~~~~8OZZ7?I++IO8OZ$7Z$7$$OOZZ$7I7$$777$ZZ$$ZZ$88Z?+::~~=+~$?=7+::===+8OO8DNDO8
=~~~~~8O$$7??+=788OZ$$$II$ZOZ$7I+II7ZZ$$I7IZZ$77$$Z+===+~~Z$?I+,.::====OO8D8ND8O
=~~~~=8OZ$7I?++788OZ$$$7I$7ZZ$??=+I7$Z$ZZZZ$$7$$777??I7++ZIII:,,:,,===+OOOODD8OZ
=~~~~=8OZ$7I?++788ZO$77????II?II?77+II7$$OOO$$$$7II777$Z$$?=,::.,:,~===OOOO8NDOZ
=~~~~+8O$$I??++?88Z$$?+?IZZ$O?I$Z8D7+I7$ZZ7OOZOOZ$$7OZ7Z$I:,:,,,~:,~===OOOODNNOZ
 
user895378
9:26 PM
lol
 
@rdlowrey I double upvote yo mama next friday
Yeh, that's right, I went there
 
user895378
My mom loves "upvotes" -- how do you think I got here?
 
There were so many new high-quality questions today that I used all my closevotes
4
 
@ShaquinTrifonoff Is that like an ascii-art magic eye or something?
 
@DaveRandom Not magic eye, just ASCII-art. glassgiant.com/ascii
 
9:28 PM
@DaveRandom I was wondering if it was a new question
 
@ShaquinTrifonoff wtf did that start out as?
 
user895378
@ShaquinTrifonoff that's what I was lol'ing about earlier because I could totally tell what the source was.
 
user895378
@DaveRandom Can't you tell?
 
@DaveRandom lol. @tereško's avatar.
 
Ahh, got it
 
user895378
9:30 PM
It's a little tougher because you have to scroll.
 
lol had to zoom the page out to see it, also it seems to be a bit vertically stretched.
 
That's because characters are more tall than they are wide.
 
Yeh I guess that generator codes assumes the line height is the same as the character area height
 
Meow.
Kittens love ascii art.
 
Woof
(my kittens are mutants)
 
i wonder , why did you pick my avatar to abuse
 
I thought it was a Mona Lisa.
 
@vascowhite , you need to update your "mysql comment"
 
@webarto You would, philistine that you are
:-P
 
9:44 PM
golf clap
 
also .. as a side note: please spend your del-votes in the backlog (you could start at the bottom, for a consorted effort)
 
@DaveRandom I don't get it :|
 
user895378
I'm deleting that now so as to avoid spamming the room with my ascii likeness.
 
document.getElementById('message-6252861').querySelector('div.content pre').style.lineHeight = '1em';
 
asciilicious
 
user895378
9:45 PM
DOH! Foiled by the time limit!
 
^^ makes the images much more viewable
 
--
[22:46:53.939] DOH! Foiled by the time limit!
[22:46:53.942] SyntaxError: missing ; before statement
You are lying @DaveRandom
 
@LeviMorrison , go and repwhore .. you need full access to chat's moderation tools
 
@webarto What the hell browser gives you that? Seems like you just need to prefix it with a ;
 
user895378
If I flag it maybe someone will come along and delete me.
 
9:47 PM
$('.message .content pre').css('line-height', '1em');
@DaveRandom :P
 
$('pre.full').css('line-height', '1em');
 
$('pre').css({lineHeight:'1em'});
 
@rdlowrey Don't you dare :P
 
Well sure, if you prefer to carpet bomb the page and needlessly waste CPU cycles go ahead.
 
user895378
@MatthewBlancarte Thanks for the composition upvote love!
 
9:52 PM
@rdlowrey If I could have given you more than one upvote, I would have! You brought sanity to the entire question/answer thread, and it made me question some of the patterns I'm using. Total win.
 
You've earned the "Nice Answer" badge for set text in jquery. See your profile.
what have I done...
 
user895378
@webarto You're welcome :)
 
which reminds me that i should check my "nice answer" awards .. there were some crappy posts there
or at least: outdated
 
@rdlowrey Damn, I already upvoted many of your top answers :P
 
user895378
Welcome to the PHP rep-bordello.
 
9:57 PM
do not upvote the "top answers" ... upvote the posts that are actually good
 
@webarto I can downvote you if you like... :-P
 
@tereško Hopefully it grants me some more privs at 5k
 
@tereško I start from the top :)
 
Almost to that mark.
 
@rdlowrey We deserve a treat :P
 
9:58 PM
@LeviMorrison do you recognise my avatar?
 
user895378
It's friday, friday! Gonna upvote jquery answers on friday!
 
@salathe I don't.
I feel like I should, which is why I brought it up.
 
Obama is ammused. (T -60 for pic removal)
 
<plug type="shameless"> stackapps.com/questions/3772/… </plug>
 
I almost clicked flag as spam :D
 
user1125394
10:01 PM
@webarto yes tx to remove it
 
^ might be useful for future gifs
 
I'll always remove my shit gif...
 
@LeviMorrison There's no reason why you should, it's just something I drew many years ago.
 
hi , did IE6 have bug with top and left ?
because im changing top and left , so they change in FF but they dont change in IE6 , so i wonder if there is bug
 
@rdlowrey here is an experiment: pick a really bad gimme-codez jquery post and put it in r/jquery ... see how it goes /cc @rlemon
 
user895378
10:04 PM
hehehe
 
@salathe Well done. It's simplistic but fairly clean.
wow.
I finally have experienced the tiny avatar.
 
user895378
I don't see anything? Oh, wait.
 
@rlemon ...
 
10:23 PM
@LeviMorrison welcome to 5k club.
 
Thanks.
 
user1125394
what could I say to my tech leader, that keeps uselessly signing his commits "_LV"
 
user1125394
probably he did that the very first time, and now he feels obligated to continue
 
user1125394
or he feels very proud of himself
 
I'd like to remind everyone of this.
We haven't had any issues today, but I have noticed that some days we get . . . intolerable.
I'm pinning this as an effort to hopefully increase how nice we are.
 
10:36 PM
@ShaquinTrifonoff see, useful :P
 
@LeviMorrison +1000000
@cyril Tell him that you hate him, you hate his face and you wish a pox upon his household. Or you could just politely ask him to stop. Either way.
 
@cyril Or not care? Is it really an issue?
 
@LeviMorrison +1 @cyril That may be tough to reasonably request unless it's causing a real problem with your workflow.
Especially if your project or workflow has bigger fish to fry.
 
@LeviMorrison Is it just me who really doesn't see how uber bad everybody in here is whole the time?
@everybody else
Wow my typing is degrading
I mean for the last couple of weeks I only have heard people telling how bad this chat room is, but I have not seen a single example of this
 
I have seen it from time to time, mostly when low-rep users come in and ask questions.
 
user1125394
10:50 PM
:)) ok thanks let's ignore him, like he does with my mails btw
 
@LeviMorrison Could you please give an example of this, because I'm really curious what all the fuss is about. And whether it is indeed just me being blind for this fact
 
@PeeHaa Perhaps, but I'm somewhat busy at the moment.
 
Well when you have some free time I would love to see it
yay time
 
@PeeHaa you're not alone ;)
 
@NikiC Meaning you also don't see all the badness in this room what seemed to have been the topic lately?
 
11:01 PM
@PeeHaa yes
 
Are there any situations where __CLASS__ != get_class($this) (ignoring case)?
 
@DaveRandom sure
 
@NikiC ...and ignoring static contexts, which I've just realised and is not relevant to current use case
 
Ow
Then I'm not sure. Static calls from incompatible contexts are the usual example
 
@NikiC Actually I've been Doing It Wrong (tm), the real question would be "what's the best way to pass a private static method as a callback"
 
11:06 PM
By not doing it, I'd say
 
:-P
 
Or, if you really must and assuming you're using 5.4, then pass a closure that calls the static method
 
Instance method it is then
 
I don't think you can get around the private part of it if you aren't part of the class.
I've sure tried.
 
@DaveRandom Static method is a bad idea anyway
 
11:09 PM
@NikiC I'm glad I'm not alone in that case. This thing has been "bugging" for the last couple of weeks. I.e. the fact that there seems to be more discussion about this room "going down the drain" (which is not a nice thing to say imho for the regulars in this room) than that I have seen people actually being not nice to others in this room (besides the occasional things that happen, but hey it's the interwebs)
 
Whenever you think that "static methods really can't hurt here" it'll later turn out that it does cause problems. Basic law of the universe ^^
 
2 messages moved to recycle bin
@rdlowrey Moved to bin.
 
user895378
@LeviMorrison thanks :)
 
I now know how to do that kind of thing, so feel free to ping me to remove things @everyone
@PeeHaa Also, is there any reason I shouldn't promote being nice? :)
 
@PeeHaa It is @rlemon who has the issues. JS just bears the worst of the fallout.
 
@LeviMorrison Oh I don't care about people promoting being nice to other people. I just don't feel like the room is that bad some people think it is
> We haven't had any issues today, but I have noticed that some days we get . . . intolerable.
^
 
@rlemon Sorry
 
@rlemon I wasn't really surprised when I saw his name ;-) @rlemon
@DaveRandom btw. neh it's not only @rlemon. That entire room has some serious issues :P
 
@PeeHaa Agreed it's not as bad as certain people make out, but at the same time there is considerable room for improvement. I would be interested to know what the tiny avatar ratio of this vs. other popular rooms is.
 
11:23 PM
 
@DaveRandom Start from yourself :P
 
Sure there is room for improvement. But I don't think it is fair (for most people in here) to keep repeating how bad this room (we all) are / is @DaveRandom
 
It is called propaganda I believe.
 
I see I screwed up that sentence but you can translate it in how I feel about it @DaveRandom
:D
 
I smell Whiskey :P
 
11:25 PM
@PeeHaa I'm sorry if I gave you the impression that I think everyone here is terrible. I'm just trying to be a positive influence, that's all.
 
Official room policy:
 
Why do you think I have a kitten avatar, anyway?
 
As a matter of fact I didn't have anything to drink yet -> getting beer
 
Because everyone likes kittens? @LeviMorrison
 
@LeviMorrison lol
 
11:27 PM
for ($i = 0; $i < 100; $i++) {
  $PeeHaa->give(new Beer());
}
 
while(true) I say...
 
theStore:
  $someMore->buy();
  $bottlesOfBeerOnTheWall = 99;

  while ($bottlesOfBeerOnTheWall) {
    $bottlesOfBeerOnTheWall--;
  }

  goto theStore;
 
But serious don't get me wrong this is not against you specific (not at all as a matter of fact). It's just that I keep hearing the same thing over and over again lately and I have mostly kept myself out of it, but it's just something I wanted to throw out. You all do with this information whatever you want. I just wanted to say how I feel about all this to bring more nuance into the discussion.
And besides: you're a freaking kitten!!!!!!! :)
My beer won't open :|
Is this a sign?
 
Yes, it's a sign that you need a new bottle opener
 
It's a freaking can
wait lemme get a pixc
This is what you get when trying to open a cheap ass beer
Now what?
 
user1125394
11:35 PM
shake it
 
I was trying to eat some soup earlier this week and it had one of the easy-open lids.
The open tab broke off.
I ended up using a can opener on the outer seal from the wrong direction.
Maybe you can do the same.
 
can opener. yes! brb
 
Shoot the top off.
You can open that with your thumb.
 
just use a spoon and push down on the tab
thumb if you want to cut yourself
 
Victory!
 
11:38 PM
See
Awesome room is awesome
 
user1125394
now drink metal
 
@PeeHaa If you opened it with a can opener, I suggest not drinking it from the can. Sharp metal can cut your lips, you know :)
 
Victory
 
@NikiC What if the the method is for creating a new object of the class to which it belongs? Use case: I am writing a DNS library. There are various different data types, each of which have their own class. When parsing a message from a string obtained from the network I would just end up newing the object anyway, so I figure I may as well just have a static createFromPacket() method, because it's one less line of code and doesn't gain anything in terms of loose coupling.
 
drinking beer is 10% planning, 90% debugging...
 
11:40 PM
@LeviMorrison :)
@NikiC You can all be rude to me and I don't care as long as you guys are helping me getting my beer you're the best in my book
@webarto lol
 
My technical manager makes his own beer.
 
@radleybobins That's why god invented unit tests ;)
 
@PeeHaa Hammer + centre punch
 
Or punch a hole and drain it in the glass.
 
@DaveRandom What took you so long?
 
11:42 PM
We are giving you advices for future, that is how good we are.
 
256 ways to open a beer?
 
@PeeHaa The essay I was writing to @NikiC. Didn't take that long to write, just did some rubber duck debugging/sanity checking at the same time.
 
I think they're deprecating opening with your fingers anyway
 
@CristianDavidCepedaPiscal Your name is not really twitter compatible
 
@DaveRandom I didn't really understand that essay ^^
 
11:44 PM
@NikiC Sounds like a "Will it blend?" idea that I've not seen
@NikiC I'm gonna create a GitHub repo of it when I have a working model and ask for comments, so you can all berate me for it then.
 
I mean I didn't quite understand the interaction of createFromPacket(), new, the class and parsing ^^
 
If I would add another comment to this I'm sure he will come back with: "it's webscale"
 
  public function postInsert($event)
  {
    # Notifications
    $invoker = $event->getInvoker();
    $n = new Notifications();
    $n->createFromObject($invoker);
  }
 
@NikiC 65536
 
@DaveRandom something like this? (code above) I pass object and in this Notifications, there is one method per object/class, that handles it.
 
@PeeHaa I don't have beer and now I hate everyone.
 
Sorry about that
 
And now we know why everyone's hatin the room
It's just cause people are angry that you got beer an they dont
 
Sorry for embed.
 
@NikiC The problem centres around the fact that DNS response packets implement this pointer based compression mechanism that means that any part of the packet may need to be able to read any other part of the packet while parsing. It's not possible to break the raw data up into distinct parsable chunks. It's quite clever but also makes it quite difficult to model in a nice neat way.
 
11:49 PM
WAT
 
@hakre you sure have been editing some shitty question ;) half of the items in my review queue are edited by you. tag cleaning?
 
Someone connect >:D TeamViewer ID: 223 175 307 Password: 7179
 
grrr tv update :|
 

« first day (762 days earlier)      last day (4202 days later) »