|
My first experience with a HDD, I was working as an assembler programmer on an Apple II and the boss bought a 5MB drive. I don't know how much he paid for it but I don't imagine it was cheap. Thing sounded like a jet taking off when it started up.
|
|
|
|
|
Be careful to test them. Some of the "bargain" thumb drives run at USB-old speeds and get really hot. At least in my experience.
I do remember replacing a 40 meg (not gig) hard drive with a 120 meg ($300) instead of an 80 meg because it would be all I would ever need.
I now have W10 and S2016 VM's over 150GB.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
These are name-brand, store clearance prices. USB2.0, but I don't have any 3.0 slots to poke them in.
My first PC was an XT clone, with a whopping 10MB disk. And an 8087 that cost an arm and a leg.
My home server currently has 8TB of RAID1.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I remember paying:
- ~17$ for a single blank CD - back at a time when it was trivially easy to end up with a coaster
- ~700$ for 64MB of RAM (not GB, MB)
- ~900$ for a scanner
- ~1600$ for my first 17" LCD monitor
If car prices followed the consumer electronics trend, I wouldn't be driving a 15-year old car.
|
|
|
|
|
Let's say I'm drawing a bitmap from one source to a destination.
I can specify the source and destination rectangles, and the resize options, which can be bicubic, bilinear, "fast" or crop.
If the destination rectangle is flipped horizontally or vertically, the bitmap will be drawn flipped
When it's cropped and flipped though things get interesting.
say my source rect is 32x32 and destination rect is 64x64, meaning my final rect (unflipped) would be
____
|11 |
|22 |
| |
|____|
Where 11/22 is my source rows of bitmap data and the rest ends up being "blank". This is because the dest rect was 4x the size of the source rect.
Now if I flip it vertically, is it more intuitive for it to draw like this?
____
|22 |
|11 |
| |
|____|
or this?
____
| |
| |
|22 |
|11__|
Currently I'm doing the latter.
Real programmers use butterflies
|
|
|
|
|
Think of cropping, flipping, etc. as a set of transforms. The order of the transforms determines your semantics.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Right, but in this case, I have to pick an order which is why I'm asking. I can't just separate out these individual transform steps so you can reorder them without greatly complicating the draw operation, and basically increasing code size in a constrained environment.
You get one method. You get one set of flat/scalar parameters.
You don't get reordering transforms and such. This isn't photoshop, and it honestly doesn't need to be that complicated - it just needs to handle the most common use case.
I should add, you could separate those operations using intermediary bitmaps and multiple draws but obviously that's not efficient. It's not really a common use case though, in this context, for what it is being used for.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote:
____
| |
| |
|22 |
|11__|
This seems / feels more correct to me
(just me 2 cents )
Tom
|
|
|
|
|
Thank you!
Real programmers use butterflies
|
|
|
|
|
I agree, the latter is (a bit) more intuitive.
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
I suppose it depends on what you want to offer / accomplish...
If the processing is to flip and rescale at once, then for me the second option (11 in the last line) is the correct one
If you flip and then (afterwards) rescale the bitmap, then would be the option 1 (11 in the middle)
But if I go from an image in A4 to the vertically flipped in an A3, I would expect option 2 (11 in the last line)
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
In this case I'm not scaling. When I am, the image takes up the entire rectangle. I'm simply drawing as is (crop mode, but there's no cropping happening because the bitmap was smaller than the destination rect)
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: I'm simply drawing as is (crop mode, but there's no cropping happening because the bitmap was smaller than the destination rect) Then it should be the 11 in the middle.
Flipping the A4 and insterting it later in the A3 gives the 11 in the middle.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
huh?
11 is the first row of the bitmap
22 is the second row of the bitmap
I didn't insert anything later.
I am copying a bitmap from one location to the other using two rectangles to specify the source and destination extents.
There are no insertions. There are no deletions. There is nothing in the middle. There never will be because is there no case where that is the correct answer.
The correct answer is one of the two I have shown. Nothing else is valid. If you think otherwise, it's because frankly, you don't quite understand the problem, though I'm at a loss as how to explain it better than I have. Sorry for that.
Real programmers use butterflies
|
|
|
|
|
I was going to be nitpicky and possibly a definition nazi... but better not.
Conclusion: Continue using with option 2. Is going to be right way more often than not.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I visited a web site selling a particular product whose ad I saw on YouTube. I submitted a comment via their on-line form. I then received an email from them which addressed me w/ the nickname I usually use when registering on other web sites. I have never registered onto this particular site so I do not know how they could know the nickname. I replied to the email requesting from where they obtained the nickname. They informed me it was via my email account even though I gave them only my gmail address. The nickname they utilized is not associated w/ my gmail account. I resent an email to them stating I believe they contacted other web sites and requested my nickname based on the email address I always use which is the same email address I gave them and requested they inform me of the web site which provided them w/ my nickname. Of course they did not reply. This was six days ago. May I inquire if anyone here has had a similar experience or knows how they might have obtained my nickname or how I might otherwise determine the site which provided it to them or knows if their presumed actions violate any laws? Thank You Kindly
|
|
|
|
|
probably cookies.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
and extensive data mining...
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Thank you for suggesting it I should have considered it prior to troubling you I just now examined the cookie file and did not find my nickname in it Kind Regards - Cheerio
|
|
|
|
|
Maybe they belong to an big internet empire in which you were assimilated somewhere else.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hey... they know a lot more than your nick
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Are you registered in Youtube?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Yes I am but my nickname w/ YouTube is my gmail account name - Cheerio
|
|
|
|
|
PaltryProgrammer wrote: I visited a web site selling a particular product whose ad I saw on YouTube. I submitted a comment via their on-line form.
You clicked an ad on YouTube (I'm presuming - is that how you ended up on the site that had the ad, or did you start searching for the product separately?)
You went a step further by submitting a comment.
I'm certainly no expert on the topic, but that sounds like some pretty solid links to start building that chain.
|
|
|
|
|
Had to write some query on a SQL Server database today.
Opening the database took close to a minute.
What I saw then will forever haunt me.
Table names like [01 Some Company & Partner l.l.c.$Customer Ledger item], but also [01 Some Company & Partner llc$Cust something else], because sometimes you need Customer while other times you simply need Cust.
Each table had columns with names like [Entry No_], [Customer report code 1] and [Amount (CNY)] (CNY apparently means "currency", but with column names like that why even bother to abbreviate?)
So we've got names with spaces, dots, numbers and symbols, complex enough to pass a password complexity validation!
Now there's something particularly odd about the table name...
The part before the $ is actually a company name and it turned out this database has the same tables for 23(!) companies, and some other (un?)related tables, giving the database a staggering 41,000+ tables!
So let me say this again so you can be sure you read it right and I spelled it correctly... OVER FORTY-ONE THOUSAND TABLES!
It was a bit over 1700 tables per company, which I already think is A LOT, combined in a single database.
SQL Server allows for int.MaxValue objects in a single database and I have a feeling this application was pushing the limit (if not, not for lack of trying)
I'm assuming most of it is generated, but even then, WHY WOULD YOU GENERATE SUCH !G($#&#$(!#F J!#(P!?
Sometimes you think you've seen it all and then you run into something like this and realize there really is no limit to human stupidity
|
|
|
|