« first day (518 days earlier)      last day (3798 days later) » 
00:00 - 18:0018:00 - 00:00

18:00
0
Q: indices vs. mask as an input to the `np.array_split()` and `np.diff()` functions

DatamanI have a function which gets a list and finds and return the regions where NaN values happen. while I was trying to make my code more readable, I implemented the second function and I noticed that both functions produce the same results, however, I have no idea about the reason behind it. I was a...

@syb0rg I kinda do, but there are unfortunate situations where this usually has to be done, such as with homework.
0
Q: Should we encourage deliberately incomplete answers?

janosLet's say you have 5 ideas to criticize in a question. I see some advantages in including only 3 of them in your answer: Other answerers will have more things to say, making it easier to join in: There will be more answers Better questions-to-answers ratio -- good for the site In turn, more ...

18:25
@EngieOP lol saw you entering The 2nd Monitor, was ! :)
-2
Q: Scripts php to convert Android application is fully

air droidHello Can I transfer php scripts to the entire Android application is an example of the script to be converted www.tatarxvip.com It is a war game Online I hope to benefit?

Oh, lolz.
I don't think I was even online at that time
0
Q: Changing how the insertion sort works (Experimenting)

user3385538I am trying to change how the insertion sort process the data. As I know that Insertion Sort "shifts" the smaller elements down into their sorted position, while the new insertion sort "percolates" the larger elements up into their sorted positions. How can I change the code so it can percolate t...

Huh, given that Tony Stark runs Oracle Exadata clusters, I figured he would know a little more than he does about databases:
0
Q: UCANACCESS issue and problems

Tony StarkI checked everywhere i could and including this page but i keep getting weird error on Netbeans 8 and Ucanaccess. Here is what i did first. imported org-apache-commons-logging.jar, ucanaccess-2.0.9.jar, commons-lang-2.6.jar, hsqldb.jar, jackcess-2.0.4.jar as a new driver. set the class path un...

@rolfl lol
18:37
@rolfl and indentation...
0
Q: Mapping interface between POJOs and DTOs

dmz73Following up on this question DTO interfaces for implementing web service integration I came up with this implementation. Data Transfer Object interface following a java.util.Map protocol. public interface Dto<K, V> extends Map<K, V> {} public class DtoImpl<K, V> extends ForwardingMap<K, V> im...

@syb0rg: Regarding the Karatsuba question, am I right in thinking that CreateArray() is just horrible overall? I don't think it's clear who really owns res.
Cute, but no.
18:39
Shrek.
Shriek
@Jamal I think so
(that it is horrible)
@Mat'sMug Out of interest, Mat's the basic SO icon is being reused with different colors for the different language versions of SO.
18:42
hmm
@rolfl Isn't that the same color as regular SO?
@syb0rg So it would be better to just allocate them inline and deallocate in the same place? I still think that there's too much memory management that could easily clear up by not using C strings.
@Jamal I think it would. You are recommending that he use std::string, correct?
Yes, but he says he'd rather not. If so, he might as well just make it a pure C implementation.
18:44
@skiwi You actually have to visit the site, it seems.
hmm the actual icon says "beta"
@rolfl Ah, the favicon
but they're not beta-blue!
^^ being built, and has different favicon.
0
Q: Python - Staying under the PEP maxium line size

user3590149I have this function that I use to publish a message but I need to do this long conversion for time and date. Maybe there's a better way to convert it to make smaller. Otherwise I'm stuck with this long line. I guess I could use slashes, is guidelines on readability for using slashing or is arbit...

Link 404 for me
@rolfl Yes, it was a silly joke, you get it, no?
Sorry, still not ....
@rolfl Read it in Dutch/African... :)
I bought a new laptop today. For the first time in my life, I own a computer that is not already obsolete.
6
18:53
@Morwenn Nice!
@Morwenn if I pin this message, by the time the chat system automatically unpins it, your laptop will be obsolete ;)
0
Q: Create Binary, Balanced Tree Attempt #2

Kevin MeredithPreviously, I posted an incorrect implementation of making a binary, balanced tree from a list of a's. Here's my second implementation: data Tree a = Leaf | Node Integer (Tree a) a (Tree a) deriving (Show, Eq)-- where Integer is the height (bottom = 0) -- make bala...

