Recommended books for C

Top 5: From beginner to expert

  1. C Programming: A Modern Approach – K. N. King
  2. C Primer Plus (5th Edition)
  3. Algorithms in C
  4. Advanced C Programming by Example
  5. Advanced Programming in the UNIX Environment

A complete list follows.

Continue reading Recommended books for C

Advertisements

Teamviewer cannot connect in Linux

If you get the message “not ready please check your connection” but you are sure there are no network configuration problems then you can try these commands:

sudo teamviewer daemon start
sudo teamviewer daemon stop

or these commands:

sudo systemctl start teamviewerd.service
sudo systemctl stop teamviewerd.service

Crysis 2 – Weapon planning

Crysis 2 is one of my favorite games, one with high replay value and lots of action.

Episodes from Semper Fidelis to Terminus are simply awesome! The game would be an indisputable 10/10 if the finale was war oriented with humans clashing with aliens in large scale battles instead of stealth oriented of a single superhuman saving the earth (once again..).

In this page I write my plan, such that lets you swap through most of the weapons of the game while still be able to alternate quickly between stealth, snipe or combat strategies.

In the episodes where more than one combination of weapons is shown, each combination refers to a different checkpoint. The last combination of each episode is selected in a way that give you more options to the next episode.

General Strategy summary:

When fighting with humans the only thing you need as a combination is a Stealth Hammer and a Scarab in Semiautomatic mode. With Stealth hammer you can one shot all humans and remain undetected. With the Scarab you can fight decently against anything in the game apart from heavy units. If you are cornered by aliens you can switch to light shotgun mode. If you want to snipe you can switch to semiautomatic mode. Once you get used to change modes quickly the versatility of the scarab makes it one of the best weapons available.

As a result, until episode 6, Stealth Nova (or Stealth Hammer) with Scarab is imho the most flexible combination valid for all strategies.

Once aliens appear in the game I tend to stop using pistols and replace them to a stronger close range weapon (like Marshall or Jackal). I also use L-TAG a lot because it is fun so I mix my strategies among different episodes (in the first 6 and last 4 i tend to play stealth while from 7 to 12 i tend to play combat style.

Note that before episode 10 and 18 you lose all your weapons so waste their ammo beforehand and don’t make long term plans!

Continue reading Crysis 2 – Weapon planning

Top Single player FPS campaign

(under construction)

My list:

  1. Crysis 2
  2. Crysis 1
  3. Doom 3

Games to rate:

-Call of Duty 2
-Call of Duty WaW
-Call of Duty Black Ops
-Black Ops 2
-MW3
-MW2
-MW1
-Delta Force Blackhawk Down
-Medal of Honor Airborne
-Medal of Honor Pacific Assault(they really need to remake this game, seriously, it’s so well writen, looks like a movie)
-Medal of Honor 2010
-Medal of Honor Warfighter(couldn’t beat it because of the horrible sensivity)
-Brothers in Arms: Hell’s Highway

 

https://www.pcgamesn.com/best-cod-campaign

Links:

  1. at gamespot

Crysis series – Keyboard configuration

Autohotkey script

A very tiny script to cloak and armor with 1 key press in Crysis 1/warhead:

#IfWinActive ahk_exe Crysis.exe

$z::!1
$x::!4

Mods

Crysis 2:

  1. maldo HD
  2. tweakguide

Movement

 

Action Crysis 1 / Warhead Crysis 2 Crysis 3
Movement W A S D W A S D W A S D
Jump Space Space Space
Crouch C C C
Sprint Shift Shift Shift
Prone \ not available not available

Combat

Action Crysis 1 Crysis 2 Crysis 3
Shoot Mouse 1 Mouse 1 Mouse 1
Zoom Mouse 2 Mouse 2 Mouse 2
Toggle fire mode Wheel up Wheel up Wheel up
Toggle explosives 3 3 3
Select grenades 4 4 (or double tap 2) 4
Reload Mouse 3 (side 1) Mouse 3 (side 1) Mouse 3 (side 1)
Melee F F F
Toggle Weapon 2 2 2

Nanosuit

Action Crysis 1 Crysis 2 Crysis 3
Interface E E E
Armor mode Alt+1* or Z Z Z
Stealth mode Alt+3* or X X X
Visor Q Q Q
Nanovision V V V
Customize Nanosuit tab tab
Customize Weapon Mouse 5 (side 2) Mouse 5 (side 2) Mouse 5 (side 2)

Vehicles

Action Crysis 1 Crysis 2 Crysis 3
Movevement W A S D W A S D W A S D
Handbrake space space space
Primary weapon Mouse 1 Mouse 1 Mouse 1
Secondary weapon Mouse 2 Mouse 2 Mouse 2
Change seat C C C
Horn H H H
Lights L L L

Combos

Action Crysis 1 Crysis 2 Crysis 3
Silent kill x fzx x fzx
Silent throw x ezx mouse1 x ezx mouse1
Throw grenade 4 mouse1 2 4 mouse1 2

Doom3 BFG autohotkey configuration

I hate holding shift in order to run.

This is a very simple toggle script.You press capslock to toggle run.

If you quicksave, quickload, or go to back menu it resets the running (and clears capslock). This is because doom-3 itself disables running even if you are holding shift down while quicksaving/loading etc.

#IfWinActive ahk_exe Doom3BFG.exe

~capslock::
    Send {shift down}
    return 
~+capslock::
    Send {shift up}
    return 
~+F9::
    Send {shift up}
    SetCapsLockState, Off   
    return
~+F5::
    Send {shift up}
    SetCapsLockState, Off
    return
~+Escape::
    Send {shift up}
    SetCapsLockState, Off
    return

Network drives without samba

Samba is useful but many programs are not able to handle SMB protocol (eg notepadqq, geany, atom etc).

A more compatible way to use network drives is to map them with mount_cifs to a local path. Then all programs will be able to handle files from the network drives.

If you want to map a network drive for the current session then just type:

mount.cifs "//computer/share" /mnt -o user=username

If you want to have the drives mapped after each reboot then:

  1. chmod +s /sbin/mount.cifs
  2. chmod +s /sbin/umount.cifs
  3. chmod 600 /etc/fstab

Now for each share do the following:

  1. mkdir localpath
  2. vim /etc/fstab
  3. add the following line:

//computer/share /localpath cifs user=sambausername,pass=sambapassword,rw,users 0 0

And you are ready.

reference: https://www.suse.com/communities/blog/mounting-windows-share-linux-file-system/

Personal portal to the Internet