« first day (925 days earlier)      last day (3390 days later) » 
00:00 - 18:0018:00 - 00:00

18:00
By going ever 6-bits through the binary representation, and getting the character that represents that number. (The standard Base64 alphabet is: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.)
So, the character at index 19 is T, 22 is W, 5 is F, and 46 is u.
Now that, is odd to me lol
What's so odd about it?
(mostly why they would be cut up in groups of 6 bits instead of say, 8)
Because there are 64 possible character translations.
You could cut them up into 8-bit groups, but that would require use of the entire ASCII character set, which would also mean all the invalid characters.
Ohhh
18:04
For example, that first value of 19 is DEVICE CONTROL 3 in ASCII.
Including 00 which would make a mess eh
Which cannot be stored as plaintext.
Yeah.
Base64 is designed to work on any binary group.
Rather than just strings.
Makes perfect sense now. Is the = symbol I see at the end of those fields there just a terminator?
It's a padding character.
So if you try to encode a group of bytes in Base64 that is not a multiple of three, you won't get four values out. So, to make the number of values out a multiple of 4, you add = to the end until it is.
18:09
There's also Base32, which breaks the data into groups of 5 bits.
The nice thing about Base32 is you can do it entirely with regular characters.
I.e. 0123456789ABCDEFGHIJKLMNOPQRSTUV=.
No symbols, apart from the = padding character.
Nice
The problem is it requires a 5:8 ratio of bytes:characters.
Which is kind of a weird ratio to try to match, eh?
Not really, it just means that the text is 60% longer when encoded.
Whereas Base64 is only 33% longer.
Fascinating
(really is)
18:14
It's good stuff to know.
Looking forward to the blog post :)
This might be a good question for the Code Review stack exchange, since the code works as intended but you just want to know if there's anything to be improved. codereview.stackexchange.comThriggle 53 secs ago
If it works, then it's valid. I would say that the way you build the HTML in newNotification could generate invalid HTML if you aren't careful, but it's not wrong. Agree this lives better on Code Review tho. — Rhumborl 44 secs ago
If you're going to post to the Code Review site, you can just click the "delete" link below your post here to mark it as such. One word of advice though, on Code Review you will want to write a title that describe what your code does, as "best practices" are implied on all posts there. — Phrancis 51 secs ago
Lots of flagging going on today in chat
I need 3 rep on CR to hit 4600, and 7 on SO to hit 2200.
0
Q: JavaScript best practice code

CoreModuledown vote favorite This is not ordinary question but it's also not opinion-based, it's more about the standards and the right way of writing JS code. I admit, I'm a total noob in JavaScript, I do not have experience with this language but since it is necessary for the project I'm working on - I ...

18:27
@CaptainObvious Guess they didn't see my message in time......
@Phrancis lol, I saw it.
Gonna go edit it.
Whoops, I think I did something wrong...
@t.niese Please answer question with answers, not comments. — TheCoffeeCup 1 min ago
possible answer invalidation by TheCoffeeCup, CoreModule on question by CoreModule: codereview.stackexchange.com/posts/110836/revisions
And a very short answer pops up.
@Duga @SimonForsberg Does @Duga has a bug? I only edited the title and some of the description.
@Phrancis This is gonna be a long blog post, I hope your up for a bit of reading. ;)
I wonder if maybe it has to do with two edits almost simultaneously..
@EBrown Of course :)
18:35
0
Q: I need a monthly print out of the balance

