DirectorySoftwareBlog Details for "Shadow Logs"

Shadow Logs

Shadow Logs
Howtos, guides, reviews, and news related to Linux, Open Source, and computing in general. Plus some misc stuff.
Articles: 1, 2, 3

Articles

Unifi 10
2010-09-20 10:13:00
Kuala Lumpur, MYWashington, USTokyo, JPPerth, AU - Izhar Firdaus -
Integrating hurry.resource into BFG
2010-06-19 03:05:00
Back in PyCon APAC last week I was introduced to hurry.resource by its author, which is also one of the founder behind Grok, Martijn Faassen.So, what does it do?.Read HereLets go to the fun part Setting UpAssuming you are using one of the default BFG templatesFirst, enable ZCA. (or just do this in run.py):... config = Configurator(root_factory=get_root, settings=settings) config.hook_zca() config.begin()...Do this little modification on the get_root function in model.py:from repoze.bfg.interfaces import IRequestdef get_root(request): request.registry.registerUtility(request, provided=IRequest) return rootAdd some component codes, name the file resource.pyfrom hurry.resource.interfaces import ICurrentNeededInclusionsfrom hurry.resource.interfaces import ILibraryUrlfrom zope.interface import implements,implementerfrom zope.component import getUtility,adapterfrom hurry.resource import NeededInclusionsfrom repoze.bfg.interfaces import IRequestfrom hurry.resource.core impor...
More About: Resource
"They'll realize that they're different."
2010-06-03 15:53:00
Quote from JDrama CHANGE. Episode 5Keita Asakura I'm sorry for being arrogant. I used to be a grade school teacher. Last year, I was in charge of the fifth graders. Anyway, they fight quite often. But some of them become spiteful and then sometimes it leads to bullying. When those problems arise, I would tell them, "Let's think." "You're in the same class, so when there's something you don't like or you're not satisfied of, then tell them properly, and listen to them properly." "Then let's think thoroughly. Then..."Gunji They'll understand each other.Keita Asakura No. They'll realize that they're different. Since we think we're all alike, we get mad when we get contradicted. When someone acts different, we think "What the heck?" That's when fights and bullying begin. But no two people are alike. Everyone thinks differently and has different situations. That's why I wanted them to understand that...
list as default value in class __init__() - watchout for surprise
2010-05-12 09:12:00
Note to self: don't use list as a default value in class methods if its going to be modified later, as it might cause some trouble.Just realized something:In [1]: class MyClass (object): ...: def __init__(self,data=[]): ...: self.data = data ...: ...: def addData(self,value): ...: self.data.append(value) ...: ...: In [2]: obj = MyClass()In [3]: obj.addData('hello')In [4]: obj.dataOut[4]: ['hello']In [5]: obj2 = MyClass()In [6]: obj2.dataOut[6]: ['hello']In [7]: obj3 = MyClass([])In [8]: obj3.dataOut[8]: []In [12]: def myfunc(val,data=[]): ....: data.append(val) ....: return data ....: In [13]: myfunc(1)Out[13]: [1]In [14]: myfunc(2)Out[14]: [1, 2]In [15]: myfunc(3)Out[15]: [1, 2, 3]At first i thought its a bug/weirdness, but after banging my head a bit to wall and a long stare at the ceiling, it made sense.During class definition, the list object already instantiated. Therefore, the default value of ...
More About: List
Using deliverance as WSGI pipeline to elegantly theme a repoze.bfg project
2010-05-08 16:28:00
I was looking around for template inheritance solution for repoze.bfg, as it seems like by default, BFG does not have context view traversal support to acquire template macros. In Plone/Grok template inheritance can be done by registering main_template as a view, and using a template that fill the slots in main_template such as this:<html xmlns:tal="http://xml.zope.org/namespaces /tal" xmlns:metal="http://xml.zope.org/namespac es/metal" metal:use-macro="context/main_template/ma cros/master"><head></head>& lt;body> <div metal:fill-slot="main"> Some content </div></body></html>How ever, by default, repoze.bfg does not support getting view macro from a context. So a PageTemplate object need to by passed by a view in order to use the macro from the template. Eg:from repoze.bfg.chameleon_zpt import get_templatedef my_view(context,request): main_template = get_template('templates/main_template.pt' ) return dict(main_template=ma...
More About: Project , Theme
Replacing Plone Event Location field with a Google Map
2009-11-02 17:20:00
Want Plone Event contenttype to have use a Google Map?Use this : https://dev.inigo-tech.com/svn/base/inigo .eventlocationmap/trunk/A Five product for replacing Location field in ATEvent to a Google Map field Installing:You will first need to deploy Products.Maps into your site first. checkout the product into your buildout src directory::cd $buildoutroot/src/svn co https://dev.inigo-tech.com/svn/base/inigo .eventlocationmap/trunk/ inigo.eventlocationmapIn buildout.cfg:: [buildout] .... eggs = inigo.eventlocationmap develop = src/inigo.eventlocationmap .... [instance] .... zcml = inigo.eventlocationmapThe catch? WARNING: this will break your existing event content, you need to migrate their location field to use longitude/latitude tupleHow to migrate? I'm still figuring it out myself.Credits to Jarn AS for the excellent Products.Maps - Izhar Firdaus -
FOSS.My 2009 Early Bird Registration Ends TODAY!!!
2009-10-15 04:45:00
Heads up to everyoneFOSS.My 2009 Early Bird Registration prices are ending TODAY!!If you havent registered, register now or you will lose the chance to register on these packagesBare Bones PriceRM 20.00Hobbyist PriceRM 60.00So what are you waiting for? REGISTER NOW - Izhar Firdaus -
More About: Today
Genius G-Pen 4500 and Fedora
2009-09-25 08:11:00
Just bought a Genius G-Pen 4500 digitizer tablet for myself. Mainly for drawing simple sketches and diagrams. Got it for MYR160 (~=USD50), which is relatively cheap compared to other tablets (Wacom and Genius) I found at LowYat plaza which averages at MYR400-800 (~=USD115-230). The driver for the tablet is not available in the Fedora and RPMFusion repos, so I had to grab the sources from LinuxGenius GoogleCode page and compile it. (I've put together a RPM here : http://izhar.fedorapeople.org/wizardpen/) .After installation of the driver, a HAL FDI configuration is required for it to work. Here's the default one I'm using for this tablet. (Save it as /etc/hal/fdi/policy/99-wizardpen.fdi)< ?xml version="1.0" encoding="ISO-8859-1" ?><deviceinfo version="0.2"><device><!-- This MUST match with the name of your tablet --><match key="info.product" contains="UC-LOGIC Tablet WP5540U"><merge key="input.x11_driver" type="string">wizardpen</merge>& lt;m...
"CSL G2" Android Phone ??? - New Toy in Town?
2009-09-15 17:00:00
UPDATE: I have checked out this phone at a shop just recently, apparently, its only a UI imitation (which is not even close to the real thing, didnt see any tango icons). Guess I'll have to wait for LG or some company to release a low cost model, or until HTC reduce their pricing. (and note to anybody from CSL who might read this, Google Android is not just the UI .. its the WHOLE OS , and its Free/OpenSource, just grab it from http://source.android.com/)CSL, a Malaysian phone brand looks like just had a new toy in town.GEOGLE?? is that a typo or is that an immitation brand?MYR 699 ~= USD 200. Update: An anonymous commenter pointed to a page in CSL's own website regarding the phone. Price stated there is apparently cheaper, MYR499 ~= USD145While the name is a straight copying of HTC Magic's original name, the product looks interesting. No info could be found at their website, probably they didn't realize where the people who looks for Android phones hang around at. Check it out...
More About: Phone , Town
Grokking Grok - II
2009-09-14 10:21:00
Grok, like Plone uses the Zope way of storing data - Persistence, somewhat like 'pickling' in Python. All instance of objects are treated not as tables like in frameworks such as TurboGears, but as normal runtime class instance objects. There are no need to think of SQL, neither designing a database. Just dump the objects into the ZODB. Base Model StereotypeThe are 3 main model stereotype in Grok, grok.Model , grok.Container , grok.Applicationgrok.ModelThis is the stereotype for a persistence class. Classes that inherits this stereotype are addable and can store persistent data. grok.ContainerThis stereotype give a class a folder-like ability to store children. Inherit from this class if you want to create objects which can store another object.grok.ApplicationThis is the stereotype of a persistence class which can be added at the root of the Zope3 site. LayoutSiteroot may contain Applications, Applications may contain both Containers and Models, Containers may contain both Conta...
Dag Wieers view on Mark's pledge for synchronized release
2008-05-18 07:29:00
Read it here: http://dag.wieers.com/blog/ubuntus-need-t o-catch-a-waveSo Mark's article is wishful thinking and hoping to ride the wave that Red Hat (and Novell) are funding. If he can use that same kernel, with the same backports, fixes and regressions tests, Ubuntu LTS does not need to do anything to support the same vendor hardware. Easy, but at the expense of both Novell and Red Hat.That explains why Mark wants 2 out of 3 Enterprise Linux distributions to enter his circle. I could imagine Novell and Mandrake joining forces to align the release cycle to try and take on Red Hat's 80% Enterprise Linux market share (sales, not necessarily install-base). There is hardly any benefit in Mark's proposal for Red Hat. - Izhar Firdaus -
More About: View , Release , Pledge
Graphical memory usage map using gmemusage
2008-05-17 20:25:00
I am a heavy multitasker. I run a lots of apps at once.. sometimes to the point where this dual screen 22" + 14" setup still feels like I need more screen. However, screen space is not the primary problem, but RAM/Swap utilization instead. Its not unusual for me to have 95%+ RAM 90%+ swap (on a 1.2GB RAM with 1.2GB swap machine) utilization with all the apps I ran and freeing the RAM is kindof a tricky task.I usually use ps and top to detect apps that consume a lot of RAM and stop them. However, the values shown on the commands are hard to be quickly identified due to the scheme of Virtual, Shared, Resident, Swap does not show the values on how I would expect it to be.So I went googling and I found out about a very ancient tool ported from SGI IRIX called gmemusage. It shows a graphical representation of the memory consumption by apps running on the system in a quite useful display.Now I can efficiently find apps that uses lots of memory and free up my RAM without resorting to a reb...
More About: Memory , Usage , Graphical
Fedora LiveUSB creation on Windows platform
2008-05-17 13:19:00
A great article about Luke Macken's LiveUSB-Creator on Lifehacker: http://lifehacker.com/391067/fedora-9-put s-your-desktop-on-a-usb-drive.Want source? : https://fedorahosted.org/liveusb-creator/ The implementation in theory might be possible to create a Wubi-like installer for Fedora . Perhaps it will be possible some time in the future with this.Digg it!: http://digg.com/linux_unix/Linux_On_A_Sti ck_Fedora_9_Puts_Your_Desktop_on_a_USB_Dr ive - Izhar Firdaus -
More About: Windows , Creation , Platform
When Ubuntu tries to be Fedora
2008-05-17 10:17:00
They struggled trying to keep the betas in control. Inclusion of too new , latest technologies caused breakage and other problems to Ubuntu 8.04 Hardy Heron.Harald Hoyer wrote a good comment out of the responses to Mark Shuttleworth's post about synchronizing distro releases. Ubuntu should stay as they are. Its a good distro for me to recommend for those users who just want a JustWorks machine with no interest to contribute to FOSS world. Fedora development is admittedly way too fast for those type of users to bother. If Ubuntu tries to follow Fedora rapidness, that won't solve anything (except, maybe, open a way for grabbing the Fedora contributor/userbase to the Ubuntu side). Ubuntu has been a good player in trying to solve their bug #1. So, keep it that way. The Fedora path is too hostile for Ubuntu current target market. - Izhar Firdaus -
Stickers ~
2008-05-17 04:50:00
Thanks Nicu Buculei for the great Fedora Sticker KitTo MyOSS'ers, I just printed the stickers for giveaway. 23 in total.I'll bring them along on the next MyOSS Meetup (whenever that will be). - Izhar Firdaus -
More About: Stickers
Me! Me!!!
2008-04-10 03:22:00
A Meme happening at Planet Fedora. I'm hopping in too~!.[izhar@hikari ~]$ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head179 vi112 python96 cd82 ls37 rpmbuild27 su27 locate23 ssh23 rpmlint22 diffI use vim and python more than cd and ls ?? Thats unexpected. - Izhar Firdaus -
12 YUM Tips and Tricks
2008-04-01 05:30:00
YUM Update Manager is the default package manager used in Fedora and Fedora derivatives. It is written in Python and have tonnes of features which average Joe might not know about. These additional features helps a lot on maintaining your system, improving your experience using the package manager and become more productive. Granted, yum depsolving and querying is quite slow compared with APT, but the flexibility and power yum grant to its users, its worth it.To my comrade, Surface, here, as you requested.Tips 1: Fastest MirrorThis is usually the very first yum plugin I install in a new Fedora deployment. What does it do?, well, the name tell it all. The plugin will time all the servers in the replied mirrorlist from mirrors.fedoraproject.org, and pick the one which is the fastest for you. Everything is done automagically, and considering its a YumCore class of plugin, it works with whatever GUI you use for yum.To install this plugin, useyum install yum-fastestmirrorUnlike APT which...
More About: Tricks , Tips and Tricks
UTP Network Representation
2008-03-31 13:11:00
MPPUTP posted a post at their news blog about the DirectConnect file transfer is the one that affecting the Internet connection of UTP. And they showed this diagram Dear MPP, obviously you are taking this image blindly without checking at how the UTP network functions. Its either you are being tricked about the design, or the real UTP network design is really that severely flawed.Here, let me show you the map of the UTP network, from the the IP number point of view. I draw this map based on my experience analyzing the network structure of UTP to get around certain things to link up the UTPchat servers. How villages are separated, how stuff are being laid out. However, note that this map is mainly based on IP data and base routing only. I couldn't map VLANs and others lower level networking architecture because of the limitation of the access I have.Let begin with the overall layout, [Image 1]Opps ... like a web? .. oh yes it is... however, weblike doesnt mean bad. More redundant li...
More About: Network
Genius: A gift?, or a curse?
2008-03-31 10:54:00
The news spreading around the net about Sufiah, a child prodigy 10 years ago who was accepted to Oxford at the age of 12, is now living in a pitiful life as a hooker.This is not the first time cases like this happens to Malaysian-born genius, previously, (I forgot his name), the boy who managed to fluently read when was 3 years old, is now, a drug addict. There are also some other similar happenings to people around me which I happened to see throughout my school life transfering from state to state with my family. What possibly have been the cause of this?. Why does these born-geniuses suddenly end up in a pathetic situation?. My opinion, its because of the people surrounding these geniuses and also the media. These gifted childs, are often the pride of their family and the people around them. Some family, or people around, being very proud of these childs, wanted to show the world about the child. And there came the media, news, gossips, and in a short time, these childs became we...
More About: Curse , Gift , Genius
PIDA: An IDE which loves you!
2008-03-30 15:21:00
I discovered PIDA while reading around Fedora mailing lists (forgot which thread), and decided to try it out. yum'ed it from the Fedora repository, and launched it.My first impression - Coool!.. its gvim + version control + shell/terminal + customizable IDE, all in one!. I usually do development with very basic tools - gvim and a bunch of shells/terminals. I don't like most IDE because of the over-complexity of them. I do use geany or gedit once in a while when I want to have a bit of non-vim'ish behaviour of text editor. But PIDA, its a whole different level. It looks very promising to be my next best-friend.Not so long after, that I started using it for continuing my current project with Inigo, and quickly, it took over my daily use of gnome-terminal, and my frequent need to change directories and restart Zope. The basic version control feature it have is wonderful. Unlike Eclipse or other IDEs where it is quite hard to get flexibility on how the project is laid out because of ...
Catching up
2008-03-23 14:49:00
Catching up on stuff that happened this week:MAMPU Migrates Malaysian Government Agencies to OpenOffice/ODFMAMPU Migrates to OpenOffice.orgHooray to kaeru and OSCC!. This is a great success indeed.UTP-OSS meetup March 2008Our little special interest group in my University just held a meetup last friday. We haven't done any meetups for quite a while now and to my surprise, it looks like the number of really interested people have grown a lot. The turnout was approximately 20 people, and I can be sure at least 90% of them used linux in some point of their life and have some clue about OSS world. Compared to our previous big meetup which was mostly attended by uninformed people.Yondie presented his presentation from the last Ubuntu meetup and I share my experience working with an Inigo and how OSS economics works. IMO, this meetup was a great success and I hope those who are in UTP-OSS can continue this momentum and help building UTP-OSS reputation among UTP academician as a great kno...
Changing the default Display Manager
2008-02-29 03:48:00
I little discovery I found out a few days ago through /etc/X11/prefdm, but forgot to blog it. The default display manager in Fedora GNOME is GDM. But sometimes, you might want to switch to a different display manager such as KDM or XDM. One way of doing it is through removing the other DMs and only leave one DM intact. But thats ugly!. Theres an easy way to do it, which is through /etc/sysconfig/desktop. Create it if its not yet exist and add this line.DISPLAYMANAGER=KDEValid values are:DISPLAYMANAGER=GNOMEDISPLAYMANAGER=KD EDISPLAYMANAGER=WDMDISPLAYMANAGER=XDM - Izhar Firdaus -
More About: Manager , Display , Changing
Fedora in NASA?!
2008-02-28 06:46:00
Jack Aboutboul wrote a great post about Fedora and RHEL in NASA.Read it here: Fedora on Final FrountierGreat to know this!. - Izhar Firdaus -
More About: Nasa
Hacks: find_changed_rpms.py
2008-02-28 05:53:00
Sometimes, we might be facing certain problems which we could not find what might have caused it. One of the annoying cause is a broken file somewhere in the filesystem due to some reason. My practise, is that I regularly run rpm -Va to verify and list out broken or changed files. Then I would reinstall any rpm which I think have broken files. Now that I'm working, and being on rawhide, its rather tedious and time consuming to do this regularly. So I just wrote a python script for helping out with the extracting changed files list and querying which rpm the file belongs to.Those who interested to use it, you can grab it here: find_changed_rpms.py Usage: ./find_changed_rpms.py [OPTIONS] This script will automatically find for packages which one or more of its files does not match the information stored in the RPMdb. -h : show this menu -v : be verbose This script excludes packages which only have its config files changed and packages which its files only does not match the stored ...
More About: Hacks
Tee'ing Python subprocess.Popen output
2008-02-28 04:11:00
A little hack for python coders out there who wanted to have a functionality similar to the unix's tee command for redirecting output to multiple places.import sysfrom subprocess import Popen,PIPEp = Popen(['put','command','and','arguments', 'here'],stdout=PIPE)while True: o = p.stdout.readline() if o == '' and p.poll() != None: break # the 'o' variable stores a line from the command's stdout # do anything u wish with the 'o' variable here # this loop will break once theres a blank output # from stdout and the subprocess have ended - Izhar Firdaus -
More About: Python
Calling all Malaysian Fedora users and contributors
2008-02-26 14:27:00
Fedora presence in Malaysia is quite hidden from the general public. Fedora users in Malaysia are everywhere, but hard to find due to most of them being in their own, secluded, microcommunity. A number of small companies, government offices, organizations, have Fedora deployments in them with their own group of users, but they are hard to notice.Me and my comrades have just created and registered a channel in Freenode.net for our own Malaysian community. Come and join us at #fedora-my.We are also planning for a site for Fedora Malaysia in http://fedora.foss.org.my/ but our capacity is limited as all of us are quite busy with out current job. Yes, we are looking for more hands to help making this a reality.We are quite related to #MyOSS and Ubuntu-My usergroup. Together with FOSS-SM, we work together to spread FOSS love in Malaysia.I'll be waiting for you. ^-^ - Izhar Firdaus -
More About: Fedora , Calling , Users
Eaten by Rawhide
2008-02-25 01:40:00
Got eaten by Rawhide after today update. Lots of GTK/GNOME app crashes while starting with this error (yeah, that includes 'gnome-session'). GDM not affected.This probably reflects a bug in the program.The error was 'BadWindow (invalid Window parameter)'. (Details: serial 22 error_code 3 request_code 2 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)glad the basic KDE4 installed can run.Running 'rpm -Va' right now before assuming something wrong with any packages.Update:After reinstalling all packages that fails 'rpm -V', and downgraded some packages to the packages below, I managed to back login into GNOME. Some services like Gstreamer and gnome-settings-daemon still crashes/co...
Di Mana MyPapit?
2008-02-24 09:10:00
MyPapit is MISSING!!!!!. He supposed to come for today's Ubuntu-My meetup at UITM Shah Alam. Somehow, we lost contact with him.(Credits to yondie's post) - Izhar Firdaus -
More About: Mana
Fedora - Ubuntu's more responsible older brother
2008-02-23 17:29:00
https://www.redhat.com/archives/fedora-ma rketing-list/2008-February/msg00370.htmlG reg DeKoenigsberg wrote:Here are some truths that I hold dear. I believe that they are *fundamental* truths of the Fedora project.1. It's not always easy to be true *free software* advocates. We take the good with the bad.2. The people we care most about are people who care about advancing the best of *free software*.3. Ubuntu is already catering to users who are willing to sacrifice freedom for the sake of *marginal* usability advantage. There's really no reason for us to follow them down that path. Will it cost us users? It certainly will. But we are *extremely* competitive with Ubuntu when it comes to *contributors* -- and it's *contributors* who change the world.Let Spaceman worry about being popular. Let's concern ourselves with being right, and being productive -- even when it's difficult."Fedora -- Ubuntu's more responsible older brother."Truly is!. This is what I usually do -> Typical ...
More About: Brother
Why I wrote the open letter to rector
2008-02-21 17:13:00
My Open Letter to UTP Rector generated a lot of response from UTP, especially from the students.Some people asked me why I am doing this and why does it matters. So, here is my answer.I am quite a believer of Free Culture (read the manifesto: http://freeculture.org/manifesto/). I believe that technology must not be held back. I believe that through good utilization of technology, we can improve ourselves to a better community. I believe that information should be freely available for those who want it. I believe in an open medium for people to express their thoughts and without the fear of being attacked because of their opinion. While I am not a supporter of censorship, I neither protest it. I know certain things should be censored, but the rest, it should not be limited.Current situation in UTP, showing that the lost of the culture that I saw we once had during my early years in UTP. The lost of people who do things because of they believe its right. The lost of people who express...
More About: Wrote , Open Letter
More articles from this author:
1, 2, 3
111674 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2012 - Supported by Web Catalog - SEO by FeWorks
eXTReMe Tracker