www.rdiachenko.com is a new place where I'm going to post and keep new writings.
I'll keep the current blog as it is. There is still value in few posts. However, nothing will be published here anymore.
A software engineer's technical blog about programming languages, computer graphics, problem solving, systems configuration, books and much more.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | List<String> findTopNNames(Map<String, Integer> data, int n) { Comparator<Map.Entry<String, Integer>> cmpByValueDesc = Map.Entry.comparingByValue(Comparator.reverseOrder()); Comparator<Map.Entry<String, Integer>> cmpByKey = Map.Entry.comparingByKey(); Comparator<Map.Entry<String, Integer>> cmp = cmpByValueDesc.thenComparing(cmpByKey); return data.entrySet().stream() .sorted(cmp) .map(Map.Entry::getKey) .limit(n) .collect(Collectors.toList()); } |
$ optirun -c yuv ./idea-IC-193.5662.53/bin/idea.sh
...
[VGL] ERROR: Could not load GLX/OpenGL functions [VGL] /usr/lib64/VirtualGL/libvglfaker.so: undefined symbol: glXGetProcAddressARB
$ rpm -qi VirtualGL VirtualGL-2.5.2-4.fc31.x86_64
$ cat /etc/yum.repos.d/VirtualGL.repo [VirtualGL] name=VirtualGL official RPMs baseurl=https://sourceforge.net/projects/virtualgl/files gpgcheck=1 gpgkey=https://sourceforge.net/projects/virtualgl/files/VGL-GPG-KEY enabled=1 exclude=VirtualGL-*.*.9[0-9]-*
$ optirun -b none nvidia-settings -c :8 [ 70.861063] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) \
Failed to load module "nvidia" (module does not exist, 0) [ 70.861138] [ERROR]Aborting because fallback start is disabled.
$ uname -r 5.4.13-201.fc31.x86_64 $ lspci -vnn | grep '\''[030[02]\]' 00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core \
processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M \
[GeForce GT 650M] [10de:0fd1] (rev ff) (prog-if ff)
$ grep "XorgModulePath" /etc/bumblebee/bumblebee.conf XorgModulePath=/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules $ find /usr/lib64/xorg/modules -iname *nvidia* $
$ sudo dnf install nvidia-driver $ find /usr/lib64/xorg/modules -iname *nvidia* /usr/lib64/xorg/modules/drivers/nvidia_drv.so /usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so
pdfunite 1.pdf 2.pdf 3.pdf result.pdf
sudo dnf install poppler-utils
This was a startup. We worked 70 to 80 hours per week. We had the vision. We had the motivation. We had the will. We had the energy. We had the expertise. We had equity. We had dreams of being millionaires. We were full of shit.
Uncle Bob
Initial vertices |
Rasterized triangle |