Awesome!!

Hey guys (and girls),

For a long while I’ve been happily using Fluxbox, and actually I must say, that I started to get a little bored. The reason I moved to Fluxbox is to stay away from limiting-WM, like Unity or GNOME3. but after a while using Fluxbox, I felt I want something even more hardcore, that will give me even more control on my computer.

After a talk with my roommate (which just recently installed Linux, and quite quickly became a Linux master :D), We decided both to switch to Awesome WM, which from the current point of view, seems like a great decision!

Awesome is acutally named after Barney Stinson!

Awesome is acutally named after Barney Stinson!

Few words about Awesome and what makes it so awesome:
Awesome is a very lightweight, dynamic WM, in which you are able to modify just about anything. You have one (very long) configuration file named rc.lua, and yes, all the configuration is in Lua. actually the configuration is way more than just configuration, it’s the whole WM: widgets, toolbars, the way windows work, act and move, shortcuts, mouse actions, menus and more and more and more – everything is lua scripts, extremely configurable.

As I mentioned above, the configuration is huge lua file, containing just about anything in the wm, which makes it hard to read, and easy to mess. for that reason one of the first things I did after installing Awesome, is to split the configuration to several files, and by that making it very easy to understand and modify.
Of course that if I can think of something, probably it’s already in the internet, so after some googling I found phyber’s splitted rc.lua, which gave me a great something to start with  :)

Some more stuff I wrote for my configuration:
Language switcher (which made me write a patch for xkb-switcher)
– extremely generic startup autorun
– hacked Calendar35 a little bit to work with my local configuration

might wanna have a peek in my Github repository.

Anyways – any awesome users out there? I’m looking for tips, ideas, and mostly people for showing off from time to time (my gf isn’t impressed too much from my geeky shit :P)

Dor :)

Download all dependencies of a package on Ubuntu/Debian

UPDATE: Thanks To Julian, Now I know you can simply use

aptitude download ‘?reverse-depends(PKGNAME)’

 Awesome.


Hey there!

Several days ago a colleague asked me if there’s a way to download the dependencies of a package in a Debian based distribution, for an offline use.
Sound like an easy task, and after a while of thinking, i got remembered in a tool that used to ship with Ubuntu back in the days, called “Synaptic”, that used to have that tool.

However, there are some cons to that tool. first of all it’s a GUI one (GUI? Eeeeww!”), and second, it downloads only the packages missing to your current installation, so if you’re offline installation dismatch your own one, you’ve got a problem.

So I decided to take it as a challenge, and ended up with a little script I hope will help ya’ll. And you may find it in my github of course…

https://github.com/Ddorda/dl-deb-deps/blob/master/dl-deb-deps.sh

I think it’s pretty much straight-forward code, but if you have any questions you’re more than welcome to ask.

Dor.

Back to Flux

Hey there all,

It’s been a while since i wrote last time. sorry for that, i’ve been really busy recently… Hope to find some more time to write in the future.

I decided to write again for a really good reason: After a really long time that i’ve been using a standard plain Ubuntu installation on my laptop, I decided to change back to Fluxbox! Hurray!

I hear many people saying how Ubuntu is getting lame lately, and how Unity is the worst WM ever. I extremely disagree. Ubuntu is going very straight forward toward their great goal: bringing Linux everywhere, and you can’t say they’re not trying their best. every time a new Ubuntu version is released the whole network is buzzing, once again Canonical broke the rules when playing with something that should never be touched in the UNIX world (Pidgin? GDM? GNOME? Xorg? remember all those?). Canonical has a vision, and they do w/e they can to get there. I don’t always agree with what they do, but they touch any taboo they can, and that’s awesome.

A word about Unity: it coud be better. for ex. i can’t see why they removed the 2d version, since compiz is a resources killer. I hate that they removed all the configurations gnome had, every time I enter Unity i feel in some kind of virtual prison, can’t touch anything can’t change anything, what’s linux in that?? :(
However, i fell in love with the HUD (Menus search), and probably will find a way to use it outside unity sometime soon.

So as i said, even though Unity has it’s own awesome features, for a long time I felt I no longer control my machine, and wanted to switch back to Fluxbox, but couldn’t find time.. Until now :)

Fluxbox Desktop

Of course using anything different from Unity on Ubuntu isn’t always an easy task, and I had my own challanges on the way. I promise to publish some notes on hacks i’ve done to make my Linux work faster and look better.

Dor.

Highlight PHPS code on Nginx

Hey there all,

since I mostly develop in PHP language, I wanted a way to share my code for a while, just to show it to a friend or so, without pasting the code into pastebin.

For such situations PHP created the extension PHPS, which stands for “PHP Source”. on Apache for ex. all you have to do is to add to httpd.conf file the line “AddType application/x-httpd-php-source .phps”, and phps extensioned files will be highlighted.

On Nginx however, there’s no such thing, some will say for good. After a little search i found that many Nginx users already created their own code to highight their PHPS files. but if we make the highlight ourselves, why not to take it into a completely new level? I’ve decided to add more features, such as line numbering. I looked over the www if anyone already wrote such thing. the best solution i saw can be found here. I’ve decided to use it and to add more features, like anchoring the lines, so i’ll be able to point the viewer to a specific line.

I also created a demo, so you can try it without running it yourself.

At last, I uploaded my work, including the Nginx configurations into GitHub, and it can be viewed over here. If you have any ideas to improve the code or you found a bug, I’ll be more than glad to have your feedback!

Dor.