How would you have an event recur weekly? monthly? Yearly?

How would you have an event recur weekly? monthly? Yearly? I want to be able to insert an event for a weekly occurring meeting, however.... I don't want to have to insert it for every occurrence myself.

Hi,
If you are using 10g, this is trivial using dbms_scheduler
e.g.
grant create job to user_that_runs_insert ;
Then as the user do
BEGIN
dbms_scheduler.create_job(
job_name => 'weekly_meeting',
job_type => 'STORED_PROCEDURE',
job_action => 'weekly_proc'
repeat_interval => 'FREQ=WEEKLY;BYDAY=SUNDAY;BYHOUR=20;BYMINUTE=0;BYSECOND=0',
comments => 'job runs every Sunday at 8pm',
enabled=>true);
END;
Instead of weekly, you can just as easily to monthly or yearly.
If you don't want anything to run but you just want a list of dates that is on a weekly schedule you can use dbms_scheduler.evaluate_calendar_string in a loop to figure out which dates fall on a certain pattern. Docs and an example is here
http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sched.htm#i1009923
Hope this helps,
Ravi.

Similar Messages

  • If you lose your ipod touch and you have a warranty how much would you have to pay to get a new one?

    if you lose your ipod touch and you have a warranty how much would you have to pay to get a new one?

    Full price. Warranty covers only manufacturing defects, not you losing the iPod.
    Perhaps homeowners insurance of your credit card plan, if you used a credit card to purchase the original iPod, might cover all or part of the cost.
    Regards.

  • How would you realize a "blinking"-Effect

    The question narrows down to : Which is the best solution to trigger each 0,5 seconds an event (on the JavaFX thread) ?
    I could do this with a TimelineAnimation or with a Task<Void>, the problem withthe Task is that I have to update the UI with Platform.runLater() each time which is an impact on the overall perfomance. On the otherhand the TimerLineAnimation is useful to update a property and I do not think that it is the approriate method to realize a blink effect.
    How would you do this ?
    E.G. I have a circle. This shape is supposed to change its Color every 0,5 seconds (And there can be many of this circles..)

    I would use some kind of Transition, not because of any performance consideration but merely because it will keep your code cleaner. Used properly, a Task with Platform.runLater(...) to update the UI will be as efficient as anything else, but it can be a bit tricky to get it right (and using Transitions, you delegate the job of getting the code right to the JavaFX team, who are probably better at this kind of thing than either you or I).
    The Timeline will actually animate the transition between property values. Almost anything you want to do can be expressed as a change in property; your example of changing the color of a Circle simply involves changing the value of the fillProperty. So using a Timeline will fade one color into another.
    If you want a "traditional" blink, you could two PauseTransitions with the onFinished event set to change the color.
    This compares the two approaches:
    import javafx.animation.Animation;
    import javafx.animation.KeyFrame;
    import javafx.animation.KeyValue;
    import javafx.animation.PauseTransition;
    import javafx.animation.SequentialTransition;
    import javafx.animation.Timeline;
    import javafx.application.Application;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.layout.HBox;
    import javafx.scene.paint.Color;
    import javafx.scene.paint.Paint;
    import javafx.scene.shape.Circle;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    public class BlinkingCircles extends Application {
         @Override
         public void start(Stage primaryStage) {
           final HBox root = new HBox();
              final Group faders = new Group();
              final Color blue = new Color(0, 0, 1.0, 0.3);
              final Color red = new Color(1.0, 0, 0, 0.3);
              final ObjectProperty<Paint> colorFader = new SimpleObjectProperty<Paint>(blue);
              for (int i=0; i<20; i++) {
                faders.getChildren().add(createCircle(colorFader));
              KeyValue blueKV = new KeyValue(colorFader, blue);
              KeyValue redKV = new KeyValue(colorFader, red);
              KeyFrame blueKF = new KeyFrame(new Duration(1000), blueKV);
              KeyFrame redKF = new KeyFrame(new Duration(500), redKV);
              Timeline fadeTimeline = new Timeline(redKF, blueKF);
              fadeTimeline.setCycleCount(Animation.INDEFINITE);
              fadeTimeline.play();
              final Group blinkers = new Group();
              final ObjectProperty<Paint> colorBlinker = new SimpleObjectProperty<Paint>(blue);
              for (int i=0; i<20; i++) {
                blinkers.getChildren().add(createCircle(colorBlinker));
              PauseTransition changeToRed = createPauseTransition(colorBlinker, red);
              PauseTransition changeToBlue = createPauseTransition(colorBlinker, blue);
              SequentialTransition blinkTransition = new SequentialTransition(changeToRed, changeToBlue);
              blinkTransition.setCycleCount(Animation.INDEFINITE);
              blinkTransition.play();
              root.getChildren().addAll(faders, blinkers);
              Scene scene = new Scene(root, 640, 400);
              primaryStage.setScene(scene);
              primaryStage.show();
         private Circle createCircle(ObjectProperty<Paint> color) {
           Circle c = new Circle(Math.random()*300, Math.random()*300, 20);
           c.fillProperty().bind(color);
           c.setStroke(Color.BLACK);
           return c ;
         private PauseTransition createPauseTransition(final ObjectProperty<Paint> colorBlinker, final Color color) {
           PauseTransition changeColor = new PauseTransition(new Duration(500));
              changeColor.setOnFinished(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent evt) {
                  colorBlinker.set(color);
              return changeColor ;
         public static void main(String[] args) {
              launch(args);
    }

  • How would you detect a ground like this:

    I have made racing games in the past, but never a side scrolling type.
    Im trying to make one similar to this: http://www.gamesfreak.net/games/Cyclo-Maniacs_3730.html
    But how would you keep the player on the ground? well not stuck to the ground because we would want the player to be able to use things like ramps.
    Would it be a hit test? hmmmmmmmm Any ideas? anyone.

    Oh i apoligize. I pressumed because of the popularity of box2D you meant that. Well the code I have so far does a OK job for physics. Allthough i made it in intensions of a platform/side scroller. But its ok. I guess it could possibly be  modified for a car or something.
    Here is what i have so far:
    package
              import flash.display.MovieClip;
              import flash.events.Event;
              import flash.events.MouseEvent;
              import flash.events.KeyboardEvent;
              import flash.geom.Point;
              public class DocumentMain extends MovieClip
                        public var _startMarker:StartMarker = new StartMarker;
                        public var _Player:Player;
                        public var _Boundaries:Boundaries;
                        public var _Wall:Wall;
                        public var _Floor:Floor;
                        public var _LButton:LButton = new LButton;
                        public var _RButton:RButton = new RButton;
                        public var _UButton:UButton = new UButton;
                        public var _DButton:DButton = new DButton;
                        private var _vy:Number;
                        private var _vx:Number;
                        public function DocumentMain()
                                  stage.focus = stage;
                                  //stage.addChild(_startMarker);
                                  //_startMarker.x = 300;
                                  //_startMarker.y = 300;
                                  stage.addChild(_LButton);
                                  _LButton.x = 80;
                                  _LButton.y = 600;
                                  _LButton.height = 75;
                                  _LButton.width = 75;
                                  _LButton.addEventListener(MouseEvent.MOUSE_DOWN, LMouseDown);
                                  _LButton.addEventListener(MouseEvent.MOUSE_UP, LMouseUp);
                                  stage.addChild(_RButton);
                                  _RButton.x = 210;
                                  _RButton.y = 600;
                                  _RButton.height = 75;
                                  _RButton.width = 75;
                                  _RButton.addEventListener(MouseEvent.MOUSE_DOWN, RMouseDown);
                                  _RButton.addEventListener(MouseEvent.MOUSE_UP, RMouseUp);
                                  stage.addChild(_DButton);
                                  _DButton.x = 140;
                                  _DButton.y = 650;
                                  _DButton.height = 75;
                                  _DButton.width = 75;
                                  //_DButton.addEventListener(MouseEvent.MOUSE_DOWN, DMouseDown);
                                  //_DButton.addEventListener(MouseEvent.MOUSE_UP, DMouseUp);
                                  stage.addChild(_UButton);
                                  _UButton.x = 140;
                                  _UButton.y = 550;
                                  _UButton.height = 75;
                                  _UButton.width = 75;
                                  _UButton.addEventListener(MouseEvent.MOUSE_DOWN, UpMouseDown);
                                  _UButton.addEventListener(MouseEvent.MOUSE_UP, UpMouseUp);
                                  _startMarker.visible = true;
                                  _startMarker.x = 500;
                                  _startMarker.y = 300;
                                  _vx = 0;
                                  _vy = 0;
                                  _Player.addEventListener(MouseEvent.MOUSE_DOWN, JumpDownHandler);
                                  _Player.addEventListener(MouseEvent.MOUSE_UP, JumpUpHandler);
                                  this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
                                  stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
                                  stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
                        private function JumpDownHandler(MouseEvent):void
                                  _vy = -20;
                        private function JumpUpHandler(MouseEvent):void
                                  _vy = 0;
                        private function LMouseDown(MouseEvent):void
                                  _vx = -20;
                        private function LMouseUp(MouseEvent):void
                                  trace("LMouseUp");
                                  _vx = 0;
                        private function RMouseUp(MouseEvent):void
                                  _vx = 0;
                        private function RMouseDown(MouseEvent):void
                                  trace("RMouseDown");
                                  _vx = 20;
                        private function UpMouseDown(MouseEvent):void
                                  _vy = -20;
                        private function UpMouseUp(MouseEvent):void
                                  trace("UMouseUp");
                                  //_vx = 0;
                        private function enterFrameHandler(e:Event):void
                                  _vy +=  2;
                                  //_vx += 20;
                                  _Player.x += + _vx;
                                  _Player.y += + _vy;
                                  processAllTheCollisions();
                                  scrollTheStage();
                        private function processAllTheCollisions():void
                                  if (_vy > 0)
                                            if (_Player.y > 500)
                                                      _Player.x = _startMarker.x;
                                                      _Player.y = _startMarker.y;
                                                      _Boundaries.x = 0;
                                                      _Boundaries.y = 0;
                                                      _vy = 0;
                                            else
                                                      var collision:Boolean = false;
                                                      if (_Boundaries.hitTestPoint(_Player.x,_Player.y,true))
                                                                collision = true;
                                                      if (collision)
                                                                while (collision)
                                                                          _Player.y -=  0.1;
                                                                          collision = false;
                                                                          if (_Boundaries.hitTestPoint(_Player.x, _Player.y, true))
                                                                                    collision = true;
                                                                _vy = 0;
                        private function scrollTheStage():void
                                  _Boundaries.x += (stage.stageWidth * 0.5) - _Player.x;
                                  _Player.x = stage.stageWidth * 0.5;
                                  //_Boundaries.y += (stage.stage.stageHeight * 0.5) - _Player.y;
                                  //_Player.y = stage.stageHeight * 0.5;
                        private function keyDownHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37 :
                                            _vx = -20;
                                            break;
                                            case 38 :
                                            _vy = -20;
                                            break;
                                            case 39:
                                            _vx = 20;
                                            break;
                                            default:
                        private function keyUpHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37 :
                                            case 39 :
                                            _vx = 0;
                                            break;
                                            default:

  • In Security, clicking on the "Saved Password" button displays your current saved password for each site. It does not allow you to change a password. How would you do that?

    In Security, clicking on the "Saved Password" button displays your current saved password for each site. It only allows you to view and delete site passwords. It does not allow you to change a password. How would you do that?

    If you enter a new password Firefox should offer to change the password.
    *You may not need to delete the old password. Try "Refreshing" the page, entering the site again, you may need to let Firefox fill in the old password, then enter the new password, and Firefox should ask to save the new password. See:
    **http://kb.mozillazine.org/Deleting_autocomplete_entries
    *If you delete the old password, you may need to "Refresh" the site after deleting the old password.
    If you want to delete the password that has been saved do the following:
    #In the Tools menu select Options to open the options window
    #Go to the Security panel
    #Click the "Saved Passwords" button to open the passwords manager
    #Select the site in the list, then click Remove
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape 8.3.0 (''Note: this is a very old version and installing the current version may not delete it or overwrite it. To avoid possible problems with having 2 versions installed on your system, you may want to remove the old version in Windows Control Panel > Add or Remove Programs before installing the new version'').
    *Shockwave Flash 10.3 r181 (''this may be current but a new version was released on 2011-06-14 with a ".26" after the "181". You can use the Plugin Check below and/or look in Add-ons > Plugins for the version of Shockwave Flash that you have installed. The newest version will be shown in Add-ons > Plugins as "Shockwave Flash 10.3.181.26"'').
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • How would YOU retype these old XM08 types for use in an ABAP OO method?

    The XM08 function group has the following type declarations:
    TYPES: BEGIN OF mmcr_drseg_co.
            INCLUDE STRUCTURE cobl_mrm_d.
    TYPES: cr LIKE drseg_cr    OCCURS 0,
           unpl_refwr TYPE refwr,
           END OF mmcr_drseg_co.
    TYPES: mmcr_tdrseg TYPE mmcr_drseg OCCURS 0,
    TYPES: BEGIN OF mmcr_drseg.
            INCLUDE STRUCTURE drseg.
    TYPES: cr LIKE drseg_cr OCCURS 0,
           co TYPE mmcr_drseg_co OCCURS 0,
           sm LIKE drseg_sm OCCURS 0,
           charact TYPE rbcharact_instance OCCURS 3,
                                           "instances of characteristics
           uebgmat  TYPE matnr,
           uebrblgp TYPE rblgp,
           selkz_db TYPE selkz,
           rblgp_old TYPE rblgp,           "rblgp before aggregation
           END OF mmcr_drseg.
    How would YOU redeclare these types so that they work in an ABAP Objects class?  
    Some of the "fixes" are easy, like replacing "LIKE" with "TYPE:".
    But what about the "INCLUDE STRUCTURE" and the "occurs 0" specifications?
    The reason I'm asking this is that I have to call a method from ZXM08U16 and I'd like to be able to pass this method exactly what XXM08U16 gets from SAP, i.e. the table E_TDRSEG of type  MMCR_TDRSEG

    David,
    I wonder it can be directly in ABAP (I would like to hear opinions from others as well!), I needed to use Data Dictionary as well:
    TYPES: BEGIN OF mmcr_drseg_co.
            INCLUDE STRUCTURE cobl_mrm_d.
    TYPES: cr TYPE z_tt_drseg_cr,
           unpl_refwr TYPE refwr,
           END OF mmcr_drseg_co.
    z_tt_drseg_cr is a table type created in SE11, based on structure drseg_cr.
    the way to create internal table and work area, based on the above:
    DATA : gt_... TYPE TABLE OF mmcr_drseg_co.
    DATA : gw_... TYPE mmcr_drseg_co.
    hope this helps some
    ec
    UPDATE : Rich is right, it is possible to do it only in ABAP with the DEFAULT KEY addition.

  • How do you have a file automatically open in mail, like a Constant Contact email?

    How do you have a file automatically open in mail, like a Constant Contact email?
    Thanks,
    Lauren

    If there is a way to automatically open an attached file in a Mail item, it is not one that I would use, because I want to stay in control of my Mac!  Who is it from, whats in it and so on... To me bad idea but then the choice is yours.

  • How would you write a "wildcard" in a filefilter?

    How would you go about to have a wildcard instead of the "*" in the following filefilter;
              File[] files = new File("./resultat/resultat_" + "*" + "_" + index[0]).listFiles (new FileFilter () {
                    public boolean accept (File file) {
                        return ! file.isDirectory ();
              });All help appriciated
    - Karl XII

    Shouldn't "a*" accept all files that begins with "a" and ends with whatever?No. "*" in regexp is a not a wildcard match. Instead it matches one or more instances of the preceeding
    value.
    Therefore "a*" will match "a", "aa", "aaa", "aaaa" etc but will not match anything which does not end in
    an "a".
    The following might help you out. (not the most elegent expression but it will do
    import java.util.regex.*;
    public class RegExp{
      public static void main(String[] args) {
      Pattern p = Pattern.compile("a*b");     
      Matcher m = p.matcher("aaaab");     
      System.out.println(m.matches());                    
      // interesting bit here
      // match one or more occurances of any characters in the ASCII charset  (the \\p{ASCII}* bit   
      p = Pattern.compile("hello_\\p{ASCII}*_b");     
      m = p.matcher("hello_wibble_b");     
      System.out.println(m.matches());
    }

  • How would you pass more than 255 args?

    I have an SFTP program that currently is only passed a single file. I am modifying it so that it will loop though an array of files to simulate an mput command. Originally I was just going to call the program with each file to be transferred as an argument but noticed the 255 argument limit. I am looking at potentially having 1500 - 2000 files to transfer at one time. I am just looking for advice on how this should be designed. One idea that was forwarded to me was to just create a listing of the files on the server and use that list file as my argument. Would this be the best approach for this issue?

    sdhalepaska wrote:
    georgemc wrote:
    sdhalepaska wrote:
    georgemc wrote:
    sdhalepaska wrote:
    georgemc wrote:
    I see no reason why you need an argument for every file.I would not necessarily need one for every file. Prior to our needing to use this for multiple files, it was easy enough to pass in one file as an argument. That is my question, how would you try to pass in a long list of files?Let's establish what you are concerned about. The 255 argument limit is on method signatures. From what you're saying here, you're talking about arguments being passed into your application from, say, the shell. Am I right?Correct, please see my clarified post. From what I have tested, the 255 argument limit appears to exist even for arguments passed to main.Ah, but arguments passed to main from the command line are passed into main as a single array of Strings, no matter how many of them there are. I have no idea what the limit on those is, but an array can hold millions of elements. I expect your shell will moan about that many, though.
    As I see it, you have a few choices. Unless these files are all in different, arbitrary directories, you can specify a list of directories for your app to search. Or you can pass them all in one at a time, and see how you go. Or you can list them in a text file, pass that to your app and have it work them out. Or write a script that invokes your app multiple times. What you don't need, is a method that takes each file as an argument.Thank you for walking me through this. Would you mind telling me which way you would lean if you were designing this? The files will all be in a single directory on the server and I would not like to invoke the app multiple times as it creates a connection during each invocation. They're all in the single directory. Ok, are all the files in that directory to be transferred? If so, I'd just pass the directory name to the app, and have it iterate over all the files. If it's only to be certain ones, how do you know which ones? Is there some regex or filtering you can do on the command line?
    If you are interested, the 255 argument limit for main that I tested was from this article:
    [http://www.javaspecialists.eu/archive/Issue059.html|http://www.javaspecialists.eu/archive/Issue059.html]
    It does die at 255 using Java 1.5.Like I said, arguments to a method are thus limited. But the args passed to an app are passed to main as one argument - an array. In short, that article is not relevant to your problem.

  • How would you go about saving an online image locally?

    Say if you knew the url such as http://www.yahoo.com/img.jpg
    How would you save this locally?

    Read the answer in your previous posting:
    http://forum.java.sun.com/thread.jspa?threadID=772451
    Use the file as an InputStream to read the data and then use an OutputStream to write the file.
    The logic is the same as reading and writing a file from disk once you have the InputStream.

  • How would you split a 10 GB root partition? Would you?

    The system seems to be booting a little slow lately (been using Arch for more than a year now) and I was thinking of splitting the root partition to improve performance.
    Right now the entire OS is on a single partition. I don't have a /home partition but I can see it's usefulness:
    - files on /home are, in general, more frequently written (browser cache especially), which means less fragmentation for the root partition
    - having a noexec flag for /home so no potentially dangerous software will run from there (and why would you need to run software from /home?)
    - my /var folder takes up 102 MB, 9.706 files in 4.846 folders. Is there a filesystem that will deal well with many small files ? ReiserFS maybe ?
    So how would you split (gigabyte-wise) a 10 GB partition into /, /home and /var ? And would you ? I've been told from the IRC channel that it makes zero sense. At least not for desktop use.
    PS: I'm also switching from i686 to x86_64, so please take that into account as well. For instance I noticed that 64 bit software usually takes up more space than 32 bit.
    Last edited by DSpider (2011-05-29 11:32:04)

    Here is what's happening on my Arch box:
    . 2,1TiB [##########] /mnt
    . 61,0GiB [ ] /home
    5,2GiB [ ] /usr
    . 2,9GiB [ ] /var
    126,0MiB [ ] /opt
    83,1MiB [ ] /lib
    . 14,1MiB [ ] /boot
    10,0MiB [ ] /sbin
    . 7,3MiB [ ] /etc
    5,3MiB [ ] /bin
    . 3,0MiB [ ] /tmp
    192,0kiB [ ] /run
    20,0kiB [ ] /srv
    ! 16,0kiB [ ] /lost+found
    4,0kiB [ ] /dev
    4,0kiB [ ] /lib64
    ! 4,0kiB [ ] /root
    . 0,0 B [ ] /proc
    0,0 B [ ] /sys
    < 0,0 B [ ] /media
    Generated with ncdu.
    I have big stuff installed like a full texlive and libreoffice and I never clean my package cache. This is /var:
    . 2,6GiB [##########] /cache
    . 153,2MiB [ ] /lib
    57,1MiB [ ] /abs
    . 31,3MiB [ ] /log
    7,4MiB [ ] /tmp
    . 592,0kiB [ ] /spool
    . 132,0kiB [ ] /run
    8,0kiB [ ] /lock
    e 4,0kiB [ ] /opt
    e 4,0kiB [ ] /local
    e 4,0kiB [ ] /games
    ! 4,0kiB [ ] /enigma
    4,0kiB [ ] /empty
    @ 0,0 B [ ] mail
    And this is /var/cache
    2,6GiB [##########] /pacman
    10,9MiB [ ] /pkgtools
    3,0MiB [ ] /man
    320,0kiB [ ] /cups
    280,0kiB [ ] /fontconfig
    252,0kiB [ ] /samba
    ! 4,0kiB [ ] /ldconfig
    e 4,0kiB [ ] /hald
    /usr
    2,8GiB [##########] /share
    1,7GiB [###### ] /lib
    415,2MiB [# ] /bin
    153,9MiB [ ] /include
    149,8MiB [ ] /lib32
    15,3MiB [ ] /src
    13,7MiB [ ] /sbin
    104,0kiB [ ] /local
    I think I have a very typical desktop here: Mostly web/office stuff and some multimedia.

  • How would you capture the stdout of Runtime.getRuntime().exec())?

    How would you capture the stdout of Runtime.getRuntime().exec())?
    Say you wanted to execute PKZIP25.exe from java using Runtime.getRuntime().exec(). How would you capture the output of PKZIP25 (the console IO) in a file so you could check the results?
    Thanks
    Bill Blalock

    Thanks.
    Could you explain a little more?
    The program I am calling seems to be executing, as far as Java is concerned, but nothing happens. I imagine I have made mistakes in calling it but can't see the output to the console.
    Should I use Runtime.getRuntime().exec() or Runtime.exec() for something like this?
    I appreciate the help!
    Bill B.

  • How would you read in each line of data and display them to message box?

    How would you read in each line of data from the _.txt file_ and display the whole data using an information-type message box?
    I know how to display each line of the .txt file data, but I do not know how to display the whole thing.
    Here is how I did to display each line of data using the message box:
    import javax.swing.JOptionPane;          // Needed for the JOptionPane class
    import java.io.*;                         // Needed for file classes
    public class problem3
         public static void main(String[] args) throws IOException
              String filename;          // Needed to read the file
              String categories;          // Needed to read the categories
              // Get the filename.
              filename = JOptionPane.showInputDialog("Enter the filname.");
              // Open the file.
              FileReader freader = new FileReader(filename);
              BufferedReader inputFile = new BufferedReader(freader);
              // Read the categories from the file.
              categories = inputFile.readLine();
              // If a category was read, display it and
              // read the remainig categories.
              while(categories != null)
                   // Display the last category read.
                   JOptionPane.showMessageDialog(categories);
                   // Read the next category.
                   categories = inputFile.readLine();
              // Close the file.
              inputFile.close();
    }I think I need to change here:
    // If a category was read, display it and
              // read the remainig categories.
              while(categories != null)
                   // Display the last category read.
                   JOptionPane.showMessageDialog(categories);
                   // Read the next category.
                   categories = inputFile.readLine();
              }but I don't know how to.
    Could you please help me?
    Thank you.

    kyorochan wrote:
    jverd wrote:
    What is not understood about your question is which part of "read a bunch of lines and display them in a textbox" do you not understand.
    First thing's first though: You do recognize that "read a bunch of lines and display them in a textbox" has a few distinct and completely independent parts, right?I'm sorry. I'm not good at English, so I do not understand what you said...
    What I was trying to say is "How to display the whole lines of .txt file in single dialog box."We know that.
    Do you understand that any problem can be broken down into smaller pieces?
    Do you understand that your problem has the following pieces?
    1. Read lines from the file.
    2. Put the lines together into one String.
    3. Put the String into the message box.
    and maybe
    4. Make sure the message box contents are split into lines exactly as the file was.
    (You didn't make it clear if that last one is a requirement.)
    Do you understand that 1-4 are completely independent problems and can be solved separately from each other?
    Do you understand that you have stated that you already know how to do 1 and 3?
    Therefore, you are NOT asking "How to display the whole lines of .txt file in single dialog box." Rather, you ARE asking either #2 or #4 or both.
    If you say once more "display all the lines of the file in one dialog box," then it is clear that we are unable to communicate with you and we cannot help you.

  • How would you use Aperture 3 Labels & Flags in your workflow?

    Now that A3 has the ability to use Labels & Flags, I'm trying to incorporate their use into my workflow but am struggling to find the most effective way.
    I've used the star rating for selections & refining the selections. In A2 I used keywords on images to indicate actions on the images, however I never thought this was an elegant solution because unless I forget to remove them they stay with the images as I export them. Fundamentally though I think of Keywords as attributes of the image, so using keywords to describe actions was always strange.
    One thing I liked with this workflow though was I could place multiple "actions" on an image since there can be any number of keywords. In A3 you can only assign one labe at a time. So this made me think of how I'd use Labels.
    So thus my question: how would you incorporate labels & flags into your existing workflows consisting of star ratings & keywords?

    I've wanted flags for a long time just to be able to mark where I left off on a project. My inelegant solution has been to give a terrible picture 5 stars. Other uses are to quickly get back to certain images.
    I don't yet know how exactly I'll use labels or what other uses I'll have for flags, but I'm happy to have the added versatility. Between flags and labels, I have 8 new ways to mark and filter images. (10 if you count no flag and no label.) Sure one can do a lot with stars, stacks and keywords, but now one can do more.
    DLS

  • How would you determine the total ram used by applets?

    hi guys;
    I have 2 applets.
    One applet runs in a browswer. - in the microsoft jvm.
    Another applet on another browser (or another page) - in the sun plugin.
    How would you guys determine the total RAM (not just heap memory) used by these applets.
    my strategy would be to open up the browser. and look at the memory next to that internet explorer process. Then I would open up another browser with applet and see total memory taken. Then I would subtract to determine the difference.
    Does this sound correct?
    Each applet has multiple jar files associated with it.
    Stev

    What you really should do is test your applet on a bunch of machines, like a 32 meg ram win 98, 64 meg ram win NT, and a 256 meg ram win 2000, and then give them a performance report under the different configurations. That's really what they're after (probably)

Maybe you are looking for

  • Function module parameters mapping

    Hi Expert, We are working on a  upgradation tool in which i have to repace the obsolete function module "HELP_VALUES_GET_WITH_CHECKTAB " by "F4IF_FIELD_VALUE_REQUEST ". I am not sure about the functionalities of these function modules as i have never

  • Photo resolution in iDVD

    I am trying to create a DVD using a mixture of video clips and photos in slideshows and when I preview the completed DVD, the video resolution is fine but the slideshow photos are blurred and low resolution. When I view the same photos in iPhoto, the

  • The Zen Micro wired remote: Many raves, two small ra

    Just got my eagerly-anticipated white Zen Micro remote!! Here's my two cents: Pros: . Nice look that matches the design of the unit itself very well. 2. Definitely makes life easier in terms of controlling the unit while staying acti've. 3. Minimalis

  • How-to interrupt a hanging methodcall

    I wonder if someone from you now, how one can interrupt a method while it is hanging for some reason. This is the problemdescription is as following: If the method has longer then 10 seconds, it needs to be interrupted. Any ideas? Thanx, nils

  • "Unable to connect to the internet, please try again" wifi issue

    I recently recieved my blackberry storm in the mail excited to use the wifi. I set it up including entering the correct security code a number of time for the "wep" security options and it recognizes the network. I believe it's connecting also, but w