How to get chrome version using command prompt in windows

As of today user4851’s is still working. I took a look at his linked bug report and the proposed work around did not work for me anymore. Anways a new hkey is present in my directory which allows you to query the chrome version without being aware of the actual installation location: reg query “HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon” … Read more

How to Print “Pretty” String Output in Python

Standard Python string formatting may suffice. # assume that your data rows are tuples template = “{0:8}|{1:10}|{2:15}|{3:7}|{4:10}” # column widths: 8, 10, 15, 7, 10 print template.format(“CLASSID”, “DEPT”, “COURSE NUMBER”, “AREA”, “TITLE”) # header for rec in your_data_source: print template.format(*rec) Or # assume that your data rows are dicts template = “{CLASSID:8}|{DEPT:10}|{C_NUM:15}|{AREA:7}|{TITLE:10}” # same, but … Read more

Tmux – Tmux true color is not working properly

Perhaps you overlooked this in setting up (one can see that you overlooked Tc): commit 427b8204268af5548d09b830e101c59daa095df9 Author: nicm <nicm> Date: Fri Jan 29 11:13:56 2016 +0000 Support for RGB colour, using the extended cell mechanism to avoid wasting unnecessary space. The ‘Tc’ flag must be set in the external TERM entry (using terminal-overrides or a … Read more

How to Change the Default Editor for Git [duplicate]

Just answered my own question with the help of the above comments… to switch to TextWrangler as the default for Git, you must open TextWrangler, click on TextWrangler in the tool bar and select “install command line tools” from the drop down. Then go into command line and type: git config –global core.editor “edit -w” … Read more

How do you edit existing text (and move the cursor around) in the terminal?

Finally found that “demo”: https://github.com/asyncly/cdir/blob/223fe0039fade4fad2bb08c2f7affac3bdcf2f89/cdir.js#L24 http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html http://ascii-table.com/ansi-escape-sequences-vt-100.php Position the Cursor: \u001b[<L>;<C>H or \u001b[<L>;<C>f (puts the cursor at line L and column C) Move the cursor up N lines: \u001b[<N>A Move the cursor down N lines: \u001b[<N>B Move the cursor forward N columns: \u001b[<N>C Move the cursor backward N columns: \u001b[<N>D Clear the screen, move to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)