« first day (630 days earlier)      last day (3685 days later) » 
00:00 - 23:0023:00 - 00:00

00:00
[retailcoder/Rubberduck] 6 commits. 6 issues opened and 0 closed
[skiwi2/HearthMonitor-LogReader] 5 commits. 0 issues opened and 0 closed
[Zomis/GithubHookSEChatService] 14 commits. 0 issues opened and 0 closed
@Duga 6 commits and 6 issues opened? That's interesting.
Just starting to work on a brand new feature @SimonAndréForsberg.
And I've gotta get all the tasks listed before I go on this trip...
00:16
@overexchange My personal opinion is that the understanding of multithreading concepts is essential to being a good programmer. That said, most programmers avoid multithreading because it is hard to do correctly. If you had to prioritize your time, it is much more important to learn how to write good single-threaded code.
Good single threaded code is better than bad multithread code.
3
Multithreading doesn't magically make everything better.
totally agreed.
I'm working my way through Java Concurrency in Practice, and boy are things complicated!
I like the way multithreading works in Objective-C.
00:59
Solution divided in 6 projects, Entity-Framework configured, Azure configured, projects referenced, Web API configured. Time to get started!
No wait actually. Break time.
What..
01:15
0
Q: geoInput jQuery Plugin

dgigI made my first jQuery plugin, and was hoping to get a review. I'm especially interested in comments on whether I went about building up my html and applying the css in a reasonable manner (I chose to do it all in jQuery to keep the dependencies limited). I welcome most of all comments regarding...

What are you working on, @JeroenVannevel?
0
Q: Golang remove element slice of struct pointers

cory.toddI have an application with a recent addition that requires the removal of a struct pointer from a slice that is itself an element of another struct. A summary of the usage: https://play.golang.org/p/gSHzMdpJTr I am wondering if this is idiomatic and okay usage of the go languages. Things appea...

@CaptainObvious Off-topic.
There's a new tag . Would suffice?
01:31
0
Q: When using Using should I still make an explicit reader.Close?

YayBelow codesnippet is from production and works. Should I delete the line reader.Close() ? (Do You find something else ?) Dim dsParams As New DataSet Dim parameter1 = dr("Parameter1").ToString.Replace("&", "&") ' get Parameter1 into a DataSet Using reader As New StringReade...

0
Q: Proper system for pairing types

prestokeysMy code below ensures that only land animals can be a "representatives" for Land while only ocean animals can be representatives for Ocean, and so forth for Air, Underground, etc... Just want some feedback about whether this system I've come up with is any good or if there is a better one. Note...

0
Q: Multiplying Lists

LegatoChallenge: Given 2 lists of positive integers. Write a program which multiplies corresponding elements in these lists Specifications: Your program should accept as its first argument a path to a filename. The lists are separated with pipe char: '|' . Numbers are separated with a s...

01:52
VTC please:
-1
Q: When using Using should I still make an explicit reader.Close?

YayBelow codesnippet is from production and works. Should I delete the line reader.Close() ? (Do You find something else ?) Dim dsParams As New DataSet Dim parameter1 = dr("Parameter1").ToString.Replace("&", "&") ' get Parameter1 into a DataSet Using reader As New StringReade...

Cool!
I've 100 or so more days in school :(''
0
Q: Prepared Statements / MySQLi / PHP Registration/Login Form - Looking for feedback

Alan HillI'm just looking for some feedback here. I'm fairly new to MySQLi & PHP, but I've been working at it for a bit now, and reading up on how to make secure login forms, avoid SQL injection etc. I'm a mere amateur though. I've created an index.html page (not including the code here, just a basic fo...

