« first day (3164 days earlier)      last day (1148 days later) » 

00:00
REFRESH! There are 8014 unanswered questions (89.2038 answered)
4
 
1 hour later…
01:16
@SᴀᴍOnᴇᴌᴀ Not that I drink them any more, but absolutely!
 
1 hour later…
02:21
0
Q: Generate Pairs with the following criteria

tempGenerate a string with the following criteria: string must only consist of 0 and 1 the string must be of length N the string must have M pairs a pair is a 01 subsequence can return any string that meets the above criteria if its not possible, then return an empty string Example Input: N=6 M=...

02:56
@SᴀᴍOnᴇᴌᴀ For some reason I'm of the opinion that the three tax havens aren't genetically/culturally significant, possibly significant in another way.
🤔
Oh- tax evasion hubs
A couple years ago the bike lane I would take on the bridge to my office had tacks set up on it by meddlers and this I was guilty of tacks evasion
@SᴀᴍOnᴇᴌᴀ Wow, geoblocked because I'm in the EEA... I'll take this as a hidden blessing for my privacy ;)
@SᴀᴍOnᴇᴌᴀ That's a funny pun you've made there
> TIL right of way is aggression. - Reddit
 
1 hour later…
04:26
0
Q: Sieve of Eratosthenes in F#

Antônio Salomãoafter looking at the pseudocode for the Sieve of Eratosthenes on wikipedia I tried implementing a similar version using F#. The code runs just fine, that is, it returns all prime numbers up until a given number. But I was wondering if the implementation could be improved. See below for the code: ...

 
2 hours later…
06:05
0
Q: Undesired printing of Caesar Cipher with input from the user

sameed hussain I am new to programming. And I have elementary doubt in regard of strings. I can successfully print a string given by a user. But things get weird when I run the code for Caesar Cipher. Following codes will explain where actually the problem is arising. In the following code I am able to succes...

06:53
@Peilonrayz I wasn’t familiar with the EEA but I see it includes EU member states plus Iceland, Liechtenstein and Norway
When I think of Liechtenstein I am reminded of a phone plan commercial from ~20 years ago when one lady says “ Liechtenstein” for fun- my attempts to find said video online have been futile -_-
07:22
Compliment or Complement? ... those are two different words. If you're seeking a code review, consider posting to: codereview.stackexchange.comPaul T. 54 secs ago
 
3 hours later…
09:55
What is the question here? Stack Overflow is not a code review portal — Jakoss 26 secs ago
@Vishal10B You can find this code now an Code Review if you are intersted in. — Thingamabobs 11 secs ago
10:14
0
Q: Dividing shared resources for homogeneous multithread processing

YoonSeok OHI'm trying to implement a homogeneous multithreading example that multiple threads process portion of a huge task. In order to achieve this, I thought of clustering data/resource and multiple threads handle/process each clustered data/resource. In the meantime, I wanted to maintain singleton like...

 
3 hours later…
13:27
Monking new year!
2
 
2 hours later…
15:02
@SᴀᴍOnᴇᴌᴀ I remember it vaguely.
That's what it reminds me of.
I've been in Andorra and Monaco, very odd 'countries'. Never been to Liechtenstein.
Interesting question with authorship problems, the code in it is the example of input and output, not the code to be reviewed.
0
Q: Lexer for a Scheme-like language in rust

Bhargav KulkarniI was/am working on an interpreter for a scheme-like language. Just some time back I shifted my implementation from C++ to Rust, which I just started learning. I know there are parser libraries like LALRPROP and nom in Rust that could parse easily for me, but I wanted to try and write it in Rust ...

