« first day (2201 days earlier)      last day (2748 days later) » 

user379888
2:00 PM
Even document.getElementsByTagName("title")[0] returns undefined.
 
user379888
@Jois: I am if its a JavaScript editor.
 
@FahadUddin Yes, it doesn't have a title
 
lightweight? java?
 
Design? Java?
 
hah
 
2:00 PM
i mean a lightweight text editor for java
 
why java of all things
 
@rlemon - check this out: preciousplastic.com/en/videos
 
like.. those.. little gray rectangles I saw in browsers 10 years ago? everywhere?
I still have nightmares from those
 
@littlepootis thats because most of the languages has a suuper cool lightweight text editor where as java doesnt have one
 
a text editor is a text editor.
name one of the 'cool' ones you like.
 
2:03 PM
MSWord
 
Since when did text editors need to be 'cool'?
 
brackets for html and css
alright guys is any one intrested ??
i think it's a challenging project
 
@Jois javascript has no cool leight wight editor.
 
I think brackets.io has java syntax hilighting
 
@Jois no
 
2:04 PM
it's a challenging project for the challenged programmer
 
brackets is not leight wight
 
wow dude @littlepootis i can get you many cool js text editor
@RoelvanUden yea i think thats what i got to do thanks roel
 
vim is light weight
 
user6820627
title change again
 
It's also cool, I just touched it
 
2:04 PM
@Jois Why don't you just start development as an open-source project? Then anyone interested in what you are doing can join in discussion and development. But, remember, you're the lead developer and you'll probably have to write 90% of the 1.0 code before anyone even cares.
 
^
 
@LearnHowToBeTransparent yes
 
more text editors, please
 
user379888
How do I get the value of the first blog post using JavaScript?
http://www.demacmedia.com/blog/
 
@LearnHowToBeTransparent complaining again
 
2:05 PM
@BenFortune Thanks for the link, and I meant that I saw it being done in a Mac OS however I do need it for windows now. The issue is that I don't have root access, but thanks anyway
 
@FahadUddin Use a feed parser.
 
@rlemon Oh ok, thanks
 
user379888
@littlepootis I want plain text.
 
What environment are you in? Node? Vertx? Rhino native? Some browser?
@FahadUddin Write a parser
Or a scraper
 
@FahadUddin read
 
2:07 PM
@Pigman168 I don't think it's possible without admin access, since it's a registry edit. I'm not sure if you can have a program open and sort of listen for protocols.
 
user379888
I just want to display the title, url and date posted of the latest post posted on that url on a page.
 
user379888
I have learned cross url calls can also be made using HTML5
 
@BenFortune Yea probably not, since the program that had that feature was installed with admin rights it probably used those to write a protocol.
 
2:08 PM
LOL
 
user379888
@littlepootis: Else one can't access another domain's elements.
 
You're doing it wrong, mate
 
just noticed the stars
 
user379888
Can you help me out? I need to report to my manager in 2 hours.
 
user379888
I need to get this done before it.
 
please don't spam adverts
 
user6820627
@rlemon now i know title change is just as normal as eating rice
 
@LearnHowToBeTransparent eating rice is not normal. you should seek help
 
Americans can't eat rice. It's poison to us.
 
@rlemon I think it needs more questionmarks
 
user6820627
2:11 PM
@Luggage are you american?
 
We only burn it in our foreign cars.
 
I use rice to grow my corn
 
user6820627
@rlemon normal to me OK?
 
@LearnHowToBeTransparent no, this is a serious medical concern
rice is dangerous yo
 
Unless it's burrito-rice. We can eat that.
 
2:12 PM
that has the toxins stripped out tho
 
@rlemon Corn: 8/10. Corn with rice: 10/10.
 
By chipotle?
 
@BenFortune :)
 
user379888
....
 
......
 
2:13 PM
i can't see through the sarcasm
 
@bitten that's the rice toxins, they fuck with your vision
 
but you just can't tell me you don't like chinese food
and some Wonton soup
 
I don't see race with my food. I'm above that
 
2:15 PM
get me broccoli, while i play monopoly
@rlemon i'm going to look over that racist remark
 
@FlorianMargaine yea, read that whilst poopin
concerns me, I enjoy chinese food.
 
Only Harambe can survive the rice
 
@Pigman168 fun fact: he can't
source: he ded
 
@bitten I'm not the one being racist here.
 
2:16 PM
Nooooooooooo
 
@bitten patrice!!!!!!!!!!!!!11
you creepy mofo
 
@rlemon ya boy patrice
that was his rap by the way, the one about monopoly
i would have loved to take credit for it, but you know
 
@rlemon The media has deceived you, that was a stunt double to brainwash us.
 
@rlemon lmao i'm just playing but it's so close to being racist
 
Harambe is safe in my basement
 
2:17 PM
@Pigman168 no, the stunt double was the baby. they needed to cover up the rice scandal
OPEN YOUR EYES SHEEPLE
 
wasn't the rice problem because there was something in the soil?
not the rice itself
 
I duno, I'm shitposting
there is no rice problem
 
@rlemon don't let me stop you i just sometimes can't read it c:
 
@bitten did you try contacts?
!!giphy sensiblechuckle
 
@rlemon That didn't make much sense. Use the !!/help command to learn more.
 
