Recent Posts

Recent Posts

Pages: 1 2 [3] 4
21
Had this error when compiling freebasic code. ld: cannot find -lncurses

Code: [Select]
sudo apt-get install libncurses5-dev
This solved the problem.
22
Hendri's Programing Notes / 'tree' command installation on a Linux
« Last post by admin on March 22, 2017, 11:58:25 am »
By default the tree command is not installed. Type the following command to install the same on a RHEL / CentOS / Fedora Linux using
Code: [Select]
yum install treeIf you are using Debian / Mint / Ubuntu Linux, type the following apt-get command to install the tree command:
Code: [Select]
sudo apt-get install tree
Here is a list of all options supported by the tree program:
Quote
  -a            All files are listed.
  -d            List directories only.
  -l            Follow symbolic links like directories.
  -f            Print the full path prefix for each file.
  -i            Don't print indentation lines.
  -q            Print non-printable characters as '?'.
  -N            Print non-printable characters as is.
  -p            Print the protections for each file.
  -u            Displays file owner or UID number.
  -g            Displays file group owner or GID number.
  -s            Print the size in bytes of each file.
  -h            Print the size in a more human readable way.
  -D            Print the date of last modification.
  -F            Appends '/', '=', '*', or '|' as per ls -F.
  -v            Sort files alphanumerically by version.
  -r            Sort files in reverse alphanumeric order.
  -t            Sort files by last modification time.
  -x            Stay on current filesystem only.
  -L level      Descend only level directories deep.
  -A            Print ANSI lines graphic indentation lines.
  -S            Print with ASCII graphics indentation lines.
  -n            Turn colorization off always (-C overrides).
  -C            Turn colorization on always.
  -P pattern    List only those files that match the pattern given.
  -I pattern    Do not list files that match the given pattern.
  -H baseHREF   Prints out HTML format with baseHREF as top directory.
  -T string     Replace the default HTML title and H1 header with string.
  -R            Rerun tree when max dir level reached.
  -o file       Output to file instead of stdout.
  --inodes      Print inode number of each file.
  --device      Print device ID number to which each file belongs.
  --noreport    Turn off file/directory count at end of tree listing.
  --nolinks     Turn off hyperlinks in HTML output.
  --dirsfirst   List directories before files.
  --charset X   Use charset X for HTML and indentation line output.
  --filelimit # Do not descend dirs with more than # files in them.
23
Hendri's Programing Notes / SDCC - Small Device C Compiler
« Last post by admin on March 21, 2017, 09:41:20 pm »
Install SDCC on Mint/ Ubuntu
Code: [Select]
sudo apt-get install sdcc
24
Hendri's Programing Notes / Quickly Install in Linux Mint / Ubuntu
« Last post by admin on March 18, 2017, 10:50:47 am »
Installation

