i’m working with CLion, and I’m writing a program using the glfw3 lib.(http://www.glfw.org/docs/latest/) I installed and did everything correctly for the lib i have the .a and .h files in: I’m trying to use the library now, but i’m getting the linker error: undefined reference to ̵…
Tag: linux
grep multipe wildcards in string
Say I have a file that contains: I want to grep and match lines that only contain ‘package’, ‘el6’, and ‘x86_64’ How would I go about doing that on a one liner using grep? The line must match all three and grep shouldn’t care about how many characters are in between. …
Make eclipse console buttons permanent?
I just migrated from a Windows machine to a Linux machine and I use Eclipse. In eclipse, on the windows machine, I used to have multiple buttons in the top right of the console view for starting, stopping, etc. In the Linux version of Eclipse I only have these buttons when I hover over maximize in the console…
awk combine sequence with substring key
I have two files for combining with tab delimited file. That two files key might be different only for “Reads” number. I want to compare that two files and combined based on substring key and match. Forexample, This case I want to combine that two column with File1 Key name. Please check below exa…
List all groups on machine via bash script
This code gives me an output of 1000 if I’m a regular user or 0 if I’m root, while executing the same command (cut -d: -f1 /etc/group) returns a list of all the available groups on the machine. I also tried with grep “” /etc/group but that produces the same results. What am I not getti…
fail2ban regex stopped working [Debian 8 – Jessie]
So after my last apt-get update && apt-get upgrade && apt-get dist-upgrade my Fail2Ban got upgraded to 0.9.5 without any problems and I double checked the configurations but it seems as if it’s not working anymore. Here are some logs from failed logins in my /var/log/auth.log Normally su…
Composer & Linux production server – autoload not working
I have already tried searching for this question and seen a couple of answers, but no luck… I have composer installed with Slim Framework v3. I am using autoload for my files using PSR-4 in the composer.json file like this: And this is my folder structure: I am running it on a localhost Mac OS X El-Capi…
Powershell for Linux: Workaround for missing “out-gridview”?
In Aug 2016, Microsoft’s Powershell went open-source. However, there is no “out-gridview” option yet. The autocompletion feature shows these Out* options Note that there is no Out-Gridview at this time. Did I overlook a feature, commandlet that can do something similar? Sometimes I’d i…
Exposing python jupyter on LAN
I’ve installed jupyter on local network LAN but im unable to access http://<IP>:8888 from another macine on LAN. I’ve opened ports 8888 and port range 49152 to 65535 with iptables (this range is specified at http://jupyter-notebook.readthedocs.io/en/latest/public_server.html) This guide http…
Saving a Video in OpenCV (Linux, Python)
There is an example that works on Windows (original): In Linux program provides: AttributeError: ‘module’ object has no attribute ‘VideoWriter_fourcc’ Help make it work in Linux. Answer I didn’t try but this should work :