« first day (687 days earlier)      last day (3344 days later) » 
00:00 - 17:0017:00 - 00:00

5:02 PM
Details:

The following artifacts have been promoted to the "Releases" [id=releases] repository

/net/tuis/ubench/ubench/0.1.1/ubench-0.1.1.jar
@Simon ^^^ Maven needs to sync, then there will be 0.1.1 available
 
@rolfl good, thanks!
 
FWIW, the build was flawless this time
 
Yay ^^
So Maven isn't so bad after all, huh? ;-)
 
Given that the last time the build happened, it was on an ubuntu 12.04, and this time it was 14.04
 
write once, run everywhere!
 
5:04 PM
ummm, no, actually....
 
write once, build everywhere?
 
you have to have it carefully sync'd with GPG signatures, and keys, etc.
 
yes, that's true of course
 
you can build manywhere, but deploy only from one machine at the moment
I also did an inventory on my computer... it actually has 21TB of raw storage....
[    2.675859] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    2.696749] sd 2:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    2.704288] sd 3:0:0:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    2.704551] sd 4:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    2.704806] sd 5:0:0:0: [sde] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    3.026227] sd 8:0:0:0: [sdf] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
 
21TB...
One can dream!
120 GB is an SSD?
 
5:12 PM
yeah, the / partition
 
0
Q: Thread 1 breakpoint 1.1 2.1 error in swift code

Carver ParkesI am new to coding 100%. I am trying to make a simple stopwatch app in xcode using swift language. The error occurs once the code gets to the "let strMinutes = minutes > 9 ? String(minutes):"0" + String(minutes)" line. Please help import UIKit class ViewController: UIViewController { var ti...

 
@JaDogg - hopefully just an HTTPS page requiring a self-signed certificate and a username/password... right?
 
yeah
 
That server will accept mail to @tuis.net, as well as ssh
it's in my basement.
 
Interesting
 
5:27 PM
@skiwi - in case you were wondering, this is the bulk of it:
panabox:/valuable# du -sm pictures
1947097 pictures
panabox:/valuable# ls -1R pictures | wc -l
226362
I have ... 2TB of photographs in.. 200K files.
those 2TB are stored on 2 3TB drives in RAID1 setup...
Then, I have a snapshot system going on another RAID1 setup which does local, time-based snapshots, accounting for another 2 4TB drives.
 
@rolfl Should we call you "Mr. Backup"?
 
only when you hear that once-a-month I then copy the entire 4TB snapshot system on to external drive.... and store it off-site... ;-)
The photographs, along with home-directories for each family member, and the /etc/ folder and database backups from mysql, etc... are also all copied there (both the hourly snapshots, and off-site).
So, what I have done, is set up only one computer that's important.... all the other machines in the house use that as either a direct "My Documents" folder, or have a clone system back to it...
that way I can trash/lose/break computers all over the place, and only need to worry about being careful with one of them
it lives in a locked room.... with UPS, network, etc. the cat, kids, and even my wife know to stay away ;-)
I pulled it open to clean/vacuum it earlier, and it was "clean" anyway.
 
5:45 PM
@rolfl Ugh. MySQL.
 
Yeah, but, really, it's not my problem... I have things like roundcube, mediawiki, and mythtv installed that use it.
and a photo gallery web app.
 
Got MathJax working:
-1
Q: The Time Complexity for sort_it

TBXWhat is the time complexity for the code below? My answer is n*size_of_list def sort_it(lst): if is_empty_tree(lst): return [] else: c = [] for i in lst: c = insert_tree(i , c) b = flatten(c) return b My flatten is time comple...

 
@nhgrif Yeah, rollback... you or me?
 
codereview.stackexchange.com/posts/84615/revisions He turned his question into a SO question.
you can, I need to run errand dont have time to leave comment
 
6:02 PM
@rolfl That's quite a lot
 
6:13 PM
0
Q: PHPDoc blocks and overall code soundness

Pieter GoosenI have written the following class which is part of a pagination system in Wordpress. The class works as expected and also works as expected when used in the system. Just as background, the class performs the following task Takes an array of post ID's and creating links to the posts which ID'...

 
6:27 PM
Anyone around ever built a program where people have to log in to use it?
I'm planning on adding quizzes where you can either take them anonymously or log in and track your personal stats, and I'm not sure about how to keep people's data safe.
Of course, I know better than to store passwords as plain text, but I'm not sure where to go from there.
 
