« first day (1381 days earlier)      last day (1858 days later) » 
05:00 - 13:0013:00 - 21:00

Sam
1:15 PM
@rene How are bot tests going?
 
I think I managed the last wrinkle...
 
@rene Yes, it works fine now :)
 
Ok, let me restart it in this room as well...
 
!!time
 
WUT?
 
1:20 PM
!!coffee
 
418 I'm a TEAPOT
 
!!it works
 
Sam
!!doublechocolategateaucheesecakewithcream
 
What are you talking about?
WUT?
 
Sam
Nice, it works ;)
 
1:20 PM
!!he is talking about what he said :P
 
What are you talking about?
 
!!rene is a nice person
 
WUT?
 
Sam
lol
 
Hahaha!
@rene ^
 
1:21 PM
:)
 
Sam
Don't forget...
Afternoon!
 
Afternoon!
 
Afternoon!
 
Sam
@ProgramFOX I assume you like foxes ;)
 
Of course I do! :)
 
Sam
1:27 PM
@ProgramFOX I remember seeing a doc that was talking about how red foxes are able to calculate the exact measurements when they jump into the air and then land right on top of a mic under ~3 feet of snow (just by hearing it). Basically doing the same sort of computing a ballistic missile does on take off. Pretty amazing.
 
Nice
 
Sam
Yeah, it was actually quite hilarious at times. Seeing them jump head first into a bunch of snow.
 
Sam
Personally, I like their big arctic cousins more (arctic wolves).
 
Yeah, I have seen such wolves in your profile. They are nice animals too :)
 
Sam
1:34 PM
Yeah; shame there aren't any in Britain though.
 
Same for foxes in Belgium.
 
Sam
Really? That's a surprise.
 
Hmm... actually not very sure about that.
I have never seen one, but perhaps that doesn't mean that there are none...
 
Sam
Maybe. Or maybe there's just not many around your area.
 
Oh come on. I enter "Where does the fox live?" in Google, and the first result is "What does the fox say?"
@Sam yes, I live near a city, so...
 
1:37 PM
I assume the Ardennes should have a couple..
 
Sam
lol, I know right?
@ProgramFOX Well, there are urban foxes.
 
@Sam Yeah, I have seen those on SpringWatch
 
I've seen one in the Netherlands, though.
 
Sam
@rene Ah yes. Speaking of which SummerWatch should be on soon (I think).
 
@Sam Ah, right. Then there probably aren't many where I live.
It looks like there are foxes in Belgium: en.wikipedia.org/wiki/Red_fox#mediaviewer/…
 
Sam
1:39 PM
@ProgramFOX It also depends on your community's general thoughts of the species. (Such as being pests, etc.)
 
Oh, I was totally wrong about that there live no foxes in Belgium... I have never seen one, but I have seen a hole of a fox once, which indicates that there are.
 
Sam
@ProgramFOX Excuse my awful geography skills. But which countries is Belgium next to?
 
It's close to the UK, and on the north of France.
 
Sam
Yeah, I found it (Google Maps). Just across the little river I see ;)
@ProgramFOX So, what's your native (coding) language?
 
Now, I always code in English. When I didn't yet know English, I used Dutch variable names, but the programming language was always in English.
 
Sam
1:48 PM
I meant like C#, JS, PHP, etc.
 
Ah, I misunderstood it as "language in which you code" :D
Then it's C#.
I suppose yours it too, looking at your profile?
 
Sam
Yep, same here.
I started with Small Basic, then I moved onto VB.Net, then finally C#.
 
I started with HTML and CSS, then JavaScript, then C++ and then C#.
 
Sam
I only know a little bit of C++, and only a tiny bit of HTML.
 
And now I have learned a bit of some other languages, such as Python, Ruby and GolfScript.
 
Sam
1:53 PM
Haven't learn't JS or Java yet... Or anything else.
 
I know a bit of Java, but I have only used it for some contests on Programming Puzzles & Code Golf.
 
Sam
Right, syntax wise C# and Java look quite similar. Besides that, I've read/heard it's more low level than C#.
 
It is, C# is first converted to IL code, but Java is not converted to another language.
 
Sam
Yeah I know about the CLR/CLI, IL, etc. Wasn't sure about Java. So it's straight to machine code then?
@rene You missed the afternoon ritual ;)
 