user89656I am trying to add the value of addInterest() onto the value of getBalance() in order to produce a monthly balance print out can anyone help below is the segment of code I am using for my loop for (int i=0; i<13; i++) { System.out.printf("%5s%10s%8.2f\n", i, investor1.getAccount(), investor1....

@CaptainObvious OK......... and?
@EBrown - it's official, you own aes: data.stackexchange.com/codereview/query/196683/…
@rolfl I don't see it on there.
Sort by name....
Aha, I do own it! :)
18:45
possible answer invalidation by CoreModule on question by CoreModule: codereview.stackexchange.com/posts/110836/revisions
@Duga Good catch, rollback applied
@Phrancis Did you know that TinyInt is the only unsigned number in SQL?
@TheCoffeeCup You edited a code block. That's what she reacts on.
-1
Q: How do I implement Dijkstra

Dexxreypublic class Traveler { static Towns[] map = { new Towns("A", "B", 100), new Towns("A", "C", 60), new Towns("A", "D", 300), new Towns("B", "D", 250), new Towns("B", "C", 80), new Towns("C", "D", 350) }; public static void main(String[] args) { } } and the Towns class ...

@SimonForsberg I did?
18:54
@EBrown I did not know tinyint was unsigned
It's the only unsigned numeric type in Microsoft SQL Server.
The rest (int, smallint, bigint) are all signed, and have no unsigned equivalents.
Damn, GameDev chat is wild today
in Game Development, 2 mins ago, by Doorknob
@Polarbear0106 Sigh. On-topic, please. Last warning before a suspension.
They don't have the type of fun we do. :)
Does this user not understand?
Second warning, please do not change the code in your question after some answers have been posted, so as to not invalidate them. — TheCoffeeCup 1 min ago
You're not the one to give out warnings. Flag the question instead of doing that
18:58
^^
Mods can lock it temporarily, if needed
@JeroenVannevel I meant second warning as "Are you not listening???"...
You could just say, "Again, please do not change the code in your question after some answers have been posted, so as to not invalidate them." :-)
> Don't think your users will not ever do what you don't want them to. If they can do it, they will do it.
8
@Phrancis Right... Done.
@EBrown So you are saying to flag the post?
@TheCoffeeCup To an extent, yes. Though this wasn't really about the issue at hand, I think it's applicable.
19:03
Also, question: what do the stars with the black border mean?
Pinned
Stays on the starwall for 2 weeks, IIRC.
Only owners of the room can pin, right?
And mods, yes.
@TheCoffeeCup hmm... okay, you didn't. Not quite sure what she reacted on there.
@SimonForsberg Bug?
19:07
Jamal created the tag, interesting.
Anyone has had overheating issues with his/her smartphone while just browsing? (Phone in case here is Samsung i9505 (Galaxy S4))
I just read somewhere that it might be running all cores at max, and I think I can believe that
@skiwi Mine does seem to get awful hot when not doing much.
(Same model, but Sprint version.)
@EBrown Battery also drains pretty damn fast
@skiwi Mine has been recently too, yeah.
Bought a new battery yesterday and seems like idle battery usage has lowered, but it's still pretty bad when actively using it
19:14
Mine has been on-and-off as to how long the batter lasts.
I'm not really a fan of custom ROMs, but seems like I might try rooting it and doing that stuff if it improves stability
(Not a real fan because it's not official and is likely to be less stable)
I am probably just going to replace it with a Windows Phone here shortly.
I've been thinking about that since those messy Android bugs that were hot a month or two ago, but seems like it has calmed down a bit
0
Q: C Segementation fault:Core dumped

JoGerri need some help with my code. I think the problem is my int array but can't fix it

0
Q: Handling Either's default case

Hüseyin ZenginI have a very simple question because codacy marks this as a problem and suggesting handling default case, In scala, I use Either like this val someEither = Either[A,B] someEither match { case Left(a) => case Right(b) => } Should I do this instead and why? I don't even think that def...

@CaptainObvious Pick your reason, there's much choice lol
19:21
Never had any overheating problems with iPhone (or any other Apple product :)
@skiwi lol a screenshot of the code. Gotta love when they do that.
This would probably be better fit on Stack Overflow, as it is asking for an explanation of code. — Phrancis 29 secs ago
@TheCoffeeCup don't know, and honestly it's not anything that I plan on investigating either.
@CaptainObvious Wow, that non-C-style indentation.
Should I tell the user how to fix it? :)
(I already see what's wrong.)
I am not sure, I am asking for a review on a code and I am also asking for an alternative, but ofcourse if coummunity says same I will move — Hüseyin Zengin 2 mins ago
Anyone else have input on this? ^^
Gah, @Phrancis this blog post has turned into "here's a list of all the datatypes in SQL Server and what they are."
19:32
@EBrown IMO, no.
I've seen comments like that too often, we don't do that on CR. Gives mixed signals to new users IMO.
But hey, that's me. Look it up on meta or make one if you feel inclined, would sort a whole mess out.
Something seems to be off... I can't find a reason why my CPU needs to run 4 cores at medium-high clock speed and use them >75% for browsing reddit
@skiwi Background processes? Perhaps Windows Defender is doing it's thing.
@Phrancis Looks examplish, but I'm no Scala guy.
And I'm not a fan of people asking 'why' they should do 'what' either.
0
Q: What is the code for bubble sorting an empty list?

user89660In my program I'm trying to bubble sort an empty list that the user has inputed a list of integers into it, but it is not working? How would it work?

@EBrown I thought you were going more into a general direction about types, bytes, optimizations... etc.
@Phrancis I am, I need to strip a lot of this.
19:41
@CaptainObvious HAMMERTIME!
@EBrown Cool. You could always write another later that's more SQL specific, if you wanted
@EBrown Link?
@Mast Not done yet.
@Mast Talking about an Android phone there :P
@skiwi Probably not Windows Defender then :P
Evening @janos
19:48
hey @janos
hey guys
hey there
@CaptainObvious the WTF is strong with that one
2
@janos Not reading the on-topic page does that to one.
@janos It's pretty impressive to break sorting an empty list
19:50
@skiwi It's probably complaining about having no elements to sort ^^
This post is a trainwreck, starting over.
20:07
@EBrown not sure if posted here already, it was at the heap
QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv.
7
LOL
Dec 25 '14 at 4:00, by Phrancis
QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv.
:)
@Phrancis ah so it was, I'm usually late to the party
No matter, it's funny as hell
20:11
not only funny, I use it as an example to any key user in our implementations, and somehow it often makes them 'get it'
'don't test what you expect to be done, test what happens if someone ficks up'
^^
> orders a beer';DROP TABLE Inventory;--
^^ starred from a dba :)
@Phrancis That's gold.
And a very good summary of what a QA Engineer actually does.
I'd love to do that full-time...
@Mast you wouldn't but I love using the quote when a customer says "we'll test it ourselves to save some budget"
testing is underrated and just doesn't pay enough, even if it's a skill in itself
Yup.
20:20
0
Q: A product of its divisors