@Hosch250 AES-128 Rijndael encryption
 
Sure (types search into Bing).
So, do I essentially store encrypted user name/password in strings then?
 
username can be plaintext
emails should be encrypted even slightly
passwords are best stored in unrecoverable formats, so hash + salt
 
OK.
 
I'd use BCrypt for passwords
 
6:36 PM
Though I personally would use OpenID and not worry about managing accounts.
 
Would it hurt to encrypt user name somewhat?
 
If you can spare the resources, feel free.
 
The other thing, where/how should I store this stuff on the web?
It needs to be somewhat public, so different users can access it.
 
In a database free of injection?
 
But private enough that it just isn't floating around.
OK.
 
6:37 PM
In python, what error shall I throw to indicate the combination of arguments is invalid?
 
How much can I expect this to cost, approximately, to buy space on a server?
@paul23 ArgumentException, or something similar?
 
124
Q: Which exception should I raise on bad/illegal argument combinations in Python?

cdlearyI was wondering about the best practices for indicating invalid argument combinations in Python. I've come across a few situations where you have a function like so: def import_to_orm(name, save=False, recurse=False): """ :param name: Name of some external entity to import. :param sa...

Check that out.
And, do you have any experience with good/bad servers you can recommend?
 
wut? Guess not :P
 
I don't have ones to recommend since I'm not on a computer, I've tried some services before and VPS's might be better for the situation than dedicated servers
 
6:42 PM
OK.
Whoa, it will be cheaper for my to buy my own physical server!
 
Given you are willing to deal with a microserver, cooling and maintainence, yeah.
 
I don't know if this is going to work out.
My app is free, has been up for about half a year with less than 10k users, and only the quizzes were going to be paid.
 
Most VPS plans reside at $5/month for a development tier, and some goes cheaper but caps around $3.2/month
You can look into AWS clouds.
 
The ones I saw were $200/year to $60/month.
I wonder, what if I kept a couple .txt docs in OneDrive?
 
They are cheap and works really well. I don't have a credit card or a US bank account to use, but that's another story.
 
6:53 PM
Would private OneDrive files be secure enough?
 
@Hosch250 $60/month are entrepreneur++ tier..
 
Oh, OK.
 
DigitalOcean is an iconic professional development scaling cloud, but I would choose cheaper ones based on your needs.
 
@Unihedro if you have a "remember my password" option, that can't be stored as hash + salt. Unless you of course store the actual server-data on the client as well, which is not a good solution IMO. I think encrypting is a better way for that feature.
 
OK, I'll look into it.
Thanks for the help!
 
6:57 PM
@SimonAndréForsberg Isn't "remember my password" done with a cookie with a token for a client which expires when the user logs in with another machine.
 
@Unihedro cookie, yes. "token for a client", huh? Either way, a cookie on one computer doesn't expire when the user logs in on another machine...
And if you would make a Java non-web app, such as with JavaFX, then cookies do not exist.
 
Eh.
The server side DB would recognize each row with a username, a password, and a. blank field for an unexpired token, which starts empty.
If the user chooses to remember the password, the server would create a token ans give it to you client browser.
If the user logins with Remember Me, they are given a new token, and the old one expires.
 
This is a Windows Store app, so cookies aren't available.
 
Err.
s,cookie(s)?,userfile$1,
 
Okay, I see how you mean, @Unihedro. I think there's a difference between "Keep me logged in" and "Remember my password" here. What you're saying sounds more like a "Keep me logged in" feature.
 
7:04 PM
That's what most web services camoflaudge as now.
 
7:21 PM
0
Q: Singly-Linked List In-Place Reversal

Jefferson SteelflexI've created a function in C to reverse a singly-linked list in place: node* inplaceReverse(node* head, int index) { if(!head || !head->next) { /* Indication of last node (or empty list). This will be recursively returned to become the new head pointer of the reveresed list. */ ...

 
 
1 hour later…
8:37 PM
-1
Q: Silverlight windows phone 8.1 project: Unable to navigate to page 2

Anonymous PersonI have a weird issue. I am not sure what I am doing wrong. I am doing a Windows Phone 8.1 Silverlight app project that (for now) has two pages. Page1.xaml has a Welcome page with a button, that, when clicked takes you to a second page with two textblocks one LongListSelector and one textbox,that ...

 
8:56 PM
Does the code you present here (and want improved) work to the best of your knowledge? Because then you might want to check out codereview.stackexchange.com . Over there people give suggestions on how to improve working code. Before posting, please read their rules Additionally it is not acceptable to ask multiple not inherently connected questions in the same question. Please try to reformulate your question so you're asking for a single thing ;) — Vogel612 30 secs ago
 
