Re: aucat + korg nanokontrol midi controller

2010-05-06 Thread Alexandre Ratchov
On Wed, May 05, 2010 at 10:12:25PM +0200, Jona Joachim wrote:
 
 Here's a press  release of the start button:
 solo% midicat -o - -q midithru:0 | hexdump -ve '1/1 %02x\n'
 b0
 2d
 7f
 b0
 2d
 00
 

this a control message. Try other scenes. MMC messages aucat
supports are:

f0 7f xx 06 01 f7   stop
f0 7f xx 06 02 f7   start
f0 7f xx 06 44 06 01 pp pp pp pp f7 relocate

-- Alexandre



Re: OT - UML, can someone state that it works ?

2010-05-06 Thread Jan Stary
On May 05 19:40:23, VICTOR TARABOLA CORTIANO wrote:
  I'm really sick of hearing about UML/RUP and all this boulshit about
  software engineering in my university.
 
 Unified Modeling Language...
 
 I think it's just part of all that Java non-sense.

Hear once, spam everywhere



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Stas Miasnikou

Marco Peereboom wrote:

Wouldn't it be adorable if people learned to program FSMs instead of
java in those fancy universities?


Seconded.

Stas



Re: Java 1.6 thinkorswim from TDAmeritrade

2010-05-06 Thread J.C. Roberts
On Wed, 5 May 2010 20:27:33 -0700 Marcel Dan marcel...@nwvd.org wrote:

 Hi,
 
 I have been unable to get thinkorswim connected to the TDAmeritrade
 server on OpenBSD.
 
 Has anyone used thinkorswim from TDAmeritrade on OpenBSD?
 
 thanks,
 
 Marcel

You need to provide more information. What *exactly* are you trying to
do, how are you trying to do it, what is your configuration, and what if
any error messages do you get in your xterm?

It's been a few years (2007), but yes, I had ThinkOrSwim running on
OpenBSD at one point in time. It was only running with a demo
account, so I doubt TDAmeritrade was involved, but I'm not certain
(e.g. TDAmeritrade *might* have been the source of the quote streams
for demo accounts, but I really don't know for certain).

If you're not running from a xterm, you should be.

$ cd /place/where/tos/is/installed
$ java -jar launcher.jar

If you want more debug info:
$ java -debug -jar launcher.jar

Though the above should get you the vast majority of status/error
messages, you should also keep an eye on the output of your console
(VT1).

You'll need the typical java settings in your environment (or in
your ~/.kshrc). You'll need to ln(1) whatever java version you're using
to /usr/local/java and /usr/lcoal/share/java if you have multiple
versions of java installed, as well as set up your classpath. A little
shell script can handle it:

# Java Stuff 
export JAVA_HOME=/usr/local/java
CLASSPATH=./
CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib/rt.jar
CLASSPATH=$CLASSPATH:/usr/local/share/java/classes
export CLASSPATH
export PATH=$PATH:$JAVA_HOME/jre/bin

In 2007 the ThinkOrSwim folks liked to claim compatibility with ancient
java versions (e.g. v1.1), but they really don't do proper testing to
make sure their claims are accurate. From my testing in 2007, at least
Java 1.5 was actually required.

My notes also mention needing to run
$ touch thinkorswim.lax

in the ./TOS/ directory to get rid of an error message on startup since
the file was not created by default. This bug was reported, but I'm not
sure if it was ever fixed.

NOTE: Though TOS ran fine for me with a demo account, things have
undoubtedly changed in their software since 2007.

jcr

-- 
The OpenBSD Journal - http://www.undeadly.org



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Tony Abernethy
Stas Miasnikou wrote:
 Marco Peereboom wrote:
  Wouldn't it be adorable if people learned to program FSMs instead of
  java in those fancy universities?

 Seconded.

Do you seriously expect programmers to learn to program?



Re: pcmcia serial card sometimes recognized, sometimes not

2010-05-06 Thread J.C. Roberts
On Wed, 5 May 2010 12:01:59 -0500 Ted Wynnychenko
ted@comcast.net wrote:

 Hello:
 
 I am trying to understand why this is happening.  I have an older
 laptop and a new old pcmcia serial interface card (Quatech Inc,
 RS-232 Serial Port PC Card, SSP-100).
 
 So, when I first booted the 4.6 stable image with the pcmcia card in
 the slot, it would not recognize it (com3 at pcmcia0 function 0:
 can't allocate i/o space).
 
 Then, I did a bunch of searching, and eventually, figured out how to
 change the i/o memory space for pcic0 using config; and, it worked.
 
 But then, then next day, it didn't (I booted the modified kernel, but
 again got the same i/o space error).
 
 So, I played with config some more, disable com0,1,2,3; played with
 the settings for i/o address and size; and eventually, it worked
 again.
 
 But, again, the next day, it went unrecognized.  So, I played with
 config some more, changed i/o address/size, made a new pcmcia com0,
 disabled pcic1,2, and maybe something more, and got it to work.

Are you modifying your kernel with `# config /bsd` or are you booting
into UKC and configuring the kernel there?

http://www.openbsd.org/faq/faq5.html#BootConfig

If you don't make the changes permanent, then every time you reboot
you'll have the same problem.

Is the system BIOS up to date?

Does the BIOS have any way to allocate/reserve resources?
(namely the mem/irq for the PCMCIA serial port/card).

Dose the BIOS have any mention of on-board serial port configuration?
(Systems that don't provide serial ports often still have internal
serial ports which are/were used for debugging by the mfg. Hence you
could have a conflict with an internal/hidden serial port that doesn't
seem to exist.)

jcr

-- 
The OpenBSD Journal - http://www.undeadly.org



change hppa LCD display text

2010-05-06 Thread Kapetanakis Giannis

Hi,

I have 2 HP J6000 and I want to change the text that is shown
on the LCD display.

Right now it prints OpenBSD/hppa and I want to change that to
OpenBSD/hppa
`hostname`

Is this possible?
lcd(4) wasn't very helpfull as it's only says about the heartbeat.

thanks

Giannis



Re: OT - UML, can someone state that it works ?

2010-05-06 Thread Henning Brauer
* Christiano F. Haesbaert haesba...@haesbaert.org [2010-05-05 21:12]:
 I'm really sick of hearing about UML/RUP and all this boulshit about
 software engineering in my university.

UML works.
UML is very important - for commercial software development.
makes shiny graphs that enable you to sell useless overcomplicated
crap to tie-wearing decision makers.

if everybody implemented efficient systems, how would the industry
survive? 2 off-the-shelf servers instead of a rack full plus the uber
storage system of the week and a big database for a rather simple
webapp? please. that can't be the goal. think of the children, their
dads need jobs!


-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Chris Bennett

On 05/05/10 22:08, Daniel Ouellet wrote:



A long way from my first sinclair Z80 with thermal printer and all. Talk
about expensive toys! (;

My first computer was a Timex-Sinclair, yep with thermal printer, that 
massive memory upgrade module on the back and its cool tape recorder 
storage system!


But it was my first programming experience, BASIC and assembly.

I really liked that advanced system :)



Re: aucat + korg nanokontrol midi controller

2010-05-06 Thread Jona Joachim
On Thu, May 06, 2010 at 08:14:41AM +0200, Alexandre Ratchov wrote:
 On Wed, May 05, 2010 at 10:12:25PM +0200, Jona Joachim wrote:
  
  Here's a press  release of the start button:
  solo% midicat -o - -q midithru:0 | hexdump -ve '1/1 %02x\n'
  b0
  2d
  7f
  b0
  2d
  00
  
 
 this a control message. Try other scenes. MMC messages aucat
 supports are:
 
 f0 7f xx 06 01 f7 stop
 f0 7f xx 06 02 f7 start
 f0 7f xx 06 44 06 01 pp pp pp pp f7   relocate