@Jamal the snippets??
> executable code snippets only support JavaScript. Notice they say "language: JavaScript"
ugh. they actually say lang: js ...but wth
mwahaha
If your friend knew the answer, but didn't post it, that's not the system being dumb — random 3 hours ago
02:29
@Hosch250 is that good or bad?
I don't know.
I like developing, and I don't have as much time now.
I like studying too, but I like developing better.
Please, take the 2-minute tour and have a quick 30-second read of our help center - you'll get a better grasp of what this site is all about. In short, you write working code that actually accomplishes something, and put it up here for peer review, and then people point out stuff like "calling reader.Close() in a Using block is superfluous because xyz" - and you learn to write cleaner, clearer, better, more readable, secure, performant code. One of the criteria for being on-topic, is answering "yes" to "did I write this code?" ;) — Mat's Mug 12 secs ago
any mod in da house? 1 hour and still opened, blatantly off-topic.
I voted.
one can tell it's Friday night :)
He is disappointed he lost rep. I suggested deleting the question.
Fix both problems at the same time.
02:34
good idea, I had missed that "got minus" part
@Hosch250. I understand. However you can't have you VS license and use it at the same time.
@Mehrad What?
Oh, I see.
S/vs license /cake, and all of a sudden it makes sense 😊
I miss University
Yeah, I wonder if they did it on purpose.
nevermind
02:37
I'm taking an ITM class at the U this semester on MIS.
@Mat'sMug that'll clear up lots of things. Like the brief description too
I still don't know if I should approach it like a management class or an IT class.
ITM, MIS
@Mehrad what?
Information Technology Management.
Management Information Systems.
The book is geared towards managers, but I was expecting something technical.
Two chapters in, and a bit confused.
02:38
The tutorial you mentioned @Mat'sMug
oh yeah, magic link in comments: [tour] and [help/on-topic] ;)
You mean the Help center?
Emm interesting. Management is confusing
I like my management class, but the ITM is confusing.
I don't know if it is really a management course in disguise.
Well, chore time.
See you.
later!
02:57
0
Q: Simulate Random Risk Battle

Kevin MeredithFor Prof. Yorgey's 2013 Haskell course, I'm working on a homework to simulate a Risk battle. type Army = Int data Battlefield = Battlefield { attackers :: Army, defenders :: Army } deriving (Show, Eq) In addition, Prof. Yorgey implement the following code to simulate the ...

03:18
I'm tired someone else can figure out what to do with this.
Just to clarify, your comment about StdGen not affecting the outcome, that is intended behavior, correct? — RubberDuck 17 mins ago
Not necessarily. My only question is whether I've implemented the battle function in a way that aligns with the homework question. — Kevin Meredith 14 mins ago
04:05
 
1 hour later…
06:02
0
Q: Merge sort not working

PRPHere is my code for merge sort. The merge operation works fine but there is some glitch in the sorting part. #include <iterator> #include <iostream> template <class RandomAccessIterator> void merge (RandomAccessIterator first,int N1,RandomAccessIterator second,int N2) { int i,j,k; type...

06:28
0
Q: Finding Lottery odds - Topcoder #268 [Follow Up]

yadav_viThis is a follow up of topcoder question #286 that I implemented. Things changed - Replaced long with BigInteger. Corrected the wrong implementation of one of the conditions (Sorted - true, Unique - false). Problem in brief - Consider choosing Blank number of integers from 1 to Choices wi...

06:54
monking
07:27
0
Q: Comparing two unequal lists in python

JRALove the website. I am a biologist that takes simple questions and makes them convoluted in python, currently stuck on a rather simple problem. I have two unequal lists of tuples that contain chromosome ('chr#') and position ('start', 'end') information: len(chimera) = 1499, len(TEV) = 75220, th...

 
1 hour later…
08:49
0
Q: Quadratic Equation

RobbenI am trying to write a program where it takes in three inputs a, b, and c which are the coefficients for the quadratic equation ax^2 + bx + c = 0. The program should print out the two solutions of the quadratic equation, e.g it should print out the solution to 0.001x^2 + .01x + .001 = 0. Is the...

 
1 hour later…
09:50
Seriously, for the first time in months I am reading a question on Music.SE... and @200_success has already edited it.
0
Q: Hacker Rank - Lonely Integer

morbidCodeThis is the problem statement for Lonely Integer. There are N integers in an array A. All but one integer occur in pairs. Your task is to find out the number that occurs only once. Input Format The first line of the input contains an integer N indicating number of integers. The next line co...

10:30
0
Q: Multiplying corresponding integers using streams

200_successWhile reviewing Multiplying Lists, I got the impression that the problem was naturally suited to Java 8 streams. Unfortunately, since there is no convenient way to zip two streams, the solution ended up being uglier than I expected. The task is to take lines of input, in the form a0 a1 a2 … an ...

