« first day (977 days earlier)      last day (3033 days later) » 

9:00 PM
Naruto answer; accepted non-selfie answer with 0 score: Create a text index of files
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Organising JavaScript for small scale websites
 
0
Q: XSS Sanitization of RSS Feeds using JS

Emmett R.I need to pull an rss feed with links, headlines, and descriptions onto the front page of a website, and while I would like to think the source is trustworthy, you can never rule out malicious actors. I also would like to avoid iframes, since a sufficiently secure iframe sandbox would impact the ...

 
@Duga Well that's a new one
 
9:26 PM
Thanks for the feed back Muggle. I'll start working on those points you listed. Give me about a week or so and I'll have the corrections, I hope. Really appreciate the help and support. — DKnight 39 secs ago
"Muggie"
no wait it's "Muggle"
geez
that's also a new one
 
Yeah, I was gonna say.
There's no i in that word.
 
@Mat'sMug Should we start calling you Mr Muggle? ;)
 
NO!
>.<
 
possible answer invalidation by Matt O'Neill on question by Matt O&#39;Neill: codereview.stackexchange.com/posts/116051/revisions
 
@Duga O'Bug!
@SimonForsbergMcFeely saw that? ^^
 
9:31 PM
@Mat'sMug Alright Vernon.
 
grrrr
 
You're name on my screen is now Vernon Dursley.
 
2
Q: Incorrect year text

Medet TleukabilulyI have up voted answer some month ago, now I just tried to toggle it, throws correct error message, but incorrect year as seen in pic below Thanks, see you soon App Version: 1.4.2.3 Device: iPhone 5 (GSM) OS Version: Version 9.2 (Build 13C75)

ironically, this just landed on MSE
 
Oh no
This won't do at all.
 
@SimonForsbergMcFeely Duga's not alone ^^
 
9:33 PM
If I refresh your name shows up as "Vernon Dursley" as expected, but when you send a new message it doesn't.
Well that's a bummer.
 
0
Q: PHP Dependency Injection Container

TheKitsuneWithATieI am currently working on a small framework and one of it's main components is a Dependency Injection Container I made. I am not a professional dev and I would like someone more experienced than I am to review this class. The class itself is pretty easy to use and documented, here it is: <?php ...

 
So I sent a company wide email on our AS/400 reminding everyone of my hours, and one of our sales reps replied "elliot... im your #1 fan. that tis all, dueces!" I think I needed that boost for the day.
 
@EBrown I needed your sarcasm for the day :)
 
9:52 PM
@Phrancis I wasn't sarcastic...lol
Now, I have to figure out how to connect to an NFS system through VB.NET.
 
nobody in the nth monitor?
nevermind
I'm back!
 
I think I'm getting the hang of eating these elephants.
 
what
 
It's a phrase coined by one of our members: importblogkit.com/2015/05/how-do-you-eat-an-elephant
 
reopening Code::Blocks...
does libcaca converts images into text and lets me print it into the console? I simply start the console and print some image as ASCII art?
 
10:04 PM
12
Q: Is there a command-line program that can output ascii art as an image?

user5182Is there a command-line program (for Linux) that can convert an image to ascii art and then save that output as an image e.g. jpg or png? To illustrate what I'm in need of, I want to convert the image below into ascii art The output that I desire from a program should be similar to this one, w...

Might help you
 
thanks :)
I don't want the ASCII art as a image, I want it printable into the console a text.
 
Look at the answers
Looks like that's exactly what they are doing
 
Ok, let's digest this elephant:
-A library that converts images into pure text ASCII art.
-Some way of posting it into the console in the middle of it.
Can this problem be breaked down further?
The 1st one might be Libcaca.
The 2nd one might be Curses.
I ain't sure. But also I don't know how to use them, if this is right, so I think I can't do my game with ASCII art graphics :(
 
Well it might be better to output the ASCII art to text file so you only have to convert them once and not every time you need them
Then it's easy enough to print the content of the text file to the console
 
