Poor man's O/R mapping

I am curious to know how others have mapped their database tables to java beans used to represent them. I have created an XML file that ties them both together and just read that XML file to assist in generating SQL Statements. I am still in the process of creating this "framework" if it even warrants the name. How have other solved this all too common problem?
ps. I really don't want to use a large Object Relational Framework like Hibernate mostly because I don't want to take the time to learn it and add complexity to my first database centric web application.
Thanks,
-Brian

Its a pretty small system, only about 15 database
tables with the same number of java beans to store
the data. That's not many. Especially since this is your first web app, I'd recommend just going straight JDBC. If the tables and objects map 1:1 they'll be easy to persist.
Start with a clearly defined persistence layer. Use what's known as the Data Access Object, which begins with an interface. If you have a model object Foo, you'll write a DAO for it like this:
package persistence;
public interface FooDao
   Foo find(long id);
   List findAll();
   void saveOrUpdate(Foo foo);
   void delete(Foo foo);
}The id is the primary key for your Foo object. If you have other search criteria (e.g., last name for a Person object), add additional find methods.
The beauty of this approach is that you can implement your FooDao interface as straight JDBC now, but later on when you become more sophisticated (e.g., Hibernate/Spring, etc.) you can change the implementation without affecting clients, because they'll continue to make calls to the interface.
Write a mapper class that takes a ResultSet and returns a Foo, one for every model object.
You can also see how easy it would be to use code generation here. Write a Velocity template or even a home-grown one that would interrogate your model package and spit out all the persistence interfaces and skeleton implementations for you.
Good luck. Come back if you think this is helpful and you have any other questions.
%