0
Q: Is this good coding? K&R 1-20

fzappaandthemthis is the code i wrote to solve 1-20 of K&R Exercise 1-20. Write a program detab that replaces tabs in the input with the proper number of blanks to space to the next tab stop. Assume a fixed set of tab stops, say every n columns. I think my solution it's not bad, i used the na...

 
Welcome to Stack Overflow. Please take the time to familiarize yourself with the Stack Overflow help file, which will help you understand what kinds of questions are appropriate for this site. This site is intended to help you obtain answers to specific programming questions, as opposed to providing tutorial, design or code review assistance. — MarsAtomic 1 min ago
 
9:37 PM
@CaptainObvious Is this good titling?
 
@Phrancis I wonder what would happen if the OP saw this.
 
Who knows. Maybe they'd write better titles in the future
 
^^ that
 
Maybe they'd go on a rage quit.
 
Eh, thin-skinned if they did.
MAKE MY CODEZ BETTER LOL // ORLY?
 
9:41 PM
YA RLY
// closed question
 
^ right
Hey @nhgrif
 
So, what were you guys saying about the blockquotes?
I just found the css section for that
 
I said the gray was hard to read because it was too dark.
 
@nhgrif The font color is too similar to the BG... the block could use some left-indentation
 
Okay... so... how would I give it indentation?
 
9:45 PM
And maybe small changes in font type and size, just to fit
blockquote {
    border-left: 0px;
}
Replace 0px with whatever
 
and how do I give it a max width?
 
max-width: 0px;
 
I think margin-right: 0px but it really depends on the context
@Hosch250 Might be right.
 
@Phrancis I believe that is for the border.
Shouldn't he use the margin-left or padding-left to indent it?
 
I've kind of given up making sense of margin/padding/border crap with CSS; just whatever makes the page look like I want it to is just fine...
 
9:52 PM
I always use margin to indent a whole element and padding to give it some padding around text.
 
o/ @all
 
Ho.
That looks good.
 
@DJanssens \o
 
10:01 PM
@nhgrif That looks good! I personally prefer to have block quotes in a serif font but that's quite personal indeed
Are the dotted lines part of the site?
(or just in the screenshot)
 
Part of the site.
 
@Phrancis How are you doing? :)
 
OK cool. Maybe halve the left padding/margin? Otherwise, looks quite good IMO
 
I need a completely different font for the whole thing.
 
@nhgrif The whole site, or just block quotes?
 
10:05 PM
Whole site.
 
Consolas?
 
You can't see the dot on top of an i if it comes immediately after an f
 
Just kidding, don't use that.
Hey, @nhgrif Just noticed that your About splits the words in the middle in the wrap-around.
That looks really peculiar.
 
@nhgrif That's pretty minor, and probably different depending on screen resolution
 
What you might want to consider is centering your quotes.
Also, maybe you should make the line length shorter, it is a bit tricky to read when they are this long.
 
10:08 PM
^ very device-dependent
 
He might want to set a max-width, though.
 
I have a max-width.
 
On my screen, the column width is about 8.5 inches.
 
Centered quote blocks can work for some designs, not-so-well for others
 
I think it would look good on this one.
 
10:11 PM
Sometimes the <center> cannot hold...
 
See all that space on the right side? Max-width...
The other problem with my current font is that italics don't really stand out.
 
What font is that, @nhgrif?
 
I don't know.
"inherited"? But I don't know where it's inherited from...
 
@Phrancis In that case, you shouldn't be using regex to parse it.
 
Lato?
 
10:13 PM
@nhgrif Likely from the WP template; easy to override if you want to
 
I'm not centering the block quotes...
this looks ugly...
 
body {
    font-size: 120%;
    font-family: Verdana, Geneva, sans-serif;
    background-color: #2E2E2E;
    color: #BCBCBC;
}
@nhgrif ^^ look at the font-family
 
It was "Lato"
 
I've actually done some reading on what the most flexible font settings are
 
Times/Times New Roman and Arial are on both Windows and Mac, I believe.
 
