[SOLVED] Migrating to systemd: One big doubt

I have been looking around and did not find anything that answers this straight up... so, forgive me if I didn't dig enough.
I have everything ready to switch to systemd but I have a couple of daemons that do not have it's equivalent in systemd.
Should I wait until the maintainers update their packages or there is another way I'm missing here?
The daemons are crashplan and supersonic.... If i'ts of any help.
Thanks!
Last edited by Xi0N (2012-10-22 07:10:27)

Ok, this one seems to work:
[Unit]
Description=Supersonic Multimedia Server
After=network.target
[Service]
Type=forking
#PIDFile=/opt/crashplan/CrashPlanEngine.pid
#EnvironmentFile=/opt/crashplan/bin/run.conf
WorkingDirectory=/var/supersonic
ExecStart=/var/supersonic/supersonic.sh start
ExecStop=/var/supersonic/supersonic.sh stop
[Install]
WantedBy=multi-user.target
Just in case anyone needs it or wants to improve it.... thanks guys!! Now my system is 100% working with systemd+brand new vertex4 ssd FAST AS HELL for being a 5 year old computer.....

Similar Messages

  • [solved] migrating to systemd

    Hey All,
    I have hit two stumbling blocks migrating to systemd
    one is rc.local support
    rc.local simply contains
    echo 0 > /sys/class/backlight/intel_backlight/brightness
      which needs to be run as root once per startup to enable backlight adjustment
    I wrote the file /etc/systemd/system/rc-local.service
    [Unit]
    Description=/etc/rc.local Compatibility
    [Service]
    Type=oneshot
    ExecStart=/etc/rc.local
    TimeoutSec=0
    #StandardInput=tty
    #RemainAfterExit=yes
    [Install]
    WantedBy=multi-user.target
    and executed it with
    # systemctl start rc-local.service
    and this works correctly
    running
    systemctl enable rc-local.service
    and restarting however still results in rc.local failing
    The second issue is that slim.service fails periodically (about 50% of the time) and I am not sure why, /var/lock exists
    Does anyone have any ideas as to why slim fails. Or a workaround for either removing rc.local completely or a fix for my rc-local.service
    Thanks
    Last edited by RGoose (2012-09-01 14:53:40)

    $ sudo journalctl -b | grep tmpfile
    Aug 31 12:33:50 Tycho systemd-tmpfiles[1886]: stat(/run/user/1000/gvfs) fail...d
    This is the only thing with reference to tmpfile that I can find
    grepping for "backlight" "systemd" "set" "tmp" results in nothing for tmpfiles aside from the above posted
    everything for systemd
    $ sudo journalctl -b | grep systemd
    Aug 31 12:18:51 Tycho kernel: Command line: root=/dev/sda3 ro init=/bin/systemd
    Aug 31 12:18:51 Tycho systemd-udevd[49]: starting version 188
    Aug 31 12:18:51 Tycho systemd[1]: systemd 189 running in system mode. (+PAM...h)
    Aug 31 12:18:51 Tycho systemd[1]: Inserted module 'autofs4'
    Aug 31 12:18:51 Tycho systemd[1]: Set hostname to <Tycho>.
    Aug 31 12:18:51 Tycho systemd-udevd[130]: starting version 189
    Aug 31 12:18:51 Tycho systemd-journal[133]: Journal started
    Aug 31 12:18:51 Tycho arch-modules-load[124]: /usr/lib/systemd/arch-modules-...y
    Aug 31 12:18:51 Tycho systemd-fsck[269]: /dev/sda1: clean, 29/26104 files, 2...s
    Aug 31 12:18:51 Tycho systemd-udevd[140]: renamed network interface wlan0 to...0
    Aug 31 12:18:51 Tycho dbus[321]: [system] Activating systemd to hand-off: s...e'
    Aug 31 12:18:51 Tycho systemd-logind[316]: Watching system buttons on /dev/i...)
    Aug 31 12:18:51 Tycho systemd-logind[316]: Watching system buttons on /dev/i...)
    Aug 31 12:18:51 Tycho systemd-logind[316]: Watching system buttons on /dev/i...)
    Aug 31 12:18:51 Tycho systemd-logind[316]: Watching system buttons on /dev/i...)
    Aug 31 12:18:51 Tycho systemd-logind[316]: New seat seat0.
    Aug 31 12:18:51 Tycho systemd[1]: rc-local.service: main process exited, co...=1
    Aug 31 12:18:51 Tycho systemd-logind[316]: Watching system buttons on /dev/i...)
    Aug 31 12:18:51 Tycho systemd[1]: Unit rc-local.service entered failed state.
    Aug 31 12:18:52 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:18:52 Tycho systemd-logind[316]: Watching system buttons on /dev/i...)
    Aug 31 12:18:52 Tycho systemd[1]: Startup finished in 874ms 899us (kernel) ...s.
    Aug 31 12:18:53 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:18:53 Tycho dbus[321]: [system] Activation via systemd failed for...s.
    Aug 31 12:18:54 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:18:54 Tycho dbus[321]: [system] Activation via systemd failed for...s.
    Aug 31 12:18:55 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:18:55 Tycho dbus[321]: [system] Activation via systemd failed for...s.
    Aug 31 12:18:56 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:18:56 Tycho dbus[321]: [system] Activation via systemd failed for...s.
    Aug 31 12:18:57 Tycho systemd-logind[316]: New session 1 of user jobbins.
    Aug 31 12:18:57 Tycho systemd-logind[316]: Linked /tmp/.X11-unix/X0 to /run/....
    Aug 31 12:18:57 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:18:57 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:18:58 Tycho dbus[321]: [system] Activating via systemd: service n...e'
    Aug 31 12:33:50 Tycho systemd-tmpfiles[1886]: stat(/run/user/1000/gvfs) fail...d

  • Migrated to systemd, modules are not loading [solved]

    Hi;
    I got around to migrating to systemd, but now modules are not loading. I got this setup (i gave full permissions thought it would help):
    $ ls /etc/modules-load.d/
    -rwxrwxrwx  1 root root   20 Dec  2 22:34 vbox*
    $ cat /etc/modules-load.d/vbox
    #vbox
    vboxdrv
    loop
    Any methods of debugging why this doesnt work?
    Thanks.
    Last edited by daf666 (2012-12-03 21:01:26)

    the files have to end with ".conf". And -x permissions are certainly not necessary.
    man modules-load.d

  • Cannot boot after a migration to systemd in OpenVZ

    EDIT: I "solved" my problem, and I doubt this thread will ever help anybody. You're warned.
    Hello,
    Earlier today, my Arch install that was still running with initscripts (and without the last filesystem/bash upgrade) suddently rebooted, and that broke a certain number of things (services weren't starting anymore, etc.). I figured I had waited too long before migrating to systemd for good, and therefore I followed the migration guide on the Wiki, added the "init=/usr/lib/systemd/systemd" kernel parameter and rebooted again.
    Sadly, ps -p 1 was still showing init instead of systemd. After a few more tries, I installed systemd-sysvcompat (thus replacing the sysvinit package), and rebooted again. That last reboot failed. Now OpenVZ stops suddently with the following messages:
    [root@ks /]# vzctl start 106
    Starting container ...
    vzquota : (warning) Quota is running for id 106 already
    Container is mounted
    Adding IP address(es): ***
    Setting CPU units: 1000
    Setting CPUs: 2
    /bin/bash: line 72: /bin/cp: No such file or directory
    ERROR: Can't copy file /etc/rc.conf
    Unable to start init, probably incorrect template
    Container start failed
    Stopping container ...
    Container was stopped
    vzquota : (error) Quota off syscall for id 106: Device or resource busy
    vzquota off failed [3]
    I tried to chroot in the VM folder and reinstall sysvinit, but that was too late:
    pacman -U /var/cache/pacman/pkg/sysvinit-2.88-9-x86_64.pkg.tar.xz
    error: could not open file: /etc/mtab: No such file or directory
    error: could not determine filesystem mount points
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.
    It looks like I can't use pacman in a chroot. The host OS is not running Arch so I cannot use pacman with the --root flag.
    I'm running out of ideas. Any help would be really appreciated...
    Thank you.
    Last edited by Vlavv (2013-06-27 00:26:12)

    The problem with the chroot options is that I don't have the root privileges on the host machine. I was only able to access that chroot thanks to a kind administrator, but I couldn't ask too much either.
    OK, so I've done some Ugly Things, messed with the contents of the sysvinit package archive manually to get the right files at the right places, and eventually managed to boot my VM and get all the stuff working. I'm certainly not proud of myself, but at least things are working again for now. I'll do a clean reinstall later. Thank you for the suggestion, and sorry for the noise.
    Cheers.

  • Samba shares no longer visible after migration to systemd

    EDIT: Note the file server is CLI only.
    I upgraded my file server to systemd about a week ago and have yet to get the Samba share visible from other devices within my network.  Eveything worked fine under initscripts and other than system upgrades the only thing that has changed about the system is the migration to systemd and addition of the netcfg package.  I can connect manually by typing "smb://<IP>" in a file manager address field but when trying to access the Share via browsing on two different WD media players, a Xoom tablet, typing "smb://" in the address bar of a basic file manager like Thunar or PCManFM or using browsing the Network or Samba Shares links in the Network place from Dolphin the share just doesn't show up.
    The fact that I can access the Share directly, it's just not visible when browsing, makes me think samba is working properly but I'm not sure how to further diagnose the issue and I'd really like to solve the problem and learn something rather than just load up a previous image of the PC before the systemd migration.
    Commands from client
    my /etc/hosts...
    cat /etc/hosts
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost dads-pc
    192.168.10.131 dads-pc.HOMESERVER dads-pc
    192.168.10.100 Serverbox.HOMESERVER Serverbox
    Master Browser search, this does look odd, I don't use it on any machine so where the heck did the .255 at the end of the IP address come from? 
    $ nmblookup -M HOMESERVER
    querying HOMESERVER on 192.168.10.255
    name_query failed to find name HOMESERVER#1d
    I can sign in fine...
    $ smbclient -L Serverbox
    Enter dad's password:
    Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
    Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Sharename Type Comment
    IPC$ IPC IPC Service (Samba Server)
    Server Disk The Family Network Share Files
    ParentalMovies Disk Movie folders for Mom and Dad
    Movies Disk Family Movie folders
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Server Comment
    SERVERBOX Samba Server
    Workgroup Master
    HOMESERVER SERVERBOX
    I can sign in as one of the media players fine...
    $ smbclient -L Serverbox -U lr_mediaplayer
    Enter lr_mediaplayer's password:
    Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
    Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Sharename Type Comment
    IPC$ IPC IPC Service (Samba Server)
    Server Disk The Family Network Share Files
    ParentalMovies Disk Movie folders for Mom and Dad
    Movies Disk Family Movie folders
    Domain=[HOMESERVER] OS=[Unix] Server=[Samba 3.6.9]
    Server Comment
    SERVERBOX Samba Server
    Workgroup Master
    HOMESERVER SERVERBOX
    Commands from Server
    Both smbd and nmbd services appear functional...
    $ systemctl status smbd nmbd
    smbd.service - Samba SMB/CIFS server
    Loaded: loaded (/etc/systemd/system/smbd.service; enabled)
    Active: active (running) since Mon, 2012-11-19 17:48:07 CST; 2h 9min ago
    Main PID: 534 (smbd)
    CGroup: name=systemd:/system/smbd.service
    ├ 534 /usr/sbin/smbd -F
    ├ 551 /usr/sbin/smbd -F
    └ 559 /usr/sbin/smbd -F
    nmbd.service - Samba NetBIOS name server
    Loaded: loaded (/etc/systemd/system/nmbd.service; enabled)
    Active: active (running) since Mon, 2012-11-19 17:48:07 CST; 2h 9min ago
    Main PID: 536 (nmbd)
    CGroup: name=systemd:/system/nmbd.service
    └ 536 /usr/sbin/nmbd -F
    The global portion of my /etc/samba/smb.conf file...
    [global]
    workgroup = HOMESERVER
    server string = Samba Server
    log file = /var/log/samba/%m.log
    max log size = 50
    dns proxy = No
    valid users = dad, lisa, administrator,lr_mediaplayer, xoom, br_mediaplayer
    read list = dad, lisa, administrator, lr_mediaplayer, xoom, br_mediaplayer
    write list = dad, lisa, administrator
    load printers = no
    write cache size = 262144
    large readwrite = yes
    # These next lines have been added after systemd conversion based on web research, none of which has helped.
    log level = 10
    name resolve order = host bcast lmhosts wins
    interfaces = eth0 192.168.10.100/19
    preferred master = yes
    Testing of the /etc/samba/smb.conf file, no errors ...
    $ testparm smb.conf
    Load smb config files from smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[Movies]"
    Processing section "[ParentalMovies]"
    Processing section "[Server]"
    Loaded services file OK.
    WARNING: You have some share names that are longer than 12 characters.
    These may not be accessible to some older clients.
    (Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
    Server role: ROLE_STANDALONE
    My network config file for [email protected]...
    $ cat /etc/network.d/eth0
    CONNECTION='ethernet'
    DESCRIPTION='A basic static ethernet connection using iproute'
    INTERFACE='eth0'
    IP='static'
    ADDR='192.168.10.100'
    #ROUTES=('192.168.0.0/24 via 192.168.1.2')
    GATEWAY='192.168.10.1'
    DNS=('76.85.229.110' '76.85.229.111')
    Master Browser search and again with the rogue .255 ending for the IP address being broadcast.
    $ nmblookup -M HOMESERVER
    INFO: Current debug levels:
    all: 10
    tdb: 10
    printdrivers: 10
    lanman: 10
    smb: 10
    rpc_parse: 10
    rpc_srv: 10
    rpc_cli: 10
    passdb: 10
    sam: 10
    auth: 10
    winbind: 10
    vfs: 10
    idmap: 10
    quota: 10
    acls: 10
    locking: 10
    msdfs: 10
    dmapi: 10
    registry: 10
    doing parameter name resolve order = host bcast lmhosts wins
    doing parameter log file = /var/log/samba/%m.log
    doing parameter max log size = 50
    doing parameter dns proxy = No
    doing parameter valid users = dad, lisa, administrator,lr_mediaplayer, xoom, br_mediaplayer
    doing parameter read list = dad, lisa, administrator, lr_mediaplayer, xoom, br_mediaplayer
    doing parameter write list = dad, lisa, administrator
    doing parameter load printers = no
    doing parameter write cache size = 262144
    doing parameter large readwrite = yes
    doing parameter preferred master = yes
    pm_process() returned Yes
    lp_servicenumber: couldn't find homes
    set_server_role: role = ROLE_STANDALONE
    Substituting charset 'UTF-8' for LOCALE
    added interface eth0 ip=fe80::3285:a9ff:fe8e:90f7%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
    added interface eth0 ip=192.168.10.100 bcast=192.168.10.255 netmask=255.255.255.0
    bind succeeded on port 0
    Socket options:
    SO_KEEPALIVE = 0
    SO_REUSEADDR = 1
    SO_BROADCAST = 1
    Could not test socket option TCP_NODELAY.
    Could not test socket option TCP_KEEPCNT.
    Could not test socket option TCP_KEEPIDLE.
    Could not test socket option TCP_KEEPINTVL.
    IPTOS_LOWDELAY = 0
    IPTOS_THROUGHPUT = 0
    SO_SNDBUF = 212992
    SO_RCVBUF = 212992
    SO_SNDLOWAT = 1
    SO_RCVLOWAT = 1
    SO_SNDTIMEO = 0
    SO_RCVTIMEO = 0
    Could not test socket option TCP_QUICKACK.
    Socket opened.
    lang_tdb_init: /usr/lib/samba/en_US.UTF-8.msg: No such file or directory
    querying HOMESERVER on 192.168.10.255
    bind succeeded on port 0
    Socket options:
    SO_KEEPALIVE = 0
    SO_REUSEADDR = 1
    SO_BROADCAST = 1
    Could not test socket option TCP_NODELAY.
    Could not test socket option TCP_KEEPCNT.
    Could not test socket option TCP_KEEPIDLE.
    Could not test socket option TCP_KEEPINTVL.
    IPTOS_LOWDELAY = 0
    IPTOS_THROUGHPUT = 0
    SO_SNDBUF = 212992
    SO_RCVBUF = 212992
    SO_SNDLOWAT = 1
    SO_RCVLOWAT = 1
    SO_SNDTIMEO = 0
    SO_RCVTIMEO = 0
    Could not test socket option TCP_QUICKACK.
    parse_nmb: packet id = 9235
    nmb packet from 192.168.10.100(35072) header: id=9235 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=HOMESERVER<1d> rr_type=32 rr_class=1 ttl=259200
    answers 0 char .....d hex 0000C0A80A64
    Got a positive name query response from 192.168.10.100 ( 192.168.10.100 )
    192.168.10.100 HOMESERVER<1d>
    Thank you.
    Last edited by imatechguy (2012-11-20 03:16:39)

    ChojinDSL wrote:Do you have a firewall running on that server?
    Are your clients also using systemd?
    Yes I do have a firewall, iptables, and it's the same configuration from before the migration to systemd.  Also note that I can access the shares when explicitly defining the path whether that's in a File Manager, cli or other so access isn't being blocked.  For lack of a better explanation the whole thing gives the appearance that although the Share is active it's just not broadcasting it's existence like it should be.
    I have two PC's, both Arch, one with Openbox and one running KDE that I have migrated to systemd.  Both can access the Share when the path is explicitly defined but don't see it when trying to just browse for the the Share.  I have a Xoom tablet, running Android Jelly Bean, that exhibits the same behavior.  I also have two media players, one an older WD LiveTV Plus model the other a newer WD LiveTV model, neither of which can see the share and browsing is the only option for those devices.  So I've got a pretty good assortment of devices and operating systems that could see the share when browsing previously but can not see the same share by browsing since the migration to systemd on the file server.
    Thank you.

  • How can I migrate everything from one account to another on same computer?

    How can I migrate everything from one account to another on same computer?

    Transferring files from one User Account to another

  • Not sure why but when i open a new tab my top sites are no longer showing not even a toggle switch it's just one big blank white page? how can i correct this ?

    i did have my most visited sites in the pin ups yet for some reason or other not sure why but not when i open a new tab all there is, is one big blank white page. Not a toggle switch not even blank pin up thumb nails. Any help would be greatly appreciated. thank you

    See this old question:
    *[https://support.mozilla.org/en-US/questions/982051#answer-517878 /questions/982051#answer-517878]

  • How do I consolidate all of my events into one big group of photos so I can see them all?

    The title says it all. How do I consolidate all of my events into one big group of photos so I can see them all? Instead a bunch of events.

    drag them together
    Or click on Photo in the source pane on the left and under the view menu uncheck show event titles
    LN

  • Large form set: Deliver in portfolio, or build one big PDF?

    Greetings, all--
    I am using LiveCycle to recreate a set of 24 or so forms that were originally built in Word. My users download the forms, complete them on their desktops, then print and submit the forms in hard copy. Most users are not tech savvy. The forms must be very easy for them to access, open, navigate, and print. Most also function within severe hardware limitations (slow Internet connections, old machines, etc.). On my end, I have a rusty at best command of scripting and am new to LiveCycle. I know what I want my forms to do but am very slow at figuring out how to make those things happen.
    I am working first to decide on how to deliver these forms. It looks like I will have to build one big PDF to get the form behavior I want (autopopulation of like fields, field calculation, etc.). Does that sound right? Or is it possible to set up each file as a separate PDF and package them in a portfolio and still get cross-file behavior like auto field population, sequential page numbering, etc.?
    Any feedback on setting up big set of files would be much appreciated.
    Thank you,
    Virginia

    Hi,
    For what it is worth...
    First of all consider what version of Acrobat/Reader the user population will have. Improved functionality comes with each new version. So you might end up including features in your form that won't work on the users' PC. In LC Designer 8.2 you are able to define the target version (in File/Form Properties/Defaults) and then check in the Warnings tab to make sure that the form will run OK in that version (eg no warnings);
    If people don't have to save the form (or the data that they have typed in) then you don't have to worry about Reader Enabling the form. This gives the ability to users with Reader to save that (Reader Enabled) form. Useful if they are filling in the same form regurarly.
    The implementation of Portfolios in version 9 is very good. However if users have older versions of Acrobat/Reader then it will revert to the previous implementation of Packages (less graphical) and users will get warning messages.
    Keeping the forms separate will help performance; but may make it more difficult for users to locate the correct form. Creating one large form in LC is possible (and will make it very easy to share values across the 24 forms becuase they will be in the one XFA PDF); however if each form has multiple pages and there is dynamic hide/visible script then performance may be a problem. If the form is static (eg does not grow) then performance will not be as badly affected with the single form approach.
    There is a work around to get forms to talk to each other (whether in a portfolio or not), but it requires a good bit of scripting and a cool head.
    In summary, if you are working with static forms that will not grow (fields not extending to accomodate overflowing text) then I would go with one form.
    You can always develop the single form for the time being and then at a later stage break it out into 24 separate forms.
    Good luck,
    Niall

  • Many small purchases, or one big one?

    Hello, I'm actually really new to the credit world and just got two cards, a Chase Freedom and a Discover IT for Students. I want to get started building my credit and increasing my credit limit. I realize it's a slow process, (and maybe getting two cards at once wasn't the best idea) but I want to make sure I don't needlessly slow down this process.
    My main question is, are many small purchases in a month better than just one big one, or does it even matter?For Example…
    Chase Freedom CL: $1200
    Discover IT CL: $1000I was hoping to use these cards to make payments on my tuition. If every month I only spend a $200 payment from my Discover card, is that better or worse than just buying 20 items at $10 apiece?Again though, the ultimate goal is to increase my CL and CS.

    Great cards to start on. I wish I had gotten two in college. I just graduated and got my second. Like others have said, the amount of charges doesn't matter as long as you keep your overall and individual util at or under 30% which you would be doing at the charges you're describing. if need be, don't shy away from making multiple payments in a month to keep your util low while using the cards as much as you like (responsibly, and within your need/ability of course) while earning the rewards. Enjoy building. You're definitely off to a good start!

  • Variable number of two dimensional arrays into one big array

    I have a variable number of two dimensional arrays.
    The first dimension is variable, the second dimension is always 7.
    i.e.:
    Object[][] array0 = {
    {"tim", "sanchez", 34, 175.5, "bla", "blub", "[email protected]"},
    {"alice", "smith", 42, 160.0, "la", "bub", "[email protected]"},
    Object[][] array1 = {
    {"john", "sdfs", 34, 15.5, "a", "bl", "[email protected]"},
    {"joe", "smith", 42, 16.0, "a", "bub", "[email protected]"},
    Object[][] arrayi = ...I'm generating these arrays with a for-loop:
         for (int i = 0; i < filter.length; i++) {
              MyClass c = new MyClass(filter);
              //data = c.getData();
    Where "filter" is another array which is filled with information that tells "MyClass" how to fill the arrays.
    "getData()" gives back one of the i number of arrays.
    Now I just need to have everything in one big two dimensional array.
    i.e.:Object[][] arrayComplete = {
    {"tim", "sanchez", 34, 175.5, "bla", "blub", "[email protected]"},
    {"alice", "smith", 42, 160.0, "la", "bub", "[email protected]"},
    {"john", "sdfs", 34, 15.5, "a", "bl", "[email protected]"},
    {"joe", "smith", 42, 16.0, "a", "bub", "[email protected]"},
    Any idea on how to accomplish this? It's blowing my mind right now.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Just brainstorming here:
    Why not put your actual data in a class and store that in a LinkedList (so you know the total number of elements for your multi-dimensional array). Then initalize your multi-dimensional array and populate it? Haven't tested the following, but thinking something along the lines of
    public class MyData {
         //data here
         public Object[] toArray() {
              //something similar to this
              return new Object[] = {"tim", "sanchez", 34, 175.5, "bla", "blub", "[email protected]"};
    LinkedList<MyData> data = new LinkedList<MyData>();
    data.add(mydata1);
    //however many times you need
    Object[][] arrayComplete = new Object[data.size()][7];
    for(int i = 0; i < data.size(); i++) {
         arrayComplete[i] = data.removeFirst().toArray();
    }Another option for knowing how many rows you would need might be using something like:
    int rows = 0;
    rows += array1.length;
    rows += array2.length;
    //etc...But is not entirely useful if you don't know how many variable arrays you have (although reflections might help if the name of the array variable is incremented systematically, someone told me earlier to avoid reflections since it could make debugging a LOT more difficult).
    Edited by: bogdana on Apr 1, 2010 10:38 AM

  • One Big Ol' Report

    Ok Here Goes
    Here's my scenario - I have built several separate reports, and all have conditions on them so they only show based on a variable. They are matrix reports:
    EX:
    --Report 1 where PRODUCT CATEGORY = 'SHIRTS'
    (SHIRTS)
    PRODUCT          ATT1   ATT2   ATT3    ATT4      
    Cotton T-Shirt   Blue   Large  Cotton  Pre-Shrunk
    --Report 2 where PRODUCT CATEGORY = 'SHOES'
    (SHOES)
    PRODUCT     PRODUCT SUBCAT     ATT1      ATT2     ATT3      
    Boots       INDUSTRIAL         12 Hole    Y        NI have a list (shown as tabs) across the top of the page and the user can view any of the reports for that category. The list just sets the category variable. I did this because each report has a different set of descriptive criteria to show. Shoes show the number of eyelets and whether they are designated as safety shoes, but that wouldn't make sense in the context of shirts.
    My question is not about how to do the matrix reports, but rather how to get all of these report sections into one page and allow the entire set of pages to be downloaded to a PDF. Currently each small report can be downloaded to a PDF, but not the entire thing. Problem is I really can't do a union in the query because the number of columns I need are different, and the titles are dynamic.
    So does anyone have an idea (short of using Oracle Reports) to get multiple separate report regions to print to one big PDF?
    - 405 -

    Why do you hide yourself behind a number? That's actually not nice and fair. And then,
    you expect the others to help you with such a big thing.
    I don't know much about .pdf, allthough I think it would work there as well - with some
    HTML => XHTML => XSLT Stylesheet => XLS-FO to => PDF... conversions using FOP.
    However, to get this into an excel file would be a piece of cake.
    Denes Kubicek

  • More small datafiles or one big datafile for tablespace

    Hello,
    I would like to create a new tablespace (about 4 GB). Could someone if it's better to create one big datafile or create 4 datafiles with 1 GB each?
    Thank you.

    It depends. Most of the time, it's going to come down to personal preference.
    If you have multiple data files, will you be able to spread them over multiple physical devices? Or do you have a disk subsystem that virtualizes many physical devices and spreads the data files across physical drives (i.e. a SAN)?
    How big is the database going to get? You wouldn't want to have a 1 TB database with 1000 1 GB files, that would be a monster to manage. You probably wouldn't want a 250 GB database with a single data file either, because it would take forever to recover the data file from tape if there was a single block corruption.
    Is there a data files size that fits comfortably in whatever size mount points you have? If you get 10 GB chunks of SAN at a time, for example, you would probably want data files that were an integer factor of that (i.e. 1, 2, or 5 GB) so that you can add similarly sized data files without wasting space and so that you can move files to a new mountpoint without worrying about whether they'll all fit.
    Does your OS support files of an appropriate size? I know Windows had problems a while ago with files > 2 GB (at least when files extended beyond 2 GB).
    In the end though, this is one of those things that probably doesn't matter too much within reason.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Many little datafiles or one big datafile?

    Hi all
    I have a database which grows every day. I have 10 datafiles with name users01.db , users02.dbf and etc.
    And all these datafiles have 1.5Gb size. Each time every datafile reachs it's 1.5Gb size, I add new datafile. Is it correct strategy? Or I must add only extents to last datafile and allow it to grow?
    Thanks...

    Hi,
    In my point of view, it is a good approach if "table striping" is used, where data is spread across more than one device. Otherwise, if you have just one disk, then I don't see advantages or disadvantages. In addition, take a look at [url http://forums.oracle.com/forums/thread.jspa?messageID=1041074&#1041074]more small datafiles or one big datafile for tablespace thread.
    Cheers
    Legatti

  • How can I divide one big long track into several smaller ones?

    I have many mp3"s I imported or downloaded in my Library of lectures, sermons and speeches.
    How can I divide one big long track into several smaller ones?
    Any input would be great.

    lakergrl wrote:
    How do I split one very long track into several tracks (audio journal split into each day)
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportsections
    (Let the page FULLY load. The link to your answer is at the top of your screen)

Maybe you are looking for

  • How do I change the order of the icons on the top right hand corner?

    Hi, I was wondering how to change the order for the icons at the top of the screen. I selected the option of not showing the battery status bar in the energy saver section. However, when I decided to add it back to the top, the order changed. This ma

  • Dynamic Fill in PDF Files

    Hello, i have a PHP Site where a user can type his personal data. When he click on the Button "Send", a PDF form open and fill the data into the form. The static PDF works with FDF, but the dynamic PDF with XFDF doesn´t work. Here my XFDF: <?php $pdf

  • How to setup security to view deleted sales order deletion information

    User is going into VA03. entering a sales order number but instead of hitting enter, is going it to the top menu, selecting Environment and then changes.  When the screen appears, they are selecting time of change and getting not authorized. When I l

  • Error Joining Airport Network

    My new Mac will not go online at home - although it will join other networks elsewhere. There are 3 other Macs online at home and when I set up my new mac I transferred all the settings over so surely they should be the same and therefore able to acc

  • Can you share playlists on iTunes with other computers?

    I recently started to share my iTunes library across all my home computers. I have my main libray shared and can view all the music entries. Now I wanted to see if I could share playlists already compiled among these computers.