Code: [Select]
sudo apt-get install quickly quickly-ubuntu-template
Code: [Select]
sudo apt-get install build-essential ( I had to install this, i had some 'package' errors')

How to Get Started
0. Read the tutorial (optional):

$ quickly tutorial ubuntu-application
1. Create an Ubuntu project:

$ quickly create ubuntu-application foo
$ cd foo
When you run this first command (quickly create ubuntu-application foo), a window will pop up telling you you can run quickly design to start editing the default windows and dialogs. If you do this before changing directory to foo (cd foo) you'll get the following error:

No template were found on the command line for command glade.

Candidates template are: ubuntu-application

Aborting.

2. You can also try:

$ quickly edit

$ quickly design

$ quickly run
Use bash completion to get the available commands

3. How to play with package and release:

optional, but recommended to build first your package locally

$ quickly package
BE WARNED: the two following commands will connect to Launchpad. You need to have a Launchpad account and a PPA already created.

For quickly release, you also need a project on Launchpad to which you can bind your work, as well as keys set up:

$ quickly release
or

$ quickly share
25
Hendri's Programing Notes / Adobe PDF reader on Linux Mint 19.3
« Last post by admin on December 01, 2016, 05:59:17 pm »
Adobe PDF reader  on Linux Mint 19.3

Code: [Select]
sudo apt-get install libxml2:i386 gdebi-core
Code: [Select]
wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
Code: [Select]
sudo apt-get install ./AdbeRdr9.5.5-1_i386linux_enu.deb

Code: [Select]
acroread
26
Hendri's Programing Notes / Thunderbird to open winmail.dat file
« Last post by admin on June 10, 2016, 10:17:46 am »
Attachments not present but winmail.dat file is there instead on Thunderbird
Tags:
Windows
E-mail
Often times when a sender sends attachments using Microsoft Outlook, the attachments do not show up on Thunderbird but instead show up as a winmail.dat file that is unreadable.
There is an add-on/extension to resolve this issue for Thunderbird, it's called LookOut.
To install the LookOut extension:

1. Open Thunderbird
2. Go to the Tools Menu and select "Add-ons" (If there is no menu bar, you could press Alt on your keyboard to make it appear)
3. When the Add-ons Manager tab opens, go to the upper right corner search bar and type "lookout"
4. Click "Install" then Click "Accept and Install..."
5. Click "Restart now" or close and reopen Thunderbird


After the installation is complete and Thunderbird is restarted LookOut should automatically display attachments properly.
27
Arduino Tech Talk / ATTINY with Adruino IDE
« Last post by admin on March 23, 2016, 05:38:25 pm »
The link to copy into "preferences" In the Arduino IDE

Code: [Select]
http://drazzy.com/package_drazzy.com_index.json
Connect the Arduino to the ATtiny as follows:

    Arduino +5V      --->  ATtiny Pin 8
    Arduino Ground --->  ATtiny Pin 4
    Arduino Pin 10   --->  ATtiny Pin 1
    Arduino Pin 11    --->  ATtiny Pin 5
    Arduino Pin 12    --->  ATtiny Pin 6
    Arduino Pin 13    --->  ATtiny Pin 7
28
Arduino Tech Talk / Hendri's Notes
« Last post by admin on March 21, 2016, 08:31:14 pm »
Code to read ATmega328p-pu with AVRDUDE in linux using the uno as arduino ISP as programmer.
Code: [Select]
avrdude -p m328p -P /dev/ttyACM0 -c STK500v1 -U flash:r:hendri.hex:r -b 19200
And this is to write the file back to a chip.
Code: [Select]
avrdude -p m328p -P /dev/ttyACM0 -c STK500v1 -U flash:w:hendri.hex:r -b 19200
29
Arduino Tech Talk / LCD Keypad Shield for Arduino
« Last post by admin on March 16, 2016, 02:32:59 pm »






This is a very popular LCD Keypad shield for Arduino. It includes a 2x16 LCD display and 6 momentary push buttons. Pins 4, 5, 6, 7, 8, 9 and 10 are used to interface with the LCD. Just one Analog Pin 0 is used to read the five pushbuttons. The LCD shield supports contrast adjustment and back-lit on/off functions. It also exposes five analog pins with DFRobot color code for easy analog sensor plugging and display. Power on is indicated by the on board LED.

This design is great since it easily lets you keep connecting sensors to the rest of the pins, use it for monitoring or menu selection with the push buttons even for gaming. Often project applications require testing or debugging. Displaying information right away is extremely helpful in cases when a computer is not at reach. If you are planning to build something not attached to a computer and you need to check what is going on when you place it on position, this addition will prove very valuable to make sure the program is running well.

Code: [Select]
/*
  LiquidCrystal Library - Hello World
 
 Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
 library works with all LCD displays that are compatible with the
 Hitachi HD44780 driver. There are many of them out there, and you
 can usually tell them by the 16-pin interface.
 
 This sketch prints "Hello World!" to the LCD
 and shows the time.
 
  The circuit:
 * LCD RS pin to digital pin 8
 * LCD Enable pin to digital pin 9
 * LCD D4 pin to digital pin 4
 * LCD D5 pin to digital pin 5
 * LCD D6 pin to digital pin 6
 * LCD D7 pin to digital pin 7
 * LCD R/W pin to ground
 * 10K resistor:
 * ends to +5V and ground
 * wiper to LCD VO pin (pin 3)
 
 Library originally added 18 Apr 2008
 by David A. Mellis
 library modified 5 Jul 2009
 by Limor Fried (http://www.ladyada.net)
 example added 9 Jul 2009
 by Tom Igoe
 modified 22 Nov 2010
 by Tom Igoe
 
 This example code is in the public domain.

 http://www.arduino.cc/en/Tutorial/LiquidCrystal
 */

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("WWW.LANTIS.CO.ZA");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print("SEC:");
  lcd.print(millis()/1000);
 
  lcd.print(" A0:");
  lcd.print(analogRead(A0));
  lcd.print("   ");
}
30
Turntables & Audio / LENCO L-90 USB Turntable
« Last post by admin on October 08, 2015, 04:14:43 pm »

LENCO L-90 USB Turntable


Classic technology and design to enjoy best sound
With this high quality semi automatic turntable you can bring your old vinyl collection back to life. The L-90 turntable is not only featured with a beautiful wooden design, it is also equipped with an USB to PC connection for converting vinyl records and it has a diamond needle for an optimal sound experience.


The best sound technology for a great quality
The combination of the diamond needle, adjustable counterweight, auto-stop and anti-skating, ensure the best sound and avoid rapid wear of your records. The heavy and robust aluminum platter ensures that the L-90 stands very stable which ensures a top music quality..


Classic design
The beautiful wooden casing with walnut-wood finishing makes the L-90 a classis turntable. The classy design seamlessly fits with the design of the original high-quality turntables.


Convert your vinyl records quick and easily
With the USB to PC connection you can convert all you vinyl record to digital format quick and easily. From now on you can also listen to your favorite digitalized records from your PC, Smartphone, tablet or any other media player.

    Wooden case in walnut veneering
    Aluminum platter with a diameter of 332 mm
    USB Port for PC connection to convert vinyl to digital format
    Integrated stereo pre-amplifier
    2 rated speed settings 33 RPM and 45 RPM
    Moving Magnetic Cartridge (MMC)
    Removable aluminum headshell
    Adjustable counterweight
    Belt drive
    Semi-automatic
    Anti-skating
    Auto stop
    Removable plastic dust cover
    Compatible with: Windows XP, Windows Vista Home and higher, Windows 7 Home and higher, OS X 10.4 and higher


Connections

    Mini USB 2.0 port
    Line output


Including

    Needle
    Software CD


Barcodes

    Ean code: 8711902028758
Pages: 1 2 [3] 4