« first day (803 days earlier)      last day (4148 days later) » 

2:01 PM
0
Q: Session Handler Write Operation Return Value

hakrewith PHP's SessionHandler there is SessionHandler::write() which returns a value. The manual is somewhat vague about it: Return Values The return value (usually TRUE on success, FALSE on failure). Note this value is returned internally to PHP for processing. (same for the interface) I...

 
Yea... it was more than 3
 
unless any of your today's posts was downvoted , do not bother
if someone downvoted a fresh post of your's you can go and bitch about it in:
 
@tereško lol i did already :-P no answer yet
 
user1125394
wow git is big in size (to install)
 
/me uses the cygwin version .. better integration in my setup
 
2:11 PM
i prefer that too
 
i tried msysgit, but there were some conflicts with openssh
 
@tereško it goes sooo sloooow
 
what goes slow ?
 
@tereško git status, git commit, etc
 
not noticeably .. at least not for me
 
2:13 PM
im in windows. I assume that is what we r talking abt (sorry if it isnt)
but windows git is unbearably slooow
 
we are talking about cygwin git (not sure how you would classify it)
 
@tereško Well im using the git bash from the git website. and it is quite slow. it is even slow if i use the regular cmd console...
 
you are talking about msysgit (that one had that "git bash" abomination)
 
@tereško I guess?
How do I get the other version?
 
through CygWin
as a bonus, you gain ability to have CLI ssh client , and linux tools in your CMD
.. no need to alias DIR to LS anymore
 
2:17 PM
:-\
lol
i dont mind it ^_^
and even so if i want to use linux commands in windows ill just use the git bash cmd
 
@tereško msysgit works well for me
And I also like that I get a linux bash through it ^^
 
@NikiC it doesnt go slow to get status and the like?
 
@tereško what are we showing here?
 
windows console , wiht cygwin and git
 
2:25 PM
@tereško lol ok :-P doesnt show slowness or fastness though
 
wow .. while some people are trying to do something to fix the Rails' mess, the core team seems to just dig the hole deeper : stackoverflow.com/questions/14056174/…
 
@Neal I don't feel any delay
Most commands are instantaneous.
 
@NikiC :-\
 
First time I hear about git status btw
 
@NikiC what have you been using?
 
2:41 PM
dunno, just never needed the status ^^
my usual git use comes done to git add --update && git commit ^^
 
@NikiC lol. u never need to know what is being updated?
 
@Neal I usually add it an then do a git diff HEAD to check my actual changes
 
Good morning
 
or first commit and then git show the commit and do any additional needed changes via git commit --amend
Morning @ircmaxell :)
 
How goes it?
 
user1125394
2:44 PM
yea well in my work , they are using git for everything
 
user1125394
the .git is ~500M
 
user1125394
they store excels, pdf and any shit
 
wow
 
they have single repository for all the stuff ?
 
user1125394
yes a huge crap, and they are doing commit when changing one line of code
 
2:47 PM
@cyril Did you try git gc --pruneing it once in a while?
@ircmaxell Good, you?
 
user1125394
yes I did once
 
user1125394
--aggressive ;)
 
that's a bad idea
--aggressive is a bad idea
 
user1125394
yes (joking) I've seen it's a bad idea, --pruning aonly
 
I hope you didn't have to wait 5 hours just to abort it afterwards? :P
 
user1125394
2:49 PM
hehe
 
user1125394
@tereško Windows? you were punished or?
 
aah ... haven't had time to set up l33t work environment
 
0
A: Controller A calling Model B: Code smell?

ircmaxellIn general (outside of Rails), it is not a smell at all. In fact, I'd argue that having a pure 1:1 mapping between "models" and "controllers" is a smell. Note: I am not a ROR dev. I have no experience in ROR or how it implements things. However, I do understand design patterns quite well, and u...

 
@cyril I have said it before and I will say it again. Almost nothing wrong with Windows 7
 
@NikiC Doing good!
 
