« first day (1628 days earlier)      last day (3322 days later) » 

1:00 PM
well it depends on what kind of query you want to run, and also how you want to write this query
 
does it have transactions already
 
using plain java it's pretty much heavy, using groovy syntax is a lot better, e.g. Map notation like find("id": "abcd")
yes it has transactions now
 
did it remain webscale
 
and the query response time is very good now as well
the data is also compressed with snappy
I am ingesting there up to 10k documents per second from Spring XD on a machine from 2009 and very poor raid controller
It's IBM machine
yes it has all the same features it used to have, but has transactions now and the data is getting much faster
havent tested for all issues, there used to be problem with query optimizer
that it wasnt using indexes optimally and choosing the wrong ones
 
Is MongoDB similar to use to Firebase?
 
1:03 PM
but now every query returns very quickly whatever I try but I have indexes well optimized on old version
 
guys I got a problem.
 
... again?
 
I have lots of problems :|
 
stroke the furry wall
 
Don't use regex so often
 
1:05 PM
I'm starting to get used to regex
 
mongo is now quite advanced engine so it's good look at it, I havent been using firebase
but the application designfor mongodb is entirely different than the one with SQL
 
I'm using MongoDB right now. It's meh. Not bad but not great.
 
for example, when building image server (it's good example,but that's not what I have currently on my plate), mongodb can use plain documents to ingest jobs and process them
in sql you'd need plenty of tables, fields and stuff likethis and manage migrations
in mongo you can even save images to mongo itself, so that you have full solution for processing and storing images
and you dont need to deal with hundreds of tables and thousdans of fields and then manage updates and database cleanups from large batches
mongo has capped collections which limits collection size
and also everything is compressed with snappy as well
so mongo works ok as single instance (with replica) or as large deployment as well
and new storage engine has very good response times, I can pull really a lot of data very quickly using java, process it and save the results, there is very little overhead in that
and then, you can index any field from various documents
so the integration part, which is important in software, is really easy to implement
 
hello
 
I find the hardest thing to do with mongo is advanced queries
 
1:10 PM
because if some systems do have some differences, it is no problem to process them with some generic controller
well I use groovy notation and sometimes it looks weird
 
@Andrew @corvid @BartekBanachewicz Mongo is an indexed filesystem made of JSON documents.
 
In MongoChef I think you can generate queries as well, but they are longer
 
how can i execute jquery after element load (after page load)
something after .ready
 
Mongo shines when you need to store trees of data, without a very definite structure, and especially when you need to pull all of it at once
 
@Bassem put your scripts at the end of the body
 
1:12 PM
mmmmmmmmmmm , let me try it and feed u back , thanks
 
yes, feed my back
 
Imagine having to grab a blog post, all of the comments, all of the users who made those comments, all of the replies and users, etc.
 
given a mongo cursor of x number of documents, what is the best way to find the largest value at a key within it?
 
With SQL you'd have at least 2-3 joins
With mongo you do it in a single I/O operation.
 
I liked mongo for managing user settings
 
1:13 PM
like this: def query = [
"ip": ip,
"STATE": "E",
'$or': [
["DHANDLE" : shandle],
["DHANDLE": dhandle]
],
"insertts": ['$gt': new Date()]
]
 
@SecondRikudo With SQL you can have transactions
and stuff
with Mongo ... cry
 
@darkyen00 Yes, Mongo doesn't have transactions
But you don't always care about transactions.
Mongo is light and fun
But it's not suitable for everything.
For instance, I would never manage money with mongo
 
mongo is pain, so far
 
Things that require a definite "Yes, it was completed successfully" or "No, it failed" are out of mongo's territory.
 
I liked couch better
 
1:15 PM
@darkyen00 Haven't tried couch yet
But my priority right now is Postgres
 
oh you will love it,.
 
@nickdugger , YOU ARE AMAZING , Thank u so much , i spent hour(s) on this
it is worked perfect now
but could u explain me what happened when i wrote it after body ?
 
No, don't put the scripts after the body, put it inside of the body, but after everything else
 
yes i put it before body closing tag
 
gif from darkyen00 was moved
 
1:18 PM
this code
$(document).ready(function(){
$('#jqgh_Report_Customer').css('background-color','red');
});
it worked when i placed it before body closing tag
it doesn't work when i place it in header
Could u explain me why ??
 
So in mongo transactions are not like in sql, but you can manage it
 
That gradient of laughter.
 
gif from darkyen00 was moved
 
