All These Years – Static-X

Did you miss Wayne Static? Yup, me too.

It’s very challenging to represent someone in a music video, who is no longer alive, but that was something that we really wanted to do and I think it came out great, These are some of Wayne’s last works, so we really wanted to make this video all about him and to continue to celebrate his life and legacy. What better way to do that than through a fun, fictional story about how Wayne was inspired to become the legend that who he became through Static-X.

says drummer Ken Jay.

Install and Configure Oh My Zsh and use it in VSCode in Linux

If you use the simple Bash Terminal in your OS, you may want to give Zsh a try to use a faster and safer terminal with many more features. The simple Bash that exist in the common dist of Linuxes are not changed over years and just received some security fixes, but the community behind Zsh are improving it everyday and bring new useful plugins.

I use ‘Oh my Zsh’, Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.

OhMyZSH in Yakuake

Installing it is easy, here we go:

First we install zsh itself:


sudo apt-get install zsh
Code language: JavaScript (javascript)

And then ‘Oh my Zsh’ framework

Via Curl:

sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Code language: JavaScript (javascript)

Or via Wget:

sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Code language: JavaScript (javascript)

During installation it will ask you if you want to make it your default terminal and you may answer yes.

Install the requirments:

sudo apt-get install fonts-powerline ttf-ancient-fonts
Code language: JavaScript (javascript)

Configure Oh My Zsh

You can configure Oh My Zsh to change how it update (Automate or asking), Enable/Disable Plugins, Setting Default user etc. Here is part of changes I’ve made, I’ve enabled some plugins and uncommented/changed some settings:

sudo nano ~/.zshrc
export PATH=$HOME/bin:/usr/local/bin:$PATH DEFAULT_USER=`whoami` DISABLE_UPDATE_PROMPT="true" export UPDATE_ZSH_DAYS=1 plugins=( bower composer git bundler dotenv osx vscode rake rbenv ruby ) if [[ -n $SSH_CONNECTION ]]; then export EDITOR='nano' else export EDITOR='atom' fi
Code language: JavaScript (javascript)

Installing Theme

There are many plugins installed by default, but I’ve found this nice theme that comes with some nice features and looks pretty useful:

sudo wget -P $ZSH_CUSTOM/themes/ http://raw.github.com/zakaziko99/agnosterzak-ohmyzsh-theme/master/agnosterzak.zsh-theme
Code language: PHP (php)

And then configure the theme in your ~/.zshrc file:
ZSH_THEME=”agnosterzak”

Change the default terminal in VSCode

OhMyZSH in Visual Studio Code Terminal

Ok so by now we have installed and configured Zsh and set it as default but still VSCode use the default Bash as the integrated terminal. So we want to change it to Zsh, but there are a problem, VSCode only support monospace fotns and cannot use the power-fonts we have installed. so we have to install some compatible fonts first.

My suggestion is Meslo from nerd-fonts package. You can download it from their repository: nerd-fonts/patched-fonts/Meslo/M/Regular/complete
Just download the mono version and install it via font manager in your OS.

Or if you wish to install it via command line:

git clone git@github.com:ryanoasis/nerd-fonts.git --depth 1 cd nerd-fonts sudo ./install.sh
Code language: PHP (php)

Now we can configure VSCode to use Zsh, Add the following lines to settings.json of VSCode or find them one by one in settings and apply them:

"terminal.integrated.shell.linux": "/bin/zsh", "terminal.integrated.shell.osx": "/bin/zsh", "terminal.integrated.fontFamily": "MesloLGM Nerd Font"
Code language: JavaScript (javascript)

Set permanent custom resolution for Ubuntu and KDE Using Xrandr and Xsetup

KDE Logo

After switching from Gnome and Unity to KDE, I had a problem with SDDM and it was that it could not detect correct resolution for my UltraWide monitor and set it to Full HD instead of 2560×1080. I had a similar problem in Ubuntu with another old monitor. Anyway that solution is same in both cases.

The solution for this problem is using Xrandr and Xsetup to set the correct resolution and make it permanent.

For example, in my case for 2560×1080 resolution and 50hz refresh rate, I used the following commands:

xrandr --newmode "2560x1080_50.00" 188.75 2560 2712 2976 3392 1080 1083 1093 1114 -hsync +vsync
xrandr --addmode HDMI-2 2560x1080_50.00
xrandr -s 2560x1080 -r 50

Note: you can get the right numbers for the first line of command using this:

cvt 2560 1080 50

