Re: cwm menu parsing

2015-08-05 Thread Brendan Desmond

On 2015-08-05, Erling Westenvik wrote:

I've noticed this too for the last snapshots I've been trying, and was
planning to check out the sources to see what changes has been commited
causing what to me seems to be that the menu now gets alfabetically
sorted.


I've also noticed this pop up within the last month using the Linux port of cwm
from github (url: https://github.com/chneukirchen/cwm).

-bsd



Re: Default OpenBSD browser

2015-07-28 Thread Brendan Desmond

On 2015-07-28, li...@wrant.com wrote:

 What is the best and lightest browser...

Dillo is generally good, with Firefox for heavy sites.


Seconded. The default browser concept is most probably not a good
idea (read a bad idea) for any OS.

There is no such thing as best, but for lightest:

Dillo is very fast lightweight and almost always renders correct the
proper sites, and has no JavaScript vulnerabilities (for now). Helps
read web pages daily.

The ftp(1) works great for command line client, used daily.

Any opinions on w3m as an alternative to the much debated lynx for
casual text mode browsing?



I use w3m daily and heavily for browsing most basic web pages or if I just want
to read text content when the look/layout of a page is not necessary for me.
It handles cookies if you want it to, with easy cookie management. Has tabs,
but doesn't remember sessions (unless you are using the w3m Emacs plugin, which
I have never tried). I also use it to browse directories that have a lot of
HTML files, like my book and web archive collections. I've used its external
browser functions to attach URL yanking to keybinds (hint: define a browser
as xsel), which is handy.

It has an image mode which seems to be pretty hackish and has never worked
smoothly for me, at least running rxvt with tmux. I use it rarely, and instead
use the program's mailcap file to define an image viewer, and view images
externally by selecting them and hitting a keybind.

Some of the features and options can be difficult to discover or decipher due
partly to the state of the English documentation (author is Japanese). Maybe
someday when I find more time I can contribute to the documentation, and maybe
one day, the code.

Seconding Dillo for a quick, no-nonsense graphical browser. And of course there
is always surf[1].

[1] http://surf.suckless.org

-Brendan



Re: Default OpenBSD browser

2015-07-28 Thread Brendan Desmond

On 2015-07-29, Scarlett wrote:
(My last few mails to this list have been caught by the spam daemon, 
so I'm replying directly and hoping this makes its way through).


I've wrestled with w3m's code plenty. What I found did not make me 
happy, as bcallah@ can attest (they also pointed me to this message).


Numerous Linux distributions have fixes for fairly serious bugs in w3m 
sitting in their patches directories that have not been fixed 
upstream.


Fuzzing it did not have positive results.

Memory management practices are terrible. I suspect that replacing the 
GC layer with regular malloc() and adding free() in the correct places 
would be a major effort. A rewrite would possibly be preferable.


I've merged a lot of fixes from various Linux distributions, and some 
of my own (C-standard-libraryification, overflow checks, NULL pointer 
deref bugs). I've also made some non-trivial simplifications to the 
code, removed a lot of cruft, and made it use libtls.


You can check out my repository here, if you're interested: 
https://bitbucket.org/Scarletts/w3m/src


I'd be really happy if other people took an interest and sent in some 
patches, or just tested it.


w3m is fairly terrifying code. I would recommend using a modern 
intensively audited browser and disabling features like JavaScript 
over using w3m if security is a major concern.


On the bells and whistles end of the spectrum, I'm rather partial to 
Iridium at the moment. Video performance on YouTube is much nicer than 
Firefox, and the process-per-tab feature adds some much needed 
stability.


I am not a programmer at all, so I avoided stating that my gut tells me that
w3m is likely in dire need of major fixes and optimizations. My dream project,
if I ever learn C, would be to fork w3m or to write a brand new browser in the
spirit of w3m. I'll check out your repo and mess around with it, for sure :)
Thanks for the reply.

-BSD



Re: lynx is gone?

2015-03-04 Thread Brendan Desmond

On 2015-03-04, Giancarlo Razzolini wrote:

curling the mirrors page is another.


This was my first thought. I don't think this is out of anyone's league if they
are already choosing to install OpenBSD.



Re: Solved! Re: OpenBSD firefox useragent Facebook

2015-02-22 Thread Brendan Desmond

On 2015-02-20, Erling Westenvik wrote:

It's all about the user agent string. When changing from the default:

Mozilla/5.0 (X11; OpenBSD amd64; rv:35.0)
Gecko/20100101 Firefox/35.0

to:

Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.1)
Gecko/20090702 Firefox/3.5

things started to work as expected. Not that the working string is
ideal; it just happened to be one I tried and which worked. I'll try to
figure out which part(s) of it that matches Facebook's somewhat flaky
user agent string detection algorithm.


Erling, have you considered the Blender add-on for Firefox?

Mozilla: https://addons.mozilla.org/en-US/firefox/addon/blender-1/
Github: https://github.com/meh/blender


From the README:


This addon sets various preferences to fake to be the most common.