Kj45Write a program that takes a positive integer, and prints “Product of my divisors” if the product of all its prime factors (excluding 1 and the number itself) is equal to its value otherwise print “Not the product of my divisors”. public static void main(String[] args) { Scanner scan = new ...

0
Q: how would I sort an empty list?

user89660I have tried different ways to sort my empty list(the numbers have been inserted by the user) but none of them seem to work, how would they work?

@TomV I found that at my old job when I had to search for a client whose name was O'Donnell and the app fired an ODBC incorrect syntax near "Donnell" error... ;D
Good testing is invaluable, especially when you're in the "let's ship this version to the customer" stage
@Phrancis Reminds me that my CR rep is quite low
@Phrancis and you let the opportunity to make point slip? odonnell ' drop table;--
@skiwi Perhaps you should do something about it? :)
20:22
not evil enough
@TomV I was good friends with their data architect is why I didn't :) (and also I needed to pay bills...)
that was fair game afaik
and a good time to test backup strategies
@Phrancis That's not much. #100 has 3.5k, I expected more.
He said due to the dynamic nature of the query string that was being built from the search screen, it likely would have been stopped at some other point
(yes, I said dynamic query string)
"he said", I'd have verified :D
20:25
lol
Old VB6 app was just waiting to die
@Phrancis Well, it would be an idea if I'd have the spare time for it ;)
Spare time? What's that?
0
Q: Python Receipt Creator

PythonMasterMy code takes input from the user and creates a receipt with the information the program receives from the user. import easygui items = [] prices = [] amount = [] amounts = 0 finished = False total_price = 0.00 list_num = -1 def take_item(): global list_num, amounts, finished item = e...