@Mast How are your ears this morning?
@pacmaninbw Tired.
15:14
LOL.
Well, one of them is. The other hasn't been doing much for the past decades.
Did you set off one of the milk cans without ear protection in the past?
No, fell down on a concrete floor head-first.
Couple of meters.
Could've killed me.
So, I'll take missing an ear.
Yes, it definitely could have, good choice.
Well, physically it's still there. But the connection between the ear and my brain is severed.
Like hitting a cable with a blunt axe.
That's more or less what happened.
15:17
That makes a lot of things in life tougher.
The main problem is being awful at filtering sound. You need 2 ears to pinpoint where sound is coming from. That helps your brain with deciding what to listen to and what to ignore.
@SᴀᴍOnᴇᴌᴀ Long Island Ice Teas were my preferred drink for about 10 years until I was introduced to Single malt Scotch.
I've done some (live) sound engineering so you can overcome most difficulties, but that's what remains tricky.
@Mast That is exactly what I was talking about.
@Mast How do you balance the output?
@pacmaninbw Rotate your head around like a bat.
2
Having a mixing panel that could mute/select channels helps, rotating the headphones 20x an hour does the rest.
Mixing panels that can put R on L and vice versa used to be scarce/expensive unfortunately.
15:28
I used to be on the stage crew for plays in high school and at the university, never worked on the sound crew, I was only a deck hand, occasionally on curtains.
I've done some audio, video and stage set-up for small plays and small churches in a volunteering capacity for years.
Fell down a stage once while filming with a TV camera, that was fun.
I try to stay behind beamer laptops since then.
Honestly setting up a stage is easy. You determine how many people/instruments are going to be on, pull a line for each, jack them in the hub, cable the hub to the mixer, set some speakers down and done.
@Mast I stopped climbing up 16 foot ladders in my early 20s, helped with lighting a few times before that.
Picky musicians wanted a monitor, those were always trouble to set right without interfering with the rest.
I've built multiple stage sets. I can see the problem with the monitor.
It seems you mostly did concerts.
0
Q: First C++ Program : Simple Calculator

BItUsage : Multiplication Multipliction is simple, Enter your first digit in (eg. 1) Enter your operator (x) Enter your second digit in (eg. 1) Squaring Enter your first digit in (eg. 1) Enter your operator (s) Cubing Enter your first digit in (eg. 1) Enter your operator (c) Division Division is...

15:37
With some A/V recordings, if there were camera's involved they were usually semi-static (remote control panning/zoom).
Mostly small stuff.
Some guys I worked with at my first job out of the university were in a band, they were successful enough to get onto a local radio station and then they quit because it was easier to be an electrical engineer.
I've been doing things with wires since forever, that's probably how I became an engineer as well.
First major burn from a soldering iron was when I was 8.
One might think you were accident prone.
You know the kind of lights that only had a plug on them? Buy a switch for next-to-nothing, cut the wires, tin the wires and put a switch between it.
I don't think I've used a soldering iron since I was 14. That's for the EEs, I stick to software.
15:40
Did a couple of those around that time. Most went well. 1 didn't.
@pacmaninbw I am a bit more clumsy than I'd like.
I'm not sure this question belongs on code review. I doesn't have a language tag.
It feels good to not be in a warzone anymore
2
Okay, I've cleared the queues for the first time this year. :)
Now I need to figure out how to create an installation package for a C# program.
15:56
@pacmaninbw Looks like it should have a tag.
@pacmaninbw I know Visual Studio has an Installer Setup Wizard to do that, at least for Windows applications.
At least they did. The alternative would be using a third-party tool like InstallShield.
Or make it portable, I tend to stick with that.
@Mast Yes, I need to read the Microsoft Documentation. I tried copying the .exe to the client's computer but the excel and word libraries didn't go with it.
@pacmaninbw It's possible you have to set those libraries as prerequisite so it comes with the output.
I'm staying as far away from software development or other applications as possible until my vacation ends ;)
I need some of my sanity remaining
My question about VBA a couple of weeks ago turned out to be irrelevant since the version of office on the clients computer doesn't support VBA.
@skiwi LOL, I stay sane by writing code.
There's an office version that doesn't support VBA? sigh
16:02
Office 2010 starter version.
I will be posting a new question that uses C#, excel interop and word interop, maybe today. Might be more than one question.
Not COM?
Not as far as I know.
The libraries are available without COM.
I do have one performance issue when loading the excel data.
I keep a data table in the application and then disconnect from excel.
I haven't done any Excel manipulation in a while. Last attempt was with Python, although I've done some XML views that never made it to CR as well.
There's an Excel-manipulation class somewhere in my bag of unfinished projects.
The Microsoft interop libraries provide direct access to office applications.
Probably to allow web applications to modify office documents.
@Mast Microsoft has always supplied cut down versions of office that are inexpensive but don't do everything.
It seems as if winter bash is pretty much over.
16:25
@pacmaninbw Yea, but I thought those were simply less complete in the amount of programs they provide. No Access, Publisher, etc. but with complete versions of Word and Excel.
Apparently not.
As a friend of mine on Facebook would say "But of course".
I must be evil this morning, '666 consecutive days' on CR.
Congrats, I think.
That may end on 1/18. I have para-thyroid surgery planed and will be in the hospital overnight.
@Mast :)
@pacmaninbw To cut down on calcium production?
Yes! One or more of the 4 is enlarged. The calcium problem has been around for at least 3 years and may have had some input into the cause of my heart attack.
16:36
It's one of those things that act up once you get older AFAIK, so I imagine your muscles and joints are affected by it. Your heart being an important muscle, yea, I can see how that might've had some input on it.
I had a bone scan last year and the calcium is not coming from my bones. I had a para-thyroid CT scan in October and they did apparently find an enlarged para-thyroid gland.
It's weird how too much and not enough calcium can both lead to problems that are very related.
Best of luck.
@Mast Calcium is know to affect the heart rate.
Thanks.
Getting old sucks.
Do I need to remove that?
Nothing offensive about it.
17:10
Feed is being slow today, but this question looks very similar to this removed question.
0
Q: Parsing a file with specific structure with JAVA

