$100 to configure ALTQ on a 4.6 router

2010-02-22 Thread Ted Walther

I have a simple setup; a soekris box running 4.6 doing NAT for my local
network.

I'd like a configuration to give skype traffic top priority, then my DNS
server, then ssh sessions, then http and SSL, then everything else, and
bittorrent.  I have so little upload bandwidth I don't want to waste
any; only 80k up on a good day, and the web server is hosting stuff
almost constantly.

If this is up your alley, and you know this stuff inside out, please
contact me and I'll fill in a couple more details of my internal network
and provide the current NAT configuration in use (which has some stuff
in it to work with the special DNS setup)

Ted

--
   Nothing is true unless it makes you laugh,
  But you don't understand it until it makes you weep.

Name:Ted Walther
Phone:   208-310-7032
Skype:   tederific
Email:   t...@reactor-core.org
Address: #225 17700 58 Ave, Cloverdale, BC V3S1L6



Re: Voice-chat on OpenBSD with nothing more than aucat and ssh

2009-06-06 Thread Ted Walther

On Sat, Jun 06, 2009 at 05:01:26PM -0400, Ryan Flannery wrote:

Could that be why -b 1 is working?

Also, with -b 1024, the delay is around a half-second... not too bad.


Counter-intuitive as it seems, keep your buffer -b 1024, and increase
the sampling rate to 44100.  Tell me if latency doesn't drop
dramatically. :-)

Ted

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4



correct way to call execve() with environ?

2009-06-05 Thread Ted Walther

I want to call execve using my current set of environment variables.

From the manpage:


EXECVE(2)
int execve(const char *path, char *const argv[], char *const envp[]);

ENVIRON(7)
extern char **environ;

An array of strings called the ``environment'' is made available by
execve(2) when a process begins.


execve() wants   char *const envp[]
environ provides char **
environ is provided by execve from envp.

How do I pass the environment into execve without raising a compiler
warning about incompatible pointer types?

Ted

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4



Re: correct way to call execve() with environ?

2009-06-05 Thread Ted Walther

On Fri, Jun 05, 2009 at 12:27:12PM -0400, Ted Unangst wrote:

On Fri, Jun 5, 2009 at 12:15 PM, Ted Walther t...@reactor-core.org wrote:

execve() wants ? char *const envp[]
environ provides char **
environ is provided by execve from envp.

How do I pass the environment into execve without raising a compiler
warning about incompatible pointer types?


What warning are you getting?  What's your source?


My apologies. I was abusing const.  I must have been using the
function prototype from an other OS than OpenBSD.

Here was my sample that caused the error:


#include unistd.h
#include stdlib.h

extern char **environ;

void
my_exec(const char *f, const char *const *a, const char *const *e) {
/* do some stuff ... then: */
execve(f,a,e);
}

int
main(int argc, char **argv) {
my_exec(*argv,argv+1,environ);
exit(0);
}


The fix was to remove the extraneous consts from arg2 and arg3.

