Software

231 posts in Software

SugarCRM: get rid of the ads

· software, www

When logging in, you get a huge ad saying “Go Pro” or something similar, and some news feed about SugarCRM in SugarCRM: Community Edition. Fun fun, but I don’t quite need that.

Anyway, “fix”:

cd crm-path/modules/Home/Dashlets
mv iFrameDashlet/ /root/sCRM-dashlet/
mv SugarNewsDashlet/ /root/sCRM-dashlet/

Remove these two modules, refresh site, and you’d be fine.

SugarCRM updates might put these modules back in place though.

I moved them to /root/sCRM-dashlet in case you want a backup, else rm -rf. ;)

Mac OS X lock screen

· apple, software

I’m now working at a company with somewhat sensitive data and I’m still using my Macbook Pro.

However, as there is no handy way to lock a screen (like Windows+L on Wintendo machines)… And when I’m at home, I don’t want to fill in my password each time the screensaver jumps on. So I created this AppleScript after some Googling.

Sure, you can use Keychain Access, but that adds yet another icon to my menu bar.

Mounting a RAMFS disk at boot in Mac OS X

· apple, hardware, software

I received a question about creating a RAMFS for Mac OS X’ /tmp folder, so I’ll post my reply here as well.

It’s really simple;

  1. Open Terminal (Applications -> Utilities), type "sudo su" and enter your user's password.
  2. Create a new file in /Library/LaunchDaemons, like this: "nano -w /Library/LaunchDaemons/com.yeri.ramfs.plist" (you can rename yeri to whatever you like)
  3. And insert following content (ctrl+x to save - y - [enter]):
  4. <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
    "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
        <dict>
            <key>Label</key>
            <string>com.yeri.ramfs</string>
            <key>ProgramArguments</key>
            <array>
                <string>/var/root/ramfs.sh</string>
            </array>
            <key>RunAtLoad</key>
            <true/>
        </dict>
    </plist>
  5. create a second file in /var/root/, like this: "nano -w /var/root/ramfs.sh"
  6. And insert following content:
  7. #!/bin/bash
    ramfs_size_mb=64
    mount_point=/private/tmp
    

    ramfs_size_sectors=$((${ramfs_size_mb}10241024/512)) ramdisk_dev=hdid -nomount ram://${ramfs_size_sectors} newfs_hfs -v ‘Volatile HD’ ${ramdisk_dev} mkdir -p ${mount_point} mount -o noatime -t hfs ${ramdisk_dev} ${mount_point} chown root:wheel ${mount_point} chmod 1777 ${mount_point}

  8. chmod +x ramfs.sh and reboot. Check in Terminal with “mount” or “df -h” is everything is fine. To hide the disk icon on your desktop, check my old blog post.
  9. In case Mac didn’t do so already, you might want to link /tmp to /private/tmp: “rm -r /tmp && ln -s /private/tmp /tmp”.
  10. Should be it !

iRail news

· linux, software, irail, www

  • Been playing around with nginx vs Apache for iRail. The bottle neck still is the NMBS site (and I'm truly sorry for DoSing you, dearest NMBS. I had to benchmark), but nginx seems to win just slightly over Apache. Maybe it's worth moving irail.be to my nginx webserver. <3 nginx.
  • The iRail (national) mobile website is getting its final touches and should go live tomorrow night.
  • The iRail API seems stable. Special thanks to Pieter.
  • iRail is currently developing a native Qt (Symbian, Maemo and MeeGo) application.
  • There will most likely be a Bada (Samsung) native application as well.
  • Same for the iPhone, native app should be here soonish.
  • If you'd like to help, one way or another, two addresses, Project iRail and mailing list. :)
  • iRail team will attend Apps Marathon on Monday.
  • iRail @ OpenBelgium

SugarCRM: issue saving locales

· errors, software, www

SugarCRM (community edition; version 6.0.2) has been giving me a bunch of issues like being unable to change the locale settings (“Locales” under “Administration”) as well as “Display module icon as favicon” (“System Settings”).

Changing the US format (yyyy/mm/dd) to EU (dd/mm/yyyy) and every other setting on that page wasn’t actually saved/remembered upon hitting save.

Editing it manually in config.php wasn’t an option either, as it got overwritten every single time. I could of course change permission, and make it unwritable by the webserver, but that would make the rest of the admin panel useless (everything else isn’t configurable anymore).

iRail.git

· apple, linux, software, irail, www

iRail source is on Github.

To access the iRail source code;

Be aware you need to be added as contributor before being able to commit changes.

  1. get Git
  2. [browse to some folder] mkdir git
  3. cd git
  4. git clone git@github.com:Tuinslak/iRail.git
  5. cd iRail
  6. git fetch

To edit & commit changes:

  1. git add [file]
  2. git commit -m 'edited [file], added this and that'
  3. git push

To update repo

  1. git fetch
  2. git merge origin/master

To check log

US government legalizes iPhone ‘jailbreaking,’ unlocking

· misc, software

And I quote from AppleInsider;

The U.S. government on Monday announced new rules that make it officially legal for iPhone owners to "jailbreak" their device and run unauthorized third-party applications. In addition, it is now acceptable to unlock any cell phone for use on multiple carriers.

According to The Associated Press, the government approved a handful of new exemptions to a federal law that prevents the circumvention of technical measure that prevent users from accessing and modifying copyrighted works. The report noted that every three years, the Library of Congress' Copyright Office authorizes exemptions to ensure existing law does not prevent non-infringing use of copyrighted material.