Ok, we have the correct commands and resolution for our system, but problem is that we should run all these commands after every reboot and also these commands won’t apply to our login screen, so we should use Xsetup file to run the commands before loading the desktop manager, so we put above commands into Xsetup file.

The path for Xsetup file in KDE 5 (Kubuntu 18.04):

/usr/share/sddm/scripts/Xsetup

And for older versions of KDE:

/etc/kde4/kdm/Xsetup
/etc/kde3/kdm/Xsetup
/etc/kde/kdm/Xsetup

Done, now reboot your system and enjoy the correct resolution.

Google Chrome in Ubuntu keeps detecting network change

Recently I had problem with my Ubuntu, Whenever I tried to open a website my Chromium told me that a Network Change has been detected and after 1-2 reload that sites would load and sometimes failed to load fully.

After looking up for that problem, I found out many other people had same problem and it has something to do with “avahi-daemon”.

Solution

According to the links I found in Ubuntu forums, this problem comes from IPv6 in Ubuntu and disabling that service will fix it, I tried it and it worked:

# create the long-life config file
echo "net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee /etc/sysctl.d/99-my-disable-ipv6.conf

# ask the system to use it
sudo service procps reload

# check the result
cat /proc/sys/net/ipv6/conf/all/disable_ipv6

oi!

Scooter Ace Album Cover

Ace is the eighteenth studio album by German band Scooter released on 5 February 2016 through Sheffield Tunes & Kontor Records, preceded by the first single “Riot” on 4 September 2015, second single “Oi” was released on 5 February 2016, and the third single “Mary Got No Lamb” which was released on 6 May 2016.

https://www.youtube.com/watch?v=7aRbQKUJPA8

Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Everywhere I go all the ladies wanna touch me
And when I’m on the road, I’m always spot by paparazzi
Did it for the fame but always did it for the joy
‘Cause everywhere I go they scream ‘oi, fucking oi’
All around the world you see my face on TV
And all around the world they want to be like H.P.
I never played the game, always been the bad boy
And everywhere I go they scream ‘oi, fucking oi’
Yeah

Don’t take life too seriously
Nobody gets out alive anyway

Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Scream!
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Louder!
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Yeah!

Everywhere I went, yeah, I brought the bass
Been spitting super-tight bars right into your face
Raise your hands, lean back and enjoy
And watch the crowd go ‘oi, fucking oi’, yeah

Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Come on, right?
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Yes!
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi
Oi, oi, oi, fucking oi

All the world’s a Stagefright

Stagefright

Here’s how security vulnerabilities are supposed to be handled. One, a researcher discovers an issue. Two, the people who make the software find a solution. And three, the solution is then made available, ideally by automatic update. That’s what Windows does, and what Apple does. It isn’t always as fast as it should be, but at least once the fix exists it’s available almost instantly.

Here’s how it works with Android.

  1. A researcher discovers a vulnerability.
  2. Google says “la la la can’t hear you” for a year or so.
  3. After lots of media coverage Google says it’ll fix the hole.
  4. Google creates a fix and promises to bring it to the Nexus range in two or three months.
  5. Google gives the fix to manufacturers who say they’ll roll it out at some point, maybe, when they get round to it.
  6. The manufacturers get round to it and submit their version to the phone networks, who say they’ll totally bring it out at some point, oh yes siree!
  7. The vulnerability that the fix will eventually fix evolves so that the fix doesn’t fix it any more.
  8. Google says “la la la can’t hear you”.

Read the whole story at: The Times of India

Taylor Swift Notches Six Months at No. 1 on Billboard Artist 100

from Taylor Swift Universe

Taylor Swift makes it an even six months at No. 1 on the Billboard Artist 100 (dated June 6), as she rules the list for a 26th week, bolstered by the coronation of her new single, “Bad Blood,” on the Billboard Hot 100.

The Artist 100 is the first weekly survey dedicated to measuring artist activity across Billboard’s most influential charts, including the Billboard Hot 100 songs chart, Top Album Sales and the Social 50. The Artist 100 blends data measuring album and track sales, radio airplay, streaming and social media fan interaction to provide a weekly multi-dimensional ranking of artist popularity.

Swift scores her record-extending 26th (nonconsecutive) week atop the Artist 100, up 64 percent in overall activity. As the Kendrick Lamar-assisted “Bad” vaults 53-1 on the Hot 100 following a full week of tracking after its video premiered to open the Billboard Music Awards (BBMAs) May 17, she logs a 208 percent surge in digital song sales, a 120 percent gain in streaming and a 78 percent lift in album sales, according to Nielsen Music.