2:20 PM
@rlemon ._.
 
I have a mongodb document where for every trip I have location points which is enormous. Let's say on an average 2.5k - 8k location points or even more in some cases.

Now, I have to perform some operation where I need to send location points in set of 100 at max to some remote server and then based on its response I have to proceed further.

For now what I have planned is to use an aynch.each to iterate through root level of a trips and within it the array (location points is in an array) will be accessed using for loop. The loop will iterate and will contact remote server using request mo
 
@SterlingArcher killshot
 
@GandalftheWhite That's a big question for "I didn't test x, will it work?". Test it.
 
@RoelvanUden Hi Roel. I have tested things on local system. I am gearing up for further tests, I am just taking input from the community here.
 
@RoelvanUden it's the difference between a vampire and somebody who just drinks the blood that happens to fall out of you
 
2:32 PM
@ssube so a vampire and literally all dogs.
> is it food? I better eat it and check.
 
yes, some kind of vampiric dog
maybe like from Blade 3 with the predator face
 
Was this the one from blade 3? ^
 
no, but that one is pretty decent
 
Brb, buying a dog
 
@Luggage that dog is so endearing
 
2:36 PM
Just don't invite it into your home.
 
brb buying more dogs than @BenFortune
 
this is how we start a run on the dog bank and drive the price of dogs way up in the commodities market
the dogconomy will collapse and the great dogcession will begin
 
brb making sure that there are no puppies left for @SterlingArcher to buy
 
@Luggage yeah, then it's game over
 
You know... it's a real bitch to rollover my 403(b) when they won't give me my account # -_-
@ssube I've got to save so much mana to rerune my mons... I gotta take of every shit rune I've put on and replace with these sick runes I've found in the Giants dungeon
 
2:41 PM
@ssube and then, and only then, dogecoin will be valuable
 
Is there any syntactic sugar for this kind of code?
            let offset;
            switch (align) {
                case HORIZONTAL_LEFT_ALIGNMENT:
                    offset = 0;
                case HORIZONTAL_CENTER_ALIGNMENT:
                    offset = node.width / 2;
                case HORIZONTAL_RIGHT_ALIGNMENT:
                    offset = node.width;
            }
 
if statements?
 
@SterlingArcher if they're bad, don't replace them, just put the new one on and throw away the old one.
 
@ssube i first thought you were talking about dogs..
 
const offsetMap = {
  'HORIZONTAL_LEFT_ALIGNMENT' : 0,
  'HORIZONTAL_CENTER_ALIGNMENT' : node.width / 2,
  ...
}

let offset = offsetMap[align];
?
 
2:42 PM
@SterlingArcher I started playing this, my poops are getting longer
 
@SterlingArcher I finally got 100 legendary pieces and summoned... a blue ninja. I was not happy.
he's good, but I've gotten way too many 4s recently
 
Still requesting SU permissions, can't find anything about it on google
 
@corvid Add breaks. What's wrong with it then?
 
// @corvid
let offset = {
    HORIZONTAL_LEFT_ALIGNMENT: 0,
    HORIZONTAL_CENTER_ALIGNMENT: node.width / 2,
    HORIZONTAL_RIGHT_ALIGNMENT: node.width
}[align];
// note you make an object you don't need and compute all alignments, even if you don't use them
 
yea, add breaks
 
2:49 PM
Offset maps: Let's calculate every possible alignment only to use one
 
hehe, yup
He asked for sugar, not brocolli
ohh, and @rlemon already had something similar that I missed.
// not created each time
const offsetMap = {
    HORIZONTAL_LEFT_ALIGNMENT: (node) => 0,
    HORIZONTAL_CENTER_ALIGNMENT: (node) => node.width / 2,
    HORIZONTAL_RIGHT_ALIGNMENT: (node) => node.width
};

let offset = offsetMap[align](node);
 
An offset map with functions might be fun.
Damn you had the same idea.
 
I'm sure we can make that even slower, don't give up now.
5
 
that last one should be ok, assuming you don't re-create the map each time.
 
Yah, you'd only incur func call
 
2:54 PM
holy jesus my ass is violent this morning
not sure what I ate that did this, but I'm purging the fridge
 
if you only create it once, that won't be too bad
 
is there an elegant way to get an inclusive array of dates between two dates?
 
later.js
 
@Shane you and @SterlingArcher went for dinner?
 
must have
and I must have eaten his too
 
2:56 PM
@Shane you use moment.js already?
 
yeah
just curious if there's a one liner I missed somewhere
I can craft something, just trying to keep the code review comments down, haha
 
combine startOf(), .add() and .isSameOrBefore() into a loop and you can make that in a few lines of code
 
ah, nice.. k I'll try that thanks
 
@ssube doesn't have to be very fast, only run once on button click
 
are moments immutable?
 
2:58 PM
no
always foo.clone() or moment(foo)
 
I'm going to be spitting out iso strings as I go, so I might be able to get away without cloning
 
moment(foo) will clone a moment. er.. but will mutate a date.. so.. always .clone()
 
just to keep the load on the server down, lots of these requests coming through
does it matter if I'm only storing the iso string?
I'd rather not add load if I can help it
 
if you moment(someDate) to start and then .add() it'll CHANGE that date.
 

« first day (2201 days earlier)      last day (2748 days later) »