OMNI is a keyword. Are they god-like? You know - omnipresense?
There were such laws in past in USA?
@Psycogeek Back then buying competition was limited to city level and as laws kept being overwritten it grew to state and now country/international level?
I have SanDisk Sansa MP3 player, smartphone etc. all those mobile flash-based storage devices to playback music I love to listed and I always wondered one thing. Why sometimes music plays slow and sometimes which feels like at normal rate? This never happened with my desktop and laptop that uses ...
This is a list of spacecraft found in the Culture novels and short stories by Iain M. Banks. Most ships in this list are members of The Culture, the hybrid society featured in many of these novels. In this setting, each Culture ship, and some others, is also an artificial intelligence with a distinctive personality. Many of these ships are significant characters in the novels.
== Naming ==
The machine intelligences called Minds (and, as a consequence, the Culture starships that they inhabit) usually bear names that do a little more than just identify them. The Minds choose their own names, and...
@OliverSalzburg I googled that because I don't know what it is, and it came up with the easycap adapters I use for my pi.... what exactly is up with them, drawing too much voltage?
But it's a made-in-China product with a, I assume, 90% markup. It's not unheard of that it's not the highest quality
It's not often that I'm presented with a "We send you a new one, throw the old one in the trash" mentality when there are high quality products involved
@OliverSalzburg Not even slightly related... But I had to oversee a Fuji Xerox tech while he installed and SQL Server and set up two client PCs so one of our departments could get their document scanning workflow back up and running after a building change... It took a week and a half.
Literally me just sitting there making sure he wasn't messing with our network.
Mhh guys, I'm trying to install PHP and I'm getting an error, "msvcr110.dll not found". What's the easiest fix for this? (without breaking my computer)
@MichaelFrank I've always wondered, why do I need Visual Studio files when I'm not making any applications. Isn't Visual Studio just an IDE for GUI apps?
not just you, but since I'm a Linux guy primarily Windows enjoys mocking me whenever I have to fix crap on a Windows box :-)
the fact that it says "Sicherungspriorität" on the left but "something something - Priorität" on the right is mildly infuriating. Should read "Sichern - Priorität" or "Wdhst./Vergleichspriorität" to account for us with OCD ...
just another reason not to use shitty German localizations
In this one menu, they have an item that has the German word for "encryption" on it. I open it up and it becomes immediately apparent that the original word was "encoding"
"Oh, you want to encrypt in UTF-8?" Yes, please!
And when you have to call support and you get some Indian guy who gets assigned to you because he knows German as a third or forth language and you have a horribly localized software…
I’ve seen this a worrying number of times as of late, people will write a comment and it'll end in U0001f60e or I’ll just be reading an article and U0001f60e appears in it at seemingly random points.
I can only speculate this is some sort of Unicode decoding thing, but I can’t seem to find any ...
The day is nearing its end and I have a working SQL Server transaction log backup strategy and I can remotely install Sophos Endpoint Protection to the clients workstations
I can connect to a running MySQL instance just fine if I use the command line.
[user@local ~]$ ssh [user]@[host] -p [port]
[user@host ~]$ mysql -u [db-user] -h 192.168.x.x -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g. Your
MariaDB connection id is [i...
@HackToHell A Java HashMap (Dictionary in C#, Hash in Ruby, etc.) should suffice; you can manually sort it when you need it to be sorted. If you're reading from it from multiple threads while it's being written to, you'll need to use a thread-safe variation, or else it might not be sorted when you read from it.
A TreeMap in Java is always sorted so you don't have to manually call a sort on it after adding, but if you're adding a lot of individual items and you don't have to have it sorted in between, that's costlier than a HashMap
I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values. Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key. ...
you have to look for a concrete implementation of one of those interfaces, such as HashMap or TreeMap or ConcurrentSkipListMap.
ConcurrentSkipListMap is only recommended if you have multiple (>2) reader and writer threads, because it imposes some overhead that makes it very inefficient in a single-threaded case
if you are single-threaded then you should be able to use HashMap (which is not sorted unless you sort it), and then manually sort it before you start reading from it.
TreeMap is simpler because in the single-threaded case it's always sorted (.put() blocks until the sorting is complete), so you don't have to sort it with an additional method call, but it's pretty slow if you're calling put() many thousands of times, compared to a HashMap.
funny fact: I took a 400-level computer science class with the man who invented the Skip List, which is the data structure that's key to the ConcurrentSkipListMap
nah, don't "switch to a TreeMap"
actually, that's probably fine
I think when you do new TreeMap<K,V>(Map<K,V>) the TreeMap will internally call putAll(), which first inserts all the elements, and then sorts them, for a slightly better runtime than inserting each element and sorting individually
you just want to avoid iterative sorting because a sort with log(n) complexity then becomes n*log(n) if you're sorting each time
HashMap has an expected complexity of O(1) on put(), whereas TreeMap has a complexity of O(log(n)) for put().
For the 17th century Welsh poet, see Gwilym Puw.
William Worthington "Bill" Pugh Jr. (born 1960) is an American computer scientist who invented the skip list and the Omega test for deciding Presburger arithmetic. He was the co-author of the static code analysis tool FindBugs, and was highly influential in the development of the current memory model of the Java language together with his PhD student Jeremy Manson.
He is currently a professor emeritus of computer science at the University of Maryland, College Park, and also sits on the technical advisory board for Fortify Software.
== External... ==
anandtech.com/show/9177/the-gigabyte-p35x-v3-review I'll probably get the next generation after this one with Skylake and Maxwell+1 (hopefully DDR4). @Bob Could it be that the Skylake generation could be the convergence I've been wanting for years? NO desktop; just a laptop I can carry with me anywhere?
(referring to the one that is likely to come after that one linked above): I'll throw 32 GB of DDR4 in it, and have them ship it with the cheapest possible storage options, then replace the base storage with 4 x 1 TB Samsung 850 Pros, which should be down in price by then
should have faster memory and CPU than my desktop, and maybe about the same perf from a single mobile GPU as my two HD7970s combined, and way faster storage system
for capacity, I'll just have to suck it up and delete some of those huge video captures, or connect up a 4 TB USB-C external drive for bulk storage of video
but seriously, I'm pretty sure the 980M can run Star Citizen well, and whatever comes after it will be able to run it really well
if you want it throw an exception, write something like this:
class AnalDuplicateKeysMap<K,V> extends TreeMap<K,V> {
public V put(K key, V val) {
if(this.containsKey(key)) { throw new IllegalArgumentException("Key " + key.toString() + " already exists in the map!"); }
else { super.put(key, val); }
}
}
if you need the ability to have a Map-like data structure where the keys are not unique, you can use something like TreeMap<Integer, List<String>> and maintain a new LinkedList<String>() for each unique key being added
try ssh -L 3306:192.168.x.x:3306 blah blah on your local system, then after you're logged in, try both workbench and the mysql client, to localhost:3306
(the workbench config in that case will have to be direct connection)
don't ssh to the DB IP; ssh to the SSH host like normal
-L 3306:192.168.x.x:3306 means that on your local system, localhost:3306 will be routed through SSH, to the SSH server, which will then in turn contact the server remote to it, 192.168.x.x and forward packets back and forth on 3306
the difference between -L and -R is that, in the case of -L, the port being bound is on your SSH client's computer, and the the forward destination is relative to the SSH server
with -R, the port being bound is on your SSH server's computer, and the forward destination is relative to your SSH client
@ThatBrazilianGuy no, because the DB will see the packets originating from the SSH server
it's routed at layer 3, so the routing goes (assuming TCP): if "A" is the computer you're typing on, "B" is the server you SSH to, and "C" is the server running mysql: A -> B; B -> A; B -> C; C -> B; B -> A; A -> B
the back and forth is the TCP "acknowledgement" system -- overcomplicates it a bit in the diagram but that's how it works
if you simplify the ACKs then the path is simpler: A->B, then B->C, then C->B, then B->A
the mysql server C will see the source IP of all the incoming packets as the IP of your SSH server; it will have no idea that the person who originally composed the first packet was the computer you're typing on
indeed, no data within the packet would reveal that fact
I deal with SSH tunnels pretty much constantly; they are a key prerequisite of sanity when you work in an environment that requires an HTTP (80 or 443 only) filtering proxy which blocks tons of useful sites that are needed to get work done, and pops up an intercepting webpage when you download files over HTTP
basically when I need to work around IT preventing me from getting my work done, I use SSH tunnels (and other... techniques) to solve everyday problems, like, oh I dunno, installing a Ruby gem
@allquixotic But on CLI, I get an error: ERROR 1045 (28000): Access denied for user '[DB-USER]'@'localhost' (using password: YES). WTF is going on here?
@allquixotic But why doest it work when I fill the workbench details using "localhost"? Isn't workbench just a GUI on top of a "mysql client of sorts"?
@ThatBrazilianGuy yes, but if you look under users, you'll probably see that you're logged in as 'newbie'@'%', or as 'newbie'@'ssh-server', because Workbench is using the MySQL client libs, and not specifying an IP address as part of your username; it's letting the MySQL server infer that from the source IP of the packets.
basically, if you tell the MySQL server "my name is 'newbie'@'localhost'", it will look for an account named 'newbie'@'localhost' -- and fail authentication if it doesn't exist or has a different password
if you tell the MySQL server "my name is 'newbie' and I'll be sneaky and let you figure out the host", it will look at the source IP of the IPv4/IPv6 packet and go from there
the source IP of the packet will be the SSH server of course, because that's where the packets originate from (regardless of whether it's the CLI or workbench)
You know what? F!@# it, it's 2pm of a Friday, my boss told all the team to leave at 12:30, and it's been a week-long holiday holidays on tuesday and thurstay so offices are empty all week.
I really want to troubleshoot that, but I guess I'll have to go home play videogames instead
@HackToHell [sleep](http://en.wiktionary.org/wiki?curid=7442) (uncountable) The state of reduced consciousness during which a human or animal rests in a daily rhythm. I really need some sleep. We need to conduct an overnight sleep test to diagnose your sleep problem.
Thanks for reaching out! We are terribly sorry about the inconvenience we've caused you. The CM12 update is currently on hold for system upgrade purpose.
You may ignore the prompt for the mean time as we update the system with our best.
I usually don't have any extra-sensitive data on disk, because of reasons like that, and now I've managed to extract almost everything
Only reason I can think of is that since I upgraded my GPU, the PSU was struggling (it didn't seem to be 500W as it said on the label), and I could hear HDD spinning down now and then. But I don't remember doing any extra-heavy or long work since then and I don't think I've even turned on the PC in the past 7 days