-my_exec(const char *f, const char *const *a, const char *const *e) {
+my_exec(const char *f, char *const a[], char *const e[]) {

Ted 


--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4



Re: List of old forked or frozen code like apache that needs cleanup?

2009-06-04 Thread Ted Walther

Book suggestions here:

http://reactor-core.org/programmer-syllabus.html

Ted

On Thu, Jun 04, 2009 at 03:13:24AM -0500, Chris Bennett wrote:

Richard Toohey wrote:

[chop]

The last time this was discussed ... kernel janitors.

http://marc.info/?l=openbsd-miscm=119377638131216w=2

Lots of stuff in that thread; including many of the developers.




That's a good (and long :) ) thread to read.

I just got accused on another thread about meta packages of being mean-  
spirited by not wanting to make it easy for people to have simple to  
install super packages, but I think its best to learn by having it a  
little harder.


So, I , in part, agree with the developer's who are frustrated with  
wasting their time training people who just vanish away without  
producing anything.


I run a construction business, I train many people, they spend my money  
and time. Learn skills. Then they quit.


It sucks. I could quit being a contractor. No more sucky loss of time  
and effort! But, I like being self-employed. It sucks. Its cool. Its my  
choice.


I get it. I have to find something that needs to be done, do it, get  
laughed at, try to fix it, get laughed at, lather, rinse repeat.


But I also saw the suggestion to read books, well there are mountains of  
books and some of them are very good, but many of them are absolute crap.

I sure can't afford to buy five garbage books on code that cost $49.95.

My library system doesn't have much even with interlibrary loans.

The developers all already know how to code well, us newbies who are  
self-taught could use something that you might find difficult to provide  
since you don't really need it anymore: Which books have appropriate  
information for OpenBSD? How about opening a few new or old books and  
listing a few good ones.


I'd like to know a few good ones on C and the make process.

Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4



proper test for 64bitness of platform?

2009-06-01 Thread Ted Walther

I'm preparing a port of newLISP.  Is there a simple test I can run to
find out if the host platform is 64bit?  A #define has to be set in the
code according to whether the platform is 64bit or not.

Am I right in assuming that OpenBSD only supports 32bit and 64bit
platforms at the moment?

Ted

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4



Re: proper test for 64bitness of platform?

2009-06-01 Thread Ted Walther

On Mon, Jun 01, 2009 at 12:51:31PM +, Stuart Henderson wrote:

On 2009-06-01, Ted Walther t...@enumera.com wrote:

I'm preparing a port of newLISP.  Is there a simple test I can run to
find out if the host platform is 64bit?  A #define has to be set in the
code according to whether the platform is 64bit or not.


We set _LP64 and __LP64__ variables on 64-bit arch.

$ cpp -dM /dev/null | grep LP64
#define _LP64 1
#define __LP64__ 1


Thank you Stuart.  It looks like all platforms with gcc support these
two defines.  Is there any reason to prefer one or another?  Google
found a netbsd post where someone said to prefer _LP64, then another
person said that is only for kernel use, use __arch64__ in userland.

Ted

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4



Re: proper test for 64bitness of platform?

2009-06-01 Thread Ted Walther

On Mon, Jun 01, 2009 at 07:50:59PM +0200, Matthias Kilian wrote:

We set _LP64 and __LP64__ variables on 64-bit arch.

$ cpp -dM /dev/null | grep LP64
#define _LP64 1
#define __LP64__ 1


It should also be ok to (ab)use LONG_BIT from limits.h, depending
on how the code is 64 bit specific.


Whichever solution is best, it would be nice if it was somewhat portable
to other unices.  The _LP64 || __LP64__ solution seems to be portable
anywhere a recent version of gcc is in use.

Ted

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4



offering SiS662 Mini-ITX for inclusion of support in 4.4

2008-07-26 Thread Ted Walther
 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
usb1 at ohci0: USB revision 1.0
uhub1 at usb1: SiS OHCI root hub, rev 1.00/1.00, addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2: SiS OHCI root hub, rev 1.00/1.00, addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3: SiS OHCI root hub, rev 1.00/1.00, addr 1
biomask ff6d netmask ff6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
uhidev0 at uhub3 port 2 configuration 1 interface 0uhidev1 at uhub2 port 2 
configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/24.30, addr 2, iclass 3/1

uhidev1: Unicomp Endura Keyboard, rev 1.10/2.0c, addr 2, iclass 3/1
ums0 at uhidev0: 8 buttons and Z dir.
wsmouse0 at ums0 mux 0
ukbd0 at uhidev1: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-625-7635
Email:   [EMAIL PROTECTED]
Address: 26337 64 Ave, Langley, BC  V4W1M3



anyone want a SiS662 Intel motherboard?

2008-07-26 Thread Ted Walther

I have an Intel D201GLY motherboard, a Celeron using the SiS662 chipset.

For $200, you can buy it locally complete with case, mouse, and
keyboard.  It is a sweet little system with no fans or moving parts.
Much cheaper than a net5501, which cost more than $500 by the time UPS
got done charging import fees.  It includes audio, video, network, and
USB ports.

I am offering one of these D201GLY SiS662 boxes to any OpenBSD developer
that is interested in making it work with OpenBSD.

version 4.2 installs over the network, install from cd fails with sense
key errors.

version 4.3 installs over the network, but when rebooting for the first
time, the kernel partially boots, then reboots.  over and over and over
again.

the 4.4 snapshots boot up to the point where it asks you whether you
want to install, upgrade, or grab a shell.  At that point, or sometime
before, the keyboard freezes

In the 4.4 snapshots, the dmesg gives lots of messages about not being
able to properly allocate IRQ's.

In 4.2, the IRQ's in the dmesg are allocated using a legacy mode.

Ted

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-625-7635
Email:   [EMAIL PROTECTED]
Address: 26337 64 Ave, Langley, BC  V4W1M3



Re: BSD Documentation License?

2008-03-27 Thread Ted Walther

There were no files.  I made up my own music file format.  I took some
hundred year old sheet music, and based on how I interpet it, I composed
my particular music files.  From my music files, I automatically
generate PDF sheet music, midi, ogg, and mp3.  The PDF sheet music is
not identical to the original sheet music.

The music itself is out of copyright.  But in the legal field, there are
cases that have established that copyright on public domain material can
apply to things like page numbers.

The classic example if the Findlaw company.  They index publicly
available court rulings.  The court rulings themselves cannot be
copyrighted, as they are public property.  But when a competitor copied
Findlaws product, they got smacked for copyright violation.  The court
found that the content was copyright-free, but the page numbers were
added by Findlaw, and constituted their copyrighted property.  This is
like someone copyrighting Strong's numbers, which are a sort of index to
the Bible.

My source for this information is Amicus Curia, a pro se lawyer and
paralegal operating in the state of Washington.  He has had running
battles with Findlaw, who periodically clobber their own legal software
to force you to buy upgrades.  Their product is the best in the field,
so all lawyers end up using it, fueling a monopoly in the field of legal
research.

In todays music industry, performers claim copyright when they record
themselves playing a piece of music, even if the music itself is out of
copyright.  I may not be a musician, but it took a certain amount of
skill to read the music, and enter it into the computer, and then make
the computer play it.  That is, it took skill and effort to create a
performance.

As for substantial changes to the source; I separated tenor, soprano,
alta, and bass parts so they could all be listened to separately.  There
was no such separation in the original sheet music.  This sort of change
is at least on par with adding page numbers and an index.

You call that bullshit?  Ok.  I won't disagree.  But there is a whole
legal industry out there with their own peculiar ideas.

I'm a believer in freedom.  I don't want to restrict anyone from using
my newly formatted renditions of old, out of copyright music.  


I want to let people know that I renounce any copyright claims to the
material on the website.  So the options are:

1) public domain
2) creative commons license
3) BSD license

