Yearly Archives: 2017


Select range of lines in Notepad++ using line numbers 13

In response to a question in this post we proposed the following method to select a range of lines in Notepad++ using the line numbers:

  1. Press Ctrl + G, type the start line and hit Enter to go to the start line.
  2. Then go to the menu, click on Edit and then Begin/End select.
  3. Press again Ctrl + G, and type the end line number and hit Enter to go to it.
  4. Back to the menu, click on Edit and then Begin/End select once more.
    By now you will have your range of lines selected.

GNU/Linux: start System Settings from terminal to view error/warning messages

Recently, we tried to understand why creating a hotspot would not work in Fedora 25 with Gnome 3.

Starting the control panel from the GUI (the launcher, or the power cog) did not provide us with the debug messages needed to understand what was going on.
So we needed the command to use that would start the control panel from a a terminal window

For Ubuntu 14.04 and newer, which by default are deployed with Unity, we used:

unity-control-center;

For Ubuntu 13.10 and older versions, which were deployed with Gnome 2, we used:

gnome-control-center;

For Fedora 25 with Gnome 3, we used again:

gnome-control-center;

 


Google Hash Code Final Round live stream and Extended Final Round

Hi everyone!

The Final Round of Hash Code will take place today, Saturday, 1st April and you can watch the tech talks and closing ceremony here. We hope you’ll be able to tune in and watch!

Agenda (Note: The following times are in Cyprus timezone, they are approximate and subject to change.)

  • 19:00 EET – Live stream opens with photo countdown
  • 19:30 EET – Tech talk: Making the Internet more secure with Certificate Transparency
  • 19:45 EET – Tech talk: Managing Content on YouTube…with Neural Networks!
  • 20:00 EET – Tech talk: Techniques and Domains
  • 20:15 EET – Googler Panel
  • 20:45 EET – Awards ceremony

Extended Final Round

The Final Round problem statement and scoreboard will be released in the coming days, so look for the email which will let you know when it’s live. Anyone who registered to compete in Hash Code and formed a team for the Online Qualification Round will be able to download the problem statement and submit solutions to see where they would have stacked up!

Thanks!


Just some notes for setting up a new OS to develop projects on GNU/Linux Fedora

If the project is in C++ and uses mysql then install

sudo dnf install mysql++-devel;

If the project is in C/C++ and you are missing talloc.h install

sudo dnf install libtalloc-devel;

Set your name and email for all git projects

git config --global --edit
Then fill-in the configuration file similar to below
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
#       name = Michael, George
#       email = [email protected]
[user]
        name = Michael, George
        email = [email protected]
[gui]
        editor = gedit

or use these individual commands to set the configuration

[george@fedora ~]$ git config --global user.name "Michael, George"
[george@fedora ~]$ git config --global user.email "[email protected]"

Increase amount of inotify watchers

If you are using CLion or IntelliJ IDEA by jetbrains increase the amount of inotify watchers.
CLion, IntelliJ (and other tools of jetbrains) use inotify on GNU/Linux to monitor directories for changes. It’s common to encounter the system limit on the number of files they monitor.

inotify requires a watch handle to be set for each directory in the project. Unfortunately, the default limit of watch handles will not be enough for sized projects, and reaching the limit will force the jetbrains platform to fall back to recursive scans of directory trees.

Create a file (as root) called /etc/sysctl.d/idea.conf and add the following content to it to increase the number of watchers to 512K

fs.inotify.max_user_watches = 524288

Then call sysctl to reload the settings and apply the new configuration

[george@fedora ~]$ sudo sysctl -p --system;
  •  -p[FILE] or --load[=FILE]: Load in sysctl settings from the file  specified  or /etc/sysctl.conf if none  given.
    Specifying - as filename means reading data from standard input. Using this option will mean arguments to sysctl are files, which are read in the order they are specified.
    The file argument may be specified as regular expression.
  •  --system: Load settings from all system configuration files.
     /run/sysctl.d/*.conf
     /etc/sysctl.d/*.conf
     /usr/local/lib/sysctl.d/*.conf
     /usr/lib/sysctl.d/*.conf
     /lib/sysctl.d/*.conf
     /etc/sysctl.conf