The Cellar

The Cellar (http://cellar.org/index.php)
-   Home Base (http://cellar.org/forumdisplay.php?f=2)
-   -   Stuff I don't know (http://cellar.org/showthread.php?t=14902)

Flint 01-20-2010 12:17 PM

Quote:

Originally Posted by Flint (Post 628279)
Why do linen closets smell like linen closets?

People say that must just be what cotton smells like. But if that is the case, why does a drawer or closet full of t-shirts, socks, or underwear not smell like a linen closet? Given the same detergent and no other variables in the environment, if you put a bunch of sheets and pillow cases in a closet, it instantly smells like a linen closet. What is that smell? It is distinct and unmistakable.

Happy Monkey 01-20-2010 01:22 PM

Naked ghosts looking for clothes.

jinx 01-30-2010 08:56 PM

Operation Repo seems staged/fake... is it?

BigV 11-09-2010 12:43 PM

Hello again.

Perhaps Spexxvet will hold forth here, but all helpful answers are welcome.

I am coming to terms with the onset of presbyopia. My vision has been excellent all my life, and remains good, but I can definitely see more clearly with reading glasses (for reading tasks--computer work, driving, walking around--no problem). Even the reading isn't a problem, but the smaller text, or the display on my blackberry is far sharper with my reading glasses.

I bought a few pairs at the drugstore, and I like them. I followed the instructions on the display to guide me to the right magnification and the number I settled on was +1.25.

Here is my question.

There is a very definite sweet spot for focus, 14 inches. I measured it. I'm sure I looked silly holding the ruler against my forehead and sliding my phone along it. My question, my problem is this. When I'm holding a book, or the paper, or the phone at a comfortable distance for the rest of my body, I assure you it isn't 14 inches from the bridge of my nose.

What can I do to get that maximum sharpness of focus which I like to happen farther away, say, 22 to 24 inches, the distance I like to hold my reading material from my face? I have tried the reading glasses with higher magnifications, this made the text bigger, but only at the same distance. It's all big enough, just not sharp enough at my desired distance.

TIA

Gravdigr 11-09-2010 01:34 PM

I have the exact same problem. I need a little extra sharpness at arm's length. I don't want the book I'm reading to fall and slap me in the face when I finally manage to fall asleep. I need that joker out there away from my face!

Let us know if you find a cheap solution.

Spexxvet 11-09-2010 01:36 PM

D=40/f, where D= dioptric power (your +1.25) and f= focal length in inches. Each .25 represents about 2 inches, when you are totally unable to accommodate. It looks as though you have some ability to accommodate, so your best bet would be to go to the store with your Blackberry and hold it at a comfortable length, then try different powers until you are comfortable. It may that you need more like a +0.75 or +0.50, but you'll be hard pressed to find less than a +1.00 in a store.

Scriveyn 11-09-2010 01:42 PM

Quote:

Originally Posted by Flint (Post 628279)
Why do linen closets smell like linen closets?

Ironing?

classicman 11-09-2010 03:01 PM

Your problem is called middle age. You're screwed. welcome to the glasses/contacts group.

BigV 11-09-2010 03:12 PM

Quote:

Originally Posted by classicman (Post 693471)
Your problem is called middle age. You're screwed. welcome to the glasses/contacts group.

hahaha.... yeah... I knew that.
Quote:

Presbyopia -- Definition:
The term presbyopia means "old eye" and is a vision condition involving the loss of the eye's ability to focus on close objects.

BigV 11-09-2010 03:13 PM

Spexxvet:

Thank you, sir. That is very helpful, and I will put your suggestion into play. It is helpful to know the math, and it helps me to know in which direction I should be moving.

I will report my results when I have some to report. :thumbsup:

classicman 11-09-2010 03:25 PM

:3_eyes: Go see an eye doc. Go soon while you still can get an appointment. :rolleyes:

BigV 11-17-2010 06:24 PM

Stuff I don't know, Episode #12,559: regex

Perhaps Pie will swoop in here and save the day, or anyone else whose brain is bigger and prettier than mine...

I have a long text file that contains what are essentially footers/page numbers. I hate them. I've processed the ever living f*ck out of this file, and I can't find a way to say: Please replace all instances of ###<CRLF> with nothing. That is the "page" number which runs from one to three digits, followed by a carriage return. I just want to take them out. Of course the file is full of other numeric data I must conserve. However, there are no lines that have only numbers on them except these ones I want removed.

I have a text editor that can search for extended characters, so the \r\n is working... (I think)... but I don't know how to say one or two or three digits followed by a CR should be replaced with nothing(deleted).

I have tried
Code:

+([0-9][0-9][0-9]}\r\n
failed.

Please help.

Happy Monkey 11-17-2010 06:31 PM

Try:
Code:

^ *[01-9]* *\$

BigV 11-17-2010 06:40 PM

Didn't work.

Would you please explain what you've written? For example, I *think* your numeric string section is looking for leading zeroes for page numbers. I don't have any of those. They run just like a book, 1 2 3 4 5 6 7 8 9 10 11 12 13...100 101 102....etc.

Happy Monkey 11-17-2010 07:00 PM

I was using unix's regex (I tested using sed).

The ^ is to denote the beginning of the line.
the " *" is to include spaces. If you have tabs as well, you'd need [xy]*, where x is a space and y is a tab.
The [01-9]* catches zero or more digits. I had the leading zero because I wasn't sure whether zero was actually first in ASCII, so I included it separately from the range. It is first, so [0-9]* would work. To make sure you don't get blank lines, it probably should be [1-9][0-9]*. The first brackets are one digit, and the second are zero or more additional digits.
Then another " *" for trailing spaces.
And a \$ for the end of the line. The $ is the symbol, but I need to escape it with the backslash so it doesn't get parsed by my command line.

An updated version could be:
Code:

^[  ]*[1-9][0-9]*[  ]*\$
If the syntax is different in your app, the pattern is:
Code:

(beginning of line marker)[whitespace characters]*[1-9][0-9]*[whitespace characters]*(end of line marker)


All times are GMT -5. The time now is 07:39 PM.

Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.