If I do not state this renunciation of copyright somehow, people,
especially legal people, may assume some sort of copyright exists.

What do you recommend?

Ted

On Thu, Mar 27, 2008 at 01:57:32AM -0600, Theo de Raadt wrote:

(The 2/3-term BSD license meant to do basically the same, but it used
more words to do the same.  The old 4-term BSD license included some
terms to make University of California benefit from advertising, if
there was going to be any.)


I have been generating midi, ogg, pdf, and mp3 files of some old,
out-of-copyright music.  I have been releasing them and the source that
generates them under the Creative Commons license.

Do you recommend the 3 term BSD license for this particular use instead?
Or would the 2 term one be better?


You can't do that.  You added nothing of value, so you don't deserve
copyright, since your conversions do not count as being substantial.

Conversions of files remain under their existing rights, which means,
they are free, since the copyright expired.  Adding a copyright to
them is a lie.


--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-435-5787
Email:   [EMAIL PROTECTED]
Skype:   tederific
Address: 3422 Euclid Ave basement, Vancouver, BC V5R4G4 (Canada)



Re: BSD Documentation License?

2008-03-26 Thread Ted Walther

[snip]

(The 2/3-term BSD license meant to do basically the same, but it used
more words to do the same.  The old 4-term BSD license included some
terms to make University of California benefit from advertising, if
there was going to be any.)


I have been generating midi, ogg, pdf, and mp3 files of some old,
out-of-copyright music.  I have been releasing them and the source that
generates them under the Creative Commons license.

Do you recommend the 3 term BSD license for this particular use instead?
Or would the 2 term one be better?

[snip]

