Main page

Main page

some text in index.md

Posts

  • Setting Up Wake On Lan

    Trying to configure wake on lan. Good chunk of setting the remote pc from this post at PCMag.

  • Profiling in Python

    As we develop software, it is just a matter of time when we will encounter a programme that takes significantly longer time to complete than we would want. This is where profiling comes in.

  • python jupyter refresher

    • shift + tab for tooltip (documentation of function) (ipy)
    • tab for auto-completion (annotation)
      • Note: IPython 6.3.1 has temporarily disabled type annotations. To re-enable them, add c.Completer.use_jedi = True to an ipython_config.py file https://jupyterlab.readthedocs.io/en/latest/user/notebook.html
    • debug with ipy(>=6), should start everything with jupyter lab jupyter-lab
    • add jupyterlab-lsp and python-lsp-server[all]
    • shift + right-click for browser original context menu
    • can drag and drop cells
    • ctrl shift c for command palette
  • Python Pandas Refresher

    When you do not use pandas often, searching for documentation is a time consuming step.

  • Configure Mac keyboard for use on Windows

    Unsurprisingly, Mac UK keyboard has different layout than standard (Windows) UK keyboard layout for some symbols. Unsurprisingly because Mac keyboard in OSX is not friendly for shortcuts users: copy uses cmd + c, I am totally fine with renaming and reordering, only if it is for better usability, BUTTTT seriously, I could not find any finger combinations that can press cmd which is just below the x key comfortably and press other keys simultaneously.

  • Custom Windows Icon

    While sorting through my documents during the holidays, I have found this instructions to create an .ico file which can be used to customise icon in Windows.

  • GitHub Release and CLI

    For some reasons, I had to deal with uploading large assets (>600MB) on moderate internet (~10 Mbps) to Github, which was totally a disaster using the website. Just an accidental mouse press or for some unknown reasons, the upload fails and has to start over and over again.

  • test redirection

  • Ignore .GitIgnore

    It is possible to nullify existing ignore entries in .gitignore with negation with !. However, in order for this to work, the existing ignore entries should ignore items only with somedir/* and not the directory somedir.

  • Configuring SSH (keys) and Git

    This post is about configuring SSH so that you can e.g. login into remote computer with terminal only, use git without password (a bit of controversy here, because the ssh-keys are password in another form IMO). Actually, for remote terminal, it is possible to login with username as password unless it is restricted. However, I prefer fancier way of life using SSH keys.

  • Measure USB Device Speed

    How to know which USB flash drive is the fastest?

  • Darkify Inkscape

    Fortunately since v1, Inkscape has finally rolled out support for theming! Although for Linux, I was actually able to change the GUI theme through global GTK theme setting.

  • TexStudio in Dark Mode

    This time I will talk about customizing (darkify) $\LaTeX$ writing environment. Obviously there are two parts to these: editor and PDF viewer.

  • new windows pc setup

    How I set up a Windows (10) PC when I first get it. Note: all preformatted text are mostly package names for chocolatey.

  • Dark Fox

    **EDIT** ShadowFox

  • testing chocolatey

    Chocolatey is one of the package manager under Windows operating system. I have known it long time ago but have not been using it because I will most probably customise the install (e.g. no context menu, no desktop shortcut, deselect some options and so on), which is the same reason why I do not use something like Ninite after I reset my pc. Instead, I was leaning towards the path of portable versions, which has the advantage of preserving settings (though some may become invalid).

  • alternativeTo windows search - PowerToys Run

    Not sure if I am the conventional windows user here, but for me, I use windows search as more of an “application launcher”: to find the application by name and start it. As a sane human, I have limited windows indexing to only start menu items (at %SystemDrive%\ProgramData\Microsoft\Windows\Start Menu) and Outlook items. However, it does not function quite well especially after (un)installations, which is rather annoying. Rebuilding the index “might” help, but most cases it does not.

  • Vivaldi, you cannot be serious?!

    For the past few years, I have heard from quite a number of sources about Vivaldi, a Chromium-based browser which has tons of features and customisations, suitable for power users. I have been using firefox all these while in the vainest attempt to reduce my google footprint, and also to certain extend to support essentially the only alternative to chromium-based browser.

  • Changing Keymap on Windows

    I have heard about e.g. changing Caps Lock to Ctrl (as obviously, Caps Lock is not used as often as initially thought). Found a nice article on HowToGeek about it. Though when you are done with it, a restart is required.

  • Accidental Step into Build Systems

    Out of frustration with visual studio build, where it does only parallel build of projects but NOT within each project (*.vcxproj file) by default (or maybe someone set so in the cmake), I was looking for ways to speed up this.

  • Interestings Sites For Later

    Lists of sites for future exploration:

  • Safety and security gone crazy (ip_address::port in firefox)

    So why firefox directs to the default browser when I enter an ip address with port e.g. 123.45.6.789::8888 in the address bar?? Just to be clear, I was trying to access jupyter lab instance of another computer. This feature is greatly appreciated. Well, to be fair, I am not at all up-to-date with networking security stuff and sorts, but seriously?

  • Google Colab

    Google Colaboratory seems like something interesting to be explored when I have time. Basically it’s core idea is to have python notebook stored in google drive, thus can be shared more easily.

  • Macro Stringizing And Token Pasting

    So basically, macros is a way of automating typing of code (or at least for most of my use cases). Just found out about two operators which are quite useful for this, which are the

    • # stringizing operator and
    • ## token-pasting operator
  • Git Rebase

    Just discovered an interesting feature of git: rebase. So this basically lets you changes the order of commits, commit messages, merge/squash commit into previous one, drop commit and so on.

  • Git Ignoring Committed Files

    So after a file has been committed, even if it’s later added into the .gitignore, its modification will be still visible. For it to be really ignored, you need:

    $ git rm --cached tmp.log
    

subscribe via RSS