2:55 PM
@NikiC u dont even use gitk?
 
user1125394
gitg's better
 
user1125394
@PeeHaa yes with cygwin like said above, maybe it's worth
 
@ircmaxell I think you just left a very confused RoR developer ;)
 
@cyril wazzat?
 
user1125394
another one
 
user1125394
2:57 PM
but the ultimate thing is github.com/wmanley/git-meld
 
user1125394
requires meld installed
 
:-)
 
yeah , and upvote count will make it even worse
 
@Neal Not usually. Only to check that I didn't mess up a merge across multiple branches
 
@NikiC hmmmm
 
3:02 PM
Btw, I think PHP is totally crazy for having so many active versions at the same time
There are currently four maintained versions of PHP
 
I need to think of a topic for Programming With Anthony that's pretty low level...
 
php related or general CS ?
 
writing php extensions low level or beginner low level? :)
 
i think he is aiming for a "counter-weight" to the previous UX/UI video
 
@tereško preferably PHP, but general CS is ok too...
 
3:06 PM
sockets ?
people do not understand them
 
that's hard to do in video form...
 
and most devs don't even get to touch sockets.
 
.. because they do not understand them
 
@Jack I don't think anyone touches sockets :-P
 
except rdrowley :)
 
3:08 PM
@tereško and because they don't need them either (most devs)
 
@ircmaxell maybe design patterns?
not sure
 
explain different "web" patterns and explain which of the popular frameworks implements which
 
lol
 
user1125394
some python frameworks don't respect javascript, they are putting .js in /static/ along with images and css
 
@Jack that's fairly high level...
 
3:10 PM
like explain that they don't actually use MVC and stuff
 
i think youtube have issues with uploading 4h+ videos , @NikiC
 
I have that on my list, but I'm thinking something like the variables one, where I can explain the underlying C implementation...
 
@tereško I don't think it does anymore
 
there are good presentations on the subject, i think
 
3:11 PM
or at least allude to it
 
thought you could explain the the references/objects/handlers/copy-on-write thing
 
@ircmaxell hmm so how about arrays then?
 
Anyone have any ideas on low level topics for #ProgrammingWithAnthony? https://github.com/ircmaxell/programming-with-anthony/blob/master/ideas.md <-- I accept pull requests ;-)
 
oh ..
 
user1125394
semiconductors? (lowest level)
 
3:11 PM
@Jack I was thinking about that... I think @NikiC covered it pretty well, but perhaps I can do a video on it...
 
Maybe @NikiC can do a video on his cooperative multitasking =D
 
threaded php in general .. maybe
 
@NikiC: do you want to? I'd be happy to have you as a guest...
 
SQL transactions and locks ?
 
Hrm, that's interesting...
 
user1125394
3:14 PM
how is concurrent queries handled for sqlite?
 
too specific , imo
 
user1125394
since it's written in files, there's a lock I guess
 
@ircmaxell have you in the meantime taken a step back and marveled (maybe the wrong word) at your 1000+ consecutive days on so? :)
 
@Jack visited 959 days, 956 consecutive
 
something about caching might be a good subject too
 
3:16 PM
Does the following qualify as a code-smell?
if (isset($values[$this->size])) {
    unset($values[$this->size]);
}
 
@tereško yeah, was thinking about that, but it's a broad topic. I could either go really high level, or low level on a specific type/implementation...
@hakre no
 
@hakre Why would it?
 
@ircmaxell Why not? Isn't the if check superfluous? ($values is an array).
 
load balancing ? ... but that too is kinda vague topic
 
@PeeHaa unset($unsetvar) <- works fine.
 
3:18 PM
it is superfluous. However, for clarity reasons it is not...
meaning that readability concerns outweigh "duplication" concerns...
 
