A catalogue of 'stuff' which somehow will help me through life by helping me remember problems I've solved, how I solved them and thoughts which will be otherwise forgotten (some of which might be of use later on).
Wednesday, 20 June 2012
Making buttons and content only for registered users in Joomla
It's simple really, but I did need to do a search on it. I wanted a button which registered users could press which made a new Article in the News category.
What I did in the end was to make a new module, changed "access" from "public" to "registered". This module would then only show if the user was logged in.
I made a new menu, and put it in this module. I then created a button in the menu of type "Create Article" and made the default Category "News".
But looking at it now, it appears you can change Access to Registered for any menu item. So I could have just added menu items. But it still looks good.
Thursday, 14 June 2012
VLC media player displaying filenames
Whilst setting up some exhibition spaces a student didn't want her video to have the filename displayed whenever it was played/repeated. I looked it up on google and found this interesting opton:
if you go to "start > run" and type the command:
vlc.exe video1.mov --no-video-title
then vlc opens without displaying the title.
Also, looks like it's in
Tools/Preferences/Subtitles & OSD.
There's a checkbox labelled "show media title on video start"
Thursday, 24 May 2012
MacBook Pro with dull screen (no back light)
Just looking at a MacBook Pro 17" which, when booted up, seems to display a very dull image. I can only assume that the back light was not on. On rebooting the backlight turned on again. On switching it off and back on again, the backlight appeared to be on, but when it got to the login screen turned off again.
I assumed it was down to the sensor which detects how much ambient light there is, and turns brightness up or down accordingly. I decided it was probably best if it did not use this sensor. I went into system preferences and display and un-ticked the use sensor box.
Seems to have resolved the problem.
I assumed it was down to the sensor which detects how much ambient light there is, and turns brightness up or down accordingly. I decided it was probably best if it did not use this sensor. I went into system preferences and display and un-ticked the use sensor box.
Seems to have resolved the problem.
Labels:
10.6.6,
backlight,
brightness,
display,
MacBook Pro,
OS X,
System Preferences
Thursday, 17 May 2012
Safari Crashing on OS X 10.6.8 for Active Directory Users
It appears on the machines where they were 'accidentally' updated to OS X 10.6.8 (we currently run OS X 10.6.6), Active Directory users cannot run Safari as it crashes on launch. For local users Safari works fine. I have deleted the ~/Library/Safari/ folder and also the ~/Library/Preferences/com.apple.safari* files.
My initial conclusion is that Safari doesn't like the permissions on certain folders in the ~/Library folder. e.g. Caches folder. I am used to this issue hence the installation of the useful program "NHR" (Network Home Redirection"), which currently redirects the ~/Library/Caches folder to a local location. I shall look into pinning down which folder needs redirecting. I have found this post which suggests ~/Library/Safari/WebpageIcons.db causes crashes. I shall continue to add to this post.
My initial conclusion is that Safari doesn't like the permissions on certain folders in the ~/Library folder. e.g. Caches folder. I am used to this issue hence the installation of the useful program "NHR" (Network Home Redirection"), which currently redirects the ~/Library/Caches folder to a local location. I shall look into pinning down which folder needs redirecting. I have found this post which suggests ~/Library/Safari/WebpageIcons.db causes crashes. I shall continue to add to this post.
Tuesday, 1 May 2012
Linking an inventory Access Database to a booking database
So I want to link the existing database we have for our inventory, to a nice little database I've found for booking the equipment in and out.
The reason I would like to 'link' to it, is because a lot of people are using the existing database and only a few will be taking advantage of the new booking system. But I'm still not sure..
Anyway, found this microsoft help page to link databases
The reason I would like to 'link' to it, is because a lot of people are using the existing database and only a few will be taking advantage of the new booking system. But I'm still not sure..
Anyway, found this microsoft help page to link databases
Wednesday, 25 April 2012
Rendering with Maya Terminal command line
So, want to start a render farm, which essentially sends command line commands to computers. You can do this yourself really.
I thought I'd document the command line stuff so that I can come back to it some other time.
So, to open the Maya Terminal, you can open up Terminal and type:
. /Applications/Autodesk/maya2012/Maya.app/Contents/bin/MayaENV.sh
Now you'll have access to Maya terminal commands.
Here's a simple line to render a file:
render /Users/me/test.mb
Simply renders the file with the settings that are set inside that file (in the render settings).
You can use flags with this command to set all kinds of things. Found a good help page here. The ones I'm interested in are:
render -r mr -s 21 -e 30 -rd /Volumes/renderfarm/rendered/ -v 5 -art /Volumes/renderfarm/file1.mb
I thought I'd document the command line stuff so that I can come back to it some other time.
So, to open the Maya Terminal, you can open up Terminal and type:
. /Applications/Autodesk/maya2012/Maya.app/Contents/bin/MayaENV.sh
Now you'll have access to Maya terminal commands.
Here's a simple line to render a file:
render /Users/me/test.mb
Simply renders the file with the settings that are set inside that file (in the render settings).
You can use flags with this command to set all kinds of things. Found a good help page here. The ones I'm interested in are:
- -r mr
- uses mental ray for renderer
- -rd /Users/Shared
- uses the specified directory for rendering to
- -s 1
- sets the start frame of sequence to render
- -e 100
- sets the end frame of sequence to render
- -reg 0 250 0 250
- sets the render region to render
- (left right bottom top)
- it's key to note that co-ordinates 0, 0 are at the bottom left of the image, so 0 250 0 250 renders a 250px square at the bottom left as pictured
- it creates a file of the proper resolution, and fills in the part which was rendered
- to combine, make sure each render 'region' has a different file name, peice it back together in photoshop
- -im mylovelyfile
- saves the render with this name
- -x 250
- renders this amount of pixels width-ways
- -y 250
- renders this amount of pixels height-ways
- -cam persp1
- the name of the camera you want to render from
- -proj /Users/Shared/
- uses this folder to load file
- -n 0
- use all available processors
- -art
- mentalray measures how many cores you have and adjusts to maximise performance
- -v 5
- for render percentage
For a render farm, each node will need access to the .mb file and all the textures. It's also good to have them render to the same folder so you don't have to collect it all. I'd have the files on the server and run this command:
(first make a directory to mount the shared folder onto)
mkdir /Volumes/renderfarm
(then mount it)
mount -t afp afp://admin:password@my.server.dns.name/MySharedFolder /Volumes/renderfarm
I'd also be tempted to load the file up from this mounted directory and make sure the project path corresponds to this, so it can find all the sub-directories for textures and such.
On each computer you simply type the range of files to be rendered, so:
render -r mr -s 1 -e 10 -rd /Volumes/renderfarm/rendered/ -v 5 -art /Volumes/renderfarm/file1.mb
render -r mr -s 11 -e 20 -rd /Volumes/renderfarm/rendered/ -v 5 -art /Volumes/renderfarm/file1.mbrender -r mr -s 21 -e 30 -rd /Volumes/renderfarm/rendered/ -v 5 -art /Volumes/renderfarm/file1.mb
render -r mr -s 31 -e 40 -rd /Volumes/renderfarm/rendered/ -v 5 -art /Volumes/renderfarm/file1.mb
render -r mr -s 41 -e 50 -rd /Volumes/renderfarm/rendered/ -v 5 -art /Volumes/renderfarm/file1.mb
Monday, 23 April 2012
Inventory Booking mechanism for Inventory
Now I'm getting into Joomla, thought I'd check out a few inventory booking extensions. Found one which looks excellent - JomRez
Here's a demo of it on their servers.
With this system I can visualise the situation working as follows:
- Browse to the correct webpage
- log in
- if your a student:
- search for the resource
- book it out if it is free
- if your staff
- add resources
- check booking status
- sign back in
- search for free resources
Questions
- could it use Active Directory logins?
- Yes, I think so. Found this forum on the topic although couldn't look at it
- does it manage assets?
One thing I have read is that it is good, but to get it really customised you will probably need to buy the extensions. These generally start at £9.99 and go up to £29.99.
The next thing to do is to test it:
The next thing to do is to test it:
- install MAMP
- make a new database in myphpadmin
- I named it "inventory"
- install Joomla
- download JomRez and install
- found this article on how to install
- download Download jomres_webinstall.zip or just jomres_webinstall.php
- Place this in the root of the joomla
- run the jomres_webinstall.php in the browser
- this came up with:
- We are unable to comunicate with the updates server, you might have a firewall preventing your server from communicating with the jomres.net servers. You should create some rules that allow your server to communicate with the domains "updates.jomres4.net", "plugins.jomres4.net" and "license-server.jomres.net"
- I could ping all of these from my machine?
- So, might as well just install it manually
- Nope, can't find the manual install zip.
- installed it on a server using the webinstall and worked fine
- add assets
- as it's geared for hotel bookings the only way I've thought of doing it is to add each asset as a room in a hotel.
- I'd have to go into the database and find the room type and add a different room type for each different item we had.
- test asset management
- can't really manage assets
- test booking mechanism
- test logins
Well, to conclude, if I want this to work as an inventory management utility I'd need to buy plugins. It's ridiculously restricted.
The way I can concieve to make it work is to have the college as a hotel, and it have 'room types'. You can have a number of each room type, each bookable. Too confusing.
Had another look on Joomla and found only paid things! Doh! Can't get everything for free. I shall go back to Access Databases.
Labels:
Active Directory,
booking,
content management system,
database,
inventory,
joomla,
php
Subscribe to:
Posts (Atom)