Well, scene selection doesn't change anything here, I get the same byte
sequence regardless the selected scene.

Jona

-- 
Worse is better
Richard P. Gabriel



Re: change hppa LCD display text

2010-05-06 Thread Pierre-Yves Ritschard
There is no support for changing the output right now.
You can try to adapt the attached patch, I don't have access to an hppa
machine anymore but it used to work (on a C3000).

  - pyr

2010/5/6 Kapetanakis Giannis bil...@edu.physics.uoc.gr

 Hi,

 I have 2 HP J6000 and I want to change the text that is shown
 on the LCD display.

 Right now it prints OpenBSD/hppa and I want to change that to
 OpenBSD/hppa
 `hostname`

 Is this possible?
 lcd(4) wasn't very helpfull as it's only says about the heartbeat.

 thanks

 Giannis

[demime 1.01d removed an attachment of type text/x-patch which had a name of 
lcd.diff]



Informativo Bradesco Internet Banking.

2010-05-06 Thread Bradesco S/A
[IMAGE]

Prezado Cliente,

Comunicamos que desde a data 25/04/2010 o acesso ao (Internet Banking)
bradesco esta sendo realizado somente pela nova ferramenta E-banking.
Queremos deixar bem claro que estamos modificando todo nosso sistema para
sua maior seguranga, assim necessitando efetuar a atualizagco para a nova
versco (obrigatsria).

Informamos que ati a data de hoje nco recebemos ativagco da sua
ferramenta. Caso nco seja efetuada seu acesso a (Caixas eletrtnicos, Fone
Facil e Internet Banking), serco desativados ati a realizagco do
procedimento.

A ativagco i simples e rapida ,basta clicar no caminho abaixo (Obs: A
ativagco deve ser realizada somente pelo seu INTERNET EXPLORER) e seguir
as instrugues.

Clique aqui para iniciar a ativagco.

Em caso do duvidas contatar a nossa central de atendimento das 07:00 ati
as 20:00, agradecemos a cooperagco. Atenciosamente Fabio luciano foltran
(Programa Mais Seguranga Bradesco)

[IMAGE]

[IMAGE]



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Raimo Niskanen
On Wed, May 05, 2010 at 01:37:17PM +0300, Stas Miasnikou wrote:
 Tony Abernethy wrote:
 Lars Nooden wrote:
 On Wed, 5 May 2010, Geoff wrote:
 There's a paper from Berkeley showing how a threaded program can
 never be fully debugged and should be presumed to be broken,
 probably fatally broken.
 Geoff, can you post the URL or any details that might help finding and
 retrieving that particular article or ones like it?
 
 /Lars
 
 http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf
 first choice googling: threads berkeley
 
 Choice quote: (quoting Sutter and Laurs)
 humans are quicly overwhelmed by concurrency and find it much more
 difficult to reason about concurrent than sequential code. Even careful
 people miss possible interleavings among even simple collections of
 partially ordered operations.
 
 Some people, when confronted with a problem, think I know, I'll use 
 multithreading. Now they have N problems.
   --(almost) jwz

Time for a shameless plug for my favourite programming language:
Erlang http://www.erlang.org.

By using such a language you avoid thinking about interleaving
code totally, since (almost) all interactions between processes are
in the form of explicit messages sent and received. You have no
shared data and no locks (for the Erlang programmer).

I find much easier to get a grip on a concurrent problem thinking
in these terms which is familiar for the human brain since all
humans act this way (message passing and no shared data).

The virtual machine that executes all these lightweight
virtual processes will take the battle with the locks
and the VM programmers are probably doomed to hunt bugs
until the end of days, but that reduces the problem
to getting it right enough for one program only (the VM),
not for every program every programmer writes.

 
 Other than some stunts with data binding I don't think I've seen
 anything that is competent to handle partial orders. And that one breaks
 down horribly if storage cells take on more than one value during 
 execution.
 
   Stas

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Stas Miasnikou

Raimo Niskanen P?P8QP5Q:

On Wed, May 05, 2010 at 01:37:17PM +0300, Stas Miasnikou wrote:

Tony Abernethy wrote:

Lars Nooden wrote:

On Wed, 5 May 2010, Geoff wrote:

There's a paper from Berkeley showing how a threaded program can
never be fully debugged and should be presumed to be broken,
probably fatally broken.

Geoff, can you post the URL or any details that might help finding and
retrieving that particular article or ones like it?

/Lars

http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf
first choice googling: threads berkeley

Choice quote: (quoting Sutter and Laurs)
humans are quicly overwhelmed by concurrency and find it much more
difficult to reason about concurrent than sequential code. Even careful
people miss possible interleavings among even simple collections of
partially ordered operations.
Some people, when confronted with a problem, think I know, I'll use 
multithreading. Now they have N problems.

--(almost) jwz


Time for a shameless plug for my favourite programming language:
Erlang http://www.erlang.org.

By using such a language you avoid thinking about interleaving
code totally, since (almost) all interactions between processes are
in the form of explicit messages sent and received. You have no
shared data and no locks (for the Erlang programmer).

I find much easier to get a grip on a concurrent problem thinking
in these terms which is familiar for the human brain since all
humans act this way (message passing and no shared data).

The virtual machine that executes all these lightweight
virtual processes will take the battle with the locks
and the VM programmers are probably doomed to hunt bugs
until the end of days, but that reduces the problem
to getting it right enough for one program only (the VM),
not for every program every programmer writes.


Pity for you localization of the problem != solution of the problem.


Other than some stunts with data binding I don't think I've seen
anything that is competent to handle partial orders. And that one breaks
down horribly if storage cells take on more than one value during 
execution.


Stas



Re: Kernel panic on shutdown -p -- ACPI problem?

2010-05-06 Thread Stefan Unterweger
* Mike Larkin on Wed, May 05, 2010 at 09:04:06PM -0700:
 If you haven't sent an acpidump yet, send it over.

/*
RSD PTR: Checksum=20, OEMID=PTLTD, RsdtAddress=0x3fefcf28
 */
/*
RSDT: Length=44, Revision=1, Checksum=13,
OEMID=PTLTD, OEM Table ID=  RSDT, OEM Revision=0x604,
Creator ID= LTP, Creator Revision=0x0
 */
/*
Entries={ 0x3fefef2e, 0x3fefefa2 }
 */
/*
DSDT=0x3fefcf54
INT_MODEL=PIC
SCI_INT=9
SMI_CMD=0x802f, ACPI_ENABLE=0xf0, ACPI_DISABLE=0xf1, S4BIOS_REQ=0x0
PM1a_EVT_BLK=0x8000-0x8003
PM1a_CNT_BLK=0x8004-0x8005
PM2_TMR_BLK=0x8008-0x800b
PM2_GPE0_BLK=0x8020-0x8023
P_LVL2_LAT=101ms, P_LVL3_LAT=1001ms
FLUSH_SIZE=0, FLUSH_STRIDE=0
DUTY_OFFSET=1, DUTY_WIDTH=0
DAY_ALRM=13, MON_ALRM=0, CENTURY=50
Flags={WBINVD,PROC_C1}
 */
/*
DSDT: Length=8154, Revision=1, Checksum=247,
OEMID=AMD, OEM Table ID=AMDACPI, OEM Revision=0x604,
Creator ID=MSFT, Creator Revision=0x10d
 */
DefinitionBlock (
acpi_dsdt.aml,//Output filename
DSDT, //Signature
0x1,//DSDT Revision
AMD,  //OEMID
AMDACPI,  //TABLE ID
0x604   //OEM Revision
)