With 26 weeks at No. 1, Swift easily has spent the most time at the Artist 100 summit since the chart launched on July 19, 2014. Sam Smith ranks second with three total weeks on top.

Lamar, meanwhile, roars 38-14 on the Artist 100, up by 67 percent in activity. He peaked at No. 1 in early April as his album To Pimp a Butterfly opened atop the Billboard 200 and Top Album Sales.

Rounding out the Artist 100’s top five, alt outfit Twenty One Pilots flies in at No. 2 as Blurryface bows as their first No. 1 album on the Billboard 200 and Top Album Sales; Maroon 5 dips 2-3; Meghan Trainor jumps 7-4, after she performed ballad “Like I’m Gonna Lose You” with John Legend, on the BBMAs; and Ed Sheeran slips 4-5.

In other notable Artist 100 action, after being crowned champion of the eighth season of NBC’s The Voice (May 19), Sawyer Fredericks vaults 40-8, with 82 percent of his points from digital song sales; Luke Bryan bounds 25-9 as his new single “Kick the Dust Up” rockets 49-2 on Hot Country Songs, fueled most heavily by its No. 1 launch on the Country Digital Songs chart (127,000 sold); and Zedd re-enters at No. 17, as his True Colors enters Top Album Sales at No. 4 with 39,000 sold. The DJ had previously ranked as high as No. 42 on the Artist 100.

ts-125448

Facebook farewells flaky SHA-1

FacebookFacebook has set the date: on September 30, the ancient and creaking SHA-1 hashing algorithm will make its tumbril trip and get the chop.

SHA-1, designed by the NSA in 1995, is a one-way algorithm: a block of data is turned into a message digest. The digest can’t be turned back into the original message, but serves as a digital signature confirming the authenticity of (for example) the software you’ve downloaded.

And it’s long been on the end-of-life list, because it’s vulnerable to collision attacks – different blocks of data can present the same SHA-1 hash, allowing malware to verify as if it were authentic.

From October 1, The Social NetworkTM says, third-party apps signed with SHA-1 will no longer be able to connect to Facebook.

As Facebook’s Adam Gross blogs, the move is in line with the Certificate Authority and Browser Forum’s intention to sunset SHA-1 by January 2016.

“We’ll be updating our servers to stop accepting SHA-1 based connections before this final date, on October 1, 2015. After that date, we’ll require apps and sites that connect to Facebook to support the more secure SHA-2 connections”, Gross wrote.

Facebook recommends that “applications, SDKs, or devices that connect to Facebook” be checked for SHA-2 support, to avoid user irritation.

The migration hasn’t been without its detractors. Earlier this year, infosec bods told The Register the shift poses challenges. If users see disruption – for example, too many “insecure site” warnings – they fear that trust in the Internet will be undermined.

Cross-posted from TheRegister

New Computer

Happy New Computer (To me!)

Finally it was time to get a new computer as the old one was not working any longer for my needs and about a month ago passed away with a broken Graphic Card.

After saving a few $$$ and considering my budget I got a good balance of power-computer and price.

Here is configuration of my new computer:

Motherboard: ASUS Z97-K

ASUS Z97-K

This motherboard offer a very good performance and support high speed RAM and also support Intel Extreme CPU series. It has on-board graphic card with HDMI, DVI and VGA output which is useless for me since I got a good graphic card too. It has several SATA 6G, 4 USB3 and Turbo LAN ports. also using the front-panel ports you get more USB and Audio ports.

Graphic Card: ASUS R7 250X

2GB GDDR5 rocking with AMD ATI R7 250x series processor, supporting crossfire. dual fan cooling system keeps it cool without any noise.

RAM: G.SKILL 4GB (x2)

Two 4GB RAM of G.SKILL (8GB Total) RAM. Dual Channel.

CPU: Intel Core i3 4150

3MB Cache, 3.5Ghz, Running 64Bit and Virtual applications smoothly.

Hard Disk: 1 TB Western Digital (WD)

I did not need much space as I use several external hard disk to save my files. a SSD hard will be added soon as they had not any available on the day I went to store.

Power: EVGA SuperNOVA NEX 750 Gold

A very heavy and stable power supply to feed all those devices, Powerful and elegant with nice set of cables.

Wireless: D-Link DWA-548

Working perfectly on WiFi A/B/G/N 300

And I’m using above configuration with my old devices:

Monitor: LG IPS226

22 Inch, HD1080 and no viewing angel problem, perfect quality and colors with VGA, DVI and HDMI connectors.

I’m having fun, hope you do too 🙂