Please avoid using that creativecommons bullshit for anything -- it it
tries to hide the fundamentals and simplicity of basic copyright law
behind the massive complexity of US-centric contract law and the
various terminology normally tied to tit for tat.  In the end,
creativecommons licenses will only ever truly benefit one group of
people on this planet: The lawyers.


[snip]

And that is  exactly what creativecommons tries to  do.  2300 words to
say you must say I wrote it?  There is only one reason it could take
2300 words: The goal is to deceive.


Amen brother.  Tell it like it is.

Ted

--
   There's a party in your skull.  And you're invited!

Name:Ted Walther
Phone:   604-435-5787
Email:   [EMAIL PROTECTED]
Skype:   tederific
Address: 3422 Euclid Ave basement, Vancouver, BC V5R4G4 (Canada)



Re: Banking with OpenBSD

2006-01-11 Thread Ted Walther

On Thu, Jan 12, 2006 at 01:23:43PM +1100, Ioan Nemes wrote:

My suggestion to you is to CHANGE banks - urgently, as I did!
And tell them that you are NOT willing to use that `security hole`
to compromise your own systems!


Yes, that is right.  If you read his email a bit closer, you'll see he
is asking WHICH bank to switch to.  He already wants to switch away from
his present one.

How do you pronounce your name Ioan by the way?

Ted

--
 It's not true unless it makes you laugh,   
but you don't understand it until it makes you weep.


Eukleia: Ted Walther
Address: 5690 Pioneer Ave, Burnaby, BC  V5H2X6 (Canada)
Contact: 604-430-4973



Re: timekeeping on Soekris net4801 w/ ntpd. 3.8

2005-11-16 Thread Ted Walther

On Wed, Nov 16, 2005 at 08:51:12AM +0100, Otto Moerbeek wrote:

This adujsting by information is not available to ntpd. ntpd
requests an adjustment using the adjtim(2) system call. The argument
is the actual offset. It is up to the kernel to decide how fast the
adjustment will be done. 


Ah.  In that case, I'd like to see the following syslog lines:

Tue Nov 15 20:31:33 NTPD clock is 60.000356s behind, calling adjtim()
...
Tue Nov 15 22:48:33 NTPD clock is 1.001856s ahead, calling adjtim()

Ted

--
 It's not true unless it makes you laugh,   
but you don't understand it until it makes you weep.


Eukleia: Ted Walther
Address: 5690 Pioneer Ave, Burnaby, BC  V5H2X6 (Canada)
Contact: 604-430-4973
Website: http://reactor-core.org/
Puritan: Purity of faith, Purity of doctrine
Puritan: Sola Scriptura, Tota Scriptura

 Love is a sharp sword.  Hold it by the right end.



Re: timekeeping on Soekris net4801 w/ ntpd. 3.8

2005-11-15 Thread Ted Walther

On Tue, Nov 15, 2005 at 10:06:39PM -0600, J Moore wrote:

On Wed, Nov 16, 2005 at 10:59:07AM +0800, the unit calling itself Lars Hansson 
wrote:

On Tue, 15 Nov 2005 20:48:38 -0600
J Moore [EMAIL PROTECTED] wrote:
 At least it's not incorrect. How about:
 1) local clock error=XXs, adjusting
 or,
 2) adjusting local clock, error=XXs

Error? There's no error. As many people have said before, the current log
message is correct.
PEBKAC.


It really doesn't matter how many people say it. The words are defined 
in any English dictionary, and the log message is an incorrect 
description of what is being done. But it's a free world - you do have 
the option to dwell in ignorance.


Actually, the English of the log message is grammatically correct.  But
it is misleading, because humans have limitations and don't always parse
grammar correctly.

Personally I'd like to see a log message like this:

Tue Nov 15 20:31:33 NTPD clock is 60.000356s off, adjusting by 0.0128s

Ted

--
 It's not true unless it makes you laugh,   
but you don't understand it until it makes you weep.


Eukleia: Ted Walther
Address: 5690 Pioneer Ave, Burnaby, BC  V5H2X6 (Canada)
Contact: 604-430-4973
Website: http://reactor-core.org/
Puritan: Purity of faith, Purity of doctrine
Puritan: Sola Scriptura, Tota Scriptura

 Love is a sharp sword.  Hold it by the right end.