MemcacheD php client for development purpose on Laravel 5

This class simulates the real memcached php extension in windows which doesn’t exist (php_memcached.dll) – Note the “d”.
I forked and modified this repository so that it works with few basic methods of laravel 5… Please don’t use this class on production, use it only for development purposes.

Github repo: https://github.com/altinukshini/memcached-client

Configuration in Windows machine

Before you do anything else, make sure you have memcached server installed. Here’s a blog that shows how to do that (follow setp A): https://commaster.net/content/installing-memcached-windows

Assuming you have memcached server isntalled, proceed with the following.

Place memcached.php file in C:\xampp\php\pear folder

In your laravel 5 installation, edit AppServiceProvider.php and place the code below inside the boot() method.

if (!class_exists('Memcached')) {
    include ("memcached.php");
}

so it should look something like:

public function boot(Kernel $kernel)
{
    if (!class_exists('Memcached')) {
        include ("memcached.php");
    }
}

…you should be good to go!

Building Hackerspace CRM

Building Hackerspace CRM

Hackerspace CRM (Community Relationship Management) is a web application built with Laravel that helps communities around the world to run and manage their Hackerspaces/Makerspaces.
Github: https://github.com/altinukshini/hackerspacecrm

My friends and I run Prishtina Hackerspace (a hackerspace in Kosovo), and since the beginning of it we always struggled finding the best solution to manage members, payments, keys, etc. I’m not trying to reinvent the wheel, we tried many different applications but I think we need a better solutions for this. I think that many hackerspaces face the same problem when dealing with 30+ members. I know all hackerspaces have different structures, but we could maybe boil down to something common and useful for all of us.

There are many open source CRM software out there like CiviCRM and such (paid ones as well) that actually do have more functionality in them but are hard to use because of their complexity.

Hackerspace CRM tends to be more user friendly and come to use only to Hackerspaces. The idea is to have most of the application parameters configurable via the administrator panel. The application should be modular so that other hackerspaces around the world can write their own specific functionalities. Anyone can write a theme for it or even localize the CRM for use in their own language.

Features

So far, I’ve thought of couple of features, most of which I liked in Seltzer CRM, and some that I thought might be useful based on my experience with Prishtina Hackerspace and some local hackerspaces in Balkans. But, in order for this CRM to be as good as it can (and obviously better than the existing solutions), I need your help to let me know what do you struggle with, and what would you need to have in such application? How do you process this kind of stuff, what services you use and what would be the easiest way to complete your hackerspace administrative tasks via this CRM. Continue reading “Building Hackerspace CRM”

HACCSY – Hackerspace Access Control and Check in System

HACCSY – Hackerspace Access Control and Check in System

HACCSY abbreviation stands for Hackerspace Access Control and Check in System and that’s pretty much what it does.

HACCSY app is meant to run on a RaspberryPi that’s connected to internet and the front door electric strike lock. It does the job of a simple Check in System and Door Access Control System (2 in 1), it queries a REST service by handing it the scanned in RFID card reader and it will return ‘true’ if the key owner owes less than 2 months worth of their monthly payment. It will return ‘false’ otherwise. It does the same for checking in and out. The computer would then send the signal to the door lock actuator to open it if returned true or do nothing if false. It has a check IN/OUT button to indicate Check IN or Check OUT. It also has an LCD backlight display that displays messages for the user, and an RGB LED that turns RED for Access Denied, GREEN for Access Granted and WHITE to indicate offline mode. Through the REST API, you can also make it available for others to see if the hackerspace is open or not. See working example on the website header at http://www.prishtinahackerspace.org

Code available on Github

HACCSY is built with the following hardware and electronic components: Continue reading “HACCSY – Hackerspace Access Control and Check in System”

Hello world in Arduino

This is the most basic programming that you could do with an arduino uno.
It just endlessly turns the light built in the arduino on and off.

So, after having an arduino uno and a usb cable to connect it to your pc, you would want to have also the arduino software.

Prishtina Buses project

Too many candidates in the campaigns promised an improvement of public transportation in Pristina, but so much was said and so little was done in this direction, and what the municipality failed to do, some teenagers did it.

Last week Within the next meeting of  “UNICEF Innovations Lab Kosovo” me and my friend Gent Thaci got the chance to present our last project (still ongoing) called “Pristina Buses” which will enable all citizens of Kosovo to watch online all the bus lines of Prishtina, schedules of departures, prices etc.

Although the site is still under construction, it is worth mentioning that behind this lies a very good idea developed by our working group: Gent Thaci, Altin Ukshini, Lulzim Gashi, Giulia Martin, Daniela Bodnarova, Shkelqim Ahmeti, Ardian Haxha, Besfort Guri, and Ardi Hasimja (mainly FLOSSK members, experienced guys in IT), we developed something that Prishtina needed for years. Continue reading “Prishtina Buses project”

Database backup scripts

1. Database backup bash script
2. Perl email script
3. Cron job configuration to run the script

Here are some scripts that will help you make a database backup and than
another script that will send you an email, to confirm that the backup was made and probably if you want you can make the script send you the backup attached via email…
Then finally a cron configuration to run the database backup script everyday, week, month or once a year.

So here is the step by step tutorial…

First Lets make some directories..

1. Make a directory in /var/backups/ called sqlbackup

mkdir /var/backups/sqlbackup

Continue reading “Database backup scripts”

Character Converter python

This is a sample of character converter, so lets take that the keyboard is showing my name altin as .ktiv or anything you type in other characters, you just write there .ktiv it tells you that its altin…

#!/usr/bin/python

print '====================================='
print ' Character Converter'

print ' \nThis Script converts characters:\n'

print ' From these: \'1234567890-=qwertyuiop[]`.asdfghjkl;*\\zxcvbnm,\'!@#$%^&()_+NM<L:{]~'
print ' To these: `1234567890-=qwertyuiop[]\\asdfghjkl;\'zxcvbnm,./~!@#$%^&()_+?:"{}|\n'
print ' And also the upper case letters'
print '====================================='
raw_input('Press  to continue\n')

import string

characters = string.maketrans('\'1234567890-=qwertyuiop[]`.asdfghjkl;*\\zxcvbnm,\'!@#$%^&()_+NM<L:{]~QWERTYUIOPASDFGHJK|ZXCVB', '`1234567890-=qwertyuiop[]\\asdfghjkl;\'zxcvbnm,./~!@#$%^&()_+?:"{}|QWERTYUIOPSDFGHJKLXCVBNM')

text = raw_input(' Write text: ').translate(characters)

Continue reading “Character Converter python”