That mysterious thing of which you sometimes have too much, but most often too less
> We, as people, are generally lazy, and it's easy to store anything in a VarChar(50), or worse, a VarChar(MAX)!
20:32
@EBrown I have to flog you for not using Nvarchar
@TomV Why would I use NVarChar for ASCII data?
/jk
I'm voting to close this question as off-topic because code reviews are best asked at Code Review. — Jongware 42 secs ago
@Duga STAHP IT
but if you are lazy and want to store "everything" it's more future-proof
20:34
@Duga Moar flags.
Not that it helps...
silly me just clicked the sign up button on CR
This would be a good candidate for Code Review, if @HarrisR wish to post it there instead of StackOverflow. — Phrancis 52 secs ago
@Jongware While this question is indeed suitable for Code Review and would be better asked there, you need to provide a valid reason why it is actually off-topic for Stack Overflow, as being suitable elsewhere is not sufficient justification for closing a question. "Too broad" would be a valid closure reason. — 200_success 32 secs ago
@Duga Exactly.
@TomV We get SQL questions from time to time. In fact I just posted one a few days ago, which is unanswered at the current time...
3
Q: Example script for teaching DDL and CRUD/DML operations

PhrancisI have taught some SQL to others before, and I thought of making a script that has these attributes, for the purposes of teaching: Fully functional to run on local DB instance with no fuss Easy to follow along Representative examples of real-life types of operations Documented The example fir...

@Phrancis You seriously tagged that with ?
You ain't no SQL beginner man!
20:38
0
Q: Object Oriented JavaScript

MyCompassSpinsI'm just starting out with ES6, and fairly new to OOP in general (what little I've done has been with C#, which you can probably guess based on the code style). Wondering how this stacks up in terms of appropriate use of the language and its abilities. /server/api/mail/index.js (routes for the ...

Yes, because it's intended for beginners, which IMO is the correct-er use of the tag
Gah, @Phrancis this is a difficult blog article to write.
@EBrown Use a hand? Ping me if you want :)
Yeah, I need a refresher on everything we talked about. Lol
@200_success: But the code does not contain errors. (Well, according to OP at least.) Being Off-Topic because it asks for a code review is a reason in itself. — Jongware 23 secs ago
20:40
Somebody should ask the upcoming SO mods how they're going to handle this crap.
I'm going to go shower, then get back to this thing.
to me that's clearly a CR question, would be best to migrate
@Jongware Please familiarize yourself with the rules in the help center. Nowhere does it say that Stack Overflow only allows questions about code with errors. (Again, I'm not disagreeing that this question belongs on Code Review. It's just that you need to pick valid reasons for closure on Stack Overflow instead of making them up.) — 200_success 40 secs ago
@janos Probably, but that's not a valid close reason. Close for Too Broad, flag for migration after.
@200_success Fighting the good fight.
as far as I know, the way migration works, is to VTC > belongs on another site > CR
20:45
And that wording is part of the problem.
if it gets closed for another reason, then in order to migrate, a mod has to reopen, and go over the same motions: VTC > ... > CR
The SE staff don't seem to care.
@Phrancis commented, I'll familiarize myself with the site before answering
@CaptainObvious Second opinion on this question please?
@200_success I think he's trying to get the hang of it and is just unsure of how to continue. Looks honest to me.
But it looks a bit iffy, yea.
I think his intention is allright though.
20:52
@Phrancis but your syntax is better than a lot of questions on dba.se (seeing you have semicolons and everything)
> Nowhere does it say that Stack Overflow only allows questions about code with errors
@200_success stub. there's not nearly enough code to review here
@TomV lol thanks. I learned with PostgreSQL and MySQL who are both pretty merciless on syntax :)
Well.. yes.. There's a close reason that explicitly says there is no code that demonstrates the problem
More code would definitely improve the question.
20:55
Closed as Unclear. Thanks for your opinions.
Good call.
@ anyone - if I wanted to start playing around with some .NET/C# for a SQL database, assuming I have VS and everything else I need, where should I start as far as writing the code is concerned?
@Phrancis unclear what you're asking :)
lol
Maybe I should start with public class main
yes, lol
21:08
0
Q: Numerical integration

DankevichLook what I can do analytically: $$f(w) = \int_w^{\infty}\frac{1}{u^2}du = -\frac{1}{u}\biggl|_w^{\infty} = -\frac{1}{\infty} + \frac{1}{w} \approx \frac{1}{w}$$ I integrated by x, but got function of f(w). Now I want to do it numerically and plot the result. I know that if the function is inte...