Great idea! Thanks! But... it need to be printed relative to the console window so the graphics aren't linebreaked soon.
There are some ways:
-Somehow make the font size of Windows console relative to the console window size;
-Print the text only in some corner (or middle) of the console.
 
10:11 PM
That's a bit difficult. The console wasn't really designed for playing games.
 
Hey @Phrancis, an IDENTITY is like a primary key right?
 
Or we can maximize the console before printing the graphics... or doing Alt-Enter and making the console enter text mode. The latter might require Ncurses, and so might do the former...
 
If you really want to display images, it would make more sense to make a UI for it
 
@Quill No
Not at all.
 
@Quill Not quite no
 
10:12 PM
I don't know how to make a UI. I want to make a console game, it's easier.
 
So what's the major difference?
 
@Quill One is a constraint, the other is a trigger.
 
IDENTITY is analogous to AUTO_INCREMENT in other DBs like MySQL/PostgreSQL
It just increments your numbers, that's all. It can take two arguments, 1) the starting number, and 2) how much to increment each time
 
0
Q: Calculating the change of a vending machine

JnxFI would like to know if this function is correct (I know that it works, but I have not got enough knowledege so as to demonstrate that it is correct). Indication: a colleccio is defined as a vector< int > always of size 12, so I can represent the number of banknotes and/or coins of value 50, ...

0
Q: Small java auto-pinger, single class program

corsiKaI have a problem with some remote devices at a lot of my manufacturing sites. There are two major problems: 1) the network is unreliable in terms of maintaining connections and 2) machines have duplicate IP addresses. Both of these are, naturally, catastrophic. To detect these conditions, I wrote...

 
Ah, not unique, auto incrementing
 
10:14 PM
Or defaults to IDENTITY(1,1) if you don't provide arguments
 
@Phrancis /Access ;-)
 
Often times you see the two together, but that's just because a PK has to be unique.
So it's easy to define a PK as an auto-incrementing column.
But you can easily have one without the other.
 
@Mat'sMug Silly Mr Muggle, Access is not a real database ;)
 
@Mat'sMug Still no answers to my WPF question. :P
 
who is captain obvious and why is he putting random questions in the chat? just a question, please don't get mad if this seems....
I forgot the term for it :P
 
10:16 PM
@Gustavo6046 He's a feed.
 
oh ok thanks, I was afraid
 
He posts what questions have just been asked on our site.
 
@Gustavo6046 Great question. It's a RSS feed that posts new questions
 
did he posted my questions?
 
Yep.
 
10:17 PM
does cin.get() pauses include alt-enter input?
 
Speaking of mugs, they said in december they would ship the 10m swag in 2 weeks
also I got my MSE swag email last night
 
7 hours ago, by Captain Obvious
0
Q: C++ Not-So-Simple Entire HTML Generating Code v0.3

Gustavo6046As a follow-up to my code's v0.1 revision, we now introduce V0.3, with capability for storage of attributes and a struct for each HTML tag! Just start the struct, call it's functions, change it's variables then use <fstream> to make the complete HTML file using generateHTML()! (53 lines! Now I a...

@Quill I still haven't gotten mine.
 
@EBrown For the Choose your own swag question?
 
cin.get() includes alt-enter or only enter?
 
10:19 PM
@Quill Oh, no. From 10million.
 
Oh yeah, I haven't got mine from that either, but it should be soon (they actually put real times on it instead of 6-8 weeks)
 
Hey wait a minute... no mug?Mat's Mug ♦ 13 secs ago
 
@Mat'sMug I love my SO mug.
Same one you have, actually.
 
with the old black logo?
 
@Mat'sMug You should be getting >1 from the 10m events
 
10:22 PM
Erm... sorry for the dumb question. but... what is a swag, and what is a mug?
a mug from SE*
 
<-- mug
 
Yep. The 6-block logo.
@Gustavo6046 "Swag" is branded merchandise.
 
I also got a 5-[orange]-block SO mug :)
 
SE periodically gives away free goods.
@Mat'sMug Now I'm jelly.
 
