Top new questions this week:
|
I have a problem with name hiding that is extremely hard to solve. Here is a simplified version that explains the problem:
There is a class: org.A
package org;
public class A{
public class …
|
While browsing the code for the Java 8 version of ForkJoinPool(which has a few interesting changes from Java 7) I ran across this construct (here):
do {} while (!blocker.isReleasable() &&
…
|
The std::sort algorithm (and its cousins std::partial_sort and std::nth_element) from the C++ Standard Library is in most implementations a complicated and hybrid amalgation of more elementary sorting …
|
public class Manager {
public static void main (String args[]){
System.out.println((int)(char)(byte)-2);
}
}
I encountered this question in technical test for a job. It gives the …
|
Why does
char ch = '4';
ch = '4' + 2;
work, but
char ch = '4';
ch = ch + 2;
doesn't?
|
I have some pre-c++11 code in which I use const references to pass large parameters like vector's a lot. An example is as follows:
int hd(const vector<int>& a) {
return a[0];
}
I heard …
|
As a fairly green Java coder I've set myself the hefty challenge of trying to write a simple text adventure. Unsurprisingly, I've encountered difficulties already!
I'm trying to give my Location …
|
Greatest hits from previous weeks:
|
How can I call an external command in Python? In other words, how can I spawn a process?
|
I accidentally added the wrong directory containing my files in Git. Instead of adding a .java file, I added the directory containing the .class file.
How can I undo this action?
|
Can you answer these?
|
I'm working on the academic project, part of which is applying transparent encryption (AES-CTR) to the selected Ext4 files stored on the disk (I can already mark them as encrypted using new ioctl …
|
I'm trying to understand what's happening under the hood to a network packet coming from the wire connected to the host machine and directed to an application inside a Docker container.
If it were a …
|
I have created a Neo4j virtual machine on windows azure using VM Depot.My Virtual machine size is' A1 (1 core, 1.75 GB memory)'. But while accessing from web browser I always get an error …
|