« first day (1382 days earlier)      last day (3564 days later) » 

user1596138
3:00 PM
@Florian alright, I'll admit, it doesn't make any sense whatsoever to use it. I'm stuck on it.. My point is just that it isn't any less capable, just less customizable and I feel that customization is non-essential (the parts that it lacks)
 
good moon door
 
user1596138
Keep in mind... I don't even have my own machine right now. I literally take what I get and don't change shit.
 
bad sun wall
 
user1596138
Hahahahahaha
 
@Jhawins wow get a computer nub
 
3:01 PM
The laptop that I develop on at home has an i3 -- sometimes it has a hard time running node, chrome, brackets, and a mysql server.
 
@NickDugger other times it just flat out gives up? :-)
 
user1596138
> Boss: Why the hell does this form start printing from today instead of starting on Thursday regardless of current day?
Me: Because when I first made it it started on Thursday and you said "Why the hell does this start on Thursday"
Boss: Why didn't you just tell me that was stupid
Me: ...
 
Sometimes all of my memory disappears so I have to restart. I still can't find what's eating it all.
 
@FlorianMargaine edge case: my shit ass regexp requires a space before the /r/something
/r/justthis will not parse
 
user1596138
@Loktar I know.. I'm to be in my house in 3-5 weeks though so I can't spend any money
 
3:03 PM
my Vishera kills anything I have running
 
will tidy up in a bit and re-link you the updated userscript
 
along with my 32 gigs of ram lol
can't wait to get the 8 core 4.7 later this year though
 
Mornin
 
@rlemon noob
 
user1596138
I can steal this mac mini from the office... Or an extra iMac. But I don't have internet till I get into the house so
 
3:03 PM
fix it for me then :P
 
laziness reaches the best of us :D
 
laziness is a disease
 
not sure how to write [^ ] in regex
i.e. "start with or space"
but ^ in [] means "not"
 
@WillemD'haeseleer I love them
I also use them in build scripts all the time.
 
If I'm creating an app that's to be run on your own machine, using your own database, would it be odd to also utilize localStorage for things? like checking which project you most recently had open, or since I'm already using a database, should I just stick it in there?
 
3:06 PM
@FlorianMargaine well there is /b or w/e
but I couldn't get it to work
 
-3
Q: How to create an application of a certain size? (VB.NET)

james9281I want to create an application (which really works) for a specific file size. Eg. button saying 'hello world': Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click MsgBox("Hello world!") End Sub But this application should be (eg) 5,2 MB....

interesting...
 
Strange question to have..
 
probably trying to mimick another file
sounds fishy
 
I am curious about the use case
 
@rlemon I don't get it -- why would mimicking a filesize do anything?
 
3:08 PM
@NickDugger if its important data I would use the DB, or data the user would care about
local storage is easy to clear
 
@BenjaminGruenbaum That's great, do you use regenrator/ traceur or node 0.11 for that ?
 
@rlemon ... given your hobbies, is "fishy" a good thing or a bad thing for you?
2
 
@Loktar It's not data, just a flag.
 
@RyanKinal I GET MY NEW TANK TOMORROW! !!!!!
 
\o/
 
3:08 PM
That's fishy bro!
 
@WillemD'haeseleer I run Node 0.11.13, I use it mainly for build scripts which heavily use Promise.coroutine in Bluebird. JS generators are awesome. I also use them for plain collections etc.
 
is the flag important at all?
 
user1596138
@SterlingArcher facebook me or something need to send you a link from my computer but can't put it in the room haha
 
lol i don't have a facebook
txt me or something
 
@BenjaminGruenbaum what do you mean with plain collections ?
 
3:09 PM
if its something that doesn't really matter then throw it in local storage, however imo it makes more sense to keep it in the db if all the other data is there as well
 
@WillemD'haeseleer the normal intended use, with collections, mapping over generator returns etc.
 
@Loktar Only to the user. it will dictate if the app should open a project upon loading, and which project it is. It will probably just store the project's id.
 
@BenjaminGruenbaum got it
 
user1596138
@SterlingArcher then I have to send myself the link first... And it's not funny enough to bother lol
 
@WillemD'haeseleer you?
 
3:10 PM
Do you have a user profile in the database?
if so that seems like the logical place to store what they had opened last
 
Nope, but I'll probably have some sort of settings table, so sure, I'll put it in the DB
 
@BenjaminGruenbaum I do use them on occasion
 
also persistence :P, what if user A is now using computer B
just something else to think about
 
Grumble grumble, thinking is hard.
 
user1596138
@Sterling fine.... Texted you
 
3:13 PM
!!> "/r/iShouldMath google.com/r/iShouldNot /r/IwillMatch and some other filler /r/crap".match(/(\/r\/\w+)/gi)
 
@rlemon ["/r/iShouldMath","/r/iShouldNot","/r/IwillMatch","/r/crap"]
 