{
Scope(\_PR_) {
Processor(CPU0, 0, 0x8010, 0x6) {
}
Processor(CPU1, 1, 0x0, 0x0) {
}
}
Name(\_S0_, Package(0x4) {
0x0,
0x0,
0x0,
0x0,
})
Name(\_S1_, Package(0x4) {
0x1,
0x1,
0x1,
0x1,
})
Name(\_S4_, Package(0x4) {
0x6,
0x6,
0x6,
0x6,
})
Name(\_S5_, Package(0x4) {
0x7,
0x7,
0x7,
0x7,
})
Name(OSFL, 0x0)
Method(STRC, 2) {
If(LNot(LEqual(SizeOf(Arg0), SizeOf(Arg1 {
Return(0x0)
}
Add(SizeOf(Arg0), 0x1, Local0)
Name(BUF0, Buffer(Local0) { })
Name(BUF1, Buffer(Local0) { })
Store(Arg0, BUF0)
Store(Arg1, BUF1)
While(Local0) {
Decrement(Local0)
If(LNot(LEqual(DerefOf(Index(BUF0, Local0)), DerefOf(Index(BUF1, 
Local0) {
Return(Zero)
}
}
Return(One)
}
OperationRegion(\DEBG, SystemIO, 0x80, 0x1)
Field(\DEBG, ByteAcc, NoLock, Preserve) {
DBG1,   8
}
OperationRegion(KBC_, SystemIO, 0x64, 0x1)
Field(KBC_, ByteAcc, NoLock, Preserve) {
KCMD,   8
}
OperationRegion(EXTM, SystemMemory, 0x000ff830, 0x10)
Field(EXTM, WordAcc, NoLock, Preserve) {
ROM1,   16,
RMS1,   16,
ROM2,   16,
RMS2,   16,
ROM3,   16,
RMS3,   16,
AMEM,   32
}
OperationRegion(VGAM, SystemMemory, 0x000c0002, 0x1)
Field(VGAM, ByteAcc, Lock, Preserve) {
VGA1,   8
}
OperationRegion(GRAM, SystemMemory, 0x0400, 0x0100)
Field(GRAM, ByteAcc, Lock, Preserve) {
Offset(0x10),
FLG0,   8
}
OperationRegion(ELCR, SystemIO, 0x04d0, 0x2)
Field(ELCR, ByteAcc, NoLock, Preserve) {
ELC1,   8,
ELC2,   8
}
OperationRegion(\PSC_, SystemIO, 0x8027, 0x1)
Field(\PSC_, ByteAcc, NoLock, Preserve) {
PSCC,   8
}
OperationRegion(\STUS, SystemIO, 0x8028, 0x1)
Field(\STUS, ByteAcc, NoLock, Preserve) {
G_ST,   8
}
OperationRegion(\STUB, SystemIO, 0x8029, 0x1)
Field(\STUB, ByteAcc, NoLock, Preserve) {
G_SB,   8
}
OperationRegion(\SMIC, SystemIO, 0x802f, 0x1)
Field(\SMIC, ByteAcc, NoLock, Preserve) {
SCP_,   8
}
OperationRegion(\OPS0, SystemIO, 0x21, 0x1)
Field(\OPS0, ByteAcc, NoLock, Preserve) {
IMR0,   8
}
OperationRegion(\OPS1, SystemIO, 0xa1, 0x1)
Field(\OPS1, ByteAcc, NoLock, Preserve) {
IMR1,   8
}
OperationRegion(\GSE_, SystemIO, 0x802a, 0x1)
Field(\GSE_, ByteAcc, NoLock, Preserve) {
IRQR,   8
}
OperationRegion(\FANC, SystemIO, 0x80f8, 0x2)
Field(\FANC, ByteAcc, NoLock, Preserve) {
FAN0,   8,
FAN1,   8
}
OperationRegion(\PM21, SystemIO, 0x8021, 0x1)
Field(\PM21, ByteAcc, NoLock, Preserve) {
IO21,   8
}
OperationRegion(\PM23, SystemIO, 0x8023, 0x1)
Field(\PM23, ByteAcc, NoLock, Preserve) {
IO23,   8
}
OperationRegion(\GP1_, SystemIO, 0x80c0, 0x20)
Field(\GP1_, ByteAcc, NoLock, Preserve) {
GP00,   8,
GP01,   8,
GP02,   8,
GP03,   8,
GP04,   8,
GP05,   8,
GP06,   8,
GP07,   8,
GP08,   8,
GP09,   8,
GP10,   8,
GP11,   8,
GP12,   8,
GP13,   8,
GP14,   8,
GP15,   8,
GP16,   8,
GP17,   8,
GP18,   8,
GP19,   8,
GP20,   8,
GP21,   8,
GP22,   8,
GP23,   8,
GP24,   8,
GP25,   8,
GP26,   8,
GP27,   8,
GP28,   8,
GP29,   8,
GP30,   8,
GP31,   8
}
Name(PICF, 0x0)
Method(_PIC, 1) {
Store(Arg0, PICF)
}
Scope(\) {
Method(DISD, 1) {
Store(Local0, Local0)
}
Method(CKIO, 2) {
Store(Local0, Local0)
}
Method(SLDM, 2) {
Store(Local0, Local0)
}
}
Scope(_GPE) {
Method(_L08) {

SAS RAID Controller of SunFire X4150 causes trouble

2010-05-06 Thread Schafhauser, Florian
Hello,

the RAID Controller causes trouble with OpenBSD 4.5 and 4.6.

Reading and writing is quite slow. When I use I/O intensive applications like
squid, machine dies within next 30 minutes.
Only ping requests were answered.

Here a small write test:

Writing 102 MB (dd if=/dev/zero of=test bs=1024 count=10):
SunFire X4150 Openbsd 4.6 i386:

10240 bytes transferred in 15.978 secs (6408620 bytes/sec)
10240 bytes transferred in 16.031 secs (6387525 bytes/sec)
10240 bytes transferred in 16.011 secs (6395273 bytes/sec)

SunFire X4150 Gentoo Linux 64bit:

10240 bytes (102 MB) copied, 1.45249 s, 70.5 MB/s
10240 bytes (102 MB) copied, 1.59285 s, 64.3 MB/s
10240 bytes (102 MB) copied, 1.58131 s, 64.8 MB/s

Any suggestions?

Thank you!

Florian

dmesg:
OpenBSD 4.6-stable (FWNODE) #0: Tue Feb 16 09:37:34 CET 2010
r...@xx.arri.de:/usr/src/sys/arch/i386/compile/FWNODE
cpu0: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz (GenuineIntel 686-class) 2.33
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
xTPR
real mem  = 3757338624 (3583MB)
avail mem = 3648577536 (3479MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/03/09, BIOS32 rev. 0 @ 0xf0010,
SMBIOS rev. 2.4 @ 0xfccd0 (69 entries)
bios0: vendor American Megatrends Inc. version 1ADQW060 date 03/03/2009
bios0: Sun Microsystems SUN FIRE X4150
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR MCFG SSDT OEMB HPET TCPA SSDT EINJ BERT ERST
HEST
acpi0: wakeup devices SPE4(S1) SPE2(S1) SPE1(S5) P8PC(S5) P0P1(S1) UAR1(S5)
P0P5(S1) P0P6(S1) P0P7(S1) NPE4(S5) NPE5(S5) NPE6(S5) NPE7(S5) USB0(S1)
USB1(S1) USB2(S1) USB3(S1) EUSB(S1) BR1E(S5) OPH1(S5) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 332MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz (GenuineIntel 686-class) 2.33
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
xTPR
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz (GenuineIntel 686-class) 2.33
GHz
cpu2:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
xTPR
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5410 @ 2.33GHz (GenuineIntel 686-class) 2.33
GHz
cpu3:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
xTPR
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec8, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (NPE2)
acpiprt2 at acpi0: bus 2 (SPE4)
acpiprt3 at acpi0: bus -1 (SPE2)
acpiprt4 at acpi0: bus 3 (SPE1)
acpiprt5 at acpi0: bus 4 (P8PC)
acpiprt6 at acpi0: bus 15 (P0P1)
acpiprt7 at acpi0: bus -1 (P0P5)
acpiprt8 at acpi0: bus -1 (P0P6)
acpiprt9 at acpi0: bus -1 (P0P7)
acpiprt10 at acpi0: bus 7 (NPE4)
acpiprt11 at acpi0: bus 8 (NPE5)
acpiprt12 at acpi0: bus 9 (NPE6)
acpiprt13 at acpi0: bus 13 (NPE7)
acpiprt14 at acpi0: bus 14 (P0P4)
acpiprt15 at acpi0: bus 0 (BR1E)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpicpu2 at acpi0: C3, C2, C1, PSS
acpicpu3 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
bios0: ROM list: 0xc/0x6800 0xc6800/0x1000 0xc7800/0x1000 0xc8800/0x5c00
0xce800/0x1000 0xcf800/0x1000 0xd0800/0x1000 0xd1800/0x1000
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2328 MHz: speeds: 2336, 2003 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 5000P Host rev 0xb1
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0xb1
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci2 dev 2 function 0 Intel 6321ESB PCIE rev 0x01
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 Intel PRO/1000 PT (80003ES2) rev 0x01: apic 4
int 18 (irq 11), address 00:23:8b:41:ba:4e
em1 at pci4 dev 0 function 1 Intel PRO/1000 PT (80003ES2) rev 0x01: apic 4
int 19 (irq 5), address 00:23:8b:41:ba:4f
ppb4 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci5 at ppb4 bus 5
ppb5 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0xb1
pci6 at ppb5 bus 6
ppb6 at pci0 dev 4 function 0 Intel 5000 PCIE x8 rev 0xb1
pci7 at ppb6 bus 7
mpi0 at pci7 dev 0 function 0 Symbios Logic SAS1068E rev 0x04: apic 4 int 17
(irq 11)
scsibus0 at mpi0: 112 targets
sd0 at scsibus0 targ 0 lun 0: LSILOGIC, Logical Volume, 3000 SCSI2 0/direct
fixed
sd0: 

Re: Java 1.6 thinkorswim from TDAmeritrade

2010-05-06 Thread Diana Eichert

On Wed, 5 May 2010, J.C. Roberts wrote:
SNIP

It's been a few years (2007), but yes, I had ThinkOrSwim running on
OpenBSD at one point in time. It was only running with a demo
account, so I doubt TDAmeritrade was involved, but I'm not certain
(e.g. TDAmeritrade *might* have been the source of the quote streams
for demo accounts, but I really don't know for certain).


ToS was purchased by TDA in the last year.  In 07 they were still
using their own servers, I haven't checked to see if the server
connection was different when running ToS connected to my ThinkorSwim
account vs ToS connected to my TDA account.

diana



Re: OT - UML, can someone state that it works ?

2010-05-06 Thread Christiano F. Haesbaert
Thank you all for your replies.

Some points to note:

1 - I did not intend to start a flame war, although now I realize it
may have sounded like one.
2 - I spend 5 hours everyday in a place where *most* people believes
in this bullshit and started to question my sanity (ohh pooor me).
3 - I wanted to hear the other side of the story.
4 - I know the answers I have here are often the real deal, no
economic/academia/industry/buzzword/bullshit influences.
5 - I regret not asking for people to reply me off list (learned my lesson).

I got many insightfull answers off list as well (others not that much).

I ask you not to answer to this thread anymore, mail me off list if
you have anything to share.

Thanks and sorry for the noise.



Re: OT - UML, can someone state that it works ?

2010-05-06 Thread Darrin Chandler
On Wed, May 05, 2010 at 11:57:29PM -0300, VICTOR TARABOLA CORTIANO wrote:
 The computer industry is driven by fashion instead of quality...

Not really. In all seriousness, the software development industry is
driven by companies that believe that deep down, software developers are
like brick layers: some number are incompetent, and of the competent
ones some are faster/better than others, but mostly they are
interchangeable. You want a brick layer then you hire one for the
standard price.

This notion they have is false, but there's a whole industry that sells
to them based on their misconceptions. This naturally leads to whole new
methodologies every decade or so (long enough for the new thing to
become a buzzword, get adopted everywhere, and then for companies to
discover that projects still fail and the software still sucks and costs
a fortune to develop).

The alternative is to recognize that programmers are not
interchangeable, and that up front effort in selecting the right people
and providing them with a good environment makes far more different that
going with whatever methodology is the current Big Thing. That's backed
up by studies and written about in books, but most managers do not want
to hear it.

-- 
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Ben Niccum
On Thu, 6 May 2010 02:55:16 -0400
Tony Abernethy t...@servasoftware.com wrote:

 Stas Miasnikou wrote:
  Marco Peereboom wrote:
   Wouldn't it be adorable if people learned to program FSMs instead
   of java in those fancy universities?
 
  Seconded.
 
 Do you seriously expect programmers to learn to program?
 

I actually took an entire course in college just on how to build FSMs
and compilers. Although the we were given our choice of language to
write it in, and most of the class used java. I went for C++, just for
the experience.

-- 
Ben Niccum
be...@bendtel.com



Re: tls proxy in front of spamd?

2010-05-06 Thread Chris Dukes
On Wed, May 05, 2010 at 09:46:08AM +0100, Kevin Chadwick wrote:
 Sorry,
 
 I maybe confused about the term for MTAs using ssl to deliver mail to
 me. I just feel wrong using tls for delivering mail to other servers or
 atleast a hop, without letting them do the same. Obviously the benefits
 of spamd outweigh the tls. I was wondering about something like
 relayd, nginx or stunnell in front of spamd but I think that I
 would either break allowing plain connections or would have to provide
 a way of bypassing relayd using submission and smtp ports, which I won't
 do.

Are you caring about MUAs submitting email, or MTAs relaying email?

If the former, use submission (RFC 4409, SMTP-AUTH required over 
the submission port, never goes near spamd.  If you provide a mail
server for client MUAs on networks such as ATT's residential
offerings, you need to provide this service anyways and educate your 
users).

If the latter you have a few options.
0) Don't worry about it, let the sending MTA negotiate for
TLS after spamd has whitelisted it.
1) Whitelist the SMTP servers you trust to actually do TLS.
2) Use the deprecated SSL/SMTP (aka SMTPS) port.  Sorry,
I don't know if relayd's SSL acceleration will help here.
3) Use a greylisting engine other than spamd that supports
TLS and SMTP-AUTH (It would appear that spey and ITEISA can do that)
4) Patch spamd to handle TLS negotiation and SMTP-AUTH for
immediate white listing.


-- 
Chris Dukes



HP Compaq 6005 hanging on boot

2010-05-06 Thread Rafael R Obelheiro
Hello,

I tried to install OpenBSD on an HP Compaq 6005 machine, but it's not
booting OpenBSD from a CD-ROM. It prints the following messages:

  CD-ROM: 9F
  Loading /4.7/I386/CDBOOT
  probing: pc0 com0 pci mem[

and then simply hangs. 

I've tried the latest 4.7 snapshot (both i386 and amd64) and 4.6/i386, all
with the same results.

The same machine runs Linux (Ubuntu 9.10, FWIW) just fine. I'm not sure it
helps, but I've appended a Linux dmesg below (no OpenBSD dmesg since the 
thing won't boot).

Any hints on how to solve the problem?

Cheers,
Rafael


 Linux dmesg starts here 

[0.00] Initializing cgroup subsys cpuset
[0.00] Initializing cgroup subsys cpu
[0.00] Linux version 2.6.31-21-generic-pae (bui...@rothera) (gcc 
version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) ) #59-Ubuntu SMP Wed Mar 24 08:47:55 UTC 
2010 (Ubuntu 2.6.31-21.59-generic-pae)
[0.00] KERNEL supported cpus:
[0.00]   Intel GenuineIntel
[0.00]   AMD AuthenticAMD
[0.00]   NSC Geode by NSC
[0.00]   Cyrix CyrixInstead
[0.00]   Centaur CentaurHauls
[0.00]   Transmeta GenuineTMx86
[0.00]   Transmeta TransmetaCPU
[0.00]   UMC UMC UMC UMC
[0.00] BIOS-provided physical RAM map:
[0.00]  BIOS-e820:  - 0009f800 (usable)
[0.00]  BIOS-e820: 0009f800 - 000a (reserved)
[0.00]  BIOS-e820: 000e8000 - 0010 (reserved)
[0.00]  BIOS-e820: 0010 - dfbc6b00 (usable)
[0.00]  BIOS-e820: dfbc6b00 - e000 (reserved)
[0.00]  BIOS-e820: f400 - f800 (reserved)
[0.00]  BIOS-e820: fec0 - fed4 (reserved)
[0.00]  BIOS-e820: fed45000 - 0001 (reserved)
[0.00]  BIOS-e820: 0001 - 00012000 (usable)
[0.00] DMI 2.6 present.
[0.00] last_pfn = 0x12 max_arch_pfn = 0x100
[0.00] MTRR default type: uncachable
[0.00] MTRR fixed ranges enabled:
[0.00]   0-9 write-back
[0.00]   A-B uncachable
[0.00]   C-E3FFF write-protect
[0.00]   E4000-E write-back
[0.00]   F-F write-protect
[0.00] MTRR variable ranges enabled:
[0.00]   0 base  mask  write-back
[0.00]   1 base E000 mask E000 uncachable
[0.00]   2 base 0001 mask E000 write-back
[0.00]   3 disabled
[0.00]   4 disabled
[0.00]   5 disabled
[0.00]   6 disabled
[0.00]   7 disabled
[0.00] TOM2: 00012000 aka 4608M
[0.00] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[0.00] e820 update range: e000 - 0001 (usable) 
== (reserved)
[0.00] e820 update range: 2000 - 6000 (usable) 
== (reserved)
[0.00] Scanning 1 areas for low memory corruption
[0.00] modified physical RAM map:
[0.00]  modified:  - 2000 (usable)
[0.00]  modified: 2000 - 6000 (reserved)
[0.00]  modified: 6000 - 0009f800 (usable)
[0.00]  modified: 0009f800 - 000a (reserved)
[0.00]  modified: 000e8000 - 0010 (reserved)
[0.00]  modified: 0010 - dfbc6b00 (usable)
[0.00]  modified: dfbc6b00 - e000 (reserved)
[0.00]  modified: f400 - f800 (reserved)
[0.00]  modified: fec0 - fed4 (reserved)
[0.00]  modified: fed45000 - 0001 (reserved)
[0.00]  modified: 0001 - 00012000 (usable)
[0.00] initial memory mapped : 0 - 00e0
[0.00] init_memory_mapping: -379fe000
[0.00] NX (Execute Disable) protection: active
[0.00]  00 - 20 page 4k
[0.00]  20 - 003780 page 2M
[0.00]  003780 - 00379fe000 page 4k
[0.00] kernel direct mapping tables up to 379fe000 @ 7000-d000
[0.00] RAMDISK: 3789c000 - 37fef334
[0.00] Allocated new RAMDISK: 008f5000 - 01048334
[0.00] Move RAMDISK from 3789c000 - 37fef333 to 
008f5000 - 01048333
[0.00] ACPI: RSDP 000e5e10 00014 (v00 COMPAQ)
[0.00] ACPI: RSDT dfbd6b40 00040 (v01 HPQOEM SLIC-BPC 20090825  
)
[0.00] ACPI: FACP dfbd6be8 00074 (v01 COMPAQ HP_RS880 0001  
)
[0.00] ACPI: DSDT dfbd6f5f 09709 (v01 COMPAQ DSDT_PRJ 0001 MSFT 
010E)
[0.00] ACPI: FACS dfbd6b00 00040
[0.00] ACPI: APIC dfbd6c5c 00084 (v01 COMPAQ HP_RS880 0001  
)
[0.00] ACPI: ASF! dfbd6ce0 00063 (v32 COMPAQ HP_RS880 

Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Noah Pugsley

Tony Abernethy wrote:

Stas Miasnikou wrote:

Marco Peereboom wrote:

Wouldn't it be adorable if people learned to program FSMs instead of
java in those fancy universities?

Seconded.


Do you seriously expect programmers to learn to program?


Finite Sex Machine?



Re: SquidGuard problem

2010-05-06 Thread Alessandro Baggi

Hi there,
thanks for the reply. I've added in makefile -pthread, compiled and 
runned squidclamav but

squid + squidclamav + squidguard problem persist.
Other issue?

thanks in advance
Stuart Henderson wrote:

On 2010-05-04, Alessandro Baggi alessandro.ba...@gmail.com wrote:
  

Hi there.
 I've a problem using squidguard under openbsd (4.4, 4.5, 4.6) with this 
combination (squid + squidclamav + squidguard). The problem is that 
after different hours that squidguard got not request, all squidguard 
processes becomes zombies.


squid + squidguard (works fine)
squid + squidclamav (works fine)
squid + squidclamav + squidguard (squidguard processes becomes zombie)
squid + ad-zap (zapchain) + squidclamav + squidguard (squidguard 
processes becomes zombie)



Run 'ldd /path/to/squidclamav'. If it doesn't include
libpthread then try adding -pthread to the compiler flags when
you build it.




Super popusti za super izgled

2010-05-06 Thread Top Shop
Top Shop

Sve za lep izgled (do 40% popusta)

ProleDni super popusti za fitnes proizvode! Doterajte svoju figuru i
obucite kupaDi kostim bez ustezanja! PokaEite svima svoje zategnuto i
skladno telo, budite u formi, veEbajte kod kuDe!

Pogledajte sve iz ove ekskluzivne ponude za leto, pratite trendove i
budite fit. Kupite uz POPUST ili POKLON!
Akcija traje do 5.6.2010. PoEurite, poruD
ite i uštedite!

Fitnes rasprodaja

Fitnes rasprodaja

1. PokaEite s ponosom svoje lepo oblikovane noge

Potrebno je samo malo dobre volje i nekoliko minuta dnevno! Najbolji
naD
in do super izgleda.

Leg Magic (-20%)
...samo 60 sekundi veEbanja dnevno!

Leg Magic

Jedinstvena prilika za kupovinu uz popust! Savršena zadnjica i noge uz
veEbanje kod kuDe, D
ak i ako veEbate samo par minuta dnevno!
Izgledajte savšeno, obucite mini suknju i budite ponosni!

Leg Magic

Vaša cena: 6.392 rsd

PoruD
ite!

-20%

Leg Magic

PreporuD
ujemo: Rina's 1 + 2!

Najbolja knjiga dijete sa zbirkom jednostavnih recepata za ukusna jela!
Najefikasniji naD
in da skinete kilograme i odrEite optimalnu telesnu
teEinu bez odricanja!

Rina 1. + 2. deo

Pogledajte ponudu...

PoruD
ite!

2. UÅ¡tedite vreme i novac - veEbajte kod kuDe

Velform Sauna

Uklonite suvišne masne naslage i opustite mišiDe bez ikakvog napora!

Više informacija

Velform Sauna

Vaša cena: 3.990 rsd

PoruD
ite!

-39%

Ab Tronic x2

7 puta efikasnije zatezanje trbušnjaka od drugih naD
ina veEbanja!

Više informacija

Ab Tronic

Vaša cena: 7.990 rsd

PoruD
ite!

poklon

Ab Trainer Advance

Zategnite trbušnjake, leDne mišiDe i noge bez preteranog optereDenja!

Više informacija

Ab Trainer Advance

Vaša cena: 7.641,5 rsd

PoruD
ite!

-30%

3. Pratite svoje napredaovanje, veEbajte efikasno

Vaga 5 u 1 + POKLON

Digitalna vaga za merenje procenta telesne masti, vode i mase mišiDa!

Više informacija

Sheer Cover

Vaša cena: 2.590 rsd

PoruD
ite!

poklon!

Single Station

KuDna teretana za sve grupe mišiDa! Super ušteda - teretana kod kuDe!

Više informacija

Single Station

Vaša cena: 20.990 rsd

PoruD
ite!

-16%

Air Climber

Jednostavno i lako oblikujte mišiDe nogu, ruku i zadnjice. Uz super
uštedu!

Više informacija

Air Climber

Vaša cena: 6.990 rsd

PoruD
ite!

-30%

Pogledajte sve iz ponude Fitnes rasprodaja - pronaDite pravu stvar za
sebe po super ceni!

Ovu elektronsku poštu primate, ukoliko ste svojevoljno ostavili svoju
e-mail adresu na nekom od sajtova Top Shop-a, uD
estvovali u našoj poklon
igri ili nagradnom kvizu ili se prijavili za e-D
asopis Top Shop-a ili
nekog od nasih brendova.

Ponude date u ovom e-mailu vaEe do 6. juna 2010. ili do isteka zaliha -
iskljuD
ivo za porudEbine upuDene putem Interneta ili broja telefona
021 489 26 60.

Ukoliko ne Eelite više da primate naše elektronske poruke, za
odjavljivanje sa naše e-mailing liste, kliknite ovde.

Studio Moderna d.o.o., Bulevar vojvode Stepe 30, 21000 Novi Sad, Tel: 021
489 26 60, Fax: 021 489 29 08,
E-mail: i...@news.top-shop.rs

[IMAGE]If you would no longer like to receive our emails please
unsubscribe by clicking here.



Semi-newbie NAT question

2010-05-06 Thread Jeff Powell
Hi,
I'm hoping someone can help me with this.  I'm just not totally up to speed on
the finer details of NAT.

I have built a firewall router using a Soekris Net5501.  It has 4 NICs, one
not used.  They are as follows:

vr0 = Connected to DSL modem.  No IP address.  Given as $ExtIF in pf.conf.
vr1 = Connected to Gb switch.  Public IP.  Given as $IntIF in pf.conf.
vr2 = Connected to same Gb switch.  Private IP.  $LocalIF in pf.conf.

My public net is referred to as $DMZnet and the local net is $IntNet.

vr0 and vr1 are bridged together as bridge0.

I am giving the local clients Internet access via NAT:

nat log on $IntIF from ! $IntIF to any - $IntIF

The clients use the local IP of the firewall, 192.168.1.254, as their default
gateway.
All this works just fine until I try to put another server on the public net.
When I point that server's gateway at the public IP of the router ($IntIF),
it's blocked by the NAT.  I understand that this is NAT doing its job by
blocking packets it doesn't know about, but what do I do about a gateway for
the DMZ net hosts?  I don't want to use the ISP's gateway, I'd rather use the
router.  How can I make the router accept traffic from DMZ net hosts as a
gateway?  I've thought of using the currently-unused fourth NIC to give it a
second public IP, but that's wasteful.  I'm hoping this can be done purely in
pf.

thanks,
Jeff



Re: Semi-newbie NAT question

2010-05-06 Thread Adam M. Dutko
 vr0 and vr1 are bridged together as bridge0.


I was puzzled as to how it was working until you said this...

I have a similar setup as you.  I have a public interface with my public IP
attached to the cable modem, then I have two other interfaces, one for
internal hosts and another for DMZ hosts.  In order to give a good amount of
separation, logical and physical, I've setup two unique subnets, one for
private side and the other for the DMZ.  I simply point the DMZ hosts to the
DMZ gateway address and then handle it through pf and do the same with
internal/private hosts.  I understand you don't want to use the fourth port,
but it would make for clean separation and wouldn't require another public
IP if you used a private subnet.  An added benefit of such a setup is port
redirects from the public IP to the other hosts, or using some sort of proxy
to proxy connections to the DMZ hosts.



Re: Semi-newbie NAT question

2010-05-06 Thread Jeff Powell
Thanks, that's something I'll look into.  There's another wrinkle I forgot to
mention-- There is a Windows domain controller on the private net along with
several Windows clients, and one Windows server on the DMZ net, a member of
the domain.  The router is running BIND, with its zones as slaves to the
Windows DNS server on the domain controller (this is my public nameserver--
the Windows primary is on the private net).  For this reason, the Windows
server on the DMZ net must use the domain controller's private address as its
DNS and not the router's BIND nameserver on the DMZ net, because BIND refuses
to handle the special records that a Windows client needs to locate Active
Directory.  I'm not totally against creating another subnet, I just want to
keep it as simple as possible and I hate messing with static routes and that
sort of thing.

Thanks,

Jeff



From: Adam M. Dutko [mailto:dutko.a...@gmail.com]
Sent: Thu 5/6/2010 12:12 PM
To: Jeff Powell
Cc: misc@openbsd.org
Subject: Re: Semi-newbie NAT question



vr0 and vr1 are bridged together as bridge0.




I was puzzled as to how it was working until you said this...

I have a similar setup as you.  I have a public interface with my public IP
attached to the cable modem, then I have two other interfaces, one for
internal hosts and another for DMZ hosts.  In order to give a good amount of
separation, logical and physical, I've setup two unique subnets, one for
private side and the other for the DMZ.  I simply point the DMZ hosts to the
DMZ gateway address and then handle it through pf and do the same with
internal/private hosts.  I understand you don't want to use the fourth port,
but it would make for clean separation and wouldn't require another public IP
if you used a private subnet.  An added benefit of such a setup is port
redirects from the public IP to the other hosts, or using some sort of proxy
to proxy connections to the DMZ hosts.



Re: Semi-newbie NAT question

2010-05-06 Thread Jussi Peltola
On Thu, May 06, 2010 at 11:55:58AM -0700, Jeff Powell wrote:
 All this works just fine until I try to put another server on the public net.
 When I point that server's gateway at the public IP of the router ($IntIF),
 it's blocked by the NAT.  I understand that this is NAT doing its job by
 blocking packets it doesn't know about, but what do I do about a gateway for
 the DMZ net hosts?  I don't want to use the ISP's gateway, I'd rather use the
 router.

This would be useless, the return traffic still flows directly from
the isp router to your bridged hosts.

pf can filter on a bridge. Just do it that way.



losing uhci4 macbook usb keyboard and trackpad

2010-05-06 Thread Ted Roby
Hi. I am losing uhci4 shortly after reboot.

May  6 12:00:01 kramer newsyslog[8688]: logfile turned over
May  6 12:00:01 kramer syslogd: restart
May  6 12:09:07 kramer /bsd: uhci4: host controller process error
May  6 12:09:07 kramer /bsd: uhci4: host controller halted

This is a Macbook 3,1 with usb keyboard/trackpad.
I lose control of usb input.
I do not lose control of the power button, and am able
to initiate proper shutdown by pressing it.

This problem does not exist on my kernel with header:
OpenBSD 4.7-current (bsd.build) #0: Sat May  1 00:23:17 MDT 2010

This problem exists with new kernel with header:
OpenBSD 4.7-current (bsd.build) #0: Thu May  6 08:19:23 MDT 2010

Changes were made to:  sys/dev/usb: uhci.c ohci.c
between these kernels

Full dmesg of failing kernel GENERIC.MP +GEM


OpenBSD 4.7-current (bsd.build) #0: Thu May  6 08:19:23 MDT 2010
mo...@kramer.my.domain:/tmp/bsd.build
cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (GenuineIntel 686-class)
2.20 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
real mem  = 3184046080 (3036MB)
avail mem = 3089235968 (2946MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @ 0xe
(43 entries)
bios0: vendor Apple Inc. version MB31.88Z.008E.B02.0803051832 date
03/05/08
bios0: Apple Inc. MacBook3,1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT SSDT
SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) ARPT(S3) GIGE(S3) UHC1(S3) UHC2(S3)
UHC3(S3) UHC4(S3) UHC5(S3) EHC1(S3) EHC2(S3) EC__(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (GenuineIntel 686-class)
2.20 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP05)
acpiprt2 at acpi0: bus 3 (RP06)
acpiprt3 at acpi0: bus 4 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 15253732082930497 type 15253732284385612 oem
15253732284452179
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: LCD_
acpivout1 at acpivideo0: VGA_
acpivout2 at acpivideo0: TV__
bios0: ROM list: 0xc/0xee00!
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2200, 2000, 1800, 1600, 1400,
1200, 800 MHz
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffa/0x3
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
Intel GM965 Video rev 0x03 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int 20
(irq 10)
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1 int 16
(irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1 int 21
(irq 9)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03: apic 1
int 20 (irq 10)
azalia0: RIRB time out
azalia0: codecs: Realtek ALC885
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 1 int 16
(irq 255)
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 Intel 82801H PCIE rev 0x03: apic 1 int 16
(irq 255)
pci2 at ppb1 bus 2
Broadcom BCM4321 rev 0x03 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 5 Intel 82801H PCIE rev 0x03: apic 1 int 17
(irq 255)
pci3 at ppb2 bus 3
mskc0 at pci3 dev 0 function 0 Marvell Yukon 88E8058 rev 0x13, Yukon-2 EC
Ultra rev. B0 (0x3): apic 1 int 17 (irq 7)
msk0 at mskc0 port A: address 00:1b:63:ad:0b:ee
eephy0 at msk0 phy 0: 88E1149 Gigabit PHY, rev. 1
uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x03: apic 1 int 16
(irq 11)
uhci3 at pci0 dev 29 function 1 Intel 82801H USB rev 0x03: apic 1 int 18
(irq 5)
uhci4 at pci0 dev 29 function 2 Intel 82801H USB rev 0x03: apic 1 int 21
(irq 9)
ehci1 at pci0 dev 29 function 7 Intel 82801H USB rev 0x03: apic 1 int 20
(irq 10)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 

openfile advice / clarification

2010-05-06 Thread Keith
Hi, I am having trouble increasing the openfile limit in a default 
install of OpenBSD 4.6 x64 from the default setting of 128 to say 5000. 
I want to run Pound (reverse http proxy)  stably without it stopping at 
random times (Always seems to be the weekend) and to do that I need to 
crank up the openfile limit. I think Pound runs with the following 
account settings Type=deamon, user = _pound , group= _pound


I have tried tweaking a number of settings but haven't managed to get 
the setting above 1024.  Below are some of the settings we have tried 
changing but without complete sucess. I should say that my testing 
strategy is just to login as root and do a ulimit and see what is 
returned, I don't know how to test the openfile limit for a deamon account.


On a default install doing a ulimit -n  or -a  returns an openfile limit 
of 128


I know that if I do a ulimit -n 1  the limit get's set at maximum of 
7030. I don't know if doing this change effects other users and I am 
pretty sure it doesn't survive a reboot.


I've done sysctl kern.maxfiles=3000 for example but if I do a ulimit 
-n after I get a different result although I can't remember what it was
I also tried editing the sysctl.conf file and put the kern.maxfiles 
entry in there but had similar results !


I've edited the login.conf file and changed the staff, default and the 
daemon entries eg :openfiles-cur=:\ and then rebooted but the 
highest I could get the openfile limit to is 1024


Could someone help ?

Thanks
Keith



Re: OT - UML, can someone state that it works ?

2010-05-06 Thread Corey

On 05/06/2010 10:49 AM, Darrin Chandler wrote:

On Wed, May 05, 2010 at 11:57:29PM -0300, VICTOR TARABOLA CORTIANO wrote:
   

The computer industry is driven by fashion instead of quality...
 

Not really. In all seriousness, the software development industry is
driven by companies that believe that deep down, software developers are
like brick layers: some number are incompetent, and of the competent
ones some are faster/better than others, but mostly they are
interchangeable. You want a brick layer then you hire one for the
standard price.

This notion they have is false, but there's a whole industry that sells
to them based on their misconceptions. This naturally leads to whole new
methodologies every decade or so (long enough for the new thing to
become a buzzword, get adopted everywhere, and then for companies to
discover that projects still fail and the software still sucks and costs
a fortune to develop).

The alternative is to recognize that programmers are not
interchangeable, and that up front effort in selecting the right people
and providing them with a good environment makes far more different that
going with whatever methodology is the current Big Thing. That's backed
up by studies and written about in books, but most managers do not want
to hear it.

   
It's not just the software development industry, sadly.  This is a 
convenient abstraction that many (most?) managers seem to subscribe to.


Corey



Re: openfile advice / clarification

2010-05-06 Thread Jacob Meuser
On Fri, May 07, 2010 at 12:48:30AM +0100, Keith wrote:
 Hi, I am having trouble increasing the openfile limit in a default
 install of OpenBSD 4.6 x64 from the default setting of 128 to say
 5000. I want to run Pound (reverse http proxy)  stably without it
 stopping at random times (Always seems to be the weekend) and to do
 that I need to crank up the openfile limit. I think Pound runs with
 the following account settings Type=deamon, user = _pound ,
 group= _pound
 
 I have tried tweaking a number of settings but haven't managed to
 get the setting above 1024.  Below are some of the settings we have
 tried changing but without complete sucess. I should say that my
 testing strategy is just to login as root and do a ulimit and see
 what is returned, I don't know how to test the openfile limit for a
 deamon account.
 
 On a default install doing a ulimit -n  or -a  returns an openfile
 limit of 128
 
 I know that if I do a ulimit -n 1  the limit get's set at
 maximum of 7030. I don't know if doing this change effects other
 users and I am pretty sure it doesn't survive a reboot.
 
 I've done sysctl kern.maxfiles=3000 for example but if I do a
 ulimit -n after I get a different result although I can't remember
 what it was
 I also tried editing the sysctl.conf file and put the kern.maxfiles
 entry in there but had similar results !
 
 I've edited the login.conf file and changed the staff, default and
 the daemon entries eg :openfiles-cur=:\ and then rebooted but
 the highest I could get the openfile limit to is 1024
 
 Could someone help ?

forgot to run cap_mkdb(1)?

 Thanks
 Keith

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Java 1.6 thinkorswim from TDAmeritrade

2010-05-06 Thread Marcel Dan
I have to work on it more to get more info but I was wondering if someone
had it running before I spend time on it.

Basically, I can install and start to run the thinkorswim app but it hangs
when it downloads the new version after the login.

In regards to the app itself, I can login and use it on other OS's...in
Debian (squeeze) however I have to disable ip6 for it to work.

In regards to Java 1.6, I can run and login in the freechess.org server
using the Jin chess client on OpenBSD.

I thought about calling TD directly but I'm sure they are swamped after the
market panic today.

thanks,

Marcel

On Thu, May 6, 2010 at 6:25 AM, Diana Eichert deich...@wrench.com wrote:

 On Wed, 5 May 2010, Marcel Dan wrote:

  Hi,

 I have been unable to get thinkorswim connected to the TDAmeritrade server
 on OpenBSD.

 Has anyone used thinkorswim from TDAmeritrade on OpenBSD?

 thanks,

 Marcel


 OMG another stock / options / futures trader.  I wish I could help,
 but I run ToS on either Linux or Winders.

 What happens when you run ToS?

 diana



Re: openfile advice / clarification

2010-05-06 Thread Stuart Henderson
On 2010-05-06, Keith ke...@scott-land.net wrote:
 Hi, I am having trouble increasing the openfile limit in a default 
 install of OpenBSD 4.6 x64 from the default setting of 128 to say 5000. 
 I want to run Pound (reverse http proxy)  stably without it stopping at 
 random times (Always seems to be the weekend) and to do that I need to 
 crank up the openfile limit. I think Pound runs with the following 
 account settings Type=deamon, user = _pound , group= _pound

If you start it from a shell, it uses the class for the account you've
logged in as.

If you start it from /etc/rc.local, unless you do something with su or
sudo, it uses the class daemon.

So you need to adjust openfiles-cur for the class of the account you're 
starting it from. If starting it from a shell, make sure you use a new
login shell after adjusting this.

 I know that if I do a ulimit -n 1  the limit get's set at maximum of 
 7030. I don't know if doing this change effects other users and I am 
 pretty sure it doesn't survive a reboot.

This limit is from kern.maxfiles sysctl. Either adjust it with sysctl(8)
or edit sysctl.conf and reboot to change this.

 I've done sysctl kern.maxfiles=3000 for example but if I do a ulimit 

This is lowering things from the default (7030), at least on i386
and amd64.



Re: openfile advice / clarification

2010-05-06 Thread Philip Guenther
On Thu, May 6, 2010 at 4:48 PM, Keith ke...@scott-land.net wrote:
 Hi, I am having trouble increasing the openfile limit in a default install
 run Pound (reverse http proxy)  stably without it stopping at random times
 (Always seems to be the weekend) and to do that I need to crank up the
 openfile limit.
...
 I've done sysctl kern.maxfiles=3000 for example but if I do a ulimit -n
 after I get a different result although I can't remember what it was
 I also tried editing the sysctl.conf file and put the kern.maxfiles entry
in
 there but had similar results !

You probably don't need to touch this.  Indeed, you *lowered* it:

$ sysctl kern.maxfiles
kern.maxfiles=7030
$

Note the kern.maxfiles is the upper-bound on open files in the
*entire* system and not a limit on the number of file descriptors in a
process!  You don't need to touch that unless/until you get ENFILE
errors.


 I've edited the login.conf file and changed the staff, default and the
 daemon entries eg :openfiles-cur=:\ and then rebooted but the highest I
 could get the openfile limit to is 1024

This is the right place, you just didn't consider the -cur vs -max
distinction.  By default, openfiles-max=1024.  If you want cur to be
 then you need to either raise both (by just setting
openfiles=) or explicitly set openfiles-max to at least .


Philip Guenther



Re: Java 1.6 thinkorswim from TDAmeritrade

2010-05-06 Thread Marcel Dan
Thanks for the reply.

I'm running i386 4.7 current (as of last week)  with jdk 1.6 installed from
cvs/ports.

I found the error.

06.05.10 17:24:22 ERROR util.PerformanceMonitor - Error creating snapshot:
java.lang.UnsupportedOperationException: Thread CPU Time Measurement is not
supported.
at sun.management.ThreadImpl.getThreadCpuTime(ThreadImpl.java:196)
at
com.devexperts.tos.util.JvmStateSnapshot.getCurrentCpuTimes(JvmStateSnapshot.java:45)
at
com.devexperts.tos.ui.user.util.PerformanceMonitor.createSnapshot(PerformanceMonitor.java:292)
at
com.devexperts.tos.ui.user.util.PerformanceMonitor.run(PerformanceMonitor.java:495)

I will keep working on it and post any successful results.

Thanks,


Marcel


On Wed, May 5, 2010 at 11:51 PM, J.C. Roberts list-...@designtools.orgwrote:

 On Wed, 5 May 2010 20:27:33 -0700 Marcel Dan marcel...@nwvd.org wrote:

  Hi,
 
  I have been unable to get thinkorswim connected to the TDAmeritrade
  server on OpenBSD.
 
  Has anyone used thinkorswim from TDAmeritrade on OpenBSD?
 
  thanks,
 
  Marcel

 You need to provide more information. What *exactly* are you trying to
 do, how are you trying to do it, what is your configuration, and what if
 any error messages do you get in your xterm?

 It's been a few years (2007), but yes, I had ThinkOrSwim running on
 OpenBSD at one point in time. It was only running with a demo
 account, so I doubt TDAmeritrade was involved, but I'm not certain
 (e.g. TDAmeritrade *might* have been the source of the quote streams
 for demo accounts, but I really don't know for certain).

 If you're not running from a xterm, you should be.

$ cd /place/where/tos/is/installed
$ java -jar launcher.jar

 If you want more debug info:
$ java -debug -jar launcher.jar

 Though the above should get you the vast majority of status/error
 messages, you should also keep an eye on the output of your console
 (VT1).

 You'll need the typical java settings in your environment (or in
 your ~/.kshrc). You'll need to ln(1) whatever java version you're using
 to /usr/local/java and /usr/lcoal/share/java if you have multiple
 versions of java installed, as well as set up your classpath. A little
 shell script can handle it:

# Java Stuff
export JAVA_HOME=/usr/local/java
CLASSPATH=./
CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib/rt.jar
CLASSPATH=$CLASSPATH:/usr/local/share/java/classes
export CLASSPATH
export PATH=$PATH:$JAVA_HOME/jre/bin

 In 2007 the ThinkOrSwim folks liked to claim compatibility with ancient
 java versions (e.g. v1.1), but they really don't do proper testing to
 make sure their claims are accurate. From my testing in 2007, at least
 Java 1.5 was actually required.

 My notes also mention needing to run
$ touch thinkorswim.lax

 in the ./TOS/ directory to get rid of an error message on startup since
 the file was not created by default. This bug was reported, but I'm not
 sure if it was ever fixed.

 NOTE: Though TOS ran fine for me with a demo account, things have
 undoubtedly changed in their software since 2007.

jcr

 --
 The OpenBSD Journal - http://www.undeadly.org



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread Ed Ahlsen-Girard
 From:   Noah Pugsley noah.p () bendtel ! com
 Date:   2010-05-06 17:03:28
 
 Tony Abernethy wrote:
  Stas Miasnikou wrote:
  Marco Peereboom wrote:
  Wouldn't it be adorable if people learned to program FSMs instead
  of java in those fancy universities?
  Seconded.
 
  Do you seriously expect programmers to learn to program?
  
 Finite Sex Machine?

James Brown would never tolerate a *Finite* sex machine.

-- 

Edward Ahlsen-Girard
Ft Walton Beach, FL



Re: State of multiprocessing and multithreading in OpenBSD

2010-05-06 Thread J.C. Roberts
On Thu, 6 May 2010 20:28:31 -0500 Ed Ahlsen-Girard eagir...@cox.net
wrote:

  From:   Noah Pugsley noah.p () bendtel ! com
  Date:   2010-05-06 17:03:28
  
  Tony Abernethy wrote:
   Stas Miasnikou wrote:
   Marco Peereboom wrote:
   Wouldn't it be adorable if people learned to program FSMs
   instead of java in those fancy universities?
   Seconded.
  
   Do you seriously expect programmers to learn to program?
   
  Finite Sex Machine?
 
 James Brown would never tolerate a *Finite* sex machine.
 


Bit Up. Bit On Up


-- 
The OpenBSD Journal - http://www.undeadly.org