@Phrancis don't use VS
LINQPad is explictly intended for LINQ statements against a database which is your exact usecase
I use it to write anything but non-trivial projects
@JeroenVannevel I've seen things come out of linq or EF, I'm no fan
You only get Intellisense if you pay though but it's an almost universally loved tool for C# devs
@JeroenVannevel I don't really have a choice, I'll be writing this on my work laptop so I'd have to get approval to get that software
The benefit of having an unorganized organization -- I don't even have a work laptop
I was about to scream about the out of context star
That's a no-no
21:17
I turned my last work laptop in a dual-boot. They only had control over my domain account, not about the rest of the laptop.
@Phrancis ha, virtual machines for the win!!1
@TomV Can you run a Windows VM on OS X?
@Phrancis Oh Lord, yes, and fluent.
OS X is like VM heaven.
I'm not a fan of Apple products, but they did that part darn well.
Really...
@Phrancis dunno I run them in hyperv on win & kvm on linux, I would be surprised if you couldn't on x86 macs
21:19
You can access files from the VM like the were part of the 'normal' system.
Bloody brilliant.
And smooth. Performance of the VMs is good.
They got this software for it, what's it called...
Parallels?
How terrible is this...
namespace HelloWorld
{
    class Program
    {
        static Hello hello = new Hello();
        static void Main(string[] args)
        {
            Console.Write(hello.HelloName("@Mat\'sMug"));
            Console.ReadLine();
        }
    }

