
I have a HashMap<Vertex, Integer> called vertexIndexes. If I iterate through it with this code:
public boolean search(String vertexName){
for (Vertex name: vertexIndexes.keySet()){
String key = name.toString();
String value = vertexIndexes.get(name).toString(); ...

I am currently told to count all .sql files which are hangin' out on some servers. Manually solving this very basic task is not an option, instead, I wrote some code that makes use of a SimpleFileVisitor<Path> and stores all the sql files found along with its parent path in a Map<Path, List<Path>>...

I have the following script that SSH to a server with a key and makes a lot of stuff there.
#!/usr/bin/env bash
ssh -i mykey.pem myuser@SERVER_IP << 'ENDSSH'
[A LOT OF STUFF]
ENDSSH
(which I run it with sh scriptname.sh)
Now I want to to the same in another server, so I've to SSH to two diff...

I'm using a docker image as a base for my own development that adds the jessie backports repository in its Dockerfile and uses that to install a dependency. This image uses the following command to add the repository:
echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sour...

I've hacked together this script which tests if the user has superuser privileges and if they don't it asks for them. I'm trying to negate the second if statement so that I can remove the following two lines (the echo "password ok" and the else on the following line)
# Root user only
if [[ "$EU...

Lately I've been curious on how exactly does investing in a product works, and I've been thinking about this scenario:
Let's say I'm creating some mobile application and I manage to get $1m of investment money. In the following year, the application turns out to be a huge success and I get an of...

What is the oldest known work of fiction that we know was meant to be taken as fiction? I mean to exclude mythologies; the audience of these was meant to believe they were true. What is the oldest work of fiction where it's truth was never considered?
An example of what I'm looking for: Lysit...

Considering how exploration over long distances into the unknown has been a part of human nature right at the beginning, it's surprising that some fairly large places have been discovered relatively recently. The island of Madagascar, for example, is large and very close to Africa, yet it was di...

As a fairly typical UK citizen, with a partner, children, job, mortgage, etc., what benefits can I expect to experience over the next five years as a result of the UK leaving the EU?
I'm aware of several definite down sides (e.g. losing the right to live and work in the EU, losing the right to v...

As I understand it, the EU27 leadership made the UK a conditional offer with various options to extend the Article 50 negotiation period. Who has to act to accept and enact the extension?
Can the UK government accept it on behalf of the UK or do they legally need an act of parliament first?
Onc...

A large plastic ball full of holes is given. (So the holes are in a plastic shell.) Straight threads connect these holes randomly, by passing through the interior of the ball/shell.
For a big ball or shell, say a meter in size, with thousands of holes, this makes (1/2 times) thousands of straigh...

I'm having difficulty coming up with a valid antonym for gravitas.
Online searches return results like superficiality, cheerfulness, frivolity, facetiousness etc. which don't work for me. They seem to be opposites of gravitas as it is understood by the person who has it.
As in, "We need to und...

Bit of a psychological question I have here in relation to working as a programmer.
In your work environment, when you're working on a particular system and that system needs to change due to requirements introduced or thought-up by others that you disagree with (either because you feel the cha...

I work night shifts with a co-worker who would always sleep or never be at work. We are both nurses.
She is friends with the administrator (our boss) who showed her signs of extreme favoritism on many occasions such as having my Christmas leave canceled in favor of my co-worker's. I believe they...

I have several hats at work - I'm primarily a software developer but I also have to do Linux sysadmin, Windows sysadmin, tech support (like changing printer ink, plugging in cables for people, etc), and new computer equipment.
Recently I managed to convince my boss to get new keyboards and mice...

I am a team lead in a company located in Manila, and I am currently writing an app that has a seriously questionable feature request for its Android users -- which is to secretly record its surroundings using the phone camera. When I asked the CEO why we have to write this feature, I am told that...

Recently we've had the 737-MAX debacle, where it increasingly appears that the MAX on-board MCAS system repeatedly would issue nose-down events, leading to the Lion Air crash, and possibly another
On the Lion Air flight, when the MCAS pushed the jet’s nose down, the captain pulled it back up,...

For any low-wing aircraft, particularly the MD-80 or some of the private jets, CRJ's, the wings appear about 5ft or less above the ground. It seems that just few degrees of roll before touchdown would cause a wing strike on the runway and a disaster.
How do pilots and aircraft manufacturers avoi...

I was watching DS9: Family Business when I noticed all the doors on Ferenginar are much shorter than the average Ferengi, causing them to crouch down every time they enter a room.
That's gotta be terrible for their backs! I understand that Ferengi are shorter than the average humanoid, but why ...

The story was about robots exploring another planet. The inhabitants thought the robots were human, and also thought that they were superior to the robots. That is until the robots stirred molten steel with their arms and killed a monster shark like fish. When the inhabitants saw the leaky spacec...

A time travel machine arrives in the late 19th century. A man jumps out and makes the machine disappear into the past so he can't be tracked. He then explains that human descendants with huge brains from millions of years in the future have invaded his time (something like the 25th century) and a...

I'm currently in two scrum projects. The team consists of 9 people (5 developers, 3 testers). We work with user stories, story point estimates and two-week sprints. The team has received a great deal of Scrum and delivers reliably finished (Code + Test + Documentation) software. The test automati...

I know this mostly from continental philosophers, like Hegel, Adorno or Kant: they use the greek alphabet when writing ancient terminology like ergon, telos or megalopsychos, while MacIntyre for example does not. He simply writes it like I just did.
What was the reason of the former philosophers...

I'm not a musician, and I know basically nothing about music, and music theory and what-not. (I basically just know a few common terms, and how to play chords)
In most songs with two or more people singing, (Duets specifically) the singers almost always sing in harmony, but not the same notes. ...

I encounter such a confusing sentence:
You are dealt two cards.
I don't understand why we should use "dealt" rather than "dealing"(Present Progressive Tense) here? What is the normal tense of "dealt" here?

Here is a sentence from the description of a battle game:
In the arena maps you will find the obstacles to take cover behind and
foliage you can hide in.
I am not sure if the word "foliage" means "leaves" here. How can one hide behind leaves?

The baby cries all morning.
The baby has been crying all morning.
I think both of these are grammatical but carry different meanings. The first one shows a general habit while the second one shows something has happened in the near past. Am I correct?
« first day (44 days earlier) ← previous day next day → last day (2164 days later) »