edwardslab

  • Increase font size
  • Default font size
  • Decrease font size
Home Brad
Brad's Lab Blog

How To Fix File Permissions for Joomla

Yesterday Geni came to me with an interesting problem: He needed to update user pictures, but was unable to place them inside the member_pics folder. This was because the member_pics folder was a folder that had been created by a user via ssh, not by using joomla. The permissions on the folder were 775, so a non-owner non-group user could only read and execute from the folder.

 

Read more...
 

Lab Blogs and Accounts

If you need an account, or you need your own Category to group your posts in, or you need a link on the right side of the Lab Blog page to show all of your posts, you need to talk to me.
 

GWT Viz Api and Chart Tools API

So, I've ben working on my thesis, and I determined that using Cairo Graphics + GWT was really ineffecient, and way too much work. This is largely in part due to my discovery of the Google Chart Tools and, more specifically, the Google Visualization API. Both do pretty much the same thing, they create neat-looking graphs with very little demands on the user. The difference between the two is that Chart Tools create 2D images that you can stick on your website, rendered in less than a second. The Visualization API creates interactive graphs, which is, for me, 50 times better.

Read more...
 

Dropdown Menus in Joomla

So, I did this maybe a week or two weeks ago, but it was a great victory for science and metagenomics, and I figured I'd post it here. I finally got dropdown menus working in Joomla, guys! Yayyyyyyy. If you go to phantome.org and mouse over the tools menu bar, you'll get the condensed effort of my AWESOME work. Really, all it boils down to was I needed to click a single button.

Building dropdown menus, or "submenus" in Joomla is not terribly advanced. You make an item in whatever menu you're working on, in this case the main menu. But instead of its parent being "Top" you make the parent an already existing item in the menu, in this case "Tools".

However, unless you use my SECRET TRICK, the menu will only ever appear if you're on the "Tools" page already. Which is dumb. People don't want a menu for what they're already looking at. So after a few hours of googling, downloading extensions and modules I didn't need, and then a lot of clicking, I found the answer!

Edit the module for your menu, in my specific case I go to Extensions->Module Manager-> Main Menu in the administrator backend. Then you click the simple little box labeled "Always Show Sub-menu Items", and save your changes. Voila! Success, and awesome. You now have infinite dropdown power. You can have dropdown menus, you can have dropdown menus inside those dropdown menus. Those menus can then shack up and raise little menus of their own. You can have nothing but menus, if you wanted. Infinite menus, dropping down.

Joomla is pretty cool, provided you step into a ring and box with it for like, nine hours.

 

man fsck this

As a few of you probably noticed, pipeline1, also known as seed.sdsu.edu, has been down at least since wednesday or thursday of last week. One of the drives was having "problems", we'll say, that were forcing pipe1 to be unable to boot. The actual boot drive wasn't the issue. The second drive was the issue. It was formatted with an lvm2 filesystem. Also known as "logical partitions". I guess it's one way to get multiple partitions onto one drive. The catch is that it makes it really difficult to fsck it if there's problems. After spending quite a while on it, here's what I've done to get it fixed.

1: Boot off of an ubuntu install disc. It gives me graphical windows, a terminal, and easy root access. Tools used: Applications->Accessories->Terminal

2: I had to install lvdisplay, part of the lvm2 package, to get a look at our logical partitions, but I'll tell you what they are so you don't have to do that. Our two logical partitions are /dev/VolGroup00/LogVol00 and /dev/VolGroup00/LogVol01.

3: Here is the SECRET TRICK. If you try to fsck either of those, it'll give you an error. First it will tell you that no such file exists, and second it will tell you that it tried anyways, and there's a bad super block. The second statement is misleading, concentrate on the first. So what I did was go to /dev/VolGroup00, and take a look at the two partitions. Both of them were symlinks! *gasp*

4: Those links pointed to the REAL partitions. /dev/mapper/VolGroup00-LogVol00 and /dev/mapper/VolGroup00-LogVol01.

5: I ran fsck on the problem volume (volume 00) and lo and behold, success! All the orphaned inodes and corrupt linked lists are finding their parents and...being trimmed? I don't know. Suffice to say fsck is currently running and hopefully pipe1 will be back up soon.

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3