« first day (1150 days earlier)      last day (2867 days later) » 

4:00 PM
There have been some small talks about a referendum for The Netherlands too, though the only parties wanting one for exit are the PVV and 50Plus, which roughly translate to Party for the Freedom and 50 Plus, how typical
@syb0rg What was the issue?
 
Continue the talk about Brexit in Nth btw, it's tending to get heated ni here around that discussion
 
@skiwi Now run them next to each other, your current one and Atkin, and see the difference :P
 
@Mast Doesn't look like I can trivially change it to Exit
 
I changed the exe name in the Makefile, but not in my upload script to the PowerPC
So essentially I was running the same exe over and over again
 
@DanPantry Ah okay, forgot about that for a moment
@syb0rg Ouch
 
4:01 PM
@MichaelBrandonMorris It's not about snakes. And Black Mamba are freaking poisonous. The nervetoxin they use can kill you quite quickly.
 
It's times like these where I question: "What was I thinking?"
6
Also: "How am I employed?"
6
 
@Mast "It's not about snakes." Really? :P I had no idea...
 
@syb0rg Don't overthink it too hard, this morning I wrote an if statement that ended with a semicolon and wrote code in a totally wrong method
 
Monty Python (sometimes known as The Pythons) were a British surreal comedy group who created the sketch comedy show Monty Python's Flying Circus, that first aired on the BBC on 5 October 1969. Forty-five episodes were made over four seasons. The Python phenomenon developed from the television series into something larger in scope and impact, spawning touring stage shows, films, numerous albums, several books, and a stage musical. The group's influence on comedy has been compared to The Beatles' influence on music. Broadcast by the BBC between 1969 and 1974, Flying Circus was conceived, written...
 
4:04 PM
Sadly I'm unpaid for writing crap - or for writing good code for that matter -
 
@skiwi you should start writing sitcoms and staged reality shows. They get paid for writing
 
@Mast all their stuff is on youtube if anyone wants to watch
 
@ardaozkal Is the entire Flying Circus on YT nowadays? I used to use other sources for that.
 
yep
channel description is epic
> For 7 years you YouTubers have been ripping us off, taking tens of thousands of our videos and putting them on YouTube. Now the tables are turned. It's time for us to take matters into our own hands.

We know who you are, we know where you live and we could come after you in ways too horrible to tell. But being the extraordinarily nice chaps we are, we've figured a better way to get our own back: We've launched our own Monty Python channel on YouTube.

No more of those crap quality videos you've been posting. We're giving you the real thing - HQ videos delivered straight from our vault.
6
 
4:27 PM
“Can this be optimized?” So your code works? Shouldn't this be posted on CodeReview then? — Xufox 6 secs ago
 
@ardaozkal Wow, that's gold.
 
I don't know whether they actually have DVD videos though. In the time they recorded, 480 wasn't even a thing yet and 720 wasn't even close to being invented.
 
and that link is 7 YEARS OLD, guess how much they made
 
@Mast im pretty sure they can take the raw film footage and somehow have higher quality then the original reproductions
 
4:37 PM
@JHache You can't invent pixels. You can estimate them, but I have no clue how good that turns out.
While I'm a jack of all trades, video has always been something I stayed away from.
 
0
Q: Audit Updating Macro

Kevin LeIn my code, I'm trying to manipulate data for an audit between 3 sheets in a workbook.The first block of my code is to paste the data of items I need to find for the audit from the original sheet onto the 3rd sheet by setting each row equal to the data of the original row in the first sheet. The ...

 
@Mast What I'm hypothesizing is that the conversion from the raw analog film footage to whatever delivery format is probably dependent on the available technology
so back then, they could only go to vhs or whatever, but if you return to the source footage, going HD is not a matter of estimating; it's a matter of blowing up the original physical image to a new, better format
 