singh rajI have the following .txt file that i want to parse in Java(8) and it has the below structure string1 string2 B|C|D R|S|T 100 200 300 400 1 2 3 4 H|A B|C|D R|S|T 200 300 400 500 2 3 4 5 H|A If there was string3 then there would be another related set of lines such as: B|C|D R|S|T 200 300 400 500...

 
1 hour later…
18:31
0
Q: How do I make my program that creates RSA keys and encrypts and decrypts a file more secure

The Masked Rebel#include <cryptopp/cryptlib.h> #include <assert.h> #include <cryptopp/queue.h> #include <cryptopp/secblockfwd.h> #include <iostream> #include <fstream> #include <cryptopp/integer.h> #include <cryptopp/rsa.h> #include <cryptopp/osrng.h> #include <cryptopp/files.h> #include <cryptopp/secblock.h> #i...

18:56
0
Q: Scrabble Kata (C#)

simon-pearsonI recently took a ~three month break from professional software development and am feeling a bit rusty. I thought a good way to ease back into things before looking for a job would be to take a swing at one of the excellent coding exercises that The Guardian use in their interview process (GitHu...

19:29
@SᴀᴍOnᴇᴌᴀ Yeah Europe is a mess. Not that I can say Britain is any better...
@pacmaninbw I think the SO question was tagged with JS... IDK how the user miss tagged the question
 
2 hours later…
21:56
EEA got too big too fast.
22:43
This question is too broad and loosely defined for Stack Overflow. For improving working code, you can ask on Code Review instead. BTW, you might want to read their How to Ask page first. — wjandrea 15 secs ago
22:54
Oops, actually Code Review might not be the best place for this. Instead, please be more specific: try your code on a chunk of your big dataset and see if it's performant enough. If it isn't, specify how exactly, and provide some example data so we can test it ourselves. — wjandrea 48 secs ago
 
1 hour later…
23:55
0
Q: Does this dijkstra's implementation work on negative weights?

theprogrammerimport javafx.util.Pair; public class DijkstrasAlgorithm { /** * The vertices are labeled 0 to n - 1. This is a weighted directed graph * * @param n no.of vertices * @param edges array of adjList edges: [src, dest, cost] * @return distance array */ // T...


« first day (3164 days earlier)      last day (1148 days later) »