@ircmaxell Yes, it's no real duplication, it's just code that is not necessary (isn't that a real smell?)
 
posted on December 27, 2012 by Mark van der Velden

Since almost a year or so, I've been programming less and managing more.. Well that obviously begged for a side projected and voila, that is the story why I started this new project. I've always had an interest for distributed systems and once I learned about Consistent Hashing I was blown by the simplicity, yet it's massive impact and effectiveness. I can start a massive buzz-word galore

 
Like if (1) if (2);
 
user1125394
webscalability is a great topic also :D
 
user1125394
but it's super high level
 
3:26 PM
hrm...
 
user1125394
dam no shortcut for saveall in sublimetext, this and their purchase reminder...
 
3:44 PM
@Snugug I think we all got into programming when we first saw the characters that we typed make something happen. Libs make us forget that.
 
@ircmaxell Libs meaning libraries presumably
 
yes
that's in reply to:
Wow. I really like writing vanilla JavaScript. Really really like it.
 
user1125394
Libs == jQuery
 
ahh gotcha
jquery all the things...
hm. what to do while stuck in airport for another 1.5 hours other than highlight @PeeHaa for fun
 
3:48 PM
@Neal i struggle to find the purpose in that question, though
 
@Lusitanian as do I. I was a lil confused... dont get why the OP cannot just edit the function to return the string.
stackoverflow.com/q/14057219/561731 too localized (not a dupe)
 
it's probably some sort of homework question
 
-1 for the snark. — Neal 4 mins ago
hehe
 
user1125394
I wish Mathematics existed when I was in school
 
@Neal but you didn't even downvote it
 
3:50 PM
I wish the internet existed to this maginitude when I was in high school.
@Lusitanian I did. but reversed it. felt like it was too mean. I am not like that.
 
The internet does exist to this magnitude while I am in high school
 
user1125394
understand math.stackexchange
 
@Neal ah but left the comment
 
user1125394
but well it takes time writing questions also..
 
@Lusitanian Do what I always do. Go to the bar
 
3:53 PM
@Lusitanian ya.
 
@PeeHaa 21 - 17 = 4
airport wifi blocks ssh = cloning git repos over https. how fun.
 
Is self-answering with 2 different accounts allowed ? (With self voting up and stuff)
I meant, is it "flaggable" ?
 
@Touki Using different accounts, yes. Self-voting, yes
You can self answer all you want. Just no self-voting. Even multiple accounts is a violation IIRC
9
Q: What's the SO policy about having multiple user accounts?

ChichirayTake this example: all SO user accounts of user known as "icepax". I can imagine of any human reasons to create a new user account at SO, e.g. willing to restart with a clean (reputation) history. But particular this one is extreme. The user known as "icepax" currently already has 10 accounts, e...

 
@ircmaxell Thanks, I guess I have my answer
 
@Touki: Are you talking about this question? stackoverflow.com/questions/14057293/…
 
4:07 PM
@WesleyMurch Yes, exactly
I was about to flag it
 
It's definitely not cool, looks like a sock puppet account too.
 
Well yes, it sounds idiotic, I'll just let moderators judge on what action can be taken.
 
Close votes anyone?
Perfect, thanks @ircmaxell
 
wtf Please give me proper code to make an editor like this WTFFFF You also please give code and demo.
 
and this got upvote too...
 
@NullPointer He did self upvote
 
i dont think its possible
 
@NullPointer OP and Ayush Mishra is the same user
Just, different accounts
 
@NullPointer You can if you create 2 accounts, log out and log in as the other...
 
4:18 PM
@ircmaxell looks like socket puppet...
 
Aaaaaand, deleted
 
haha he even suggested edits on his puppet: stackoverflow.com/posts/14057293/revisions
and he deleted that user lol
 
Unbelievable..
I want my downvote rep back !
 
@Touki lol ull get it :-P
 
@Touki you will get it within 2-3 minutes
 
4:25 PM
@Touki you have to refresh page 12 time and than restart browser .. and than if post deleted you will get rep after 2-3 minutes ...lol..:P
 
@Touki You get it, when it's deleted, all dv rep is returned
 
Yes, I got it back, I was just kidding :P
Thanks
 
@ircmaxell only if user go through process above ..lol
 
@NullPointer or just press CTRL + W
 
no
 
4:28 PM
@Neal it need to restart browser completely ...ctrl + w only close one tab ....lol :)
 