quite room... emmm
11:09
Monking!
Morning @SimonAndréForsberg
11:25
Monking
You sound so... energetic
Question...
public static <E> Iterator<E> filteredIterator(final Iterator<E> iterator, final Predicate<E> condition) {
    return StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator, 0), false)
        .filter(condition)
        .iterator();
}
When applying generics
I believe it should be Predicate<? super E> condition for maximum applicability
Should the input Iterator<E> or output Iterator<E> also be more generified?
PECS - Producer Extends, Consumer Super
186
Q: Java Generics: What is PECS?

peakitI came across PECS (short for Producer extends and Consumer super) while reading up on generics. Can someone explain to me how to use PECS to resolve confusion between extends and super?

Is there any point in doing it for the input iterator?
Iterator<E> filteredIterator(Iterator<? extends E> iterator, Predicate<? super E> condition)
I think that would work ^^
11:37
I see how it works for the predicate for sure, just not really sure about the iterator
What situation does it solve?
Imagine you have classes A, B, C. B extends A. C extends B.
My suggestion should allow you to write the following:
Iterator<A> result = filteredIterator(Iterator<C>, Predicate<B>);
That sounds abstract... I'll try to put that in an easier to understand example
Iterator<Integer> iterator = ...;
Predicate<Object> predicate = ...;
Iterator<Number> result = filteredIterator(iterator, predicate);
This should be legal?
And should the Iterator<E> return type ever be changed?
perhaps in some cases
11:42
Changing it to Iterator<? super E> wouldn't help I suppose?
I think it is good to know the exact type of Iterator that is returned
otherwise you can't assign it to a Iterator<Number>
Ah true, true
Returning such generics is actually a pain
looking at the actual methods that you are using we can find the following:
<T> Stream<T> stream(Spliterator<T> spliterator, boolean parallel)
<T> Spliterator<T> spliteratorUnknownSize(Iterator<? extends T> iterator, int characteristics)
Stream<T> filter(Predicate<? super T> predicate)
Iterator<T> iterator()
Ah yes, streams are sneaky, as input things are actually being indirectly consumed
using these declarations, you can find out what parameters are allowed for your method.
ah this is interesting...
I don't think it would compile if it was the following:
Iterator<Integer> iterator = ...;
Predicate<Number> predicate = ...;
Iterator<Object> result = filteredIterator(iterator, predicate);
11:51
Would also would seem to be okay?
is this allowed?
Iterator<Number> numberIterator = ...;
Iterator<Object> objectIterator = numberIterator;
^^ if that is allowed, then it's no problems.
An Iterator<Object> != Iterator<Number>
Iterator<? extends Object> == Iterator<Number>
Iterator<Object> == Iterator<? super Number>
also
So it does make sense, just a bit counter intuitive sometimes
0
Q: Get table header name in excel

KakashiI'm trying to get table header name in excel. I tried it using index, IF and MATCH.It works but I am not sure whether my formula is the best or not. this is how my sheet looks: And here is my formula to get produk name (E19:E22): =INDEX( $C$10:$H$10,0, IF(IFERROR(MATCH(D19,$C$12:$C$...

 
1 hour later…
13:27
0
Q: Evaluate Performance for PHP

Kristian RaftesethIn terms of speed, what will be the faster solution of these two? If you say you are looping these lines a million times? $hello = "some text and some $variable in here"; and $hello = 'some text and some '.$variable.' in here';

13:58
0
Q: Is this function grossly inefficient? It takes a while to run.