tl;dr how do I not match stuff with anything other than a space (or nothing) proceeding it?
 
@Jhawins i lol'd
 
wouldnt [^ ] force a match on a space or start of line?
 
user1596138
me too
 
3:15 PM
or do you want "/r/ to match as well
 
@BenjaminGruenbaum How do you feel about this gist ? gist.github.com/helmus/7646b0c470ed7adee1af
 
@BenCraig No, read the docs on []
^ means "not"
 
return promise croutons!
 
I want "/r/something" to match, " foo bar /r/something" to match the /r/something and "foo/r/something" to not match anything
 
Solution: Use a decent regex engine
 
3:17 PM
basically match the /r/something, but not if it is within another string
 
@KendallFrey oops, Ive never used a carrot inside [] before
 
*caret
 
I like carrots better
:)
 
A carrot is for bunnies
 
Carrots are delish
 
3:17 PM
@WillemD'haeseleer a generator is just sugar, remember that. The underlying change is the new iteration protocol (the .next thing that returns value and done).
You can use async to wrap stuff to cast it, I'm not really sure why you need it though.
 
@rlemon There are ways to do what you want without that, but you can do (^|\S)/r... and then plunk $1 back in with the replacement string
 
@rlemon I didn't follow the conversation but are you looking for .match(/(\W|^)(\/r\/something)/) ?
 
@BenjaminGruenbaum The idea is not having to write Promise.coroutine everywhere and also annotation functions that only return a promise and don't have any indication that they do.
@BenjaminGruenbaum I added an example to make it more clear, not sure if you saw it
 
@WillemD'haeseleer oh, what about var async = Promise.coroutine?
Oh, I wanted .then to do that before Domenic told me I'm stupid for wanting to do so :D
Something about generators not being special.
 
@BenjaminGruenbaum Look at the return points of the second example, it's not always a promise
 
3:21 PM
Also, coroutines return a function that you can later invoke to start an async operation where Promises represent an abstraction over an already started operation.
 
user1596138
@BenjaminGruenbaum I want the damn generators
 
@WillemD'haeseleer You might want to do Promise.coroutine(fn)() or Promise.spawn(fn) although spawn is deprecated.
 
user1596138
Only in FF still though right?
 
@BenjaminGruenbaum spawn is deprecated, note that my async function doesn't start the generator
 
3:22 PM
Building something that yields promises is like 15 lines of code by the way, and a fun exercise by the way.
 
the coroutine*
 
the crouton*
 
Oh, I see what it does. It would work nicer with typing but we can't really do that. I guess working for generators can be enough for now.
 
user1596138
@NickDugger lol
 
@rlemon /\B\/r\/something/
 
3:24 PM
@WillemD'haeseleer why would you not know if it's a generator or not though? I mean, what if I just happen to have an async generator?
 
@nderscore :( I was trying with lower case b
 
Although async generators are absurdly hard to get right in my experience. Kris has a nice talk about them coming.
 
I knew there was an easy solution!
18 mins ago, by rlemon
@FlorianMargaine well there is /b or w/e
 
@rlemon that's what I tried at first also, but it seems / isn't a word character, but matching for non-boundaries works because if there was a letter before / it would cause a boundary :D
 
There are lots of things async generators model well too, they're just too unknown of an abstraction. Infinite scrolling is one example.
 
3:26 PM
@BenjaminGruenbaum I'm not sure what you mean by that, can you rephrase ?
@BenjaminGruenbaum Do you have a link for that talk? I'm not sure what an async generator is ( if it's not a coroutine )
 
@WillemD'haeseleer It's just an edge case, really not a biggie and generators don't deal with it. An async generator is something that is a generator that returns asynchronous results asynchronously.
@WillemD'haeseleer he's still writing it iirc.
 
@FlorianMargaine it is /r/fixed
 
I can ask
 
user1596138
@GNi33 Going to try to run this on this mac lol that's badass
 
fuck, nvm. it isn't fixed!!
 
3:30 PM
it is /r/notworking lol
not that I even have that userscript...
 
@rlemon noice
 
@BenjaminGruenbaum Ok, my gist doesn't really concern async async generators tough, all tough i'm sure it could work together
 
@nderscore fuck me in the bum, I must be tired today
 
@rlemon noob
 
forgot I didn't need to remove the space now
 
3:31 PM
I don't even know how to userscript where what within who now?
 
@BenjaminGruenbaum Do you feel like you understand the use case for my gist ?
 
brb
Yeah, it's nice, work question. Brb
 
/r/gonewild
nice
 
hahaha
 
@rlemon what about the space in the initial test call? :)
 
3:32 PM
sheety
 
@dystroy [\^ ] means "^ or space", no?
I meant I wanted "starts with or space"
 
aww yee, cached regexp object
 
@FlorianMargaine then it's (^|\s)
 
@dystroy damn. What do () stand for?
 
3:34 PM
/r/test
 