@cFrozenDeath: ironically, the code you posted on codereview saves a salted hash, which is fine. The pre-hash of the password is redundant. — Jim Flood 46 secs ago
 
10:23 PM
but seriously.. there has to be a CR mug with the logo on one side and the t-shirt tagline on the other
 
I got a shirt, some stickers, a notepad, and a mug from attempting to assist SE with a spam filter problem.
They actually gave me the motivation I needed to revamp my original spam filter to .
 
lol php
 
This was written before .
 
during one of the podcasts, there was talk of machine learning towards spam filters on SE
 
Back when I was a programmer.
 
10:26 PM
so, you're cured now?
 
@Quill That's what my spam filter does.
@Mat'sMug No, sadly. I still have some projects left out there yet to be converted.
I need to get an official API wrapped around my spam filter, then sell API access to it.
It's really cool, @Mat'sMug has seen some of the code before.
Which reminds me, if I send you that code again, can you look it for me again @Mat'sMug?
 
probably
 
Alright. I might have to take you up on that later.
I need to build a Configuration class for it. Right now all the config elements are hard-coded constants.
(Fortunately, I do have config elements. I didn't hardcode actual values anywhere.)
Well, using var everywhere has done something to this.
Not sure if it's good or bad, yet.
@Mat'sMug Is it possible, in C#, to attach methods to enums?
 
nope
well, extension methods I think you might perhaps
 
Bummer.
 
10:39 PM
TTQW - Today was a crap day, glad it's over.
 
0
Q: Right triangle calculator

user1717828I'm trying to code Python in an object-oriented style, but it just seems very forced. Can anyone give me tips on this exercise of calculating the third leg of a right triangle from the other two? I'm not looking for input santitization help! I'm aware the project doesn't check if the input is ...

 
// This logic doesn't always make clear sense at first.
Well, I suppose that's self-explanatory enough.
 
Is Entity Framework supposed to create classes based on your tables?
 
Yes, if you enable Code-First Migrations.
 
10:48 PM
@EBrown From table to class is Database-First
If you want to create tables based on your code, it's Code-First
 
Yeah, I went through Database first but no classes were being made based on my tables
then I did it again, like literally the same thing
and it worked
 
@JeroenVannevel Ah, I read his thing backwards.
 
I think it had to do with the primary key warnings
in JavaScript on Stack Overflow Chat, 4 hours ago, by ssube
sometimes CSS works, and sometimes CSS doesn't work, and other times CSS does work, and occasionally CSS doesn't do the work, but then CSS does do work that it does, except CSS doesn't not do the work it can't do
 
You'd think the main site would be more active considering how active chat is.
 
@Quill the easier is loaning Gmail's filter, it's overzealous enough for the job :) I got registration email detected as spam xD
 
10:56 PM
what
 
nvm, I was reading the top of the page and I didn't notice xD
when you said SE would have spam filters
 
oh yeah
 
@EBrown ah, so that is what "Migrations" are for!
wah
 
I could do a C++ spam filter that analyzes the e-mail word by word, and if the number of word coincidences with the spam word database was higher than a threshold (size of email in words multiplied by the scale in the user settings) it would be put in the Spam folder.
The user could mark the email as Spam. He would be prompted "Do you want to mark the words that are spam-ish?" and then he would contribute to the database.
Common spam words include "bank, form, information, credit, card" and even "poop".
 
@Gustavo6046 "You have won a trip to the Bahamas!"
 
11:02 PM
@Gustavo6046 That's how Bayesian spam filter works, to an extent.
 
The last time I answered them, I told them to shut up. Shocked my sister, who didn't know who I was talking to.
 
Naive Bayes classifiers are a popular statistical technique of e-mail filtering. They typically use bag of words features to identify spam e-mail, an approach commonly used in text classification. Naive Bayes classifiers work by correlating the use of tokens (typically words, or sometimes other things), with spam and non-spam e-mails and then using Bayes' theorem to calculate a probability that an email is or is not spam. Naive Bayes spam filtering is a baseline technique for dealing with spam that can tailor itself to the email needs of individual users and give low false positive spam detection...
 