    class Hello
    {
        private String name;
        public Hello() { }
        public Hello(String name)
        {
            this.name = name;
        }
        public String HelloName(String name)
        {
            return ("Hello " + name + "!");
@EBrown Yea, that was it.
@Phrancis Not that bad, really.
@Mast Parallels is ____ awesome.
21:26
Hello
Hi
HAI
Zak
Zak
HiHiHi
21:38
Madness.
THIS IS SPARTA!!!
False. This is Code Review.
2
@Phrancis That font though.
21:51
@Onedev.Link Welcome, you're new here?
@Mast Yeah. I'll be a good boy :)
@EBrown I'm a Mac guy, I <3 Monaco font. What can i say. It's like Comic Sans for coders.
@Phrancis Comic Sans?
Besides that, though... not sure what VS is telling me here...
Try to rebuild.
21:53
@Phrancis Real programmers write in SYSTEM
Actually, first do a Clean, then a build.
@Phrancis It's trying to debug while there's no .exe to debug.
Building the .exe must have gone wrong somewhere.
Or you simply skipped it.
Or it's in the wrong place, linking errors are always big fun.
> Error 1 A new expression requires (), [], or {} after type c:\users\francisv\documents\visual studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 29 79 ConsoleApplication1
Error 2 'Main': member names cannot be the same as their enclosing type c:\users\francisv\documents\visual studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 27 21 ConsoleApplication1
You can't name the class "Main".
^^
21:55
Oh.
You can name it "MainClass" (et al.), but not Main. There's a reason it's always called Program when it's generated. ;)
@Steven I want to use IoC for my client applications because there will be few similar applications (games) for each UI (operating system). Card games to be exact. So, only for WinForms, there will be 3 different card games. Very similar, so I want to share as much code as possible. So there will be project named "Domain.CardGame", as a core game (shared code - interfaces + default implementations) and additional project (CardGame.Game1) which I will inject. I'm not sure I explained it well. I will post my idea in code review soon — Todd Englewood 54 secs ago
Error 1 The namespace 'SqlAdventureWorks' already contains a definition for 'SqlAdventureWorksConnection' c:\users\francisv\documents\visual studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 25 11 ConsoleAp‌​plication1
OK, duly noted :)
0
Q: Searching for files in C

Lewls is a great resource to use, but it's limited on what it can actually do. I'm trying to write a program to find those files which have an 'a' in the second letter of the name, like "lame.c" or a 'b' in the third position (like library.c). Ideally, I'd like to use popen and invoke ls with it. Ca...

@happytime Watch it with the superfluous edits. If you make such, see if there's more to improve. If there is and you aren't handling it, that's a valid reason to reject your edit.
21:59
I burned my finger on the juice they include in cans of corn...bah.
Burned my finger on a capacitor yesterday. Now it has two white dots, one for each pin...
0
A: Single-account-per-email verification

mseancoleI have to agree with Corbin, while I would be annoyed if my email address got leaked, I would not be overly concerned. Spam filters are pretty decent now, and without a password all they can do is spam me. Or, if I have a gmail account, WoW hackers can find more loopholes that allows them to spam...

I hate when that happens.
It wasn't plugged in. Didn't anticipate for how long those darn things keep their charge.
They keep it a while, sometimes.
Especially the bigger ones.
22:01
CRT were famous for it. Could keep it for weeks.
Oh yeah, I remember those.
I converted one of them to an oscilloscope once.
Hey only one error left :D
@Mast Quality's meh, but it works. youtube.com/watch?v=HIqtpsyaQGM
I didn't have an amp at the time, so I couldn't get the lines any higher.
um this may or may not work, not sure how to tell :D
> A first chance exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
The thread 0x32c has exited with code 259 (0x103).
The thread 0x152c has exited with code 259 (0x103).
The program '[7156] ConsoleApplication1.vshost.exe' has exited with code 0 (0x0).
What code?
22:09
@happytime hi, can you please come in for a sec?
using System;
using System.Data;
using System.Data.SqlClient;
//using System.Data.SqlClient.SqlConnection;

namespace SqlAdventureWorks
{
    class SqlAdventureWorksConnection
    {
        SqlConnection sqlConnection;
        public SqlAdventureWorksConnection()
        {
            sqlConnection = new SqlConnection("Data Source = (localdb)\v11.0; Initial Catalog = AdventureWorks2012");
        }
        public void Connect()
        {
            try
            {
                sqlConnection.Open();
You shouldn't care about First Chance exceptions
These are exceptions thrown inside the .NET framework itself
I think you can ignore them with a setting in VS
@Phrancis Implement IDisposable please.
OK. I'm pretty sure this line Console.WriteLine(conn.ToString()); never executes
4
A: What is a "first chance exception"?

codingattyI just started using the debugger and ran into this. In my research, I found the MSDN blog post What is a First Chance Exception? that cleared it up for me. The big takeaways from the blog post for me are that it refers to notification to the debugger, and not something my code would necessarily...

22:11
@EBrown Who? What? No idea what that is :)
It means an exception is thrown, not that it is uncaught
try running your code in Release mode
That should bypass the debugger altogether
If that doesn't work you'll have to change a setting
@StephenJ.Anderson +1 for the nice code review comment on the order. — THBBFT 55 secs ago
@happytime I noticed you suggested minor edits to several closed, poor quality questions. Something you might not be aware of is that when a closed question is edited, it triggers the question entering the review queue. When the question is poor quality, this is not desirable, as it generates unnecessary work for reviewers of the queue. Please don't edit poor quality questions that are closed.
22:25
Wow, Windows' command prompt is @$$ - are there alternatives?
Powershell.
Guessing a setting on that SQL instance must be wrong
@Phrancis Install GIT and use sh.exe, cygwin as alternative. I recommend ConEmu & shell from git package.
My task: set CHERE_INVOKING=1 & "C:\Program Files (x86)\SmartGit\git\bin\sh.exe" --login -i
23:20
0
Q: Regex for firewall log

joniWould you be so kind to help me with some regex and Python code? I have recently received a lot of help for a Python script to go through some firewall logs. I am almost there, but still need a little help. Here some log output from a firewall: Nov 11 00:00:09 firewall %ASA-3-710003: TCP access...

23:56
0
Q: Implementing Play Again? in the Guessing Game Program (C Programming)

confusedstudentAfter researching for a while and trying and adding another while, I could not figure out how to implement the Play again section... The instructions are to create a guessing the number game with 6 attempts and a Want to play again? option. Here's my code so far... int main(void) { int rand...

00:00 - 18:0018:00 - 00:00

« first day (925 days earlier)      last day (3390 days later) »