basically the way that per document you can have transactions
 
@Andrew Well try having like 20 things to update, each a different mongoose model
and you fail at 19th
 
1:19 PM
Also, don't use document ready. You probably don't need it
just put your scripts at the end of the body
 
Money with mongo is a disaster, it does not support decimals
 
In SQL this would be a simple ROLLBACK with mongo oh shit
 
@NickDugger but then they load later
 
boohoo
 
@NickDugger ok good but i need to understand
could u explain me what happened
 
1:22 PM
@darkyen00 I am :-)
Just not necessarily paying attention
 
Coming back after a lot of days, that too on april fools
 
@nickdugger , no it didn't work when i remove document.ready
 
i smell a consipiracy
 
@darkyen00 this really depends on how you actually use the db, normally with mongo any operation would be limited to update single document
for example, when you are manipulating image, you update only document which describes this image
you dont update several tables or fields which are describing this image, so that when it fails in the middle you need to roll back to preserve image information
 
I still lurk!
 
1:24 PM
and that update of that image is with transactions so there's isolation
 
there's isolation on batch read and single document update, so that the image data consistency is preserved even there are multiple jobs running there and multiple fields are updated
anyway, I will be looking into building front-end using node, I think Express because it's easier to start
 
@NickDugger thanks :)
 
I just wander which template engine works
I have in Nodeclipse jade, ejs, jshtml and hogan.js
 
write your own!
 
1:26 PM
and also stylesheet engines css, less, stylus, no idea what is it
yeah, with eval() ;-)
 
I like compass for CSS
 
it has eval in it!
:D
 
Eval isn't always the devil
only most of the time
if (eval(statement)) {
    return logic[2].replace(new RegExp(this.tag.open + 'else' + this.tag.close + '([^]*)'), '')
}
 
yeah I know, but with eval template engines are easy ;-)
 
1:28 PM
if it's from a trusted source, then you're fine
 
there's no eval in java, there is some sort of, but it has all java specifics
 
yesterday, by rlemon
  (--./)               &
  /..)<               ()
 (o o),\      ___    //
  `--.\(\____/   \__//
       \ `---'  .  )/
        )       \  < j
        | >--( .)  /  a
        |/_|    / /|   v
        /_|_|   /_|_\  a
 
busy with ascii art lemon ?
 
â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
░░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄░░░░░░░░░░░░░░░░░░░░░░░░
░░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█░░░░░░░░░░░░░░░░░░░░░░░
░░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░░█░░░░░░░░░░░░░░░░░░░░░░
░▄▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░░█░░░░░░░░░░░░░░░░░░░░░
█░▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒░█░░░░░░░░░░░░░░░░░░░░
█░▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█░░░░░░░░░░░░░░░░░░░░
░█░▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█░░░░░░░░░░░░░░░░░░░░░
░░█░░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█░░░░░░░░░░░░░░░░░░░░░░
 
:p
 
1:34 PM
pls
 
Do you know any CMS for Nodejs which is good to use to create e.g. forms, menu etc and there's some login panel etc?
and that I can make a form with checkboxes and inputs?
and then render the page, and handle submit with the controller?
 
express + bootstrap
like I recommended like 2 hours ago
 
hrmph. What's the most compact way to combine all lists from a key on a list of objects, excluding replicas?
 
@corvid What do you mean?
[{x: 1}, {x: 2}, {x: 3}, {x: 2}] ==> [1, 2, 3]
This? ^
 
good morning nettlegem
 
1:42 PM
[{ key: [1,2,3] }, { key: [4,5] }, {key: [1]}] => [1,2,3,4,5]
 
listOfObjects.map(o => o.key).reduce((result, current) => result.concat(current)).filter((item, index, array) => array.indexOf(item) === index);
!!> var listOfObjects = [{ key: [1,2,3] }, { key: [4,5] }, {key: [1]}]; listOfObjects.map(o => o.key).reduce((result, current) => result.concat(current)).filter((item, index, array) => array.indexOf(item) === index);
 
@SecondRikudo [1,2,3,4,5]
 
@corvid Note that arrow functions might not be supported everywhere
x => y ==> function(x) { return y; }
 
is that with a good complexity rate ?
 
I've never seen those arrows before ._. I was thinking of using underscore
 
1:45 PM
@KarelG At worse, O(4n)
 
i thought a loop through he list of arrays, use values, and loop through a self defined array add it to self defined array if it's unique. break if not
 
@corvid Arrow functions are just a shorter way to write function expressions.
 