10:17 PM
Above is what I use for Cardshifter website, along with ...
h2, h3, h4, blockquote {
    font-family: Georgia, Times, "Times New Roman", serif;
    color: #EEEEEE;
}
Arial... ew.
 
I don't like it, just saying I believe it is on both Windows and Mac.
 
It is
 
What does font-weight do?
 
Boldness
 
Changing this doesn't seem to do anything. I think the main problem is I feel like my font is way too bold.
 
10:20 PM
@nhgrif Screenshot?
 
It is harder to read white-on-black than black-on-white, so being somewhat bold helps.
It looks normal to me, though.
 
-1
Q: Created the base for a more extensive program, want to make sure structure/style is sound before continuing

bajuwaThe Code The project can be found on my github account: https://github.com/bajuwa/GoodMaowning/tree/develop The main file you will be interested in is src/good/maower/Maower.java Other files include the Ant build.xml, properties files, and README for context The Design The project itself will ...

 
Try setting it to 'lighter'.
 
@nhgrif Nevermind the screenshot... I think the problem is your blockquotes display as the default serif font (usually Times, which looks like shit italicized)
blockquote {
    font-family: Georgia, Times, "Times New Roman", serif;
}
 
I'm not talking about the blockquotes.
 
10:25 PM
Oh.
 
But... I think I'm about ready to just scrap this...
Where was that theme you said was similar-ish to the look I'm sort of going for?
 
I think you're looking good, for the most part... The theme I mentioned is made from scratch, mostly, without Wordpress
 
That should be fine, right? Just put the css file there?
 
Eh... not sure about that
 
okay, nevermind
 
10:28 PM
It could work okay, or it could break all the things, depending on CSS dependencies
(latter more likely)
 
Hi, @Mehrad.
Met another Electrical Engineer today.
 
@nhgrif I really think it looks good. You can make a few small changes to the CSS, if you want, but overall it's pretty solid looks IMO
 
I'm personally not a fan of the very dark stuff
but that might just be me
 
I prefer white-on-black, but it looks as nice as any other black-on-white site I've seen.
 
10:31 PM
white on black.
 
My UI is bluegreenblack on white
It feels.. fresh
Black feels.. black
 
This is really personal preference.
 
Yeah
 
that turqoise/maroon/fancyred really strains my eyes with that black background though
 
If @nhgrif likes black-on-white best, then he should keep it that way.
 
10:34 PM
Although I am going for a checkup at my optician next weekend so that may be related
 
He's the one who will see it the most, anyway.
 
@nhgrif May I suggest putting in Georgia as the first attempted font on block quotes, and maybe bumping up the font size a bit?
 
@JeroenVannevel I'm about 29 years overdue on visiting an optometrist.
 
Good. One other small thing I notice, should be easy to fix
<blockquote><p>Comments should be very rare and valuable, almost always expressing the &#8220;why&#8221; and never the &#8220;how&#8221; (the exception being when the how is complex and not easily discernible from the code).</p>
<p>Every comment is a hint that you may need to refactor to make the code&#8217;s intent clearer. Every comment risks becoming out of date as soon as it&#8217;s written.</p>
<footer>- <cite><a href="http://stackoverflow.com/a/111574/2792531">Brad Wilson</a></cite></footer>
Notice the <cite>?
 
Yes.
I did that by hand...
Should the dash be part of the cite?
 
10:38 PM
OK, just go into your CSS and adjust the font size for <cite> please
 
I don't think think this is the place to use a <footer>
 
@nhgrif Not sure, never actually used <cite>
 
I moved it up some. I want it to be smaller than the actual quote...
 
OK
 
I made an "About" page, by the way.
 
10:41 PM
@nhgrif Very nice
 
Can you clear your cache and check how everything looks on your end?
 
^^ after cache cleared
 
Looks good.
 
Indeed
 
Except that green looks a very different shade, so either you have less colors in your video card or you compressed the image
Now, the last thing I need is some way to keep track of page views so I can see which entries people are reading more.
 
10:47 PM
I did not manually compress, could be OS X saving screenshot to PNG
 
PNG is lossless.
 
@nhgrif Doesn't WordPress do that for you?
In my hosch250.wordpress blog, WP tracks all this for me.
 
I don't know. Does it? Where do I get that info?
 
It has a Stats page, let me log in and find it.
 
@nhgrif You could add a visitor counter This may help you
 
10:50 PM
When you log in to Wordpress.com, does it send you to the Reader tab at the top of the page?
@Phrancis That is old, they've changed it.
 