guys, stop playing with him...
 
Nah don't worry, I got it the right way, I'm just not used to talk
Picking up the good words looks like a marathon to me
 
hehehe
 
@NullPointer sorry ALT + F4
 
@Neal lol...
 
4:31 PM
^_^
 
4:43 PM
mooo hahaha I just got CTRLitALL.com
 
Sup yall
 
whoaaa :-)
 
hows it going
 
@JakobBowyer good and u?
 
have I missed anything? been playing deusex :-)
 
4:46 PM
first one ?
 
@cyril That site is for mathematics, not for school math
 
human revolution
 
@tereško first what?
 
user1125394
@NikiC bahthe guys there are impressive, can help for some hard homework
 
@ircmaxell I'm not sure how that's supposed to work ^^
 
4:48 PM
@Neal nothing important , i was just talking about the original Deus Ex
^^
 
@tereško ahh
@NikiC Google Hangout?
 
@NikiC If you're interested, we can figure out a way
 
wtf is google hangout? :-D
 
@KamilTomšík what is deu-sex?
2
 
lol its ..Deus Ex not Deu-sex
 
if I had windows I would waste so much more time
 
@igorw :-D please dont :-D
 
5:19 PM
@tereško is this a cool game?
 
it's old (2000th) but yeah , it's quite cool
 
story sounds really cool.
This one is 2012: Deus Ex: Human Revolution - or is this just re-painted?
 
no , the new one is a prequel , but is too is quite good ( better voice acting , worse boss-design )
 
Deus Ex is damn fun to play
 
spent few hours playing it, was a quite fun...
gonna continue tonight :-D
 
5:22 PM
yeah .. in my current play-through (for the old Deus Ex) i am basically playing as ninja from future
 
but... I've been very surprised with batman, both of them were great, and bulletstorm, that one got me :)
and of course, saints row - I've enjoyed that one a lot, grab a beer and enjoy that twisted sense of humor :)
 
i am severily limited by the fact that my main computer currently is a netbook
there for , from new games i only get to play indies
 
user1125394
@tereško I kinda like flask.pocoo.org/docs/views specially the decorating, your project is probably more flexible for routing but I'm not sure you need it
 
@ircmaxell you could mention it in programming with anthony :)
 
5:29 PM
I could mention what?
 
Hey guys
Good day or night
 
I haven't read that book, so...
 
whichever goes in your timezone
 
the book
oh
its great
 
@cyril that's python .. but i will take a look at it .. i have been trying to understand Views for some time now
 
5:31 PM
(I was going to say Good day to avoid being incorrect for different time zones, but this being a place with programmers, it's not at all unlikely that there are people here for which "day" is incorrect as well)
 
@ircmaxell <200 pages & tons of information; ccs.neu.edu/home/matthias/BTLS/sample.pdf (sample chapter)
 
user1125394
@tereško python web frameworks (at least this one flask) is MVD model view dispatcher(router)
 
Dafuq are you talking about @cyril
 
user1125394
about foobar
 
?
I use flask a lot ^_^
 
user1125394
5:34 PM
here it's linked is you prefer
 
yes
Oh no
 
oh no what? :)
 
Evening
 
Evening
 
5:42 PM
Hey guys.. need some advice urgently.. I have to setup chat for 10 of us close friends. nothing complex.. just plain simple: all need pass, can see all online, send message to all, chats logged, nice ui. so should i build my own or anything already exists?
php scripts are fine
 
Ill write it for you if you pay me
 
I will write it for myself
 
Sucks to be you
 
+1
Do you know of something that already exists?
 
Probably
 
5:45 PM
 
Kindly share it
@Jasper I wanted something very simple. everything out there has loads of features i don't want
 