The badword database stores all words considered bad words, they are like spam words but they count as triple.
 
I just have a static filter in my outlook that filters anything containing "Viagra" or "Cialis" to trash immediately.
That catches ~50% of my spam alone.
 
@Hosch250 or just answer and let them talk without responding
 
11:03 PM
lol
 
Also, you should give the first email received from an account a higher weight.
@Quill We usually hang up after the first couple words.
 
just leave them until they realise nobody is on the other side
 
I always greet telemarketers with a generic hold announcement.
 
they're gonna waste your time, I'd waste their time in return
 
Burkina Faso is a common spam subject. "My father died in Burkina Faso, I'm about to die too and I want you to herald the lost family's money, just put your address and credit card code here and we will ---steal---give you the herald money". That's how most spam works.
 
11:04 PM
"Thank you for calling! We appreciate your call. Please hold while we find someone to take your call."
 
They sound machine generated. I don't remember, but I think we are supposed to press a button to claim it.
 
Then I put the phone down and leave it.
If they're still on the line after a few minutes, I repeat the message.
 
another good one is to start speaking another language back to them
of course the caveat is that you need to know another language
 
TTQW, finally got my report query up and running. tomorrow is another day - gotta consume that stored proc in SSRS now :)
 
I don't know any languages except American English and British English.
@Mat'sMug Later. Have fun. :)
 
11:05 PM
@EBrown Same here, and I don't know much Br. English.
 
they.... don't quite count as two
 
I know both Portuguese, English, and a bit of Spanish, German and Japanese.
 
@Mat'sMug Totally two different languages. Color vs Colour, completely different.
 
Hello in German is "Hallo", in Spanish is "Hola" and in Japanese is "Konnichiwa" (of course in japanese alphabet).
 
@EBrown I like the "Please hold the line, your call is important to us" variation better ;-)
 
11:06 PM
@Quill I like the one where the callee pretends to be a police officer.
 
Quite a few regulars here speak French too
 
@Mat'sMug There are so many different variations. I like to switch them up regularly.
 
Or, you could immediately answer and say "You have won a free trip to jail the Bahamas!"
 
@Hosch250 My friend answered a call for his dad from a bill collector, and told the bill collector his dad was dead and started crying.
 
French is "Bonjour", Italian is "Bonjorne" and Chinese is "Ni hao" in their alphabet.
 
11:08 PM
I like the one where you pretend like you know the person
 
The bill collector called back like 5 days later, "we need a copy of the death certificate for ____", and his dad answered it and shouted "I'M NOT DEAD!"
 
> "Sarah? Is that you? It's been ages, how are you?"
 
@EBrown LOL.
 
@Quill "I DON'T KNOW YOU PLEASE STOP"
lol
my mouse is broken, I will need to use laptop's touchpad instead
 
Now, better question: how do we keep ending up on this topic? I swear I've seen this topic in this room like 3 times now.
 
11:10 PM
move to the nth
 
because it's funny
 
Because cold-callers are so prevalent?
Spam filters?
 
Ah, yes.
Spam filters.
 
make a spam filter like the one I said that could substitute Gmail's current overzealous one and you win a trip to jail the Bahamas!
 
Is room owner/mod around to kick the messages?
 
11:11 PM
@Hoach250 they put in the nth, they don't just kick
 
@Gustavo6046 I never get spam, so I don't need it.
@Gustavo6046 That's a new version of my name. The usual one is "Horsch".
 
I am spam.
 
@EBrown *activating spam deleting systems*........100% done
*activating defense systems*..........100% done
*activating laser*........100% done
*shooting*
who here is alien?
 
I am not going to flag it as such, but I have feeling that this question would be better suited to Programmers Stack Exchange; or maybe Code Review if you can add some working code that can be discussed. — MirosÅ‚aw Zalewski 26 secs ago
 