I'm not sure what you mean by 'machine code' here. If you mean the code that the runtime can execute immediately, then the answer is yes.
 
1:58 PM
@Sam too late now :)
 
Sam
Yes, I meant that (I've heard it called assembly language/machine code before). Ok.
 
Lol this room is becoming more active than the MSE tavern :D
 
Sam
@rene You'll have to wait 'till evening now...
@ProgramFOX lol Nice. And there are less users here.
 
Yes, indeed.
 
Sam
Oh come on! I've just spent the last 6 hours ripping a dvd for the 5.1 audio (as a test for my project). I just start playing it, and find it's all in Arabic :|
 
2:05 PM
No English subtitles? :(
 
Sam
The project creates a virtual surround sound version of the audio (for headphones), so I had to extract the audio. So no subs :/
 
That's annoying.
 
Sam
Yep. It was suppose to me in English. Maybe I ripped the wrong files...
Oh well, it's more a test of how "surround" it sounds, so it's not a big problem.
 
2:35 PM
@SecondRikudo ping me if and when you come here, alright?
 
I'm here @AwalGarg
 
@SecondRikudo now... tell me why exactly do you think, what I say is impractical and harmful? (AND I AM NOT NITPICKING!!! JUST WANNA KNOW ALRIGHT?)
 
@AwalGarg I responded on the question
It's not practical to detect romanized languages. It's not practical to create a translation room for each language known to man, and it's not practical to gather people to translate texts. It's harmful because we're trampling our own rules and allow for "Wait, but you allowed this, why not that?" arguments. — Second Rikudo 1 min ago
I don't understand what the big deal is
 
is that case, you didn't got what I said (actually, I couldn't write in detail, so thats not your fault) (but I maybe wrong in what I am actually saying)
 
We have rules that say that we only speak English, I didn't make this up, and I have no grudge against any particular Hindi language (kidding!), all I'm asking is that we enforce the rules we've setup for ourselves.
 
2:38 PM
I am not saying to create many rooms, just one, private room, to be used whenever such invalid flags are raised.
 
There's no room for discussion about how to deal with non-English in our site because there shouldn't be any to begin with
 
Greetings Stack Overflow-ers!
 
in that case, why should you "not" ignore flags on comments on such languages?
 
@AwalGarg Because I don't have the ability to ignore flags.
 
Sam
@Unihedron Hi
 
2:40 PM
When a flag comes up, it comes up. I can't not see it.
 
@SecondRikudo really? WTF? then you should rather propose to have the ability to ignore them....
 
Also, why would I want to ignore flags at all? Flags have a purpose.
I will flag and validate flags on any post I suspect are abusive, and yes, that includes posts that I cannot understand.
As it currently stands, I automatically validate flags in any language I don't understand.
 
@SecondRikudo the one who flagged it, must be able to understand what he wrote, so if it is not in English, he should have the ability to write in brief what is written - in english.
 
Speak the same language as everyone else, or GTFO. I am tired of trying to sell a well known and very mature rule of the site.
 
ok, from what I know, you guys get ping kinda thing, on your gravatar, right? and clicking on that, you see the flagged message.. right?
 
2:43 PM
Yup
 
and then you have two options, to validate, or to invalidate, right?
 
Or "not sure", which is practically 1/2 * "invalidate"
 
isn't "not sure" === "ignore"? (just asking for confirmation, there is more to it)
 
@AwalGarg No
Enough "not sure" votes will invalidate the flag.
Two "not sure" votes have the same weight as one "invalidate" vote.
 
hmm. is it possible for the user who flagged to add a simple comment in there as to why he/she feels the message is inappropriate? (I guess not?)
 
2:52 PM
@AwalGarg No
 
@SecondRikudo then don't you think if we add that opportunity for the flagger, he can translate that for us... logically, if he thinks something is wrong, he ought to understand it.
 
@AwalGarg If he could translate to begin with, he should have just posted in English.
 
@SecondRikudo I am talking about the one who flagged the message, not the one who posted the message...
 
@AwalGarg Not necessarily. I already said that I automatically flag posts that I don't understand
Although now as per shog's advice I will start escalating them to moderator flags, for the moderator to wipe the entire conversation if needed.
 
@SecondRikudo you flag them as what? spam/offensive? really? you flag something that you don't understand as spam/offensive?
 
2:59 PM
@AwalGarg That's right
 
@SecondRikudo in that very case, your flags are invalid. say you didn't understand what brainfuck is, then you will flag it cus it has the word fuck in it? (not expected from a god :P)
 
@AwalGarg First of all, some people do.
Second, I can google Brainfuck and see that it's actually a programming language
Can you google "Ani lo ohev shemedabrim besafot sheani lo mevin" and figure out what I just said?
 
yep, lemme try.
@SecondRikudo it is something like, "I ignore messages in languages I don't know about." in hebrew, isn't it?
 
That translates to "I don't like it when people speak in languages I don't understand", by the way.
 
@SecondRikudo hehe, i was pretty close, wan't I?
 
3:04 PM
But I bet you guessed more than actually found something
If I were to swear at you, you wouldn't have known
Which is the reason I flag messages I don't understand.
 
but I would stick with the fact that translating manually or googling for translation is not an option.
@SecondRikudo i think it would be a nice productive experiment. gimme some more.
 
Hashual ha'hum vehazariz kafatz me'al hakelev ha'atzlan.
 
I used google translate btw... some words on the first search are automatically detected with their language name. it becomes pretty easy in that case.
@SecondRikudo the borrower agile dog jumped in and some other crap
 
The quick brown fox jumped over the lazy dog.
 
Nice nice
 
3:06 PM
השועל החום הזריז קפץ מעל הכלב העצלן
 
@SecondRikudo hm.. still nice. once more.
 
I've no time for doing this all day ^_^
Do you understand my point?
 
@SecondRikudo entirely translated to the famous sentence.
 
Romanized languages cannot be practically translated or moderated.
When [hindi.so] comes out, feel free to talk Hindi there.
That applies to [japanese.so] and even [hebrew.so].
 
@SecondRikudo i do, I upvoted initially as well, I consider it a perfectly valid point, but I don't see why talking in non-english languages is not allowed.
 
3:08 PM
@AwalGarg Because they are impossible to moderate. And Stack Exchange tried.
Read the comments and links on Shog's answer to my quesiton.
 
Not everything is star-worthy...
4
Stars get removed under peer-pressure?
Not everything is star-worthy...
 
either don't call this a nice place and hang a banner at all pages that "WE ARE NAZIS"! or don't tell non-English users to STFU.
 
@rene Stars can be cleared by room owners or moderators.
They are not normally removed by any other means.
 
Hi Close Vote Reviewer! @rene
 
@SecondRikudo It's his bot.
 
3:09 PM
I saw it happening
Stars get removed under peer-pressure?
 
@ProgramFOX hi there! remember?
 
It says "Not everything ..." if someone stars a message, and "Stars ..." if someone removes a star.
3
 
Ah, lol
 
Hi @AwalGarg!
 
Stars get removed under peer-pressure?
Not everything is star-worthy...
I might need to throttle that as well..
 
3:11 PM
@AwalGarg Ummm, no.
 
Stars get removed under peer-pressure?
Not everything is star-worthy...
 
We are nice, talk English please.
 
Stars get removed under peer-pressure?
!!stop
 
@rene and rene's operator, please move this to the sandbox
 
@SecondRikudo aisa hai mera dimaag mat khao please. mai haar gay, khush?
^try to translate this. :P (nothing offensive in it)
 
Sam
3:13 PM
@rene Lol, that might be a good idea.
 
@AwalGarg Something about your house
 
@SecondRikudo nope, it says. "I quit, you win, lets not do this anymore, happy?" how did you translate it anyway?
 
I tried to google each word individually
 
ऐसा है, मेरा दिमाग मत खाओ, मै हार गया, खुश?
^try this @SecondRikudo
 
if so, do not eat my brain, i am lost, please?
 
3:18 PM
@SecondRikudo pretty simple, and almost accurate one. atleast it conveys what the sentence meant, if not in order...
 
That's how Google translates it XD
 
yea I know, tried it.
returning to that question, do you know about the comms room @ SE? @SecondRikudo
 
then have you ever read the room description there?
 
> This is NOT a place for 'Live Support', Ask questions on the main site. // Rated 18+ for Language, Adult Humor, Adult Content, Adult Themes, Mild Peril and Sexual Content. //ServerFault Stout - A bitter, complex fount of complicated knowledge and experience. Inaccessible to those who are unable to appreciate nuance. 8% ABV.
 
3:21 PM
exactly... rated 18+... and now, we all know that 18+ is not allowed (atleast not appreciated on SE) don't we?
 
@AwalGarg I have no real authority over Server Fault, and I don't intend to start a shitstorm there.
If you want to raise your voice, do so on their meta, or contact their mods
 
@SecondRikudo what I was trying to tell you is, that in chat, we CAN mend the rules, maybe in specific rooms... like in the JS room, I can say the word "fuck" hell lotta times. any flags will be invalidated.
in hinduism room, I dare say "hell"!
thats our culture, and in that room, we ought to follow that culture.
 
@AwalGarg That would not have happened on Anime & Manga.
If the Server Fault moderators are lenient enough to allow this, it's on their head. If I see an offensive flag coming from that room which is 18+ or contains sexual content, I will validate and suspend the user posting it.
 
@SecondRikudo yes. so, for your specific question, maybe we can have the major and standard rooms to not allow non-English laguages, but rooms specifically for IST etc. can allow hindi and etc... wdys?
 
@AwalGarg You're trying to convince me? I didn't make the rules, remember?
It only started to pain me when flags I don't understand were raised
Moving things to a different room won't help because flags are chat global.
 
3:26 PM
for ex. talking in non-English languages in room 11, 17, etc... but there are rooms made by non-English people, for non-English people. there, it is fine, isn't it?
 
@AwalGarg Until it gets flagged and the rest of the chat sees it without the ability to understand it.
 
@SecondRikudo don't you then also see from the flag summary that which room had the original message?
 
@AwalGarg Of course I do, that doesn't make it any less annoying.,
 
@SecondRikudo it makes it less annoying because you see its in the IST room, let them mutter hell. why should you or anyone care?
 
@AwalGarg Because I still see it.
 
3:28 PM
@SecondRikudo and you can easily click the "un sure button" can't you?
 
@AwalGarg Just as easily as I can click the "valid" button.
 
and actually, there might be 10kers who don't even want to see flags; valid or not... I don't think there is an opt out option until yet.
@SecondRikudo you can click valid button for invalid flags as well, thats not the point.

Indian Enthusiastic Programmers

Anyone can join, it's not only for indians. Room is most acti...
what would you do if you see a flag for a message in hindi from one of the above two rooms? would you validate it?
 
@AwalGarg Yep. Instantly.
 
@SecondRikudo IMHO, and only IMHO, you are paranoid/languagist... if you do so.
 
@AwalGarg Rules say English only. Hindi messages break said rule, hence the flag is valid regardless of what the post says.
 
3:33 PM
and it would be my VERY HUMBLE request not to validate such flags...
@SecondRikudo then messages containing phrases like "de facto", "per se" etc. shall be flagged?
 
@AwalGarg Nope, as they are easily understood phrases used in English.
 
and can you please link to that rule?
@SecondRikudo ok. am gonna be out of this within a while... lets see if we can reach a conclusion in 2-3 minutes (trying my best!!!)
 
I ask for a translation before I validate
 
link to the help center please which talks about this nazish rule @SecondRikudo
 
if no one wants to provide a translation I just flood the room with a rant about how annoying the flag system is
 
3:36 PM
@rlemon lol. then you get flagged no?
 
no
because I'm lecturing them on how SO should work
 
i was just about to see your meta profile then I reminded myself, that I don't do this, and should not get the habit of doing this... why the hell do I learn bad things on SE?
 
182
A: Do posts have to be in English on Stack Exchange?

SimucalThe Stack Overflow Trilogy has an official policy on non-English questions: It is not, nor has it ever been, our goal to be the one place in the world for all programming information in every possible human language. Direct question posters to native language resources. It is not th...

 
Jeff Atwood on July 22, 2009

Since this came up on meta, here’s our official policy towards non-English questions on Stack Overflow, Server Fault, and Super User.

(note that I say “programming” below, but this policy is the same across all the sites — when reading, you should substitute the actual topic of the site you use, e.g. “sysadmin topics” for Server Fault, etc.)

It is not, nor has it ever been, our goal to be the one place in the world for all programming information in every possible human language. …

 
3:40 PM
@SecondRikudo for chat I meant... where does it say about chat, madara?
@SecondRikudo ^
 
@AwalGarg Chat inherits the rules from the main site.
 
@SecondRikudo wrong, and I know you are aware that I am aware that you know that you are wrong.
 
All main site rules apply to chat as well. The only exceptions are when chat rules specifically override the Stack Overflow rules.
 
26
A: What languages are we allowed to speak in SE chat rooms?

Shog9The short answer is: whatever language the other folks present in the room are comfortable speaking. All else being equal, if you jump into a room and start posting stuff that isn't understandable to the majority of the users there, you're probably going to get some pushback. And as a practical...

if we want to discuss the chat system ^
and this so far proves true. just be aware when posting in a language other than English the majority of chat users don't know what you said, and the flag is meaningless (if there is one)
 
@rlemon and the very first line proves me correct. @Madara
 
3:42 PM
I imagine 50% vote yes/no and the other vote idk
your best bet is to speak english where possible
understanding the people with the pointy sticks all speak english
 
If you want so desperately an unmoderated chatroom why don't you use freenode?
3
 
@AwalGarg read the entire comment before cherry picking lines from it ;)
> Long answer: chat is not a venue for private discussion, and most of these sites are dedicated to English-speaking content
 