@rlemon Protip: the replacement function is way overkill
 
Huh, that's nifty, even though I don't use reddit
 
!!> "/r/something".match(/(\W|^)(\/r\/something)/)
 
@dystroy ["/r/something","","/r/something"]
 
!!> " foo bar /r/something".match(/(\W|^)(\/r\/something)/)
 
3:35 PM
@KendallFrey but easy for me
 
@dystroy [" /r/something"," ","/r/something"]
 
node.innerHTML = node.innerHTML.replace((\B\/r\/\w+/gi, '<a href="http://reddit.com$&">$&</a>');
should work
Small detail about the \B though...
 
@FlorianMargaine (pending screenshot), can you tell what version of drupal this is by it's layout? And if you're familiar, for the life of me I cannot find where to turn off page cahcing =x
 
@rlemon it seems to not work... it is matching "r/test" while it shouldn't. It should match "/r/test"... or maybe I am missing something..
 
3:38 PM
Look!/r/ibrokeit
 
oh my god...
@FlorianMargaine ignore me. I'm illiterate
 
/r/tryAgain
 
Ha, dat drupal
 
looks okay to me
 
Back, had a C# problem at work @WillemD'haeseleer
 
3:39 PM
@rlemon did you click on any of the links?
 
you have an old version
 
I understand it, what if .method always did that?
 
refresh the gist page
 
kk. wait.
 
@SterlingArcher see any .info file. Check out the "core" version, it's drupal's.
 
3:40 PM
The problem is you might want a generator that is a promise.
That is, it has .next and .then.
That seems pretty edge case stuff though.
 
@FlorianMargaine thanks, sorry for being a drupal whore D:
 
working now :D
 
I'm not sure I don't like the distinction between .method and .coroutine though.
 
CMS' confuse me (I know..)
 
@SterlingArcher so? which one is it?
 
3:44 PM
@WillemD'haeseleer if you're interested in promises check out #promises , it's where everyone involved hangs out.
 
@BenjaminGruenbaum When would you ever have a generator that is a promise ?
I don't really understand that I think, or do you mean a generator that returns a promise from it's next function ?
 
finding a drag in drop for angular which does not use jQuery UI and is not POS, is harder then creating yourself one.
 
@BenjaminGruenbaum The idea is to not make a distinction between a method that returns a promise, or a method that uses a generator as a coroutine
@BenjaminGruenbaum From a calling perspective, they are identical
 
hmm something is going on with gravatar
github avatars aren't loading on the main page
thats important shit get it together github/gravatar!
and now they work nm.
 
-- this was me trying to say hi in fb chat in split view.
 
3:52 PM
@FlorianMargaine sorry, this code is being a pain lol a .info file I found says core 7.x
 
is happening again
 
@AbhishekHingnikar oh hay
 
@SterlingArcher then it's drupal 7
 
@FlorianMargaine I could have sworn we got 8, but I guess the beta was just released?
 
yeah
I understood that you didn't have 8 when we talked about the route handling yesterday though :)
 
3:54 PM
Can I use Flash?
No, you can code your game using only the open web technologies like JavaScript, HTML and CSS.
 
I figure at all times you know more about what I'm talking about than I do xD
 
and your "weird interface" is probably a different admin theme than the default, there are plenty of them
 
@Loktar the games cannot use server side can they ?
 
@FlorianMargaine ohhhhhhh
 
I don't think so @AbhishekHingnikar but I'm not 100% sure
maybe if it all comes in under 13k?
 
3:55 PM
Well, now it's time to dive back into the PHP. I got the jist of what I'm wanting, but it's like my loop is only running once
 
@Loktar technically they want a playable code :3 ? cheat using servaaar hehe
 
lol
 
user1596138
@SterlingArcher wutre you doing
 
@WillemD'haeseleer yeah, that's what .coroutine does after all. I'm still not sure I like it but it looks fine
 
PHP: We loop only once.
 
3:56 PM
@SterlingArcher you know, sharing small bits of code is not breaking NDAs
 
@WillemD'haeseleer also, you might want to name it something other than async
 
if you prefer, we can have private chats on miaou
 
I don't want to pester. If I can't figure it out with good ol' fashion google, I'll take you up on that
Thank you though :)
@Jhawins basically, my search API is being queried, and the results are grouped by a header. For some reason, it's only showing me the first group and nothing else
So I'm trying to modify this to show all the headers
 
@Loktar now i think its a pretty decent idea :P server involvment can create multiplayer game :D
but whats even better is webrtc data channels :-)
 
yeah this past week I was so tempted to make grapple hero multiplayer
 
user1596138
3:59 PM
@SterlingArcher You probably are only running the loop once or something. PHP is funky, I have gone through breakpoint debugging before and realized I had literally no idea what the code I just wrote was doing due to a quirk.
 
since I made my creepster app that tracked users in realtime
 

« first day (1382 days earlier)      last day (3564 days later) »