Similar Messages

  • I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    Well, I really would love the new unreleased mac pro however , I'm not sure of the expected cost , Everyone speculates from $3,000 to $8,000, in which I may have to wait a while to purchase.
    To the point .... I want fully functional thunderbolt ports to be on the current mac pro's .... wonder if anyone had workarounds yet?...  or could I chain the the current mac pro to a mac mini to make that happen?

  • How to implement poor-man's version control with TSQL queries

    I have a table called Project. Each row completely describes a project and has a username, project name, project description and other numeric parameters that contain all the data about the project.
    When multiple rows have the same username, this means a user owns multiple projects.
    Now I want to implement a poor-man's version control for my users by adding a new integer column called version. When a user wants to save a new version of his project, the version is incremented and a new row is inserted into the table.
    Some projects will have 1 version, others will have a dozen or more.
    By default, the user should see a data grid of projects where only the latest version of the project is displayed (including the version count) and all the older versions of each project are ignored.
    How do I write a TSQL query to populate this data grid (and ignore every version except the latest versions of each project)?
    Thanks
    Siegfried
    siegfried heintze

    Should this work? It prints all the rows.
    DECLARE @Projects TABLE
    ([id] int IDENTITY(1,1), [Project] varchar(1), [Version] int)
    INSERT INTO @Projects
    ([Project], [Version])
    VALUES
    ('A', 1),
    ('A', 2),
    ('A', 3),
    ('A', 4),
    ('B', 1),
    ('B', 2),
    ('B', 3),
    ('C', 1),
    ('C', 2),
    ('D', 1)
    -- DECLARE @User varchar(100)
    SELECT *
    FROM @Projects p
    WHERE
    -- UserName = @User AND
    NOT EXISTS (SELECT 1
    FROM @Projects q
    WHERE q.id = p.id
    AND q.Version < p.Version)
    siegfried heintze
    Nope you have condition wrong
    In my suggestion i've used > and you replaced it with <
    it should be this
    SELECT *
    FROM @Projects p
    WHERE
    NOT EXISTS (SELECT 1
    FROM @Projects q
    WHERE q.project= p.projects
    AND q.Version > p.Version)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Hi, I'm doing a poor man's morph project on my motion 4 . It works perfect while on motion , but when I try to import it to tcp it will transfer the photos but not the optical flow fx. what am I doing wrong?

    Hi I don't know if I was able to send this question before but here it goes again. I'am doing a poor man's morph project on my motion 4 program, and it works great while in Motion, but once I try to import it to fcp, it will import the photos but not the optical flow fx, what am I doing wrong? I appreciate you help

    Decided to use cmd A to select all the icons on the desktop and then looked for a right click option.   There it was - the option to move to a folder.   I now have them all in this folder which tells me it holds 157 items.   Now you know why I needed to know LOL
    Thought it might be of help to someone.
    Cheers Mally

  • Lhave loked phone but lhave not any mony to unloked it what i do i love apple but i m so poor man

    what l do i m so poor bur i love apple phone but its loked

    i have access to one of the free sites and gave me some of the data for two
    It is open to UK networks Orange or T-Mobile or Three
      I hope to be useful information for those who wanted Tkdyam a helping hand to open the two, I also reported poor I do not have Visa or money to open two However I am of the most loving of Apple and their products, which respects its users and provide them with the best services I hope I need help, I honestly

  • Can I Use A Standard TV for A Poor Man's Monitor?

    I do a fair amount of video work at home and was wondering if I could rig up a standard TV to view my spots for field issues and maybe some rough color.
    This is my video card:
    http://www.driverheaven.net/reviews/9800256/R9800PRO%20256%20BOARDhighres.jpg
    It does have an s-video out (I think that's what the round black one is), so I figured I could patch it into a TV with a similar port. Will FCP recognize this as a valid monitor option? Thanks.
    --Alex

    I was actually really surprised at how, even on HD sets, you can't turn off some of the auto functions on TVs. Earlier this month I replaced my trusty 1980's Sony Trinitron set (didn't retire it, it's now at home in the bedroom - one of the best pictures ever) with a widescreen HD set.
    Of course, since I had unused gift cards from Best Buy, I decided to get it there. But they have the worst program material ever running through even the HD sets. And I could not for the life of me talk any of the employees to give me an open box dvd player to hook to each of them to test them out. Add to that the fact that most of the remotes have been stolen and I just decided to start buying them and taking them to my office and hooking them up to test with real source material.
    Well, I went through 6 HD sets before I found one to my liking (Samsung 30" Slim-Fit Tube). And now that particular Best Buy has 5 sub-par open box HD sets for sale at a discount. Even the Sony I tried had a auto brightness setting I couldn't shut off.
    They hate me at that store, but I offered an easy solution and they wouldn't do it. I hate them at that store because my office is up two flights of stairs and I don't have interns to lug 6 different 30" HD tubes upstairs.

  • Poor man's Tiling Window manager

    Basically a simple python script which does tiling on any windowmanager (Perfectly on pekwm and openbox. Partly on compiz due to the fact that compiz says it has a single desktop even if there are 4 virtual desktops, which means all the windows you have will be tiled).
    It uses wmctrl to get the info and manage the windows. Bind it to a key or to autowhatever-on-window-creation-hook.
    Currently options are
    left,right   - Does the new windows7 ish style of sticking to the sides.
    swap     -   Basic tiling layout on first call, then swaps the active window to main pane on subsequent calls
    cycle     - Cycle all the windows in the master pane
    vertical   - Simple vertical tiling
    horizontal   - Simple horizontal tiling
    maximize   - Maximize the active window/ for openbox which doesn't permit resizing of max windows
    max_all     - Maximize all windows
    simple( obsolete, swap works better )     - The basic tiling layout . 1 Main + all other at the side.
    If you need other layouts modify get_simple_tile
    On first run it will create a config file ~/.managerc. Modify the values to suit your window decorations/Desktop padding
    Github
    Clone usrl: git://github.com/TheWanderer/stiler.git
    Aur http://aur.archlinux.org/packages.php?ID=25038
    soulfx's fork of the grid branch with dualmonitor support and grid layout
    http://github.com/soulfx/stiler/tree/grid
    Last edited by u_no_hu (2009-05-12 11:35:22)

    @u_no_hu
    Ah, i see. My bad, i'm not familiar with Windows 7.
    Not sure what to check for in xprop, so here you go:
    > xprop
    _XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
    WM_STATE(WM_STATE):
    window state: Normal
    icon window: 0x0
    _NET_WM_DESKTOP(CARDINAL) = 0
    _KDE_NET_WM_FRAME_STRUT(CARDINAL) = 1, 1, 16, 1
    _NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 16, 1
    _NET_WM_STATE(ATOM) =
    _NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _OB_WM_ACTION_UNDECORATE
    _NET_WM_ICON(CARDINAL) = 48, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    _NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = 0x6f, 0x65, 0x77, 0x3a, 0x20, 0x7e
    _NET_WM_VISIBLE_NAME(UTF8_STRING) = 0x6f, 0x65, 0x77, 0x3a, 0x20, 0x7e
    _NET_WM_PID(CARDINAL) = 9652
    WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
    WM_LOCALE_NAME(STRING) = "en_US.utf8"
    WM_CLASS(STRING) = "urxvt", "URxvt"
    WM_HINTS(WM_HINTS):
    Client accepts input or input focus: True
    Initial state is Normal State.
    window id # of group leader: 0x1e00015
    WM_NORMAL_HINTS(WM_SIZE_HINTS):
    program specified minimum size: 10 by 28
    program specified resize increment: 6 by 12
    program specified base size: 4 by 16
    window gravity: NorthWest
    WM_CLIENT_MACHINE(STRING) = "grus"
    WM_COMMAND(STRING) = { "urxvt", "-embed", "31457289" }
    _NET_WM_ICON_NAME(UTF8_STRING) = 0x6f, 0x65, 0x77, 0x3a, 0x20, 0x7e
    WM_ICON_NAME(STRING) = "oew: ~"
    _NET_WM_NAME(UTF8_STRING) = 0x6f, 0x65, 0x77, 0x3a, 0x20, 0x7e
    WM_NAME(STRING) = "oew: ~"
    Edit:
    I noticed that Firefox also isn't detected by wmctrl -l. When I testet simple in previous post I only had Firefox and urxvt on that desktop, that's the reason it didn't do anything
    Did a test with all applications recognized by wmctrl -l on the same desktop, and it worked perfectly.
    swap works fine aswell.
    There must be something funky with my setup.
    oew
    Last edited by oew (2009-01-30 15:54:34)

  • Poor man's server redundancy?

    I am helping a couple of friends who have small businesses, each with a single server.  They have become concerned about the business cost of a server outage, but have a limited budget for redundancy.  I used to work on this stuff, but have been
    out of it for several years, so I'd like to solicit suggestions from you all.  Our goals are to provide quick & simple server failover at a modest cost, but not necessarily instantaneous or automatic.  I've thought of a few categories of solutions:
    1. Off-line server spare - Keep another server of same HW configuration; if live server, which has pair of HDD's in RAID-1 mirror, fails, remove one of the drives from the failed server, pop it into the spare server and fire it up, with same server name
    & IP address.  I wonder if this would work - the disk controller in the spare server might not accept a drive from the other server. Also this would not protect from a major electrical problem, say both drives got zapped.
    1a. A variation of server spare - maintain a spare server with distinct name & IP address, synchronize data nightly. If live server fails, shut it down, then rename the spare server and give it the IP address of the failed live server.
    2. Failover SW such as Double Take or StorageCraft.
    3. Server cluster - probably too expensive, especially if a SAN were used.
    4. Virtualization.
    Appreciate any suggestions.
    Bob

    For simplicity, have them use a virtual server. This can be moved easily to a new server because the virtual hardware is identical. Moving a physical disk to a spare server is going to be more problematic, because there may be hardware differences. Also,
    the network hardware will have different identifiers, so network configuration will have to be re-done etc. This is not insurmountable, but still could be more difficult than it has to be.
    Moving a virtual machine is as simple as copying it and starting it again. Of course, you still need to backup the data regularly to prevent against accidental deletion.

  • When dedicated RAID controllers are too expensive, the poor man should...

    So the Disk Setup Guide on the PPBM7 Tweakers page states that for 5+ drives, RAID 3/5 (with dedicated controller) is the way to go... But that's a BIG price jump from a 4 drive system.
    As of now my disks are:
    C: Sandisk Extreme 120GB
    D: WD RE4 1TB
    E: WD RE4 1TB
    F: WD Green 1TB
    It's not fast enough, and I need more room on the media drive (it's 50% full, but will keep filling and degrading quickly). I also want a bigger F: as a dedicated backup.
    I was thinking:
    C: Same. OS, Programs, Page.
    D + E: 2xRE$ in RAID 0 (onboard controller) Media, Projects
    F: 160GB SSD for Cache/Preview
    G: 2GB Backup of media/projects RAID 0
    Now, I know the risks of RAID 0 for projects (and really for my setup losing media would be just as catastrophic), but 1) they're enterprise drives which should be a bit more reliable and 2) I run a backup everyday.
    Am I making sane decisions?
    P.S.
    My entire cache/preview amounts to 15GB, so it seems a royal waste of space to run the 2 RE4's in RAID 0 for the cache. 120+GB SSD can be had for ~$65 ebay.

    Eric - Thank you! I've never heard of putting the cache on the OS drive, but that would indeed save me some money and effort if it's not likely to degrade performance.
    Bill and RJ - I apologize for wording it unclearly (plus a typo), but what I was trying to say was G: 2TB Backup of media/projects RAID 0 meaning G is a single 2TB drive acting as a dedicated backup of the media drive (which is a 2-disk RAID0). I am clear on the fact that RAID 0 has no redundancy, and doubles the risk of data loss.
    RJ - I understand that even enterprise drives have a chance of failure, and perhaps in my circumstances the same chance as a regular drive, but I've been using these drives individually for a good while, have error and health checked them, so they're not duds. I would backup my media from the single drive where it now resides, setup the RAID 0, then restore the media to the new RAID 0 media drive so there'd be no chance (excluding lighting, bad luck or the wrath of the almighty) of losing everything mid-backup.
    So, it appears the cheapest solution for me would be:
    C: (120GB SSD) OS, Programs, Page. Cache, Previews
    D+E: (2TB Spanned) Media, Projects
    F: Single 2TB disk, backup of media/projects
    Exports on D/E or F - it doesn't really matter to me. I don't mind waiting, and they generally go straight on the internet post-export.

  • Poor Man's Time Lapse

    Rather than speeding up an existing clip, is there a way in iMovie to grab more than one still frame at a time to create a timelape. I'm looking in the order of one frame every one hundred, is this something iMovie can do or could somebody point me towards a piece of software with this batch capability? Thanks

    Are you looking for something similar to the plastic that came on it but more permanent without costing too much?
    www.bestskinsever.com
    Cost is $6.99 and $2 shipping and shipping is fast. I applied mine after reading the instructions over several times to be familar and it went on perfect, do remember to let it set and dry for 24 hours.
    Here pics taken 15 min after applying. It looks perfect:
    http://image54.webshots.com/154/8/22/36/524182236diJFFz_ph.jpg
    (the white flecks are papertowel lint that I wiped off after dry)
    http://image56.webshots.com/56/8/22/38/524182238zEyNfM_ph.jpg
    I then put it inside of a Speck Skin Tight Case for extra protection.
    Since you mentioned saran wrap I thought I'd tell you about the Best Skins Ever since its doesn't cost that much.

  • Tar, ufsdump,dump,cpio, or dd for poor man's backup ?

    I have a Sunblade 100 desktop I use at the company I work for. Since it is a desktop, I cannot request a nightly backup of the system. The Sunblade came with a 20GB Western Digital ide hard drive. I have added a 2nd internal drive which is a Maxtor (Seagate) 40GB ide drive that I use for storing some of my configuration files from the primary 20GB drive.
    I want to be able to run a cronjob at least monthly that would copy everything from the primary 20GB drive to the 40GB secondary drive so that if my primary drive goes out, I can switch over to the 40GB easily. Amongst the following, which would be the best tool to use while all filesystems are mounted that would avoid corruption as much as possible ?
    tar, ufsdump,dump,cpio, or dd
    I don't think I could use dd as I believe it would require that both drives be the same disk geometry. I would like to utilize the secondary 40GB disk as more than just a failover drive if possible, for example, use up to 20GB for the failover and keep the other 20GB for various storage of docs, etc. Any input or suggestions towards the above mentioned tools or any that come with the Solaris 10 OS that I may not have mentioned would be appreciated.

    I don't see a reason why LVM can't do this job. Oh yea; you probably didn't allocate space for a metadb on the boot drive.
    If you did happen to leave the space; you could Consider this partitioning (don't know what you have):
    Target 0 (current boot drive):
    s0     /          5GB
    s1     swap          4GB
    s3     /var          3GB
    s5     ((metadb))     15MB
    s7     /export/home     "rest of disk"
    Target 1
    s0     /          5GB + pad to end of cylinder
    s1     swap          4GB + pad
    s3     /var          3GB + pad
    s5     ((metadb))     15MB
    s6     /newfs          "rest of disk"
    s7     /export/home     ~7.5GB (remainder of disk 0)Even if you didn't allocate a slice; you could reorg your disk to include a slice for the metadb by stealing some space from swap. LVM is pretty automagic once you set it up.
    dump/restore also work.
    dd would work (in theory) but you have to fsck the target file system as soon as you've copied it across as the FS is open.
    Cheers,

  • Maybe dumb idea: poor man's Sandboxie?

    If you've been exposed to Windows XP you've probably heard of Sandboxie. Sandboxie, as I understand it, creates a fake environment for an application to run in and write to. The application can't touch the rest of the system (unless someone knows how to hack through the sandbox), and the sandbox can be emptied when the app is closed, deleting anything that got written to the hard drive (except stuff you pulled out of the sandbox).
    Well, earlier today I found some stuff on instant system rollback for Linux, using aufs. And a thought struck me... Couldn't the same thing be done for individual applications, instead of the entire system? Using aufs/UnionFS/what have you, how practical would it be to write a script that would isolate a single application from the rest of the filesystem, but allow the retrieval of files by other applications?
    Furthermore, is this actually a good idea?

    Oh thanks. I thought there were issues with using chroots as jails on Linux though? IIRC if someone gets root access within the chroot, there are ways to easily do a second chroot back into the real system. Has that changed in more recent Linux versions, or does Sandfox rely on using a limited user within the chroot?
    Edit: it relies on using a limited user, and I need to learn to use Google.
    Last edited by Gullible Jones (2011-04-18 14:24:24)

  • Poor man's matchmove

    I've been racking my brains trying to figure out a way to make this work. I seem to vaguely remember that there is a way to do it, but I can't figure it out.
    I've got great cornerpin data for a square TV screen in a orbiting dolly shot . I can track an image onto the screen just fine, but what if I want to make it appear as though the image were floating *in front* of the screen. It doesn't help that the distance between the screen and the camera does change over the course of the shot.
    Can this be done with what amounts to a 2D cheat? Or is there alternatively a way to deduce 3D data from the corner-pins? Or am I up a creek? :-)
    Cheers!

    No, not really. Without the camera actually being 3D, there is no way to logically deduce a projection matrix. Ergo you would have to mimic the camera motion using a Null and possibly have a reference point in the middle of the screen that would allow to calculate an offset along the view axis. Still, you should be able to get a sufficient illusion by offsetting the corner pins along an imaginary motion vector, which would be the inverse of the camera motion in 2D screen space. Something as simple as:
    //===begin expression===
    cPoint=effect("Corner Pin")("Upper Left");//reference point
    cAngle=degreesToRadians(effect("Angle")("Angle")); //angle expression control
    cOffset=effect("Offset")("Slider"); //slider expression control
    X=cPoint[0]+Math.sin(cAngle)*cOffset;
    Y=cPoint[1]+Math.cos(cAngle)*cOffset;
    [X,Y]
    //===end expression===
    You can then simply animate the expression controls. You may also wish to add a multiplier for the offset, so you can make it a little less on the points facing aways from the camera to improve the perspective experience.
    Mylenium

  • Poor man's port scan blocker

    working with cisco IOS on 3750's at the access level, Nexus 7K's at the core. 
    I need to find a cheap but relatively harmless way to block port scans.  We have not typically had to do this, most people on the internal network behave themselves.  But we have a programmer bent on proving she's an "ethical hacker" and frankly I haven't got time for this nonsense. 
    I would just shut down her physical port but she runs these 'tools' from a vm-server and there are other hosts running on the same physical NIC so I can't just shut off that port.
    I was looking into CBAC but I need to be very careful how I craft the ACL so as not to cause legitimate traffic to cease.  That would be an RPE.  Has anyone seen a detailed write up on how to proceed?  The training I took just sort of 'touched' on it...kind of like "here's this other feature" but didn't really delve deeply into specifics.  I did a search on google and was overwhelmed.  The first couple of articles I located, probably just by cooincidence,  were written for folks already steeped in the spy vs. spy world and so were way over my KB threshold.  As I said, I can't afford to make a mistake here.
    Anyone have some tips on where I can get started on this?  Thanks so much in advance.

    Hi
    Well there are several ways you can handle this.
    but lets first make it the way it is supposed to be handled.
    1) is she breaking any IT policy ? If yes then let HR deal with the offending programmer, just make sure that they have enough proof to swat the offender hard.
    If the answer is no, no policy of the company is broken then frankly I doubt that it is your responsibility to fix the problem, wich in this case is that the IT policy is lagging behind what is desireable.
    Lets ignore the above part and check on what you asked for.
    First of all since  the machine is a vm machine in an esx host you will have problems to halt traffic simply because not all traffic does leave the ESX host.
    So what can you do ?  Is the ip address static or dynamic ?
    If it is a static ip address then you can easily write an ACL that allows what she is supposed to be able to do from that machine and then block the rest from that particular machine and then allow everything else.
    Since you did not have an ACL from the beginning this should only impact her ability to scan.
    If the 3750 software is quite new you can setup an ACL with a connection to an EEM and TCL script that IF she starts to scan you can block her address via adding a new acl or the switch sends you an email or anything you can imagine inbetween.
    If the ipadress is DHCP then you can either choose to lock it down to a specific address in the dhcp scope or you can setup something that lets you know what it is and sets a scripted acl.
    So what other things can you do ?
    You could set a MAC address access-list and shut down the Mac address passing through the switch.
    You can do alot of other things like poisoning the arp address table of the machine, and make things not work the way she wants it. duplicate ip addresses and mac addresses or maybe duplicate windows name.
    But that sort of thing can backfire and to be honest, that does not sound like the doings of a person who are in charge of the network and so on..
    I would go for the first alternative ie make sure that what she is doing is not ok according to policys, let her know that it is not ok and if she persists in her doings turn her over to the HR department.
    Good luck

  • Sandfox - A Poor Man's Firefox Sandboxer

    I have completed writing and pretty thoroughly testing this sandbox creator.  Written entirely in bash (1300 lines) and using only core commands like mount and chroot for sandbox creation, I believe it is quite secure and fills a niche for an easy to use sandbox for Firefox.  It can also create and use multiple sandboxes and can run any program in them with flexible profiles.
    My design goals were to Keep It Simple, flexible, and secure.  In the simple department, you can create a sandbox and run Firefox in it with
    sandfox firefox
    Rather than repeating all that's on the website I'll just drop a link - which includes a fairly detailed "How It Works" section.  I appreciate feedback on your results with it, suggestions, problems, etc.  Particularly, I would like to know how the default Firefox profile runs Firefox on your machine.  I don't use KDE or Gnome themes in Firefox, so if you come up with a profile that enables these themes I'd appreciate a copy.  Try to keep the profile as constrictive as possible (for example, instead of putting all of ~/.kde in the sandbox, what specific folders and files are needed?)  The default Firefox profile should at least allow it to run.  And any other profiles you come up with for other programs would also be appreciated - I might include them in a future release.  Thanks!
    As for security, if you can figure out how to break out of the sandbox I'll owe you a nickel. 
    http://igurublog.wordpress.com/download … t-sandfox/
    http://aur.archlinux.org/packages.php?ID=34261

    Vi0L0 wrote:I didn't do that, listed permisions was all that i had then for home
    Also remember that the default profile also loads in addition to the firefox profile.  At any rate, when I try binding ~/.mozilla read-only, Firefox won't even start, which makes sense.  Copy sounds like what you wanted though.
    Here is a firefox.profile that should put your KDE theme in Firefox.  This worked for me on Kubuntu Karmic with KDE4, which is the only system I have with a full KDE4 desktop to try at the moment.  This may also work for Gnome, because from what I could gather on Google, Gnome uses the GTK themes in /usr, so it doesn't require as much as KDE.
    # Sandfox Firefox Profile
    # Note that the default profile is always loaded in addition to other profiles
    # For instructions consult http://igurublog.wordpress.com/downloads/script-sandfox/
    # OPTION
    # or
    # OPTION=VALUE (Do not use quotes)
    # To include another profile this profile:
    # profile=PROFILENAME
    # root folders and files required by firefox
    bindro=/bin
    bindro=/etc
    bindro=/lib
    bindro=/lib32
    bindro=/lib64
    bindro=/usr
    bindro=/var/lib
    bind=/tmp
    hide=/var/lib/mlocate
    # required by alsa for Flash sound
    bindro=/dev/snd
    # required by Java
    bindro=/opt/java
    bindro=/proc
    bind=/home/$user/.java
    # home folders and files
    # You may need to add additional binds to your home folders and files in order
    # for every aspect of Firefox to work as you want. Or you can share your
    # entire /home/$user folder (this would reduce security)
    bind=/home/$user/.mozilla
    bind=/home/$user/.esd_auth
    # Needed for KDE and Gnome themes in Firefox
    # (may be incomplete for gnome)
    # To find out what other binds you may need, run 'env' in a shell as user
    # and examine the values of GTK2_RC_FILES and GTK_RC_FILES and XCURSOR_THEME
    bindro=/home/$user/.config/gtk-2.0
    bindro=/home/$user/.fontconfig
    bindro=/home/$user/.fonts
    bindro=/home/$user/.gtkrc-2.0
    bindro=/home/$user/.gtkrc-2.0-kde4
    bindro=/home/$user/.kde/share/config/gtkrc
    bindro=/home/$user/.kde/share/config/gtkrc-2.0
    bindro=/home/$user/.kde/share/config/kdeglobals
    #bindro=/home/$user/.kde/share/config/kwinrulesrc # helpful? probably not
    #bindro=/home/$user/.kde/share/config/systemsettingsrc # helpful? probably not
    bindro=/home/$user/.kde4/share/config/gtkrc
    bindro=/home/$user/.kde4/share/config/gtkrc-2.0
    bindro=/home/$user/.kde4/share/config/kdeglobals
    #bindro=/home/$user/.kde4/share/config/kwinrulesrc # helpful? probably not
    #bindro=/home/$user/.kde4/share/config/systemsettingsrc # helpful? probably not
    bindro=/home/$user/.gtkrc-2.0-kde
    bindro=/home/$user/.kde3/share/config/gtkrc
    bindro=/home/$user/.kde3/share/config/gtkrc-2.0
    bindro=/home/$user/.kde3/share/config/kdeglobals
    #bindro=/home/$user/.kde3/share/config/kwinrulesrc # helpful? probably not
    #bindro=/home/$user/.kde3/share/config/systemsettingsrc # helpful? probably not
    bindro=/home/$user/.Xdefaults # for cursor theme, etc
    #bindro=/etc/gtk-2.0/gtkrc # used but already binded all of /etc
    # Required by flash player for persisent LSOs
    # Hide will store the cookies in ram and destroy them on exit. If you need
    # LSOs to be permanent, use bind= instead.
    # http://www.wired.com/epicenter/2009/08/you-deleted-your-cookies-think-again/
    hide=/home/$user/.adobe # creates a dummy folder
    hide=/home/$user/.macromedia # creates a dummy folder
    # other folders and files
    # You may want to bind your Downloads or other data folders below so you
    # can easily save and upload files from within Firefox.
    That will be the default for sandfox 0.9.3 which will be available shortly.  That is pretty much the only change in 0.9.3.  Note that this includes files for KDE4 and KDE3, but only folders or files which exist on your system at the time of sandbox creation are actually binded, so you can leave the excess in there.
    If that doesn't work on Arch's KDE4, try this in a shell as your normal user:
    env
    Then examine the values of GTK2_RC_FILES, GTK_RC_FILES, and XCURSOR_THEME.  I think those are the critical ones for getting themes working in Firefox.  Any files or folders referenced in those variables may need to added.
    One other note:  The profile above shares kdeglobals, which is a limited privacy risk, since KDE4 logs recent file and folder names and possibly other data in that file.  It's a limited issue, but if you're concerned you can use kscrubber to clean that file before running Firefox.

Maybe you are looking for

  • Some issues when using my N8 as modem over BT.

    Hi folks! I'm using my N8 to get internet access when I'm traveling for my macbook pro (late 2011 model). Few issues have apeared. First, getting the connection working might take 2 to 4 attempts. Second, when downloading large files over http the co

  • How to search for a process chain in RSPC ?

    Hi, Is there any way that i can find a process chain by giving the name of the variant. I know that i can click on the DTP and from there i can go to the process chain if i know the DTP. But here my problem is that i have a program which is calling a

  • Understanding Performance in Oracle 10.1.0.4.0

    I've been looking over my Oracle instance in response to complaints of performance issues. Basic queries, say 700-1500 rows, which have taken 10 seconds take 30-300 seconds. I've dropped the wait classes results and time usage below. It's a quad proc

  • Select From BSEG

    Hi The below mentioned piece of code is throwing a dump in Production system. Is there any way of alternate selection.   IF NOT it_pos[] IS INITIAL.     SELECT * FROM bseg INTO              TABLE it_bseg              FOR ALL ENTRIES  IN it_pos       

  • Im getting error 11111

    i tried everything but no luck, any ideas? here's the feed: feeds.feedburner.com/BlackFormatPodcast thanks!