which performance test tool to use?
Hi everyone, I need and am trying to find a way to run reliable performance tests on my Network nodes. I am looking for proper BSD-Based tools, which give me information about my systems' throughput, latency, packet-drop and alike in the performance test family... Would you please share your experiences with me? It would be really kind of you t do so; Thank you all in advance. Best Regards, takCoder ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 8.4 Boot failure
Well, I wasn't able to continue troubleshooting. I took the opportunity that the server was already down to upgrade the BIOS. HP kindly does not provide any checks or warnings letting you know that you need to do a stepped upgrade, so the server is bricked. *sigh*. So this likely won't get investigated more. I'll be setting up a new server and attempting to import the zpools there. Thank for your advice anyhow! If this happens again on another server, I'll see about trying more things. On Wed, Sep 25, 2013 at 3:46 AM, Tyler Sweet ty...@tsweet.net wrote: Luckily, in this case, I had set a cron job long, long ago to do daily snapshots. So I have a snapshot from before the upgrade - There are indeed two different loaders. The newer one matches zfs when grepped, the older one does not... But, since it was working before, I restored the older loader and tried to boot again. No dice - it still sticks at that screen where all I see is / in the upper left. I also tried putting the older zfsboot and zfsloader back in place (with the old loader) to try and get a different error - still no dice. I'm still stuck wondering if that screen is from FreeBSD attempting to boot, or from the BIOS - but nothing changed for booting, as far as I know. I'll poke through the BIOS more tomorrow as well to see if some option got reset during a power-off. I'll get a more thorough look at what all changed in /boot tomorrow too, and get a list of all the files. It's almost 4am here and I have to work tomorrow :) (well, today I suppose). I'll also check to see if I can find anything about if zfs boot works differently in 8.4 vs 8.3 and older, as I may not have rebooted after the final freebsd-update install command (I *think* I did, but my memory gets fuzzy). Thanks for the input! I hope you have a good morning, and I'll let you know tomorrow/later today with anything new and interesting I find :) On Wed, Sep 25, 2013 at 1:45 AM, Terje Elde te...@elde.net wrote: On 25. sep. 2013, at 06:59, Tyler Sweet ty...@tsweet.net wrote: I tried reinstalling the boot blocks from both the fixit live filesystem and also mounting zroot and using the files there in case they were different. Disclaimer: I haven't gotten (enough) morning-coffee yet, but... Disclaimer 2: at times tracking how zfs-booting is done in the different versions can be a bit tricky. This is a moving target, and I've lost track of the 8-branch. That said, assuming you have the correct bootcode (gptzfsboot), here's what might have happened: You installed 8.2, with a loader supporting zfs. Then you upgraded your /boot-stuffs, and bootcode on disk (correctly), but got left with a loader without zfs support. Then tried to upgrade the bootcode, but you're still left with a loader not supporting zfs. If I recall correctly, then the zfs-bootcode for 9+ will use zfsloader (supporting zfs and built by default), while earlier versions depend on loader with zfs support (built without by default). If that's the case, you could dump LOADER_ZFS_SUPPORT into /etc/make.conf and rebuild/reinstall it, or install /boot/loader from the fixit (if it has zfs support in 8.4). That's my first thought at least... If that doesn't fix it (remember backups of any files you replace or upgrade), it'd be interesting to see the output of: ls -l /boot/*loader /boot/*boot On the /boot you're using. Anything that didn't get built or installed? Also, did you snapshot your zfs before upgrading? Could be a working /boot/loader there, which might be the easiest way to get the system up, before rebuilding with ZFS-capable loader... if I'm right, which isn't a given (ref disclaimers). Terje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: this 48-core box...
The cache alignment happens because it hits a specific size threshold, and jemalloc/phkmalloc(I think!) just round everything up to be page size aligned. The underlying problem may actually be a code change to how the math is done. It just runs slower on page-aligned alignments.. adrian On 22 September 2013 05:10, Eduardo Morras emorr...@yahoo.es wrote: On Sat, 21 Sep 2013 12:53:36 -0700 Adrian Chadd adr...@freebsd.org wrote: .. just as a data point - there was a thread a while ago about numeric processing performance on linux vs bsd. It all boiled down to how jemalloc versus the linux allocator(s) allocate blocks. jemalloc will page align things after a certain size. Linux didn't. So when doing numeric processing, there was a lot of cache aliasing going on leading to inefficient cache usage and redundant memory operations. When the same workload on Linux was run on FreeBSD but with the Linux library/allocators, the performance was identical. No-one followed through. I think I may have to write a blog post about it. There's no MALLOC_OPTIONS flag to set/unset this, but adding a new flag to disable a feature is easier (or should be) than implementing new one. The only problem I see to this is if the cache align happens at sbrk/mmap level. -adrian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org --- --- Eduardo Morras emorr...@yahoo.es ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: minor vi/vim qstn
On Wed, 25 Sep 2013 19:47:08 -0700, Gary Kline wrote: dunno how you know im using the zsh, but yup. This is because of my magical allknowinglyness. :-) You wrote: pts/14 17:11 tao [5011] vi! zsh: command not found: vi! ^^^ This gave me the impression you're using the Z shell. The C shell says: % vi! vi!: Command not found. And bash says: $ vi! bash: vi!: command not found So the shell that says zsh should be the Z shell, or a different shell that's just lying. :-) with the bang stuff if you do a % !-3 you go back three vi cmds. !-N, N cmds. Yes, this also works in C shell. You can use the h (or history) builtin command to get an impression of content of the last commands submitted to the shell. At least in csh, % !-1 equals % !! and repeats the last command. You could use the following command to print the last 20 commands with the relative number (-1, -2, -3 and so on) printed infront of them: % history 20 | awk 'BEGIN {cmds=20} { printf(\t%2d\t%s\n, -(cmds-i), $0); i++ }' It's probably a good idea to define an alias for that, like h20 (history of last 20 commands). You could also use the zsh's equivalent of the precmd alias: It is a command that will be executed prior to displaying the shell prompt, so after you're done with a command, the last commands (maybe shortened to 10, just substitute the two appearances of the 20 to 10) will be displayed before the prompt appears; this will make it easier (and save keystrokes) to check the last commands and maybe repeat one. Downside: The command pollutes the list of commands with itself, so it should probably be grepped away. % history 20 | awk 'BEGIN {cmds=20} { printf(\t%2d\t%s\n, -(cmds-i), $0); i++ }' | grep -v history It might be good to define a better exclusion pattern than just history because that might lead to false-positives. I'd suggest to rename the variables in the awk script to something unique and then grep for those instead... thankfully there are shortcuts! And shell aliases. :-) ps: zsh is sort of a ksh clone; I remember porting the zsh onto my 286 in 1989. got a lot of csh-isms :) The Z shell combines nice interactive features of the C shell (to be correct: the tcsh) and the scripting features of sh and bash. It's considered one of the most powerful shells. So it's a wise move to use it, because it combines the _good_ things of both worlds (and not the bad things, as the csh is a terrible scripting shell, just as plain sh is an awful dialog shell). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Voice Mail required QuickTime
I have a voice mail account with Time Warner Cable. I can access the account from my home telephone, Windows PC, etcetera, but not from my FreeBSD machine. This error message pops up when I try to play the recording on the web site: To play audio online, you must have QuickTime Player installed. How can I make this work from my FreeBSD machine? -- Carmel ✌ carmel...@hotmail.com Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Voice Mail required QuickTime
On Thu, 26 Sep 2013 13:54:34 -0400, Carmel wrote: I have a voice mail account with Time Warner Cable. I can access the account from my home telephone, Windows PC, etcetera, but not from my FreeBSD machine. This error message pops up when I try to play the recording on the web site: To play audio online, you must have QuickTime Player installed. How can I make this work from my FreeBSD machine? Without any experience with the service you've mentioned, I'd suggest using mplayer, because mplayer plays everything. As far as I know, there's also an mplayer plugin for web browsers (probably Firefox) that can be used to play QT content embedded in web pages. Note that this might involve recompiling mplayer with the proper options set, as QT is probably not part of the defaults. (By the way, it's strange that QT is used for this purpose, I would have assumed that the codec of choice would still be MP3...) There's also the libquicktime and openquicktime libraries in ports which _maybe_ allow a better in-browser experience to handle that proprietary format. If the web page to access the service is really that backward oriented that it _requires_ the actual QT player, then I'd say that Time Warner Cable needs a friendly reminder to make the transition to _standard_ HTML-compatible formats that have less restrictions in your rights to use _your_ voice mail - even if it's just a stupid MP3 download or something comparable. Everyone else on the planet can already play audio data via web pages without QT for decades. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Just wanted to say Thanks to Polytropon
A few weeks ago I asked about mouse trails. Polytropon suggested xeyes. I have found it excellent, and have had no trouble whatsoever with it. It has made my life so much easier. Thanks, Polytropon! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: minor vi/vim qstn
Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 27 years of service to the Unix community. On Thu, Sep 26, 2013 at 03:26:29PM +0200, Polytropon wrote: On Wed, 25 Sep 2013 19:47:08 -0700, Gary Kline wrote: dunno how you know im using the zsh, but yup. This is because of my magical allknowinglyness. :-) You wrote: pts/14 17:11 tao [5011] vi! zsh: command not found: vi! ^^^ This gave me the impression you're using the Z shell. The C shell says: % vi! vi!: Command not found. And bash says: $ vi! bash: vi!: command not found So the shell that says zsh should be the Z shell, or a different shell that's just lying. :-) Oh, n! ive got to go hide my head in the sand for 25 years... { it's so emmbarrassing!!} with the bang stuff if you do a % !-3 you go back three vi cmds. !-N, N cmds. Yes, this also works in C shell. You can use the h (or history) builtin command to get an impression of content of the last commands submitted to the shell. At least in csh, % !-1 equals % !! and repeats the last command. You could use the following command to print the last 20 commands with the relative number (-1, -2, -3 and so on) printed infront of them: % history 20 | awk 'BEGIN {cmds=20} { printf(\t%2d\t%s\n, -(cmds-i), $0); i++ }' It's probably a good idea to define an alias for that, like h20 (history of last 20 commands). my zsh does a default to 10 or so history with just % h I was trying to remember how to set it to ,, say, 100. I use as many zsh-isms as saves keystrokes. thanks for that awk shortcut; ill use ir... :_) You could also use the zsh's equivalent of the precmd alias: It is a command that will be executed prior to displaying the shell prompt, so after you're done with a command, the last commands (maybe shortened to 10, just substitute the two appearances of the 20 to 10) will be displayed before the prompt appears; this will make it easier (and save keystrokes) to check the last commands and maybe repeat one. Downside: The command pollutes the list of commands with itself, so it should probably be grepped away. good grief, man. I just got up from a nap... can you re-word that? no, kidding. I get it. (for as many centuries as ive been using vi [nvi], there are *still* things I never had need to learn. so it turns out that a lot of theses clever sh scripts are over my head it takes mins - hours to figure out. % history 20 | awk 'BEGIN {cmds=20} { printf(\t%2d\t%s\n, -(cmds-i), $0); i++ }' | grep -v history It might be good to define a better exclusion pattern than just history because that might lead to false-positives. I'd suggest to rename the variables in the awk script to something unique and then grep for those instead... I have grep -v aliased to grv. thankfully there are shortcuts! And shell aliases. :-) ps: zsh is sort of a ksh clone; I remember porting the zsh onto my 286 in 1989. got a lot of csh-isms :) The Z shell combines nice interactive features of the C shell (to be correct: the tcsh) and the scripting features of sh and bash. It's considered one of the most powerful shells. So it's a wise move to use it, because it combines the _good_ things of both worlds (and not the bad things, as the csh is a terrible scripting shell, just as plain sh is an awful dialog shell). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Twenty-seven years of service to the Unix community. http://www.thought.org/HOPE ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: minor vi/vim qstn
On Thu, 26 Sep 2013 12:51:32 -0700, Gary Kline wrote: my zsh does a default to 10 or so history with just % h I was trying to remember how to set it to ,, say, 100. Depending on _typical_ terminal heights (100 lines?), this seems to be a bit high. But I assume zsh handles the h alias similarly to the csh, where an alias is defined (system-wide in /etc/csh.cshrc or per user in ~/.cshrc). Look for ~/.zshrc (if I remember correctly): alias h 'history 25' and change it accordingly. An interactive change is also possible (but will only be kept for the current session). I also assume the zsh has some settings on how many commands should be kept in history. The system's /etc/csh.cshrc provides the csh's equivalent: set history = 100 set savehist = 100 Probably zsh has something similar. (for as many centuries as ive been using vi [nvi], there are *still* things I never had need to learn. so it turns out that a lot of theses clever sh scripts are over my head it takes mins - hours to figure out. You notice that you're saying that to a programmer whose shell scripts are usually overcomplicated, dull, and could use lots of optimization? ;-) % history 20 | awk 'BEGIN {cmds=20} { printf(\t%2d\t%s\n, -(cmds-i), $0); i++ }' | grep -v history It might be good to define a better exclusion pattern than just history because that might lead to false-positives. I'd suggest to rename the variables in the awk script to something unique and then grep for those instead... I have grep -v aliased to grv. If you're using that alias inside another alias, zsh (if it acts like csh) will expand it properly. Using such an alias in a one-time entry (as I'd consider an addition to a configuration file) still doesn't sound optimal regarding readability and maintainability. As if we would ever maintain our naturally grown (over centuries) configuration files... ;-) Still I think turning the example into a shell alias (h20) or assigning it (with 20 - 10) to the precmd alias could not be trivial, at least regarding the C shell, because lots of quoting and escaping would be needed; maybe zsh does not behave like a madman in this regards (unmatched this, unmatched that, sytax error, cannot expand, missing argument, blah ...). :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: minor vi/vim qstn
Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 27 years of service to the Unix community. On Thu, Sep 26, 2013 at 10:05:06PM +0200, Polytropon wrote: On Thu, 26 Sep 2013 12:51:32 -0700, Gary Kline wrote: my zsh does a default to 10 or so history with just % h I was trying to remember how to set it to ,, say, 100. Depending on _typical_ terminal heights (100 lines?), this seems to be a bit high. But I assume zsh handles the h alias similarly to the csh, where an alias is defined (system-wide in /etc/csh.cshrc or per user in ~/.cshrc). Look for ~/.zshrc (if I remember correctly): alias h 'history 25' and change it accordingly. An interactive change is also possible (but will only be kept for the current session). I also assume the zsh has some settings on how many commands should be kept in history. The system's /etc/csh.cshrc provides the csh's equivalent: set history = 100 set savehist = 100 I'remember seeing this a long time ago. in my ~/.zshrc I've got iit in all CAPS. HISTFILE=~/.zhistory SAVEHIST='5000' HISTSIZE=1000 got to google this; been tooo long since I glanced at the code! Probably zsh has something similar. (for as many centuries as ive been using vi [nvi], there are *still* things I never had need to learn. so it turns out that a lot of theses clever sh scripts are over my head it takes mins - hours to figure out. You notice that you're saying that to a programmer whose shell scripts are usually overcomplicated, dull, and could use lots of optimization? ;-) ;-) % history 20 | awk 'BEGIN {cmds=20} { printf(\t%2d\t%s\n, -(cmds-i), $0); i++ }' | grep -v history It might be good to define a better exclusion pattern than just history because that might lead to false-positives. I'd suggest to rename the variables in the awk script to something unique and then grep for those instead... I have grep -v aliased to grv. If you're using that alias inside another alias, zsh (if it acts like csh) will expand it properly. Using such an alias in a one-time entry (as I'd consider an addition to a configuration file) still doesn't sound optimal regarding readability and maintainability. As if we would ever maintain our naturally grown (over centuries) configuration files... ;-) Still I think turning the example into a shell alias (h20) or assigning it (with 20 - 10) to the precmd alias could not be trivial, at least regarding the C shell, because lots of quoting and escaping would be needed; maybe zsh does not behave like a madman in this regards (unmatched this, unmatched that, sytax error, cannot expand, missing argument, blah ...). :-) I'll be typing for 10 years before I'v saved the keystrokes ive spent here -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Twenty-seven years of service to the Unix community. http://www.thought.org/HOPE ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Voice Mail required QuickTime
On Thu, Sep 26, 2013 at 01:54:34PM -0400, Carmel wrote: I have a voice mail account with Time Warner Cable. I can access the account from my home telephone, Windows PC, etcetera, but not from my FreeBSD machine. This error message pops up when I try to play the recording on the web site: To play audio online, you must have QuickTime Player installed. How can I make this work from my FreeBSD machine? The chromium browser (/usr/ports/www/chromium) has better multimedia capabilities out of the box. But if you want to keep using firefox, re-build it with the gstreamer option enabled. That will give firefox more capability in handling multimedia. Roland -- R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpZNKJwT1Tvr.pgp Description: PGP signature
Re: minor vi/vim qstn
Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 27 years of service to the Unix community. On Thu, Sep 26, 2013 at 10:05:06PM +0200, Polytropon wrote: On Thu, 26 Sep 2013 12:51:32 -0700, Gary Kline wrote: my zsh does a default to 10 or so history with just % h I was trying to remember how to set it to ,, say, 100. Depending on _typical_ terminal heights (100 lines?), this seems to be a bit high. But I assume zsh handles the h alias similarly to the csh, where an alias is defined (system-wide in /etc/csh.cshrc or per user in ~/.cshrc). Look for ~/.zshrc (if I remember correctly): alias h 'history 25' and change it accordingly. An interactive change is also possible (but will only be kept for the current session). I also assume the zsh has some settings on how many commands should be kept in history. The system's /etc/csh.cshrc provides the csh's equivalent: set history = 100 set savehist = 100 Probably zsh has something similar. FWIW, I just tried: alias -- h='history 50' works as it ought; last time I tried, the history quit after ~10. [?] (for as many centuries as ive been using vi [nvi], there are *still* things I never had need to learn. so it turns out that a lot of theses clever sh scripts are over my head it takes mins - hours to figure out. You notice that you're saying that to a programmer whose shell scripts are usually overcomplicated, dull, and could use lots of optimization? ;-) % history 20 | awk 'BEGIN {cmds=20} { printf(\t%2d\t%s\n, -(cmds-i), $0); i++ }' | grep -v history It might be good to define a better exclusion pattern than just history because that might lead to false-positives. I'd suggest to rename the variables in the awk script to something unique and then grep for those instead... I have grep -v aliased to grv. If you're using that alias inside another alias, zsh (if it acts like csh) will expand it properly. Using such an alias in a one-time entry (as I'd consider an addition to a configuration file) still doesn't sound optimal regarding readability and maintainability. As if we would ever maintain our naturally grown (over centuries) configuration files... ;-) Still I think turning the example into a shell alias (h20) or assigning it (with 20 - 10) to the precmd alias could not be trivial, at least regarding the C shell, because lots of quoting and escaping would be needed; maybe zsh does not behave like a madman in this regards (unmatched this, unmatched that, sytax error, cannot expand, missing argument, blah ...). :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Twenty-seven years of service to the Unix community. http://www.thought.org/HOPE ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: minor vi/vim qstn
On Thu, 26 Sep 2013 13:58:19 -0700, Gary Kline wrote: Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 27 years of service to the Unix community. On Thu, Sep 26, 2013 at 10:05:06PM +0200, Polytropon wrote: I also assume the zsh has some settings on how many commands should be kept in history. The system's /etc/csh.cshrc provides the csh's equivalent: set history = 100 set savehist = 100 I'remember seeing this a long time ago. in my ~/.zshrc I've got iit in all CAPS. HISTFILE=~/.zhistory SAVEHIST='5000' HISTSIZE=1000 got to google this; been tooo long since I glanced at the code! That's probably correct, it reflects the sh-like aspects of code (as I said, csh is a terrible scripting shell, and this is also true regarding its configuration files). So those entries look correct. I'm not a zsh user, so I can't say this for sure. I'm heavily infected with csh already. ;-) On Thu, 26 Sep 2013 14:15:17 -0700, Gary Kline wrote: FWIW, I just tried: alias -- h='history 50' works as it ought; last time I tried, the history quit after ~10. [?] The reason might be that the history, at this point in time, did only contain 10 entries. I don't know how the content of ~/.zhistory behaves if more than one shell is running for a given user... The Z shell is very customizable and can automate routine tasks (regarding the shell dialog) in a pleasant manner. If you want the last 10 commands to be displayed before the shell prompt appears, try something like this in ~/.zshrc: function precmd { history 10 | awk 'BEGIN {histcmds=10} { printf(\t%2d\t%s\n, -(histcmds-i), $0); i++ }' | grep -v histcmds } Not tested, but it seems to be much easier as zsh simply defines a function precmd and doesn't require the user to fight with quotes, doublequotes and escaping as csh successfully does. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Just wanted to say Thanks to Polytropon
On Thu, 26 Sep 2013 19:42:15 + (UTC) Walter Hurry walterhu...@gmail.com wrote: A few weeks ago I asked about mouse trails. Polytropon suggested xeyes. I have found it excellent, and have had no trouble whatsoever with it. It has made my life so much easier. Thanks, Polytropon! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I have to confess that when I first say xeyes on a Sun workstation over 20 years ago, I thought it was a joke - just a demo of what could be done with X-Windows. I am delighted to hear it has helped you so much, and no doubt many others. I was quite naive. I see it has even been ported to (or rewritten for) Windows : http://www.steelblue.com/WinEyes/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Synergy Newsletter
Your email client cannot read this email. To view it online, please go here: http://iem4.smtp.com/display.php?M=1628810C=2d6f6bc0fb6a3091d77817fe4709986fS=1123L=78N=800 Difference In Pill Color May Affect Patient’s Adherence Generic medications are biologically identical to their brand-name counterparts, however, their physical traits, like shape or color, usually differ. Patients who take generic drugs that differ in color are 50 percent more likely to stop the intake of the drug, producing possible negative reactions, according to a new study by Brigham and Women’s Hospital (BWH). The findings were published in the Archives of Internal Medicine. The case-control study analyzed patients taking antiepileptic drugs and looked at the probability that patients who did not refill their prescriptions had been taking medication with a different shape or color from earlier prescriptions. Aaron S. Kesselheim MD, JD, MPH, assistant professor of medicine in the Division of Pharmacoepidemiology and Pharmacoeconomics at BWH, and principal investigator of this study, explains: “Pill appearance has long been suspected to be linked to medication adherence, yet this is the first empirical analysis that we know of that directly links pills’ physical characteristics to patients’ adherence behavior. We found that changes in pill color significantly increase the odds that patients will stop taking their drugs as prescribed.” The investigators used a large national database of filled prescriptions. When they discovered a gap in a patient’s use of the drug, they reviewed the previous two prescriptions filled and checked to see if they were the same shape and color. They found that interruptions in the prescription filling happened more commonly when the pills had a different color. Of all patients, around 11,472 stopped getting their prescriptions; 27 percent of subjects with non-epilepsy drug prescriptions stopped their prescriptions, and 53 percent with epilepsy stopped their meds. Stopping use of an antiepileptic drug, even for a couple days, can increase the risk of seizure and impact social and medical consequences for patients. The conclusions suggest significant take-home information for pharmacists, physicians, and patients. Kesselheim says: “Patients should be aware that their pills may change color and shape, but that even differently-appearing generic drugs are approved by the FDA as being bioequivalent to their brand-name counterparts and are safe to take. Physicians should be aware that changes in pill appearance might explain their patients’ non-adherence. Finally, pharmacists should make a point to tell patients about the change in color and shape when they change generic suppliers.” Kelly Fitzgerald. “Difference In Pill Color May Affect Patient’s Adherence.” Medical News Today 03 Jan 2013 Topical pain creams combine multiple proven therapeutic ingredients. Topical creams are absorbed through the skin targeting the affected location. Topial Pain Shoulder Using oral pain killers and anti-inflammatory medications for a long period of time can cause serious health issues such as gastrointestinal problems. Applying topical pain creams can decrease a persons dependency on oral medication. Topical pain creams are applied directly onto the skin to treat the exact area of pain, which oral medications cannot do. The most common areas that topical pain creams are applied to are joints, neck, the lumbar region of the back, and the feet. Topical pain cream formulas are designed by the doctor specifically for their patients and compounded by our pharmacist. Read and follow directions carefully. If there is an insert, save it to refer to later. Never apply them to wounds or damaged skin. Do not use them along with a heating pad, because it could cause burns. Do not use under a tight bandage. Wash your hands well after using them. Avoid touching your eyes with the product on your hands. Are there any side effects associated with topical pain relievers? Side effects are uncommon. A rash may develop when the individual has surprisingly sensitive skin or an allergy to among the drugs inside the prescription. There is pretty small systemic intake with all the transdermal creams; consequently, the opportunity of negative effects is a lot lower than when the individual was taking the same drugs inside an oral shape. Unlike Oral NSAIDS, the transdermal cream never create any G. I. upset or problems. The added benefits of Topical Compounded Creams makes them a top choice for patients and for doctors. To stop receiving these emails:http://iem4.smtp.com/unsubscribe.php?M=1628810C=2d6f6bc0fb6a3091d77817fe4709986fL=78N=1123 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Gnome green screen of death
Good afternoon, dear FreeBSD enthusiast. I have installed X11 and Gnome on my computer equipped with FreeBSD 9.1. The X11 and Gnome packages were taken from the d.v.d.-r.o.m. that contained the operating system. The computer is an H.P. Z220 with an Intel Xeon quad-core processor. I do not want Gnome to start automatically on bootup. I wish to call it from the command line on the local console. When I have finished working with Gnome, I expect the operating system to return me to console session from which Gnome was called. I have started Gnome with the command exec gdm-session. I do not know if the exec keyword is necessary, but it worked. When I am finished working with Gnome, I click on the logoff (or logout?) button. The screen turns solid green with none of icons, characters, image, or splash. The computer does not respond to the keyboard. When I cut the power to the computer, and then reboot, I receive a sequence of messages complaining that ada0s3a, ada0s3d, and so on, are corrupt, and that I must run fdsk. What am I doing wrong here? The following error messages, which are shown only partially because they flash quickly on the screen, appear before Gnome starts: a) Authority server root file does not exist b) .../serverauth.1119doc does not exist c) X.authority does not exist d) ** (gnome-session:1121): WARNING **: Cannot open display: On reboot, e) The file entitled root/.xsession-errors contains 368 lines, including the following: e1) DEBUG:GsmAutostartAppp This program is not intended to be run as root e2) gnome-session: Fatal IO error 35 (Resource temporarily unavailable) on X server :0. e3) Window manager warning fatal IO error 35 (resource temporarily unavailable) on display ':0'. Any and all comments and suggestions will be appreciated. Sincerely, Newby Lee ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
IDOS, 2013 - Harvesting the fruits of the digitization. Watch LIVE discussion on 27th September, 2013; 9:00 AM (IST) onwards
This mail is an invitation to watch the LIVE webcast only. IDOS, organized by Media Partners Asia (MPA) and Indian Television Dot Com (ITV), in Goa with the objective to provide a strategic platform to discuss, evaluate and drive forward the digitization process and its impact on the television ecosystem and related industries such as broadband, value added services and the wider economy. Have this opportunity to sit for the discussion with a wide range of speakers across the value chain in India and from key international markets, on 27th September, 2013; 9:00 AM (IST) onwards. Click here to view an agenda. Catch this event on your desktop/laptop/mobile: http://www.24framesdigital.com/idos/ [System requirements: Laptop/desktop with good internet connection (at least 512 kbps and above bandwidth), latest Flash Player, firewall (if any) to allow streaming content to watch the LIVE webcast on laptop/desktop).] System requirement to watch the LIVE webcast on mobile devices: Multimedia phone with active wifi/3G connection with atleast 512 kbps dedicated bandwidth (phone should have capability to playing streaming media content), firewall/proxy should allow streaming video on network (if viewning using office internet)] Hope you get a chance to watch this LIVE webcast. Please contact us in case you face any difficulty in viewing. Warm Regards, Bhumika Gangar, +91-9320877709 24 Frames Digital Tel: +91-22-23719111, 23090630 | Web: www.24framesdigital.com Address: 511-C, Shatrunjay Darshan Building, Motisha Cross Lane, Byculla East, Mumbai, Maharashtra, India - 400027. Offices: Mumbai: +91-9987026862 | Delhi: +91-9810808642 | Bengaluru: 91-9742758884 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: minor vi/vim qstn
On Thu, Sep 26, 2013 at 10:05:06PM +0200, Polytropon wrote: P Depending on _typical_ terminal heights (100 lines?), this [history P setting] seems to be a bit high. But I assume zsh handles the h P alias similarly to the csh, where an alias is defined (system-wide in P /etc/csh.cshrc or per user in ~/.cshrc). The fc builtin can be helpful here. I like to see my recent history without numbering, so I can highlight/rerun/store any useful subset of commands: # history without command numbers, look for optional pattern. h () { case $# in 0) fc -ln 1 | less +G ;; *) fc -ln 1 | grep ${1+$@} ;; esac } If I dork up my history beyond belief, edit and reload the whole thing: histedit () { x=$HOME/.histedit fc -W $x vi $x fc -R $x rm $x } In a previous message: P % history 20 | awk 'BEGIN {cmds=20} ... | grep -v history You can avoid some history pollution with these settings, at least in ZSH version 4.3.10: setopt histignoredups # don't store duplicate lines in command history setopt histnostore # don't store history commands in history Other settings I've found useful: setopt autocd # go to a directory if first word on command line # is not a command but is a directory setopt autoresume # single-word commands may resume a suspended job setopt cdablevars # allows cd'ing to a parameter setopt correct # try to correct the spelling of commands setopt csh_junkie_loops # allow short form of loops: list; end setopt extendedglob # allow # and ^ to be used for filename generation setopt extended_history # format: start-time:elapsed-sec:command setopt globdots # don't require leading . in filename to be matched setopt ignoreeof# don't logout using Control-D setopt longlistjobs # list jobs in long format by default setopt markdirs # append trailing / to dirnames setopt menucomplete # cycle through completions when ambiguous setopt numeric_globsort # sort numeric filenames numerically setopt noclobber# don't overwrite existing files setopt notify # tell me when a job finishes setopt rcquotes # '' = single quote in single-quoted strings unsetopt bgnice # don't run background jobs at lower priority -- Karl Vogel I don't speak for the USAF or my company vogelke at pobox dot com http://www.pobox.com/~vogelke Teenage girl creates sustainable, renewable algae biofuel under her bed --Extreme Tech headline, 19 March 2013 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org