Monday, July 8, 2013

MOVING TO MY NAME BLOG AT http://asaf.github.io

Hey,

I decided to move my blog out of Blogger,
Why? not because Blogger is not good or I have anything negative to say about it,

I just feel more comfortable with CLI and I like to have more control about what's being generated and how,

So, I decided to use OctoPress, which is more, a ruby based blog system, it generates web resources (html,js, css, etc) for you by providing posts and pages written with Markdown, it uses git and it can deploy your blog files into github / heroku or via rsync,


So, I guess, this is my last post for now here, you can follow me on:





Wednesday, August 29, 2012

c programming - Type Convertions

In c, generally automatic convertions convert a "narrower" operand into a "wider" one without losing data,

Expressions that causes data lose (such as assigning long to int) are allowed but may produce a warning (depends on the compiler)

Here's an interesting situation:
The expression: -1L < 1U evaluates to true,

This is because 1U (which is an int) is converted to a signed long,

Lets take a look at the following expression:
-1L > 1UL

This expression evaluates to true as well, this is because -1L is converted to an unsigned long, which appears as a large positive number.

Monday, November 21, 2011

Fedora 15 to 16 Postgresql issues

I just upgraded F15 to F16,


If you don't have a DB yet:

Initializing the DB cannot be done via "service postgresql initdb"
This is because postgresql startup scripts were ported to systemd,

You can init the DB via postgres-setup tool:


sudo postgresql-setup initdb


If you have an existing DB:
- Seems like Postgres 9.1.1 is incompatible with the new Postgres 9.1.1 DB, so if you have an existing postgres data, the postgres server service would probably fail to start due to:

"(The data directory was initialized by PostgreSQL version 9.0, which is not compatible with this version 9.1.1.)"


You can fix this by invoking the upgrade script:

sudo yum install postgresql-upgrade

sudo postgresql-setup upgrade
Redirecting to /bin/systemctl stop postgresql.service
Upgrading database: OK

See /var/lib/pgsql/pgupgrade.log for details.


Then start the service with:


systemctl start postgresql.service

systemctl status postgresql.service

Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
Active: active (running) since ....



Asaf.

Thursday, November 10, 2011

oVirt - Open Source Infrastructure and Management Virtualization Platform

oVirt is a "Complete and Comprehensive Open Source Infrastructure and Management Virtualization Platform for the Data Center",

oVirt is the community edition for RHEVM (Red Hat Enterprise Virtualization) product and is licensed publicly with Apache2 license.


Visit us: http://ovirt.org and start participating now ! :-)

Friday, May 27, 2011

Fedora15 & Qualcomm gobi 2000 (Lenovo W510)

Hey,

I installed Fedora 15 and I couldn't use my broadband modem, with my Lenovo W510 thinkpad out of the box,

In order to make it work, I had to load the Qualcomm Gobi USB chipset firmware, which seems to be required in order to use the device as a modem,

Following are the instructions how to do that:

1) Install GCC via yum - 'sudo yum install gcc'
2) Install Gobi Loader, you can find the srpm here 'http://www.codon.org.uk/~mjg59/tmp/gobi/gobi_loader-0.7-1.src.rpm'
3) The firmware is required, for Gobi 2000 chipset:
- You need three files: [amss.mbn apps.mbn UQCN.mbn],
- You can find the firmware files on a windows OS or download the drivers from the vendor's site. (probably possible to download the windows package and extract it with wine)
(If you have a windows installed with Quallcom, then you can find the files under under Program Files (x86)/QUALCOMM/Images/Lenovo/12)
- Copy the three files into /lib/firmware/gobi
4) Unload and reload the qcserial driver, or easier, just reboot your machine, NetworkManager 0.8.x that ships with Fedora 15 should recognize your device modem and it should be ready to be used.


G'luck.

Saturday, August 23, 2008

Jboss Products, work all together like a charm.

Jboss, RedHat's Java development division was always known and famous,
Mainly by its great JBOSS Application Server,


When I have completed some of Velo(http://velo.safehaus.org) designs, I had to pick the right technology platform for the practical programming side,

I won't get into details here why I have chosen only to considerate on open source solutions as by itself is a big matter,

I have decided to make this post because I was amazed, as a developer to see how Jboss products work together,


I don't know many companies that provides all required facilities for developers that just works so well,


As a prove, you can take a look at Velo code (as it's completed open sourced),


In short, Velo make a heavy use of the following Jboss products:

- Jboss AS - as Java EE application server.
- Hibernate - as a JPA implementation.
- Seam - as a context management.
- Richfaces - For the visual web components.
- Drools - For its rule engine.
- JBPM - For workflow processes.


The most amazing part in my opinion is that my life became very simple when I had to integrate all of these products in one environment.

You can check it out at http://jboss.org for more details or just browse Velo code to see a real implementation, and believe me, it just works :-)


Asaf.

Friday, February 29, 2008

Partner(Orange) IL telecommunication & Velo

It is easily possible to say that Orange in IL is Velo's largest deployment,

Velo is managing the main systems of Partner, including the main user directory, CRM system, ERP, Billing system, Project management system, etc...

It is very impressing to see that Velo automatically listen to any HR user events and manage user access according to business rules written for Partner's organizational positions,

This is including a creating automated deleting, suspending, resuming, modifying operations against top of the systems.