Yes, so if they still have the original films (and knowing the BBC, that's not a given) they could at least gain something.
 
I think I remember reading about this but I'm not sure if it was Monty Python
 
Entire seasons of Dr Who went missing because they decided to re-use the tapes...
 
4:41 PM
That's just careless
 
They only stopped doing that in the mid eighties or so.
@JHache No, it was policy. It was cost efficient.
Those tapes were awfully expensive.
 
The original film for monty python is probably way gone in that case
 
@JHache Did you ever get everything figured out with this question? codereview.stackexchange.com/q/132765/27623
 
@syb0rg No, unfortunately. I've tried modifying things in my view to bind, but I don't think it's gonna scale, especially if I need to add another interface in the same method to get the search working
@model PagedList.IPagedList<LATT.ViewModels.SortedHardwareIndexViewModel>
Tried creating a view model for it and even then it's still not working
 
Is it broken in its current state?
 
4:49 PM
0
Q: What does >>= means in C++

B. LiewThis question may sounds basic, but I could not google the ">>=" since google does not support > symbol searching. int a = 5; a>>=2; //why a = 1 ? a = 12; a>>=2; //why a = 3 ? a = 5; a>>=3; //why a = 0 ? Please do give me a reference of it or explain its usage.

 
@CaptainObvious I never thought of writing the bit shift like that.
 
@CaptainObvious Even the title screams off-topic
 
@CaptainObvious If you're confused about complex looking operators, TRY SPLITTING THEM UP FIRST!
The amount of questions like that on SO is staggering and they all have a lack of research.
Just read the darn list of operators and think.
 
It's the greater-than greater-than equal operator
 
One of my favorite times of the day is here: lunchtime
 
4:54 PM
You'll probably have a better response posting on Code ReviewSteve Lorimer 56 secs ago
 
@syb0rg Dinner is about ready here.
 
Dinner is no more here
 
@syb0rg in it's current state, as in my work in progress or in the question?
 
I keep thinking why I'd want to write a GUI program in Rust (or C++ for that matter) using GTK+ while I already have Java experience
 
It's quite demotivating. I don't really know where to go with this project. I still haven't been assigned to a project and this is monday no.2
 
5:13 PM
var properties = typeof(T).GetProperties()
    .Where(x => Attribute.IsDefined(x, typeof(DelimitedColumnAttribute)))
    .OrderBy(x => ((DelimitedColumnAttribute)x.GetCustomAttributes(typeof(DelimitedColumnAttribute), true)[0]).Order)
    .ThenBy(x => ((DelimitedColumnAttribute)x.GetCustomAttributes(typeof(DelimitedColumnAttribute), true)[0]).Name)
    .ThenBy(x => x.Name)
    .ToList();
That group of lines makes me so happy.
 
That's a long statement
 
I would have probably had a select to pull off an anon type with name and attribute to avoid the multiple calls to GetCustomAttributes
 
So quite a few people here are in C# application/GUI development, right? How good and/or easy is it to make something functional?
And to make the GUI do what you actually want to do :P
 
Super easy.
Windows Forms is really simple, but WPF is a lot more powerful.
Both are quite easy to understand/work with.
 
they both have some annoying quirks, though
 
5:25 PM
Though, Windows Forms is almost entirely drag-and-drop.
 
0
Q: HackerRank "Nested Lists" Code

zthomas.ncI completed the "Nested Lists" challenge on HackerRank, and would love any feedback on my code. My program is fed text with the number of students in a classroom, the name of a student, and their grade. For example: 4 Shadab 8 Varun 8.9 Sarvesh 9.5 Harsh 10 Here is my code: def secondlow(...

0
Q: Loop through range, selecting grouped data?

BruceWayneI have some info. that looks like this: Header Debit Credit aaaa 20 0 bbbb 0 60 cccc 30 0 xxxx 10 0 xxxx 0 40 xxxx 40 0 xxxx 0 10 oooo 500 0 oooo 0 52 oooo 0 500 pppp 10 pppp 0 10 (Note this starts in col. H) The idea is that I wa...

0
Q: Binary Tree Implementation in Rust

Fabian KnorrTo teach myself Rust, I implemented a naive binary tree with support for insert, delete and lookup operations as well as in-order iteration. I'm still a little rusty (no pun intended) when it comes to writing idiomatic code and especially elegant handling of borrows. use std::cmp::Ordering; use...

 
I'm looking to create an application taht could be used in business, so imagine a menu with different views and tables and such
 
@skiwi You probably want WPF or a MDF form.
 
@EBrown Sounds like there's a catch
 
@skiwi Not really, it's just less flexible. You can edit any part of a WPF window, but a Windows Forms form only has specific properties that can be changed.
 
5:27 PM
it takes a lot more work to get winforms to scale with DPI properly
 
Sounds like I could give WPF a try, means another language to learn though
 
but there's a lot less magic - WPF tries really hard to hide what it's doing from you, so you'll occasionally get XamlParseExceptions that make little sense and take a lot of effort to track down :P
 
@skiwi Two: C# and XAML.
 
still, it's probably best to default to WPF if you're starting fresh
 
Windows Forms is hopefully dying.
 
5:29 PM
I'm not really a fan of drag and drop programming
 
I would bet on it being around for some time, actually
 
@skiwi The programming is not drag and drop. The UI elements are.
In Windows Forms, you drag the elements you want onto the UI, and then programme them in the backend like normal.
 
I am starting to get the hang of Rust now, but the situation on GUIs is not really that good (read: it's crap), and for Java I have Swing and JavaFX experience and I would neither want to touch those again now, I've tried Qt long ago and I wish to avoid that as well :P
Creating a responsive website seems to be harder than a desktop application
 
In XAML/WPF, you pretty much have to type out definitions of each element you want.
@skiwi Depends on the language.
I've found that ASP.NET websites are super simple to get going.
And can be made quite flexible/responsive.
 
@skiwi there's no getting around the fact that UI work sucks
10
 
5:31 PM
Yep, just don't follow the tutorials blindly if you want good SoC. sigh
 
But say you want some table layout on a website that is reasonably responsive, you've got to do quite some stuff while in an application framework it's responsible by default
 
That is for ASP.NET MVC specifically
 
@DanLyons I must stargree on that
 
@skiwi @DanLyons I stargree also
 
Looks like I'll need to get my WPF starter kit then :P
 
5:34 PM
Well, just ran all 72 Unit Tests in 7 seconds, 100% passing.
 
Sounds good
What IDE are you using for C#?
 
Visual Studio 2015 Enterprise
Though 2015 Community would work for you.
I'm only impressed that all the tests passed, because I made a lot of large changes.
 
Hmm VS 2015 uses the same client for all versions?
 
Hmm?
 
I already had it installed and some trial has expired, though I have no memory of doing this
 
5:36 PM
0
Q: Circular Singly Linked List using Java

Abhinav TyagiPlease review my implementation of Circular Singly Linked List public class NodeS { public int num; public NodeS next; public NodeS(int n){ this.num = n; } } public class SinglyCircularList { private static NodeS head = null; private static NodeS tail = null;...

0
Q: Reusable constraint based layout using structs

oktapodiSo i was watching this talk titled 'Protocol and Value Oriented Programming in UIKit Apps' and the speaker showed how to use structs for managing the frames of the various subviews. I wanted to know if this approach can be extended to constraint based layouts. Here's my sample code - struct Titl...

 
Step 1. Log in on Dreamspark; Step 2. Your session expired and you have been signed out automatically.
 
I've got Community, was checking if I could get Enterprise
 
@skiwi You have to try first.
 
Looks like it'll be Community, but that's good enough?
 
5:42 PM
Yes.
Enterprise just has extra BS you don't need.
 
I'm running Community to do Rubberduck.
I hardly use any of the feature set.
 
Cute, Dreamspark still offers MS-DOS 6
Luckily it's free ^^
So WPF is the mainstream thing, isn't there also something with the new Modern UI?
 
That is extremely similar to WPF.
Let's just say it is a subset of WPF without a few of the features, like TreeViews and such (well, on 8.1, anyway).
 
What would be a good project for starters? Writing an Excel-like application? Nah just kidding there
 
If you are new to WPF, make a combo box with a few values that changes the background of the application to the selected value.
Then come write a UI for the Rubberduck's Regex search/replace feature.
 
5:47 PM
Rubberduck is WPF? ^^
 
It embeds WPF controls in WinForms controls.
 
gg elementhost
 
result += string.Join(RowDelimiter, items
    .Select(item =>
        string.Join(ColumnDelimiter, properties
            .Select(property =>
            {
                var value = property.Info.GetValue(item)?.ToString();
                validateCharacters(value, ColumnDelimiter, "property value");
                validateCharacters(value, RowDelimiter, "property value");
                return value;
            }))));
 
Good Game?
 
LINQ is magic.
3
 
5:49 PM
WPF inside WinForms and that runs in VBE?
 
It is. Talking about that, I need to finish the last chapter on C# 2 in C# In Depth so I can go read about Linq.
@skiwi Yah.
 
@EBrown Just don't overuse it :P
 
-1
Q: Test for existing folder and create a new folder if folder does not exist using Node

rolandishI'm new to Node and programing. The code isn't throwing up any errors but it's also not creating a newFolder directory. Can anyone tell me what is going wrong? I clearly don't understand something basic. // use strict to use variables 'use strict'; // gurnt module.exports = function(grunt) { // ...

0
Q: SPOJ: GENERAL (Time limit exceeded)

user007I have been trying to solve this simple problem (http://br.spoj.com/problems/GENERAL/) on spoj for quite some time now, but I keep on getting TLE (Time limit exceeded) for some reason. Since the problem is in Portuguese, a brief description of the problem is like this (without the story): ...

 
@skiwi It's hard to abuse it.
 
Now I also wonder if I need a C# tutorial or can just hack my way around in the beginning :P
I probably should have a clue of what I'm doing though
 
5:50 PM
@skiwi You probably don't--it is pretty close in syntax to C/C++/Java.
 
I can probably adjust easier now than a couple of months ago since I lost my Java glasses
@EBrown wat
 
All my loops in my serializer are gone.
It's 100% LINQ, and Action<T1, T2, T3> now.
And a couple if blocks.
 
It's probably mostly relevant.
 
It all still works.
 
5:55 PM
Might mess some of the newest constructs?
 
where new > 2008, yes :)
 
No, it is OK. Just an old article.
 
But perhaps CR can help with that ;) Too bad it's semi-private so I cannot put the whole program on open-source
 
http://www.commitstrip.com/en/2016/06/27/god-mode-on/
CommitStrip
God Mode ON
CommitStrip
1467049985
3
 
How many people will slaughter me if I put the opening brace on the same line in C#?
 
5:57 PM
@skiwi I will indeed slaughter you if I put the opening brace on the same line in C#
2
 
@CommitStrip You need braces.
@skiwi While the Netherlands may be a long way away, I will make it happen.
 
Do C# guys care that much about that particular aspect? ;)
 
@JHache In the question
 
@skiwi Give your signature some importance. Don't hide it in the code.
 
@skiwi No, but Visual Studio will force you to follow the new-line brace convention.
 
5:58 PM
@skiwi do whatever you like, then run github.com/dotnet/codeformatter afterwards
 
@skiwi if your code is OSS and I have to deal with it, you'll not be welcomed by calm words by me.
 
There might be an option for it?
 
@syb0rg the code in question is working code yes
 
@JHache Have you made enough progress to the point where it might be beneficial to post a new question?
 

« first day (1150 days earlier)      last day (2867 days later) »