11:15 PM
lol
Dilbert was in our major standardised test (finals) last year
That one about not working to full capacity because it creates expectation
 
Seriously? What were they testing you on?
I think I'll create a room and put a Dilbert feed in.
 
Testing us what it meant, Visual Literacy, the unit was called
 
Hmmm.
 
This question is more appropriate for codereview.stackexchange.comJeremy Harris 11 secs ago
 
Response format was short response (a paragraph)
Of course, I'd seen that specific comic here before ;-)
 
:26650106 You could read the file character by character, then print out each one.
 
Only 3 minutes left.
 
what if it was a backslash?
@EBrown: for what?
 
@Gustavo6046 Until TTGH
 
11:27 PM
these are incredible
 
TTGH?
 
Time to go Home
 
@Gustavo6046 ^
Damn @EBrown you're fast today
 
@JeroenVannevel They really are. They use some crazy
 
@Phrancis What else am I supposed to do while I wait?
Also, will you be on Skype later? I might have a few SQL questions.
 
11:29 PM
Yeah just hit me up
 
How will I read the file character-by-character if it only reads via the >> method?
 
Roger that.
 
Also how much of the file does each >> bites?
 
Can someone explain this to me? I'm not good enough at programming yet to understand why it's wrong
nothing justifies recursion here, nor to call level1Question2 from level1Question1njzk2 1 hour ago
 
I'm sure there are other ways to read, but I only know how to do it in C.
 
11:31 PM
how do they guys put here Wikipedia articles and how did sirpython highlight the words "css-magic"?
 
That was a tag syntax. I did it like this: [tag:css-magic]
 
use this format [tag:word]
 
and the Wikipedia articles? like:
:26649707
 
As for wikipedia, some links, if posted alone in chat, will "one-box", or form a special box in the chat box.
 
11:35 PM
lemme try :)
 
@EBrown Funny anecdote on that... at my last job my title was "Client Support Specialist". One day suddenly all me and my teams' emails were not delivering.
 
totally not appropriate discourse for chat
 
Hold on
2 messages moved to Trash
 
this is a politically, racially and gender-biasly free zone @Gustavo6046
Thanks @Phrancis
 
ok
I didn't really understand what you said @Quill
 
11:38 PM
@Gustavo6046 This is a friendly, but firm warning. Please watch what you post in this room. If you want to talk politics with others, invite them to The Nth Monitor, that's what we created it for. Thank you.
 
ok
I'll try to avoid much politics here
 
Yes, very good, we all appreciate it :)
 
just a sec.... the nth has not a single post SINCE 4 HOURS AGO
 
People usually don't go there.
@Phrancis Did you get sidetracked?
 
@Hosch250 Huh?
 
11:41 PM
It's a side chat to here @Gustavo6046 not necessarily a main chat room
 
On your anecdote.
 
4 mins ago, by Phrancis
@EBrown Funny anecdote on that... at my last job my title was "Client Support Specialist". One day suddenly all me and my teams' emails were not delivering.
you were talking about emails not delivering
 
I am a pizza delivery service @Quilll
 
@Gustavo6046 If you want to talk with others there often you have to tell them you want to talk there, otherwise we often don't just "hang" there, it's very loosely moderated (unlike here)
@Quill @Hosch250 Oh right. Can you guess?
 
Spam filter went wild?
 
11:43 PM
You had an employee named "Cialis"?
 
"Client Support Specialist"
They had just enabled a new spam filter overnight :)
 
apparently whitespace is unnecessary then
 
It's 10K network wide @SirPython
Does anyone know how difficult it would be to script something specifically for SSMS? For example if I type a certain word in the editor set it to auto-complete, or link typing up a certain script in the editor to a keyboard shortcut?
 
the first is a namespace and the second no idea
 
in The Nineteenth Byte, 33 secs ago, by Sp3000
Cross-site challenge idea: Shortest golf which still passes code review.
 
11:59 PM
Although, you'd have to define "passing" Code Review... guess not being VTC?
 

« first day (977 days earlier)      last day (3033 days later) »