CategoryEnglish

Four websites in a two weeks

A lot of work last weeks.

Check those

The interesting think is that two of them are on Rails (www.mebelicomfort.com, shop.djibutzo.com) , one of them is on WordPress and the last one is on some custom PHP framework.

And meanwhile we are doing a lot of refactoring on our company website psspy.se, which finally is starting to look good.

 

psspy

After so much work I think that I will be tired but I am ready now for 6 websites for 1 week.

 

Getting fast with rspec

get the gem from here

http://github.com/timcharper/spork

 

How to fix the Missing error

http://chrisblunt.com/blog/2009/08/28/rails-configuring-rspec-for-spork/

 

Hardening linux

Check those links if you want to be ontop of the securuty

  • CIS Benchmarks – contains requirements from the Center for Internet Security (CIS) benchmarks.
  • DCID – contains requirements from the Director of Central Intelligence Directives (DCID).
  • DISA UNIX STIG – contains modules that address DISA UNIX Security Technical Implementation Guides (STIGs) security recommendations.
  • FERC CIP – contains modules that address the Critical Infrastructure Protection (CIP) standards for electricity distributors.
  • JAFAN – the Joint Air Force-Army-Navy (JAFAN) manual established the security policy and procedures for storing, processing, and communicating classified Department of Defence (DoD) Special Access Program (SAP) information in information systems.
  • NISPOM – contains modules that address the National Industrial Security Program Operating Manual (NISPOM).
  • PCI DSS – Payment Card Industry Security Standards Council includes members from Visa, MasterCard, American Express, Discover, and JCB International Credit Card Company. This council administers the Data Security Standard (DSS).
  • Web Services Protection – contains modules that address standard security functionality to provide protection.

IBM tutorial

Bulgarian Аdministration

I don’t have time read newspapers during my work day. But the Bulgarian administration has.

Check what is doing this woman in municipal court of Sofia. She doesn’t care that I have take picture of here

Нагла, мързелива работничкаBulgarian swingeing lazy worker

Emulate3buttons

Faithful to the rule that I must blog everything that took me more than 15min searching in google I am here again.

This time the post is related to my notebook which mousepad doesnt support double tap (poor lenovo :) )

Emulate3buttons – this is the magic key. Wonder how to use it? Just click left+right at the same time.

Also be aware: in the new distros this setting is not changed from xorg.conf  check this article

http://www.seebs.net/log/articles/459/disabling-emulate3buttons-on-ubuntuleft+left+right clicks right clicks

The rest is a copy/paste from the post above

The problem is that you can’t just override this in xorg.conf anymore. You need to use xinput. xinput’s powerful, clever, flexible… and totally over the heads of a lot of users. Here’s a script to run from .xinitrc or the equivalent which disables Emulate3Buttons on any input devices which have it. (It’s now called “Middle Button Emulation”, mind.)

#!/bin/sh
xinput list | sed -ne 's/^[^ ][^V].*id=\([0-9]*\).*/\1/p' | while read id
do
        case `xinput list-props $id` in
        *"Middle Button Emulation"*)
                xinput set-int-prop $id "Middle Button Emulation" 8 0
                ;;
        esac
done

How this works: We first obtain a list of ID numbers, disregarding those where the second character on the line was V, because xinput list-props doesn’t work on the "Virtual[...] lines for the generic keyboard and mouse. For each such device, we check to see whether it has the feature; if so, we disable it. (The number 8 indicates that we’re setting an 8-bit value; it doesn’t really matter. The disabled state is 0.)

Fonts for coders

guda@guda-laptop:~$ sudo mkdir /usr/share/fonts/myfonts
guda@guda-laptop:~$ cd myfonts/
guda@guda-laptop:~/myfonts$ sudo cp *.ttf /usr/share/fonts/myfonts/
guda@guda-laptop:~/myfonts$ sudo fc-cache -f
guda@guda-laptop:~/myfonts$

Font sources:

 

Make X11 fonts available to Java

Perform one of the following:

  1. Open /etc/profile and add a new environment variableJAVA_FONTS=/usr/share/fonts/truetype
    export JAVA_FONTS
  2. Open font.properties file under jre/lib directory, uncommnent and set to the appropriate font directoryappendedfontpath=/usr/share/fonts/truetype

Mod Rewrite, mod_rewrite

Found great summary of mod rewrite here

http://stackoverflow.com/questions/286004/hidden-features-of-modrewrite

 

I aways forget the params for mod_rewrite so here is the summary

  • [R] force a redirect (default 301)
  • [R=302] force a 302 redirect
  • [L] stop rewriting process (see note below in common pitfalls)
  • [NC] case insensitive matches

CSS round corner box – the easy way :)

http://www.neuroticweb.com/recursos/css-rounded-box/

Create object in different languages

Java, C++, Ruby, Python, etc…

Read more..

Continue reading

Wall of shame

Check this brilliant HTML I found in one of our projects

company_products

All of them are certainly not the same “Export Products”

© 2024 Gudasoft

Theme by Anders NorénUp ↑