and avoid a .bind
 
@KarelG Here's the detailed version
listOfObjects
.map(o => o.key) // Iterate over the array and create an array of arrays from the .key
.reduce((result, current) => result.concat(current)) // flatten to one array
.filter((item, index, array) => array.indexOf(item) === index); // remove duplicates
O(3n), sorry
 
1:53 PM
took your solution, but kinda cheated it a little and passed in a mongo cursor rather than a list
 
[{ key: [1,2,3] }, { key: [4,5] }, {key: [1]}].reduce(function(a,b) {
  return { key: a.key.concat(b.key) };
}).key.filter(function(a,b,c) {
  return c.indexOf(b) !== -1
});
 
_.flatten(Templates.map(function(doc) {
  return doc.idList;
}));
 
don't map like a noob
noob
 
i know these pipelines, at least the solution is also at O(3n) as at me
 
what's wrong with _.map ._. ? It's readable
 
1:54 PM
extra loop
 
@rlemon Why return an object?
 
in the end filter returns an array
so who cares
 
.reduce(function(a,b) {
  return a.concat(b.key);
}, [])
 
How did you get that ?
 
1:59 PM
I'm pretty sure he just flipped a screenshot horizontally
 
@dystroy com.google
2
 
brilliant
 
Hum... how does that work ? (I mean the url)
 
@dystroy google is a new TLD (owned by google), they just pointed the com subdomain to wherever they wanted.
 
Someone got a $1e6 top level domain
 
2:01 PM
hrmph, I have another weird problem where I will have to push to a collection if there are repeats before removing them
 
it's from SomeKittens (see stars post)
 
How comes there's a google TLD ?
 
Interesting interaction with "do a barrel roll"
 
good find
 
2:05 PM
@dystroy google requested it at ICANN i think
and with money, you can open doors
 
wget doesn't like com.google -> SSL problems
 
Chrome doesn't mind at all
 
transform: rotateY(180deg);
 
I was too busy at work to find time to break miaou, recently. So I could just tag miaou as "stable-004"
 
@JanDvorak awww tilt also fixes it
 
2:08 PM
@dystroy the com.google link gets the content from this url : google.com/?igu=2
 
<blink> html
 
:-(
 
works but marquee doesn't
zerg rush is broken
 
Finally got Gitlab-CI working with Docker :>
 
2:14 PM
I am surprised that you dont admire java
java is the most serious bit of technology today
 
wat
 
maybe except for the internet itself
 
Best be trollin'
 
java is huge, it's the biggest ecosystem
 
April Fools is over.
 
2:16 PM
if something is that huge, it's huge underestimation trivializing it
 
it's still 1 april for me
 
@Andrew PHP is pretty big too, and it also sucks
 
because over these years, java did really develop well
 
Hell, VB6 is still being used today
guess what
it sucks
 
there are several languages running on the jdk today
 
2:16 PM
C# > Java
 
!!s/SSL/LSS/
 
@Shmiddty wget doesn't like com.google -> LSS problems (source)
 
my language is better than your language
 
C# is not comparable to Java, Java is quite unique because it's virtual machine
 
okay another underscore challenge: extract all repeats from an array. As in, construct a new array from the repeats in another list
 
2:17 PM
8 hours ago, by Shmiddty
@SterlingArcher lel subtletroll: http://www.reddit.com/r/AskReddit/comments/310y99/serious_is_oxygen_deprivation_‌​a_legitimate/cpxl87b
 
@Andrew Why do you bother doing the promotion of java ? Are you selling something ?
 
And C# on linux, including F#, is a lot slower than other JDK alternatives
nope, I am just puzzled of that anti-java thing, especially on ruby forum that's what I've seen
JDK itself is good, no matter what language
 
People love to hate; but what people love to hate even more, is something that sucks... like java.
 
and the number and quality of libraries is the only one
 
do you have a good insight of the JVM and the API's in the JDK ?
 
2:20 PM
Java is too verbose. I'm fed up writting 100 files of 200 lines when 20 files of 50 lines would be enough in a more expressive language. I'm fed up trying to untangle premature inheritances. I'm fed up trying to find the right method to use in over-repetitive libraries (Apache libs are a shame to computing)
 
without java, I would not do at all what I am doing now
 
if not, then please don't do these approvals anymore. Java has its uses, it is not that bad but on some platforms/situations, there are other better languages for that.
 
You mean trolling in a JavaScript chat room?
 
it's because latest JDK runs on ever very old systems, so I can run latest java on centos5 or sles10 without issues
 
2:21 PM
how do you check if an object is a Mongo.Cursor? typeof only returns an Object.
 
instanceof?
 
@KarelG Java sucks bro.
 
And I'm fed up of those questions...
0
Q: Javascript - Object return itself

Asaf NevoI have this object and i want to print its value to the console: var PageStatistics = function (page) { var myFunctionName = function () { //some logic of operation //i want to print to the console the current object state to see if my logic works console.log(this); }...

 
CHECK OUT THIS FUNNY APRIL FOOL SITE IT’S LIKE A PROGRAMMING LANGUAGE… BUT BACKWARDS! https://HASKELL.ORG
4
@BartekBanachewicz ^
 
@BenFortune hm, that doesn't seem to work as expected.
 
2:23 PM
@rlemon its uses = used in colleges to learn the baby steps in programming. that doesn't mean that i would support that
or in android ... why google ...
 
@SecondRikudo lmao
also derp I didn't know the new design made it already
cool!
 
@KarelG I work embedded. Java is fucking everywhere.
 
that's because people got taught Java first without awareness of other more practical languages.
 
also because Java runs everywhere
 
that they would end up using Java
that's a detail IMO
 
2:26 PM
I have a buddy in a comp sci track in college, and he basically only knows Java.
It's just what they teach in higher ed
 
that's not good ...
ofc he can be good in java, but that's not the only language in the world
 
well, if he got a good grasp of paradigms and techniques though...
 
Yeah, his skills are definitely transferrable, I'm just saying that Java is the main focus in schools
 
C# was the main focus at my campus :o
heck, that language is free and easy to implement. I can understand the schools decision, but it's surely not a good evolution
 
my main focus is writing the code that pays the bills.
 
2:29 PM
that's arguably even worse than a Java-focus
 
nahh
 
you're kinda tied to the Windows universe here though
 
http://stackoverflow.com/questions/29393275/javascript‌​-truncates-incorrectly
 
sure, that's getting better and better, but still
 
@GNi33 only if you wanna write corporate code.
scroll up, I work embedded
 
2:30 PM
I didn't follow recent evolutions of C# to be fair
 
or are you talking to not me
yea, you are not talking to me
 
but can C# be used entirely "stand alone" now?
 
fuck.
 
@GNi33 yes
 
@GNi33 compiler is open sourced
 
2:31 PM
ok, cool
 
Has the compiler been ported to linux yet?
 
back when I was coding C# is was pretty much impossible to do so outside of a windows environment
wait..
that sentence didn't make sense
 
@BenFortune was it not "mono" or something ?
 
Are many people doing C# on linux today ?
 
@dystroy I suppose more than before
 
2:33 PM
!!s/coding\sC#/playing the game/
 
I mean since the open sourcing
 
@jAndy back when I was playing the game is was pretty much impossible to do so outside of a windows environment (source)
 
hehe, I guess I lost ;)
@KarelG I guess so. that's what they use in Unity
and Unity should run on any environment as far as I know
 
ah
 
Unity runs almost in every environment.
 
2:38 PM
@darkyen00 Except for Linux :P
 
@SecondRikudo really?
 
it runs on MacOs, so that jump shouldn't be a big one though
 
It runs in Steamos, android..
 
If we're talking about the same Unity I'm thinking about, then yes.
 
Unity game engine
 
2:40 PM
@Loktar the games, yes
but that's because it (iirc) uses a wrapper
 
@Loktar unity3d.com/webplayer I'm familiar with this one
 
like the JVM kind of
 
@GNi33 ohh you guys are talking about the editor/creator itself
 
yeah
 
2:42 PM
I didn't realize you couldnt create games on linux, thats weird/funny
since you can export to like every platform imaginable lol
 
@JanDvorak my coworker just showed me the com.google lol that's funny
 
> OS: Windows XP SP2+, 7 SP1+, 8; Mac OS X 10.8
yeah thats interesting
never knew that, wth Unity
 
posted on April 01, 2015 by admin

Hovertext: Also, biochemistry should be called Non-Necrochemistry. New comic! Today's News:  Bonus comic at The Nib!

 
try searching "ja pierdole" on com.google
 
every announcement I see online today
6
 
2:44 PM
wonder how well Unreal Engine supports Linux
 
@Andrew ...
 
DISCLAIMER: Andrew is trying to get you to google "fuck me" on google in another language
LYNCH HIM!
 
@rlemon just don't browse the news or reddit today...
 
Just don't browser reddit.. period :P
 
I thought about making a joke about Obama stepping down but I didn't want to depress anybody
 
2:46 PM
@ElliotBonneville the depression would only come after finding out its a joke
 
@rlemon oh ffs it's april fools today
 
@Loktar exactly
 
OMG @Loktar
did you see!?
 
@rlemon haha
that modded case would be really cool to have at least
 
@Loktar lol'd so hard. But hey, are there actually good politicians in USA ?
keh, i should shut up, since i'm from Belgium
 
2:48 PM
None have really "got" me today.
 
@Loktar $10 says you'll see it on Etsy in ~3 weeks
 
that would be sweet
that controller render is really nice man
id love to have that
 
A controller like that looks like it should be Matrix-plugged into your head
 
thinkgeek always goes full tilt on their pranks
 
that would kind of defeat the purpose of having a controller at all
 
2:50 PM
depends on who's controlling it
 
Aren't we all controllered by something?
 
https://www.youtube.com/watch?v=dQw4w9WgXcQ how did rick astley make the front page of /r/music ?!
 
@rlemon That controller, want want
@rlemon You can't fool me! I recognize that hash!
 
room topic changed to JavaScript: Do Not Trust Any Links: Read this: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf | Angular is on topic here stop asking. Don't ask to ask just ask. [cereal] [david-programming] [ecmascript] [es6] [javascript] [we-so-excited]
:D
 
2:52 PM
Also links never have http:// or https:// in them
 
That's my philosophy for the day
 
@SecondRikudo Linux ain't an environment
its a parallel universe.
 
@darkyen00 Linux is love. Linux is life.
 
@rlemon that site is a gem ! I found this one which i can use ...
 
Linux is porn ?
 
2:53 PM
porn is linux
 
Jun 22 '12 at 16:16, by rlemon
$ who | grep -i cute | head | nice | talk | date | cd ~ ; wine ; unzip ; touch ; strip ; finger ; mount ; gasp ; yes ; uptime ; umount ; kill
 
working on a video of all the stuff a Windows tablet can do.
$140, and better than any handheld console I've ever used.
 
not going to lie - didn't expect tablet
 
@rlemon kill? What are you a black widow, baby?
 
@Loktar Which tablet is that?
 
2:54 PM
@SterlingArcher hoes don't like it when I don't pay
it is easier this way
 
I can get a HP Stream 7 for £50
 
@BenFortune a TW802 $140
@BenFortune only downside of the Stream 7 is the 1gb of ram
mine has 2, which is really nice
 
Yeah, that's literally the only reason why I didn't get it
 
if you're near a microcenter the tw802 is $99
 
2:55 PM
@rlemon LOL
 
it runs so many games, I <3 it. Mount&Blade was running at 90fps on it last night
 
Im not clicking any links today :D
#NoTrust
 
my kids want a windows tablet now instead of a new 3ds :P
 
@SterlingArcher "2015 Hot Sale Car Tents Car Multi-functional Tray Desk Table Multi On Steering Wheel for Laptop Cup Drink Food Books - Sample"
 
Just shove a 3ds emulator on it :>
 
2:56 PM
lol what
 
@BenFortune hah I wish they had one :(
 
They do?
 
but yeah I mean.. I have node installed on the tablet
 
and controlled the drone with node from the tablet
 
2:56 PM
@rlemon lol
 
so damn cool
 
probably a good idea
 
@BenFortune I dont think a 3ds emu exists yet at all
 
@rlemon is that for when you want to get chopped in half if you get in an accident?
to avoid all the inconvenience of surviving, and insurance and stuff
 
2:57 PM
That driving wheel table is so old, that used to be on Amazon
 
I Imagine it is for when you are sitting in the car watching a drive in or your kids play baseball or something
 
probably still is, with hilarious reviews
 
but yea, people will abuse it
 
@rlemon looks useful
 
Oh, not released yet
 
2:58 PM
@Loktar just like you!
#burn
 
@rlemon or you're just taking a break
 
haha nm you saw :P
 
working*
 
@BartekBanachewicz lies.
people don't just take breaks in their cars
what is this? crazy world?
 
2:59 PM
@Loktar What controller is that too?
 
> 25,626 of 25,841 people found the following review helpful
@BenFortune on the tablet?
 
Yis
 
> 25,841 of 25,626 people found the following review helpful
 

« first day (1628 days earlier)      last day (3322 days later) »