rickBasically what it does is takes a dataframe as an argument, looks all pairs of two columns in that data frame (country and year) and returns a column value of that pair in another data frame (the gini number). get_gini <- function(year, country){ GINI = 0 SUBSETTED_WITH_COUNTRY_NAME_NOW_...

14:19
0
Q: How to refactor code that violates the Law of Demeter without too much hassle?

David Jiménez MartínezI'm facing a little problem regarding a piece of legacy code I'm working with and trying to make it Unit testable. Here's the chunk of it: public int MovementCostForCell(World world, CPos cell) { if (!world.Map.Contains(cell)) return int.MaxValue; var index =...

@CaptainObvious Off topic, right?
14:40
This question is off-topic because you want a hypothetical situation reviewed. You don't want to know whether the current code is good for unit testing, you want to know if some other code based on revisions to the current code is testable. What's more, you want help to translate the current code in to that other code which does not exist yet. On Code Review we review the code you have, we don't write and review the code you want. — rolfl ♦ 16 secs ago
> but there are lots of places where these functions are called with the original signature. Also, there original signature is quite language fluent, so passing to it a bunch of params just to fulfil LoD would be too cumbersome IMHO.
is it just me or isn't major refactorings supposed to be a bit cumbersome?
It more sounds like you should put up all your code for review, than just these two methods you have posted here. Doing so, and changing your question to "What can be improved in this code?" would make your question on-topic, and probably lead you on the correct path to decoupling and adhering to Law of Demeter. — Simon André Forsberg 28 secs ago
@rolfl would you agree with that comment ^^?
Do we have any stackexchange forum on social issues(queries) that can be discussed?
@SimonAndréForsberg Yeah, and no.
I agree that he should post more review, but his basic question is still "I know this code is crap, and this is how I think it should be done, is the way I think it should be done OK?"
14:49
i was just watching ellen show, an a bit suprised about her marriage, i need to understand this concept. am totally ignorant about this concept
He wants the new design reviewed.
And he still has not put a language tag on ;.... ;-)
He's already done his own code review, and want's people to agree whether his answer is right, not his question (which he already knows is wrong).
@rolfl that's not how I understood the question. It more sounds like he wants a new design/implementation that adheres to the Law of Demeter.
@rolfl it's clearly C# though
I believe you are right, that if he presents more code, it will be a better, and on-topic question.
But, the intent of his question is to get someone to do it for him, which may, or may not happen
We review the code he presents, not the code he wants
He seems to have done a lot of thinking on his own though and apparently haven't figured out a viable solution.
That, and, if you take the essay he has after his code.... and replace "I want" with "you Should", you can copy/paste it in to an answer and get a +1 and an accept ;-)
7 mins ago, by overexchange
Do we have any stackexchange forum on social issues(queries) that can be discussed?
^^^ Stack exchange is not a forum ;-)
it's a Q&A site. But, there's no site I am aware of for general social issues.
there's workplace.se, and parenting.se which often deal with topical social issues.
14:57
You are using git, right? If so, it sounds like you'd need to create a branch and start to refactor it. You have plenty of ideas already for what to do, start refactoring! — Simon André Forsberg 1 min ago
@rolfl speaking of something else... I read in JCIP about Staleness last night. I was wondering: Have you ever had that happen to you IRL, that a thread does not "see" the new value of a non-synchronized variable that was changed by another thread? I was curious about if this is a common thing on all JVM's, or if there are some JVM's where it 'never' happens
I encounter it often.
Staleness is often related to the cache lines in the cores of the computer.
with a single-core computer, you have 1 L1 cache, 1 L2 cache, and 1 memory controller, etc.
With a multi-core computer, you have 2 L1 caches, 1 L2 Cache, and 1 memory controller, etc.
so it has nothing to do with the JVM version at all I guess?
WIth a multi-scocket computer (like an IBM POWER 8 machine with 4 sockets, 8 memory controllers, 16 L2 caches, and 64 L1 caches.....
the chances are that a thread running on 1 socket will never see the same valueas a thread on another socket, unless you have the memory barrriers.
With very small code running in very tight loops, you can often get the effect with just 2 cores on one socket.
0
Q: Fixing route problems in ruby on rails app

Peter BentleyI'm a ROR newbie and I've somehow broken the create and edit functionalities within my app. I have individual pages for each artwork I've uploaded, a _form that enables editing of those artworks (and their original creation), and two different index pages: one index page that's pretty (on the app...

perhaps my computer has been too weak, then
15:03
Each core is modifying the value in the L1 cache for that core, and it never gets propogated to the L2 cache, so the values never get shared at all.
Try running 4 threads each doing a loop of 1000000 iterations all incrementing a value: myVal++
At the end the value should be 4,000,000
If the value is an AtomicInterger, it will be.
if it is not, it will not be,.
I have an AMD FX(tm)-8350 Eight-Core Processor now, I had a dual-core before. So perhaps I should see more staleness issues now.
if it is volatile, it will be somewhere in between
If the value is < 4mil, then some of the threads were seeing stale data, and the number of times < 4mil you see, will relate to the number of times a thread saw the stale info.
I have to be off, gone for a few hours.
@rolfl but if it's not synchronized, the fact that it doesn't reach 4 million is more because of race conditions than staleness.
alright, ttyl monkey.
No, staleness.... because one thread sees the value 1234 for myVal, when another thread has already set tit to 1235
so it increments 1234 to 1235 and saves it away....
the monkey is leaving and the duck arrives, oh the zoo of The 2nd Monitor!
2
15:07
the value was stale when the thread started the increment
@rolfl are you talking about a volatile variable now? or a non-volatile?
non-volatile
a volatile variable will show some different effects related to the fact that the get and store on a ++ are not atimoc
really must go, and you should get a hold of JCIP.
but modifying a variable is a three-step process: read-modify-write.
I am working my way through JCIP!
9 mins ago, by Simon André Forsberg
@rolfl speaking of something else... I read in JCIP about Staleness last night. I was wondering: Have you ever had that happen to you IRL, that a thread does not "see" the new value of a non-synchronized variable that was changed by another thread? I was curious about if this is a common thing on all JVM's, or if there are some JVM's where it 'never' happens
> "I read in JCIP about Staleness last night"...
with volatile, the read will always read the system-wide value.
but, another thread could write a new value after the read.
the read should have been the new value....
the write will write the same value as what some other thread wrote already.
alright
I can understand why you've read JCIP twice.
15:10
with volatile, at least you are all reading the 'current' value, but you suffer a race condition between the read/write.
with non-volatile, you likely will not even read the current value, it will be stale.
with atomic, or othe rlocks, you will do it all right
Now I am really gone ;-)
15:56
@rolfl that explains it
16:29
@SimonAndréForsberg run the experiment?
@rolfl nope, haven't tried that yet. Been working on @Duga and right now I'm trying to see if @Vogel612 can avoid the singleton pattern.
Ahh. I am mobile @ an optometrist 4 my kids..
Eyes checked... yeah
ah, optiker :P
should have figured that out
 
1 hour later…
17:50
0
Q: Slide-Game in Swing

EmzThis was done as an assignment in school. As I am still learning some of the basic parts of Java be merciless when it comes to my code. As it is an assignment, some things are unchangeable. The specification requires: Swing. So no third-party library is allowed. Cell class with getCol() and get...

0
Q: C++ smart pointers and classes

HavsmonstretI've started learning C++ recently and want from what I've gathered smart pointers are the way to go when storing stuff on the free store. I want to make sure I've got the basic hang of C++(11) correctly. I've implemented a very basic vector class (a mathematical vector) and would greatly appreci...

18:04
Monking
Monking
18:20
What's with not indenting the code within an outer class? Is it a certain style, or just ignorance?
0
Q: TicTacToe in OOP (Java)

JCobI'm trying to learn some OOP programming using Java, so I've created TicTacToe. Could you give me some advice on how to improve this code? Player.java: package com.kamil.dude.tactoe; import java.util.Random; import java.util.Scanner; public class Player { public char currentPlayer; public Pl...

@Jamal Not sure?
At least on here, some people have the decency to "tuck in" their outermost closing curly brace.
(re-)Monking
Hmmm.... I just got an idea...
I hate getting new ideas when I haven't finished all my previous ideas!
It's like +2 -1...
implement one idea, get two new ones...
18:42
@SimonAndréForsberg Write them down
I am.
Simply writing them down doesn't help that much in getting them implemented though!
Make a trello board and invite people to it
@Unihedro trello?
(hi btw!)
@SimonAndréForsberg trello.com Stack Exchange uses it
@SimonAndréForsberg hallo :D
18:53
Does trello support github integration somehow? Like waffle.io ?
19:11
god this would be awesome
just as having onebox for github stuff would be
Duga producing a wall of text in TCG
-2
Q: Hide Attribute not working!!! (newbie here :P)

user63713 $(document).ready(function() { $("p").hide(); $("h1").click(function() { $(this).next().slideToggle(300); }); }); <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1...

nuke-close and delete please
@Vogel612 what would be awesome? tello + github support?
yea
but github onebox for chat would be, too ;)
19:16
I guess it doesn't include direct github support then
lol, indeed it would
37
Q: One-box repositories, issue tickets and such on GitHub in the chat

UnihedroGitHub links are posted in chat quite frequently, but the support of the appearance is somewhat poor: <html><head><link rel="stylesheet" href="http://cdn-chat.sstatic.net/chat/css/chat.stackoverflow.com.css"></head><body><div id="transcript"><div class="monologue user-2246344"><div class="si...

at least we have @Duga, that's the first step ;)
@Duga close #53
he isn't here
@SimonAndréForsberg I cannot do that
she's much more polite to you!
19:19
@Vogel612 It is a she
@Vogel612 must be a coincidence ;)
soz. I'll learn it somewhen
Since when do I have undelete powers?
since you have access to moderator tools
OK.
I'm gonna take a 15 minute quiz now, see you.
19:31
somebody tell me revision 6 and 7 are not okay here
two huge blocks of code added
roundabout 10 hours after the first answer..
since the answer was already accepted, kinda moot point now
really? I think that's still answer invalidation
the mug removed a whole point in his answer an hour later.
it is, but does it matter now ?
it's about the principle. And about educating a relatively new user about our rules
there's no harm in rolling back, right?
fine by me
19:41
finished.
Please find me in The 2nd monitor (Ping me by typing @rolfl somewhere in yur message). This question needs to be discussed. — rolfl ♦ 6 secs ago
@Mat'sMug - what's your take on the edits to the questions/answers above?
WHy did you revise your answer after the edits (and update the edits too?). Are you content with the way it was done?
if he wasn't probably he would have commented about it...
I looked at revision 7 and noticed OP had added the unit tests that 200_success suggested to add. I figured the unimplemented methods had been "left out for brevety" and since the implementations were added in the same edit as the unit tests I figured it'd be simpler for everyone, and less of a mess, if I simply removed that [small] part from my answer
well my standpoint is clear.
RB to rev.5 removes the unit tests and with it reviewable material (that was asked for by a moderator) is gone.
@Vogel612 I'm always around ;)
19:50
lesson learned
I think that mentioning Unit-Tests should be sufficient
it's not required for questions to include unit-tests to satisfy the "works as intended" clause
and as such adding (and also requesting) the unit tests was not the correct choice
@Mat'sMug - so, do yo mind restoring it to the state you think is right? (I'll unlock it)... (oh, and noone pinged me...).
revision 1 was closed; post was reopened at revision 3, Jamalized and answered at revision 5, and then tests were added at revision 6 - that's when I thought "enough!" and just edited my answer instead of rolling back OP
or revision 7 perhaps
yeah 7.
Code-editing of the question is prohibited in order to protect the answers and the answerer from a moving target.
then I edited it myself
normally. but that post was a mess already.
6 added unit tests, 7 added implementation of the two methods initially criticised in mug's answer
19:56
If, as in this instance, all the answerers accommodate the code edits, and feel it's better that way, I am not going to diagree.
@Vogel612 I should have noticed that and rolled back to 6 before editing
> 1 Answer
cough
Yes, 1 answerer, and you represent all of them...
lol
I thought the unit tests were a legitimate addition, especially since 200 had suggested adding them
@rolfl In JCIP, it says "For example, in the absence of synchronization, the Java Memory Model permits the compiler to reorder operations and cache values in registers, and permits CPUs to reorder operations and cache values in processor-specific caches." -- what compiler do they mean? It's gotta be the JIT, right?
it was my bad to miss the addition of the unimplemented methods before further editing OP - so I removed that part from my answer
I don't see #6-7 as problematic
20:00
@SimonAndréForsberg Yes, JIT
I know more about the IBM JDK's JIT than the Oracle one.
it was my bad to miss #7 and make #8
btw @rolfl did you get a "many edits to a single question"-autoflag or how were you so fast in intervening there?
I happened to scan through the chat room and saw your comment here.
@rolfl @Vogel612 bottom line I think the post should just remain as it is now. It was a good call to link to that meta post, OP will learn.
32 mins ago, by Vogel612
somebody tell me revision 6 and 7 are not okay here
@Mat'sMug OK, I'll run with that then.
20:07
I stumbled upon [this question], tagged . I wanted to ask on meta but @SimonAndréForsberg says they're reviewable here, and it being the top-voted and accepted answer, I take it as community-agreed. Thoughts?
oops
3
Q: Get table header name in excel

