Techminded

Getting swftools on Linux (Ubuntu)

Get the source code and dependencies

Swftools package that provides pdf2swf tool currently available only for Ubuntu Hardy that is long time all not about us. So to get it we will build it from source. First of all navigate to the dir you are going to store sources, suggest somewhere they will not be deleted, e.g. /usr/local/src. cd to it

Read More »

Build kernel from 3rd-party sources on Debian 5

There are several way to build your kernel on Debian Linux and building it from kernel-sources is most recomended way, but it's possible that you need to build it from original tarball or some non-offical patchset. This artical describes the way to do this without turning your system into Slackware.

Install necessary packages:

$sudo apt-get install debhelper mc kernel-package libncurses5-dev tar bzip2

Download

Read More »

Howto reset MySQL root password

Yes, this is the probably what we all done before, and tons of blog tips are cached by Google, but I want to have my own note for this).

Well find your MySQL configuration file that is named my.cnf. You may use locate index search in your Linux box if you previously installed it as follows

$locate my.cnf

or use whereis command (Hey,

Read More »

Dealing with Android emulator slow starting

The Android emulator is starting slow. So if you are developing with Titanium framework you probably had the following messages:

[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again

The solution is simple: just do not close the emulator between coding & building, your app will be restarted when it necessary within

Read More »

Android friendly translation strings in Titanium

Titanium has lots of pitfalls, hope they will disappear in nearest future.

I just spent some hours on finding out why my Titanium app won't build for android. The reason is that you can not use non-alphabetical letters symbols in translation string names  and event spaces. This mean that you should have L('hello_world') instead of L('Hello World') in your multilingual crossplatform

Read More »

Crossplatform layouts on Titanium Framework

Titanium Framework allows you to develop cross-platform applications using one code base. In particular Titanium Mobile allows to develop apps for iOS, Android and Blackberry devices. Mobile applications on Titanium are coded with JavaScript and built to almost native binaries for each platform.

The problem is that they all have different screen resolutions and ui customs. Happily starting from version 1.5

Read More »

Transparent cache in Nginx

Intro

Let's assume you have website that is regulary occures under Slashdot effect. We should perpare it for highload.

Starting from 0.8.46 nginx has some options to enable transparent cache. Transparent for every visitor, in other words this cache if effective until user is not logged in. This options will help servier be live when user visits are rapidly grown. To acquire

Read More »

Apacheless web-server on Debian Squeeze with nginx and php-fpm

Threre are tons of information on now to setup "parts" that making fully functional web server plaftorm, but usually without giving summary view. We're going to explain all steps on you how to get your LAMP web server up. Things you should have:

  1. Virtual or real personal (dedicated) server hosting. You'd better have 5Gb of disk space and 256 RAM. Not

Read More »

Using SNORT as service IPS

Introduction

There are lots of resources related to SNORT, but in most cases it proposed to be used as tool to watch on network activity. This article describes how to use SNORT as Intrusion Prevention System (IPS) to watch and controll not all network traffic but the only can be described with iptables (Linux firewall) rules. I will not teach you

Read More »

LDAP & Samba management with LAM on Debian Squeeze

1. Console Tools

There are a number of console tools for LDAP and Samba control:

  • smbldap-groupadd
  • smbldap-groupmod
  • smbldap-passwd
  • smbldap-useradd
  • smbldap-userinfo
  • smbldap-usermod
  • smbldap-groupdel
  • smbldap-groupshow
  • smbldap-populate
  • smbldap-userdel
  • smbldap-userlist
  • smbldap-usershow

Your are free to use them in interactive way or write some scripts. Some operations e.g. import of users can be done much more faster with their help than in any GUI tool. Names tell enough about their functioinality.

2. Ldap-account-manager

This tool is quite good for LDAP+Samba combination

Read More »

Easy Linux backups with Backupninja

There are actually three ways to make scheduled backups on Linux:

  1. Spend the rest of your life learning how to setup Bacula
  2. Spend the rest of your life writing shell scripts
  3. Spend 15 minutes to install and setup backupninja and go enjoing life (or trolling on imageboards;)

I've tried with 1-2 but found that this ways are not for me and suggesting the same

Read More »

Ajax File Upload in PlayFramework

Accoring to Google uploading files with Ajax may seems tricky, but it's not. Let's take Valums file upload script that can be downloaded here:

http://valums.com/ajax-upload/

And place it into public/ under the name valums-file-uploader. I'm not spliting files it contains to javascripts, stylesheets etc. to keep distributioin untouched and upgradable. Now we need to chage demo example only a bit:

<div id="file-uploader-demo1">

Read More »

Install Samba PDC + LDAP on Debian Squeeze

1. Prepare the system

Lets assume that domain will be called - ldap, server name - openldap.ldap and samba domain will be LDAP. This settings will be automatically taken while install procces, but we should set host parameters before. In file /etc/hostname as follows:

openldap

and in file /etc/hosts:

10.0.0.42 openldap.ldap

Read More »

Transparent blocks in PlayFramework

Comparing to other comprehensive Web frameworks PlayFramework's tags are not really good to make tranparent site blocks because they force developer to put storage data via renderArgs using controller hook method (annotated with @Before) that is unflexible or include Java code into template that is just worst idea to develop webinterface. Fortunatly framework has a way to implement tags as

Read More »