@Morwenn but can it run Crysis?
@EngieOP No idea, I do not play games.
But compiling C++ project was getting tiresome with my old laptop. Fortunately, it stopped working a fe days ago.
@Morwenn GabeN is watching. ಠ_ಠ
jk, twas a joke.
18:55
@Morwenn Seeing the silver lining... now, what about the income... solved that yet?
@rolfl I stopped looking for a job. Jobs are now looking for me.
4
@syb0rg I've added my idea to my answer now.
@Morwenn In Soviet Russia, job looks for you.
@skiwi Ahh, Afrikaans would be nie, or niet. And English nee is a term used to introduce a maiden name for a person.... "Jane Jones nee Smith" would be Jane Jones who was Jane Smith before getting married.
@rolfl Ah... That caused some confusion then ;)
18:58
@skiwi I uploaded my CV on a particular website and got two phone calls for jobs in less than 24 hours.
@Morwenn Wow... hope they turn out to be something good then ;)
I have an interview next Friday.
noice!
user image
4
0
Q: Making a database entity superclass

Sillicon TouchI am using JPA for my database work and I need to create a database entity superclass which all of my table entities will extend. Every database entity will have a primary key named id (which in some cases is an int and in some a String) and also a lastUpdate field which stores the time at which...

19:08
@EngieOP SPAH SAPPIN' MAH SCENT TREE
3
@skiwi Per your request (sorry to keep you waiting ;)
0
A: Interprocess Communication in a Farmer-Worker setup

syb0rgOverall this is some very nicely written C, well done. Some stuff I noted: Portability: <mqueue.h> is a POSIX C library. Unfortunately this restrains the platforms that you compile this for (I couldn't compile this on my Mac without some fiddling around). There are two ways you could fix thi...

Wow, Firefox only uses 1~5% of my processor. With my old laptop, it was more like 50~100%.
19:23
Has anyone here watched Garth Marenghi's Darkplace?
https://www.youtube.com/watch?v=zpdgEv9us5A
dat ambulance...
1
Q: Is this a correct Factory Method implementation?

vBxI'm learning about design pattern and I tried to implement a Factory Method example, based on the GoF book. Can I say that this is a correct implementation of it ? If not I will be glad to find out what are the pitfalls. #include <iostream> #include <vector> using namespace std; class Wid...

LaTeX is awesome :D
@syb0rg Really, really nice review
2
19:43
haha
@rolfl Thanks! it took an hour to write that and all the power on my laptop haha
I'm now on my phone unfortunately
Stupid phone chat
20:05
@Morwenn If you sing Friday by Rebecca Black on the interview, I bet they'll hire you directly!
@JaDogg Yes, it is!
20:24
@RubberDuck I managed to get this to "work":
'error is raised by UnitTesting library, and is actually a 440/AutomationError no matter what.
'@ExpectedError(-2147220406)
Public Sub TestCannotRegisterLoggerTwice()

    Dim logger As ILogger
    Set logger = MockLogger.Create("TestLogger", TraceLevel)

    LogManager.Register logger
    LogManager.Register logger

End Sub
without the '@ExpectedError "attribute" the test is [INCONCLUSIVE] (method raised an error "Automation Error"), and with it, it passes!
sucks that VBA turns every error into a 440-AutomationError though
@mariosangiorgio I won't be able to read it until Monday probably
'@ExpectedError(440)
Public Sub TestMustRegisterLogger()

    If LogManager.IsEnabled(TraceLevel) Then
        Assert.Inconclusive "Trace level was enabled before test started."
    End If

    LogManager.Log TraceLevel, "This shouldn't be working.", "TestLogger"

End Sub
much cleaner!
@Svick thank you for answering that question. I need to learn more about Threading, for sure!
and it still fails "inconclusive" with a "test raised error: division by zero" if I stick a boom = 1/0 in a test method that expects an error.
2nd yearling on Superuser! oh yeah, back to cutting wood, got a new chain and it is slicing through wood like heated knife through butter!
2
20:29
say goodbye to the last zombie:
0
A: How to copy files as fast as possible?

janosYou have already posted another question on this same topic two weeks later, with a better solution using GNU parallel. I'll review this one too anyway on its own merit, though it might be a bit of a moot point. It's not a good idea to set StrictHostKeyChecking=no when using ssh. The host key ...

Bye bye, Zombie!
thanks Santa Simon
3
@syb0rg Cool, I appreciate it a lot, @syb0rg!
Now time to fully read it
@Morwenn What... how many tabs did you have opened?
@skiwi Bewteen 5 and 20.
@janos You're welcome, but I didn't vote :)
20:43
@syb0rg I like that almost all of the points you raise or not on my code, but on the code that we had to use for this assignment! I stripped most of the teacher provided code out, but had to live with some
@Malachi no problems at all. I'd just like to have a look since I think I found a way to solve that issue properly
for sure
@skiwi I tried to take that into account when reviewing, but it appeared that most of the problems were also present in your teacher's code.
0
Q: python-scikitlearn: How can I speed up my tfidf vectorizer?

padAfter thoroughly profiling my program, I have been able to pinpoint that it is being slowed down by the vectorizer. I am working on text data, and two lines of simple tfidf unigram vectorization is taking up 99.2% of the total time the code takes to execute. I am extending the default TfidfVecto...

@Morwenn I'm just being happy that most of my own code appears to be good, as it's my first time writing C, ever
20:47
@Mat'sMug how is this broken? codereview.stackexchange.com/q/64644/18427
make sure to tag me I am heading out to cut more wood
21:06
I'm liking my bot more and more
in TCG Creation, 1 hour ago, by Duga
@SimonAndréForsberg, your build reported bad status: Broken!
@Malachi it doesn't compile as is, and with more context we could completely change OP's strategy.
Today is one of those days were even untested code just works.
^ My new favourite image.
Hard-core VBA anyone?
1
Q: Expected error can only be a 440/Automation Error?

retailcoderContext I have written a little unit testing library in VBA, so I can write unit tests like this: '@ExpectedError() Public Sub TestCannotRegisterLoggerTwice() Dim logger As ILogger Set logger = MockLogger.Create("TestLogger", TraceLevel) LogManager.Register logger LogManager.R...

21:15
Hey!
@Mat'sMug Who is that @retailcoder?
Some old lost version of yourself? ;)
It's... yeah :)
21:38
I only ever updated my profile on CR.. I'm @retailcoder everywhere else on SE ;)
Anyone interested?
[Starlite](http://skeptics.stackexchange.com/questions/22956/is-starlite-a-hoax)
here's a Python questions that's easy to criticize, if anybody interested:
3
Q: Filtering runtime processes to see if is a runaway process

user3590149I'm trying to improve readability and performance, either by reordering the logic of my code or just syntactically being smarter. Basically, I gather the running processes from Db and then I parse each process and go through he conditions for which the process might be runaway. I always have to ...

I only had time for a partial review, there are plenty more things to pick on there
22:15
I'm not even hoping for an answer on SO.
it's only been 1 hour
remind me tomorrow, I can put a bounty on it
well I already have an answer... should I post it?
yes!
I'm just about to go to bed. will upvote tomorrow ;)
'night!
I am going to bed too. See you another day :)
22:24
later!
(answer posted)
0
Q: Parsing command line arguments in Perl

janosI use this idiom to parse command line arguments in Perl: my @args; my $encode = 1; while (@ARGV) { for (shift(@ARGV)) { ($_ eq '-h' || $_ eq '--help') && do { &usage(); }; # ... more options here ($_ eq '--') && do { push(@args, @ARGV); undef @ARGV; last; }; ...

 
1 hour later…
23:29
@200_success... wasn't there a meta debate about TLE already?
@Jamal - you're about too.
I can't seem to find it
3
Q: "Time Limit Exceeded" and programming challenges

Emily L.Lately I've seen many questions pertaining to Project Euler and similar that have problems with time limit exceeded. And this prompted the question, are these questions on topic? I mean, the code, while it produces the correct result, can be argued to be broken as it doesn't solve the problem (du...

Aug 17 at 14:10, by 200_success
I've introduced a tag, to be used instead of or . Read the tag wiki for usage notes, and retag questions opportunistically.
Wasn't that long ago that this happened too:
Aug 17 at 14:08, by 200_success
Congratulations, @janos, on your spectacular rise to 10k.
@RubberDuck @ptwales I posted an answer, but I'm not addressing the multiple assertions in TestTraceLoggerEnablesAllLogLevels. I'm still hoping to manually award this +200 on an answer that cleanly addresses this :)
This testing library is starting to near perfection ...in a VBA way!
00:00 - 18:0018:00 - 00:00

« first day (518 days earlier)      last day (3798 days later) »