O.
 
Just click the My Site tab.
 
@Hosch250 I'm pretty sure @nhgrif is using Wordpress.org, not Wordpress.com (very different)
 
Oh?
I didn't know there were two.
I can buy my site from WordPress.com, and it will let me do whatever I want with it.
 
^^ Wordpress.org
 
10:54 PM
 
I have that page too.
Just go to WP Admin:
 
Welcome to Stack Overflow. Please take the time to familiarize yourself with the Stack Overflow help file, which will help you understand what kinds of questions are appropriate for this site. This site is intended to help you obtain answers to specific programming questions, as opposed to providing tutorial, design or code review assistance. — MarsAtomic 1 min ago
 
@Hosch250 Where is WP Admin?
 
When I log it, it sends me to the Reader tab.
I can click the My Site tab to view my stats.
In the sidebar, click WP Admin to get to my settings.
 
hm. odd. never seen that screen ^ before
 
10:59 PM
I don't pay for my site.
They made several changes fairly recently, but I've always had these pages.
 
@Hosch250 Morning man. Nooo... is there a 2nd one ? :/ thought it's only me
morning @Phrancis
Hope everybody is doing great :)
 
He isn't a full-fledged one yet, just a junior.
 
I knew it. cuz we get notified when a new one is in the market :)
 
Really?
Are you part of the Electrical Engineers union-thingy?
The IEEE?
 
hahaha.. half jokes half true. Only in Australia cuz I am a member of Engineers Australia and we meet up with the new ones through meetings and all
 
11:03 PM
This one is in the US.
OK.
 
obviously only state wide nothing furtjher than that.
 
Well, this one probably won't provide any competition to you.
 
:) phew
 
We are more/less exactly on the other side of the world.
 
did you discuss what they study and all? cuz I know you're interested
 
11:04 PM
A little, we discussed calc.
 
Im gonna attend monday morning meeting and then be back
 
Is there an engineering measure for "more/less exactly"?
 
OK, have fun!
@Phrancis I think so, something about an error margin.
I think they typically put a little plus/minus sign with a number on the spec showing how accurate the parts need to be.
 
Sounds about right
 
I went through a drafting book once, but it wasn't so hot.
 
11:07 PM
On Error GoTo Nooooooooooooo
 
The book was bad, and I preferred the brain work.
@Phrancis Haven't you learned yet?
goto is BAD!
 
I kind of picked up on that :p
 
0
Q: Candy splitting. Lower memory usage needed CodeChief

Evil RegalHello I just did CodeChief's candy splitting task here and my code is working even with alot of test cases and big numbers but it uses way too much memory, when I checked my submission it was 1342M which is alot. So here is my code : import java.util.ArrayList; import java.util.Scanner; class ...

 
Oh, I got 85 points on that answer.
I don't know if your pimp really worked, though.
Thanks, anyway.
And Loki Astari accepted one of my answers that I'd forgotten about.
It isn't a good answer, but it is the only one on the question.
 
11:22 PM
15 mins ago, by Phrancis
On Error GoTo Nooooooooooooo
In VB, GoTo is not bad.
 
Is he using VB is the question.
I don't know, is he?
 
People use VB, sometime. I think there's a RubberDuck for that
 
I think that is for VBA.
Office uses VBA, which is based on VB, I believe.
It stands for Visual Basic for Applications.
 
It does
 
Oh, from the sounds of it, basically the only difference is that it can only run in the context of another application, not as a stand-alone.
But, I believe RubberDuck only works with the VBA IDE thingy.
 
11:30 PM
@Hosch250 The VBE (the VBA IDE thingy) could use a lot of help
 
It is getting it now.
 
@Phrancis ≦≅≧
@rolfl GoTo is bad unless you really need to Go somewhere
 
11:45 PM
Goto is never bad when used appropriately....
 
@EJP that's a fair point. If you'll indulge me, I'm trying to implement a suggestion from a CodeReview question I posted here: [codereview.stackexchange.com/questions/80592/…. — Nasser 22 secs ago
 
the appropriate uses for Goto are very limited. VB actually has a good use for them... and it's not really a goto, it's an exception handler.
 
@Duga That is a bit old
(the CR bit, that is)
 
RELOAD!
 
00:00 - 17:0017:00 - 00:00

« first day (687 days earlier)      last day (3344 days later) »