KakashiI'm trying to get table header name in excel. I tried it using index, IF and MATCH. It works but I am not sure whether my formula is the best or not. This is how my sheet looks: And here is my formula to get produk name (E19:E22): =INDEX( $C$10:$H$10,0, IF(IFERROR(MATCH(D19,$C$12:$C...

/s/[this question]/^^^^
...so I "reviewed" it. Indeed, reviewing worksheets is hard, but feasible. Is it on-topic though?
> Just because we're not sure on how to answer it doesn't mean it's off-topic.
I see it as being OK. It is code, it works.
0
Q: All in one number base converter

Chris TaraziI coded this program as a challenge for /r/dailyprogrammer. Basically this program can convert any number from any base to another base including negative bases as long as the input is coherent. Did I follow the Python 3 standard or commit any obvious mistakes? I am also wondering if I can effi...

0
Q: How is my python OO blackjack game design?

John MitschI think this would be a good place to have some more experienced programmers look over my code. Yes, it is homework :) Overall feedback would be much appreciated! I have set up card, deck, hand, player, dealer, and game classes. The game class is there to keep a lot of the logic out of the inte...

yo @rolfl, I started making a list of awesome features that pretty much only Vim can do, no other text editor: gist.github.com/janosgyerik/8556496
if you have some more ideas, I'd be interested to hear
:set ff=unix
multiple marks?
ma
jjjjjjjj
>'a
good points! (added both)
20:22
I love the marked ranges, and use them often.....
ma .... scroll to another place and mb then go somewhere else and you can still go g'a to go to a, or 'a>'b to indent all lines from mark a to mark b
Or for marked ranges:
:'a,'bs/^/    /
or delete from current postion to a mark ... d'a
How about editing multiple files from the commandline?
find . -type f -name '*.java' | xargs vim
that's nice, but maybe not awesome enough
No problems... ;-) but, somehow it is able to still work interactively even when called after the pipe... not sure how it does that.
what do you mean? xargs will pass the files to it as command line args
Yes, but the stdin for xargs is from find... and the console is detached from that.
So, XArgs is not attached to a terminal, how can it spawn vim sessions that are.
hm, that might make a nice question on UNIX SE :)
20:35
I presume that there's a mechanism in Vim to pull input directly from the /dev/pty or something.
btw, expanded on the first few points on the list in a blog post + a call to action for the Area 51 proposal
new post: A few reasons why Vim is so awesome -- http://www.janosgyerik.com/a-few-reasons-why-vim-is-so-awesome/
hm I forgot twitter doesn't use gravatar...
anyone experienced in how I can make Chrome run a JavaScript in a file from the developer console?
21:10
@RubberDuck Sorry to disappoint you, but a friend of mine just told me that I was the best rubberduck ever.
Lol. That's awesome @SimonAndréForsberg.
Y'all are good rubberducks.
2
If I ever do something that I'll be expected to write a list of credits, I'll mention the 2nd Monitor and some of you specifically.
Who depends on what it is.
@janos Is your blog on WordPress?
Jekyll (GitHub Pages)
Could I follow it through my WordPress blog?
With Disqus, you can
21:18
I don't have Disqus.
not sure if that will suit you
I wonder if I could do something so that you can follow me through WordPress
Really good information.
glad you like it!
that post is barely mine though, it mainly replicates what I found elsewhere
21:21
Yeah. I didn't know that information before.
I'm going to send it to my mom.
I'm sure she'll love keyboard shortcuts :)
I do.
I systematically went through my keyboard and discovered lots of unknown shortcuts in the Windows Store OneNote.
@janos on a related note. dG is three keystrokes when counting Shift
oopsie
that's true :-/
Unfortunately, they wasted all my work be redesigning OneNote from the ground up :(
21:36
I'm using Word like an IDE now.
4
I just typed something inside parenthesis, did the parenthesis first and the content second.
Then, I typed a closing parenthesis, and was mildly surprised when it didn't overwrite the closing parenthesis I'd typed previously.
21:50
> profile views 4,444
@JeroenVannevel 4,445
22:07
@rolfl I just corrected my sister with that syntax in a text message over FB messenger. "WTF" ensued.
Note to self: what happens in The 2nd Monitor, stays in The 2nd Monitor.
4
00:00 - 23:0023:00 - 00:00

« first day (630 days earlier)      last day (3685 days later) »