It fakes:

* the operating system to be Windows 7 64-bit
*  Firefox to be version 35
*  the language to be English
*  the accepted charsets to be unspecified

I do believe you can override the language spoofing. No noticable
problems here on my *BSD and Linux boxes.


-Brendan



Problems setting screen brightness on Elitebook 8470w

2015-01-13 Thread Brendan Desmond

Hello all,

This is my very first OpenBSD install on bare metal, on an HP
EliteBook 8470w, OpenBSD 5.6 to be exact. Everything is going quite 
nicely except for the machine's backlight which I can't seem to 
adjust.


Here are the specifics:

1) The brightness keys (Fn-F9 and Fn-F8) do not work.

2) Using xbacklight (example: $ xbacklight -dec 10) returns the message
No outputs have backlight property.

3) 'wsconsctl display.brightness=xx' does not work.

4) A suspend/resume cycle, which I've read temporarily fixes this issue
with many machines, does not work.

5) I have seen some folks suggest something like 'xrandr --output LVDS 
--brightness xx', which seems to only alter the
colors of my screen to appear brighter, but not actually adjust the 
brightness.


I've done quite a bit of searching around but can't seem to come up
with anything. I'm very new to *BSD and am a hardware newbie so please
forgive me for missing something obvious. 


Attached below is my dmesg output.
Any bits of guidance would be greatly appreciated.

-Brendan


OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug  8 00:20:21 MDT 2014
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
   real mem = 4208975872 (4013MB)
   avail mem = 4088147968 (3898MB)
   mpath0 at root
   scsibus0 at mpath0: 256 targets
   mainbus0 at root
   bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbecfe000 (32 entries)
   bios0: vendor Hewlett-Packard version 68ICF Ver. F.46 date
   01/17/2014
   bios0: Hewlett-Packard HP EliteBook 8470w
   acpi0 at bios0: rev 2
   acpi0: sleep states S0 S3 S4 S5
   acpi0: tables DSDT FACP HPET APIC MCFG TCPA SSDT SSDT SLIC MSDM FPDT
   BGRT SSDT SSDT ASF!
   acpi0: wakeup devices LANC(S0) EHC1(S3) EHC2(S3) XHC_(S3) PCIB(S5)
   RP02(S4) ECF0(S4) RP03(S4) RP04(S5) WNIC(S5) RP06(S0) NIC_(S0)
   RP07(S4) RP08(S4) HST1(S5)
   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: Intel(R) Core(TM) i5-3360M CPU @ 2.80GHz, 2794.05 MHz
   cpu0:
   
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
   cpu0: 256KB 64b/line 8-way L2 cache
   cpu0: smt 0, core 0, package 0
   mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
   cpu0: apic clock running at 99MHz
   cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
   cpu1 at mainbus0: apid 1 (application processor)
   cpu1: Intel(R) Core(TM) i5-3360M CPU @ 2.80GHz, 2793.65 MHz
   cpu1:
   
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
   cpu1: 256KB 64b/line 8-way L2 cache
   cpu1: smt 1, core 0, package 0
   cpu2 at mainbus0: apid 2 (application processor)
   cpu2: Intel(R) Core(TM) i5-3360M CPU @ 2.80GHz, 2793.65 MHz
   cpu2:
   
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
   cpu2: 256KB 64b/line 8-way L2 cache
   cpu2: smt 0, core 1, package 0
   cpu3 at mainbus0: apid 3 (application processor)
   cpu3: Intel(R) Core(TM) i5-3360M CPU @ 2.80GHz, 2793.65 MHz
   cpu3:
   
FPU,VME,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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS
   cpu3: 256KB 64b/line 8-way L2 cache
   cpu3: smt 1, core 1, package 0
   ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
   acpimcfg0 at acpi0 addr 0xe000, bus 0-255
   acpiprt0 at acpi0: bus 1 (PEGP)
   acpiprt1 at acpi0: bus -1 (PCIB)
   acpiprt2 at acpi0: bus 2 (RP01)
   acpiprt3 at acpi0: bus 3 (RP02)
   acpiprt4 at acpi0: bus 36 (RP03)
   acpiprt5 at acpi0: bus 37 (RP04)
   acpiprt6 at acpi0: bus 0 (PCI0)
   acpiec0 at acpi0
   acpicpu0 at acpi0: C2, C1, PSS
   acpicpu1 at acpi0: C2, C1, PSS
   acpicpu2 at acpi0: C2, C1, PSS
   acpicpu3 at acpi0: C2, C1, PSS
   acpipwrres0 at acpi0: APPR, resource for HDEF
   acpipwrres1 at acpi0: COMP, resource for COM1
   acpipwrres2 at acpi0: LPP_, resource for LPT0
   acpitz0 at acpi0: critical temperature is 128 degC
   acpitz1 at acpi0: critical temperature is 128 degC
   acpitz2 at acpi0: critical temperature is 128 degC
   acpitz3 at acpi0: critical temperature is 128