I got the answer what I was searching for, I agree @SecondRikudo that first of my proposals (in the comment on main) is not much reasonable, but the one I did here is right... am out of this now.
@rlemon I have read that previously...
@rlemon hmm, just my view on it: even in that case (which I consider not to be completely valid), it still doesn't make someone liable to be suspended, flagged or something.
 
UNDERSTAND that you are stepping out on a ledge by talking in a non-conformed language.
the community is run by majority rule.
anyone with 10K + rep is trusted to vote.
 
JS is not english @rlemon but you guys talk JS!! flags at the ready lol
 
3:49 PM
and people are lazy, and don't want to translate
 
@rlemon lazy people rarely make it to 10k... and lazy people should not vote
 
yea if you're going to try to take the wrong pedantic route I'm leaving this conversation.
 
Or people cannot translate it, if online translators don't suffice.
 
no, I am not taking that route, and I would not.
 
if you post in non-english and it is flagged you stand a higher chance of it being validated (just what I've seen)
if you don't agree with it, tough. such is life.
2
but it is how things work.
 
3:51 PM
I am not saying that what you guys are saying is wrong, I am saying that its your problem if you can't understand non-English...
!!afk 20 minutes
 
@AwalGarg actually it is your problem if you don't want to conform to the majority.
majority rules, not the minority, and it isn't the majorities problem. the minority are the ones complaining.
 
Sam has been automatically appointed as owner of this room. (What does this mean?)
 
Sam
What on earth...
 
woo nice @Sam !
 
Sam
@Unihedron Thanks :D
Goes to set XKCD what-if? as feed :D
 
3:56 PM
omg yes please :D
 
Congrats @Sam!
 
Sam
@ProgramFOX Thanks :D Maybe we'll have some cupcakes later ;)
 
Now I'm jealous. But not really. I've never really been in this room to begin with.
 
Sam has made a change to the feeds posted into this room
posted on June 25, 2014 by xkcd

Keyboard Power As a writer, I'm wondering what would be the cumulative energy of the hundreds of thousands of keystrokes required to write a novel. —Nicolas Dickner You probably shouldn't invest in a keyboard-based generator any time soon. People like figuring out places where we can recover "wasted" energy. Avoiding waste is a great goal, but sometimes it's hard

posted on July 02, 2014 by xkcd

Vanishing Water What would happen if all the bodies of water on Earth magically disappeared? —Joanna Xu As is often the case with these questions, everyone would die. The first people to notice would be swimmers and boaters, for obvious reasons. To avoid a glass half empty scenario, we'll assume the water is replaced by air. Most people swim in water which is relatively shallow

posted on July 09, 2014 by xkcd

Global Snow From my seven-year-old son: How many snowflakes would it take to cover the entire world in six feet of snow? (I don't know why six feet...but that's what he asked.) —Jed Scott It's been too hot where I live, so I like thinking about this question! Snow is fluffy because it has a lot of air in it. The same amount of water that makes an inch of rain would make a l

posted on July 16, 2014 by xkcd

Cannibalism How long could the human race survive on only cannibalism? Quinn Shaffer There are about 500 trillion calories of human in the world. If it could be frozen or otherwise preserved, that would be enough—at least in terms of raw calories—to keep a tiny breeding population alive for millions of years. Eating nothing but meat sounds bad, nutritionally, but the lack of vegetabl

posted on July 23, 2014 by xkcd

Ink Molecules Suppose you were to print, in 12 point text, the numeral 1 using a common cheap ink-jet printer. How many molecules of the ink would be used? At what numerical value would the number printed approximately equal the number of ink molecules used? David Pelkey This is the kind of problem where Fermi estimation comes in handy. In Fermi estimation, we're not concerned about

 
Sam
Wow, too many, I'll change that...
 
4:00 PM
Perhaps change it into a ticker feed.
 
Sam
Just going to....
 
Sam has made a change to the feeds posted into this room
 
Sam
Done.
 
Ha good!
 
Sam
4:16 PM
@rene Is the cupcake machine running?
 
4:32 PM
@Sam It can in a moment... I try to get the rate limited fixed with the function
 
Sam
@rene Ah right. No rush, just wondering.
 
Feeds dumps historical stuff
so when you change feeds it will be a one time spam, then it should slow down
 
ah, so changing it into a ticker feed is not necessary?
 
Sam
Right, I'll change it back. Since XKCD what-if? isn't that active (well, not much as the comic anyway)...
 
Yes! ^^
 
4:35 PM
Sam has made a change to the feeds posted into this room
 
Sam
@rene So, how's the function working out?
@Unihedron Have you seen the machine gun jetpack one yet?
 
Of course! I've actually read through all of it except the newer posts.
 
yea we notice whenever we change feeds you get a massive dump right away - don't let it bother you.
 
Randall is amazing. :D
 
Sam
@rlemon Ok, thanks for the tip.
@Unihedron Yeah, there all hilarious and very informative at the same time. :D
 
4:40 PM
@Sam I have this gist but I think I calculate rate wrong. You can run it in your browser if you hit F12 and drop it in the console...
 
Sam
@rene Ok, I'll check it out...
 
Sam
4:52 PM
@rene Found the bug. You're incorrectly using the function, it's designed so that cnt is 2 or higher.
 
ah
But on that testset it should ratelimit me everywhere because it send within a 30 second timeframe 23 messages
I wish I paid attention during math class...
Or kept practising after I left school...
Update the gist, much better now
 
'cnt:' + cnt.toString() + '  secs:' + secs.toString()  + ' cl:' + cl.toString()
you don't need to call toString
fyi (if you didn't know)
 
5:08 PM
@rlemon no I didn't.
I assumed it didn't cast to a string
Is that only true for built-in objects?
 
type coercion in js is silly.
if the left hand or right hand is a string, you get coerced to a string
1 + "1"
"11"
"1" + 1
"11"
using the unary +
 
Sam
Sorry about, I tried cnt = (arr.length - i - 1); and ended up freezing Chrome. Took me 15 mins to bring up the Task manager and kill it ^.^
 
test in node
no browser to lock up
 
@Sam Ah yeah, should have warned you...
You can break it in the debugger though, step in for loop and set i to -1 on the console
 
Sam
I didn't know, I don't have any web dev xp.
 
5:13 PM
and then step
Or do what rlemon suggests...:)
 
Sam
Yeah I will.
Ok, I'll redesign the function... just a sec.
 
OK
 
Sam
Try 3.6915 log(x)+1.16667.
 
(function currentRate(arr, ts) {
	var i = arr.length-2,
		cl,cnt,secs;
	for(var l = arr.length; i>1 ;i--) {
		cnt = l - i;
		secs = ts - arr[i];
		cl = rateLimit(cnt);
		console.log('cnt:', cnt, ' secs:', secs, ' cl:', cl);
	}
	function rateLimit(x) {
		return 4.82146 * Math.log(x)-1.88249;
	}
}([1,2,3,4,5,6,7,8,9,10,11,12,14,17,18,19,20,21,22,23,24,25,27,28,29], 30))
idk if it is more clear :P
but that is how I would have written it
well sheet, if we are having fun
 
Sam
It definitely looks tidier. And I don't even speak JS.
 
5:21 PM
(function currentRate(arr, ts) {
	for(var l = arr.length, i = l-2, cl, cnt, secs; i>1 ;i--) {
		cnt = l - i;
		secs = ts - arr[i];
		cl = rateLimit(cnt);
		console.log('cnt:', cnt, ' secs:', secs, ' cl:', cl);
	}
	function rateLimit(x) {
		return 4.82146 * Math.log(x)-1.88249;
	}
}([1,2,3,4,5,6,7,8,9,10,11,12,14,17,18,19,20,21,22,23,24,25,27,28,29], 30))
everything it local inside the for loop, so we can define it all there
everything outside the for block doesn't have access to it then
 
Sam
@rene Forget that, try 3.90865 * log(x) + 0.666667 instead.
 
I doubt the rate limit function is at fault...
 
Sam
Hmm, well stick with the first one then, and just mack sure cnt is 2 or more.
 
I have to find out if the dataset in the array keeps below the seconds come from the function given my current rate based on the data set
 
Sam
@rene Have you tried rlemom's last code snippet?
 
5:36 PM
looking at that code, I still have no idea what the end goal is.
I just re-wrote it given the code I saw
 
The rewrite s fine , I'll try to explain
 
(function currentRate(arr, ts) {
	var i = arr.length-2,
		cl,cnt,secs;
	for(var l = arr.length; i>1 ;i--) {
		cnt = l - i;
		secs = ts - arr[i];
		cl = rateLimit(cnt);
		console.log('cnt: %d secs: %d cl: %d', cnt, secs, cl);
	}
	function rateLimit(x) {
		return 4.82146 * Math.log(x)-1.88249;
	}
}([1,2,3,4,5,6,7,8,9,10,11,12,14,17,18,19,20,21,22,23,24,25,27,28,29], 30))
note the new console.log
console.log('cnt: %d secs: %d cl: %d', cnt, secs, cl);
 
The array are pushed timestamps (say seconds), so the newest time is at the end
 
Ah, nice that works on chrome...
 
5:40 PM
ohh yea sorry I assume everyone uses Chrome (bad habit)
 
Sam
I'm going to continue to perfect the function. It's still inaccurate...
 
That rateLimit function gives for a number of messages how much seconds may have passed...
So the currentRate function should determine if the seconds in the array are within bounds of the ratelimt
The chat rate limit graph looks like this:
10 hours ago, by Sam
user image
 
Sam
But we didn't know the formula, so we had to make one up (which is why I'm refactoring it...)
 