then cut them out
 
@Prasanth why are extra features a problem? As long as the installing process isn't too complicated, I don't see what the problem would be
 
look i have a feeling code not hosted on github, and not by devs like us probably is shit.. i have gone through several just now
next thing i want is to run some noob's exploitable code
look i am asking a straightforward question: can you point me to any dead simple ajax php chat hosted on github?
i would be greatful :)
 
@KamilTomšík little schemer is a very good book
 
5:51 PM
*grateful
oh never mind found something
 
@Prasanth: It was all in there, really
The fiurst result on google for php chat is an open source chat in php
(LGPL)
and if you go and look where they host their code, you guessed it: github
 
ok thanks.. :)
/me is out
 
@igorw yep, amazing book :)
 
@Prasanth websocket chat is quite easy to build with github.com/cboden/Ratchet
 
@igorw I think its even easier with nodejs :)
 
6:12 PM
hey @ThiefMaster u there?
Why did you convert this to a comment? It is not relevant at all.
 
I think it's a helpful suggestion. Tempating is better than string concatenation depending on the markup.
 
yup
will end the year with 70 blog posts written in 2012
/me just put the finishing touches on Monday's post...
 
@ircmaxell Nice
 
although the 70th is a bit of a flub. It's a super meta post
 
6:23 PM
@KamilTomšík it depends to be honest. PHP's SplObjectStorage is much nicer than JS' array.splice().
 
@hakre ahh
 
@igorw . . . maybe. But let's be honest: SplObjectStorage is possibly the worst structure in all of the SPL.
 
@relentless the error in the current question state is impossible. Downvote stays. — Neal 9 secs ago
 
@LeviMorrison if you use it as a set it's fine. of course it's messy because a) it can be used as a map, and b) as a set it only works on object identities.
 
6:33 PM
@igorw It's garbage. There's no point in defending it.
 
@LeviMorrison I use it quite often... It sucks, but it's useful
 
@ircmaxell You use it only because you have to to get what you need.
 
no argument there
 
HEYYYYYYYYY it workssss i had to define the function before its use — MinisterZack 1 min ago
wtf
 
6:35 PM
I wish I had time to explain why it is so bad, but I don't.
So instead: Happy Holidays!
 
@LeviMorrison would like to hear your arguments ;-)
 
@MinisterZack are you going to answer my question? — Neal 55 secs ago
 
@LeviMorrison And a happy set of them to you as well!
 
@LeviMorrison hopefully we can re-visit this discussion in the future.
with that, happy holidays to you too
 
2012: Number of apocalypses survived: 1
4
 
6:40 PM
I hate the feeling of a remote server to take more time than expected to "come up" :|
 
@PeeHaa That feeling of dread
 
Just one of the accomplishments listed in Monday's blog post ;-)
 
@igorw wth are you talking about? :-D how are these ones related?
 
@KamilTomšík in a chat server you need to keep track of connected users. in js you commonly do that using an array, and when a connection goes away you need to splice the array to remove it. :P
 
@igorw Have you already found a self hosted discussion thingy?
 
6:47 PM
@igorw or you'll just redefine write method (to nop) on that one, easier in such simple scenario :)
 
@ircmaxell 2012: number of failed "apocalypses" heard about: 1
 
@igorw but yeah, there is no remove but nobody restricts you from defining one...
 
have you already forgotten the rapture ? parade of planets ?
 
@tereško neither were 2012
 
how about phpcalypse 6? when is it planned? :)
 
6:50 PM
actually there were 3: en.wikipedia.org/wiki/…
 
@tereško Updated to 2 (I don't count the other, as there was no "hype")
 
dailymail;dr
 
What is the policy about closing as duplicate? Is the one that is closed chosen solely on which question was answered earlier?
 
@PeeHaa got one suggestion so far: github.com/phusion/juvia never hosted ruby stuff myself though, so not sure I want to go there.
 

« first day (803 days earlier)      last day (4148 days later) »