Apple tells us what icon sizes our apps need (found here in Human Interface Guide.
It is a pain to create all icons with correct sizes manually, so here’s a script that uses imagemagick to create necessary icons. Continue reading “Generating icons for iOS app”
Unsurprisingly, use mount-command to mount ISO file:
mount -o loop filename.iso /tmp/isofiledir
and that’s it.
When there’s need to have local yum repository, it can be created easily.
To create one, we need createrepo-package. And createrepo needs to prereq packages: deltarpm and python-deltarpm. Continue reading “Create local yum repository”
My problem was that hostname command gave FQDN and hostname -f short name. And output of hostname -d was nothing.
Solution was to add short name to HOSTNAME field in /etc/sysconfig/network file and then add ip and hostname to /etc/hosts using format:
IP FQDN SHORTNAME
To get repotrack, install yum-utils.
yum install yum-utils
repotrack -p DIR PKG
where DIR is the directory to download rpms and PKG is the actual package you want. Wild card is allowed.
As an example, following command downlads all ncurses-packages and all dependencies to /repo/rpm directory
repotrack -p /repo/rpm ncurses*
To temporarily change the host name, use command:
To permanently change the hostname, open file /etc/sysconfig/network. Use, for example, vi-editor:
Find and change following line to your host name (and domain)
save file and restart network service
service network restart
This works in CentOS and Red Hat version 6.x. You may also need to change /etc/hosts file.
List files in the current directory with full path:
ls -1 | sed "s;^;$(pwd)/;"
And the same recursively:
ls -1R | sed "s;^;$(pwd)/;"
And the same as shell script:
Welcome to Random Develop(er/ment)!
This site is work in progress and the main purpose, or the core idea, probably changes over time.
But for now, the core idea is to document solutions to problems (related to working with computers) I encounter in real life.
Most, if not all, solutions are found in many places in the Internet and I’m far too lazy to point to original source(s) in my posts.
And for the record: I, The Random Developer, am (IRL) Sami Salkosuo.