the rateLimit function matches that graph... the currentRate should return true if all datapoints in its array are under the line. If there is one above it it should return false
 
Sam
@rene BTW don't use the current function when you're done; I've found something better, I'll ping you when I'm finished...
 
5:50 PM
OK
I'll prep some dinner...
 
Sam
6:04 PM
@rene And there we go Math.Min(3.77999 * Math.Log(x) + 1.34745, 20).
 
So, the maximum value will always be 20?
 
Sam
Yep.
According to the chart.
 
But... that means that I can post 10000 messages in 20 seconds.
 
Sam
I know, but that's what the chart says...
 
Perhaps it 'resets' after some messages.
 
Sam
6:08 PM
Maybe, I suppose it resets at 100.
 
Yes, that looks likely.
Got to go now, see you!
 
Sam
Bye ;)
 
@ProgramFOX No, it says if you post 10000 messages they sould be 20 seconds apart
I'm doing some close voting first...
 
Sam
@rene Ok. I've something even better actually lol ^.^
@rene Here is it finally (I won't update it again) Math.Min((4.1484 * Math.Log(x) + 1.02242), 20).
 
 
1 hour later…
Sam
7:23 PM
Evening!
 
7:34 PM
Evening!
 
8:12 PM
I pushed a new version to git and update the ratelimiter gist but I need to be fresh to take another stab at it... for now.. good night!
 
05:00 - 13:0013:00 - 21:00

« first day (1381 days earlier)      last day (1858 days later) »