LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Days between dates.

Posted 04-11-2015 at 08:20 AM by peonuser

Thanx to an lq user, I was able to get this to work.

Just an experiment to determine the amount of days between two dates. In this case it is the days left in the current presidency.

Code:
#!/bin/bash
D=`date +%Y-%m-%d`
D1=`date +%s -d "$D"`
D2=`date +%s -d "2017-01-20"`
((diff_sec=D2-D1))
echo - | awk -v SECS=$diff_sec '{printf "Number of days : %d",SECS/(60*60*24)}'
echo " till Obama leaves
...
Member
Posted in Uncategorized
Views 1488 Comments 0 peonuser is offline
Old

GTK Resource Compilation Utility

Posted 04-09-2015 at 02:30 PM by rainbowsally
Updated 04-22-2015 at 01:41 PM by rainbowsally (text formatting probs)

GTK Resource Compilation.

There's a utility called 'glib-compile-resources' that takes an xml file that is basically a list of resources such as glade ui files, and it outputs c code to embed the data in the application. It's messy to use, but it works.

There may be another messy gtk/glib utility to create these xml files that 'glib-compile-resources' can use, but if there is here's another one that may or may not be easier to use.

file: src/gtk.mkres.cpp...
Member
Posted in Uncategorized
Views 2285 Comments 0 rainbowsally is offline
Old

ArchEX dual 64/32 bit with LXDE and kernel 3.19.3-1-ARCH

Posted 04-09-2015 at 02:59 AM by exton (Exton's Blog)

WHAT IS ArchEX dual build 150409?
ArchEX 64bit/32bit dual is a new (150409) Linux live DVD based on Arch Linux. Arch motto is KISS (Keep It Simple Stupid). ArchEX uses kernel 3.19.3-1-ARCH (latest stable kernel) and the LXDE Desktop environment.

INSTALLED SOFTWARE
Among many other programs, Firefox 37.0.1, Gimp 2.8.14, GCC 4.9.2, Wicd and GParted – see this package LIST.

INSTALLATION to hard drive
ArchEX can easily be installed to hard drive of...
ExTiX Admin
Views 1200 Comments 0 exton is offline
Old

Cat meme IRL?

Posted 04-07-2015 at 05:25 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)

A few days ago my daughter called me at work. I could hear the panic in her voice as she said "Dad, it's not my fault!".

There are *many* things that run through a parent's mind in this situation. None of them are pleasant.

I tried to hide the panic *I* was feeling. "What happened?" I asked her. She said "Well, it's about Stewie!"

My wife's pure-white cat. Oh God. I'm thinking he got let outside (he's an indoor only...
Member
Posted in Uncategorized
Views 1547 Comments 2 rocket357 is offline
Old

Run Android 5.1 Lollipop Exton build on your Raspberry Pi 2

Posted 04-05-2015 at 04:37 PM by exton (Exton's Blog)
Updated 04-06-2015 at 04:41 PM by exton (Made everything clear)

NEWS 150405
I have compiled an Android 5.1 Lollipop system which can run on Raspberry Pi 2. I call my new system RaspAnd.

What is Raspberry Pi?
The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python. Its capable of doing everything youd expect...
ExTiX Admin
Views 4848 Comments 1 exton is offline

  



All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration