PySpark takeOrdered example
Sort by keys (ascending): Sort by keys (descending): Sort by values (ascending): Sort by values (descending): Credit: http://stackoverflow.com/questions/30787635/takeordered-descending-pyspark
Sort by keys (ascending): Sort by keys (descending): Sort by values (ascending): Sort by values (descending): Credit: http://stackoverflow.com/questions/30787635/takeordered-descending-pyspark
This post is primarily written to remind myself, an Ubuntu user, to figure out how to find what RPM package provides a file — for example a header file. Today, I’m trying to compile and install R 3.1.3 on CentOS 6 from source code. This R installation is one of the requirements to install Tessera stack. The instruction from the installation page is: Unfortunately, the process failed with ./configure with the complain about missing readline library....
Before I wrote this blog post, I had thought there was no binary package for PostgreSQL server for FreeBSD 11 running on Raspberry Pi. Hmm… how wrong I was! I just wasted the whole night compiling Postgres from source. DOH! Anyhow, here’s the step I took to do it. If you’re familiar with FreeBSD, there’s nothing new here. But, I only use FreeBSD once in awhile, and so I tend to forget a lot what I do....
I normally use Vim to edit Puppet modules and manifests codes. However, recently I just found out about Atom editor, and quite like it. Out of the box, Atom supports many programming languages by providing syntax highlight. There are hundreds of Packages available which provide more functionalities such as make Atom to behave like a Vi editor, support Puppet codes, etc. As mentioned earlier, Atom provides syntax highlighting for various programming languages; well except Puppet....
ដោយសារពុំមាន កញ្ចប់បាយនារី (binary package) នៃ git យើងត្រូវបញ្ចូល gitពីសោះខូត ដូចខាងក្រោម៖ # cd /usr/ports/devel/git # make install clean សង្ឃឹមថាថ្ងៃក្រោយឆាប់ៗ កញ្ចប់បាយនារី នឹងបានបង្កើតឡើង ព្រោះខំផាយពី សោះខូតយើតណាស់ ជាពិសេសពេលខំផាយវាលើ រ៉ាស់ប៊ែរីផាយ។
នៅកន្លែងធ្វើការ ខ្ញុំប្រើ Puppet ដើម្បីគ្រប់គ្រង ម៉ាស៊ីនជាច្រើន។ ជួនកាលខ្ញុំត្រូវការលុបម៉ាស៊ីនចេញ ពី Puppet master ដោយសារម៉ាស៊ីននោះលែងត្រូវការហើយ។ នេះជាជំហានដែលត្រូវធ្វើ៖ ១. លុបមាស៊ីន ឬ ណូតនោះពី puppet dashboard ២. លុប certificate របស់ម៉ាស៊ីននោះចេញពី puppet master ដោយវាយ ខំម៉ាន # puppet cert clean node123.example.com ៣. ដោយសារខ្ញុំប្រើ PuppetDB ខ្ញុំត្រូវលុប ណូតនោះ ចេញពី PuppetDB ដែរ # puppet node deactivate node123.example.com ខ្ញុំសរសេរ អត្ថបទនេះ ដើម្បីរំលឹកខ្លួនឯងពេលខ្ញុំត្រូវការធ្វើវាម្តងទៀត។ បើសិនជាលោកអ្នក មានសំណូមពរ ឬសំណួរទាក់ទងនឹង ការប្រើប្រាស់ Puppet អាចសួរខ្ញុំបាន៕
After restarting my laptop which run Kubuntu 15.04 beta, it got stuck at a black screen with a message: Starting version 219. I tried to reboot it a few times, and it always displayed the same message. Fortunately, I found a solution from this page which fixed the problem. Here’s a recap on how to do it. When you see the above message, hit Ctrl + Alt + F2 Run sudo systemctl enable sddm....
As of today, Code Composer Studio (ccs) 6 is only available for 32-bit Linux platform. The good news is that it can be installed on a 64-bit version of Ubuntu and Fedora. In this blog post, I’m going to show a few issues I came across and how to fix them on Ubuntu 14.10 64-bit. Issue 1: After the installation, when I ran the ccs, it produces some warning and error messages then quit....
From time to time, after applying Windows updates on my Windows 7 kvm-based virtual machine, the machine won’t boot after restarting. In the past, I was lucky to be able to fix it. Last night, I could not say the same thing. Instead of stressing out losing my hair on how to get it working again, it’s decided to just restore the whole Windows image. First, I need to get some updated data from it though....