|
If you hadn't posted the feed I have access to I'd have downvoted your Lounge lizard and suggested you get a hold of jan_hus over in the LINUX forum to ask him how his mauve thing fares
|
|
|
|
|
Refreshed BBC News - News Front Page ... (Last refreshed @ 10:26:47 on 08/29/2024):
46 items none of which were duplicated in the list
"Outdoor ...
to
... car crash"
|
|
|
|
|
Thanks for the follow-up.
You mentioned refreshing...for what it's worth, I don't tell Thunderbird to refresh, it just does so automatically on its own every couple of hours. It's running 24/7 and mostly just sitting in the background.
|
|
|
|
|
Yeah, my interface is a typical Windows application standing alone purchased from a well known purveyor of a proprietary language. And their thing, as such being a language, is probably to provide inroads to automaticity of just such a process as a TSR.
The fact that I don't complain about having to depress a button on a Windows form shouldn't indicate that I'm probably not going to like something else I'd run into down that road that'll cause lightning bolts to fly from my rearend, it just means I don't know everything about their language yet. But I keep a fire extinguisher handy.
|
|
|
|
|
class image {
public:
virtual gfx::gfx_result initialize()=0;
virtual bool initialized() const=0;
virtual void deinitialize()=0;
virtual gfx::size16 dimensions() const=0;
virtual gfx::rect16 bounds() const;
virtual gfx::gfx_result draw(const gfx::rect16& bounds, image_draw_callback callback, void* callback_state=nullptr) const=0;
};
The emphasized bit is what vexes me. I had previously had this as an srect16 , not a rect16 , the former being signed while the latter is unsigned.
The reason being is when I designed it I stupidly thought it would refer to the destination rectangle where the draw is taking place, not the source rectangle which dictates which part of the image to draw from.
So now I've had to change the interface, and all 3 classes to do things differently than they were.
Because I finally realized how stupid it was for that to be the destination rectangle.
This only after I got to writing the convenience method draw::image<>() which takes both source and destination rectangles.
It was at that point that I realized the folly of my design, when I should have seen it a mile off heading into it.
I can't think in shapes. I just can't. I am angry at my brain for underperforming in this arena.
After hours, this is working:
if((x2>=st.bounds->x1 && x1<=st.bounds->x2) &&
(y2>=st.bounds->y1 && y1<=st.bounds->y2)) {
const int offsx = -st.bounds->x1;
const int offsy = -st.bounds->y1;
const bool left_edge = x2>=st.bounds->x1 && x1<st.bounds->x1;
const bool top_edge = y2>=st.bounds->y1 && y1<st.bounds->y1;
int xs=0,xpe=w,xc=w;
if(left_edge) {
xs=st.bounds->x1-x1;
xc = w-xs;
}
int ys=0,ype=h,yc=h;
if(top_edge) {
ys=st.bounds->y1-y1;
yc = h-ys;
}
const uint8_t* pbs = (const uint8_t*)bmp;
uint8_t* pbd = ( uint8_t*)st.bmp;
for(int y=0;y<yc;++y) {
const uint8_t* ps = pbs+(((y+ys)*w*3)+(xs*3));
uint8_t* pd = pbd+(y*xc*4);
for(int x=0;x<xc;++x) {
*pd++=*ps++;
*pd++=*ps++;
*pd++=*ps++;
*pd++=0xFF;
}
}
image_data data;
data.is_fill = false;
const const_bitmap<rgba_pixel<32>> csrc(size16(xc,yc),st.bmp);
data.bitmap.region = &csrc;
data.bitmap.location = point16(x1+offsx,y1+offsy);
gfx_result r =st.cb(data,st.cb_state);
if(gfx_result::success!=r) {
st.error = r;
return 0;
}
} else {
if(y1>st.bounds->y2) {
st.error = gfx_result::success;
return 0;
}
}
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 23-Aug-24 21:16pm.
|
|
|
|
|
Quote: I have the spatial reasoning skills of a spatula (part 2) And it is good so... if you had such skills in every topic, what would be left for the rest of us?
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.
|
|
|
|
|
Oh, don't worry. I'm left wanting in several topics.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
... which is the first suggestion text when you type the first two words expecting Richard Hammond TV series on Prime, you get a whole page full of dinosaurs?
Seems appropriate, somehow!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I suppose you know why... don't you?
Hammond is the name of the in-film creator of the jurasic park
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.
|
|
|
|
|
And I got £0.94 for my efforts ... not a lot, but:Quote: Thanks for switching on for our first Free Electricity session on Thursday 15th August. Together, you stopped 180 wind turbine's worth of clean, green power from going to waste. Pretty cool ey? And here's how you did:
You used 94p worth of Free Electricity ⚡️
Not a fortune, but not too bad for an hour's free extra power! Collectively, you guys saved £126,000 by making the most of 531 megawatt hours' surplus green power. And there have been two more since then. Kinda makes it worth the small amount of added effort involved on my part, I guess.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
If I use a VPN to change my location and promise never to feed any power into the Netherlands power grid (which promise I will keep) will you send me money as well?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Not only there... here is becoming a topic too. Many people have solar but not batteries at home and they send everything to the net. Infrastructure is getting close to limits in sunny days.
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.
|
|
|
|
|
So what are they going to do on a day when the wind DOESN'T blow and then there is a 531 megawatt hours' shortage of power?
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
I’m begging you for the benefit of everyone, don’t be STUPID.
|
|
|
|
|
"Charge twice as much for it" seems to be the normal approach
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Isn't that quite standard practice with just about every product category? When supply is low, prices go up. When the is plenty of it on the market, then prices go down.
If you want prices to go down when there is plenty, then by simple logic, prices must go up when there is less. Otherwise there would be no going down.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
I remember being taught that price is a balancing factor - it moves to balance supply with demand. You can think of it as the pivot of a see-saw, with supply at one end of the see-saw and demand at the other; as supply or demand change price will always move one way or the other to ensure the see-saw stays horizontal. I'm no economist but the idea seems to capture market behaviour quite nicely.
|
|
|
|
|
I can't imagine that there has been a single hour since the electric generator was invented where no wind was blowing at all, not anywhere on the continent. That's what the grid is for.
I believe that Norway was very early establishing a nationwide grid, from the mid 1950s, completed in the early 1960. We were certainly not alone in moving electric energy from one region to another, but our net was perfectly phase synchronized from north to south, across a distance slightly larger than from Canada to Mexico. That is trivial today, with atomic clocks and all sorts of power semiconductors, but in the mid-1950s it was quite remarkable.
You simply have to prepare for a common grid that every electric power seller hooks up to, pouring their power into it, and the electricity peddlers tap out whatever they manage to sell, without caring about where the power is produced. The grid will take care of the transport task. The North European grid today covers the Scandinavian countries, the Baltic countries, Finland, Austria, Germany, France, Belgium, Netherlands and Poland. Should the wind calm down all over Northern Europe, the Norwegian hydropower stations would run at top speed. So would the Swedish nuclear plants (they always do!). When there is lots of wind, the hydropower is significantly reduced. Hydropower, as well as gas turbine generators, can easily and quickly be adjusted up and down, opposite of the availability of wind and solar power. Also note that although both wind and solar power depends on a nature we cannot control, statistics clearly show that when wind is at its plentiest, solar power is not. And vice versa.
I am not familiar with the power grid in the US, but I am sure there must be some way to transport significant amounts of power from one region to the other, depending on production and needs. Maybe free competition ideas causes more isolation, less cooperation, than in North Europe, so it may not work as smoothly as here, but I am sure that your lights won't go dark.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
This strange idea of paying for electric energy ...
Tomorrow, for 22 out of 24 hours, we are being paid for using electric energy. The remaining two hours, it is free. Hopefully, this link is valid abroad as well: NordPool prices[^]. From 13:00 to 14:00, we are paid €2.99 per MWh consumed.
There is a snag to it, though. We are paid for consuming the energy. The power line company is not paying us for power line use; there is both a fixed (volume independent) fee, and a per kWh fee. So in total, there still is an expense. And there is a second snag: The "volume independent" part is not 100% so: It is affected by you peak hours - the average of your three highest peaks each month puts you is one of several brackets. If my hourly consumption for the peak hours exceed 5 kWh per wall clock hour, my fixed fee for this month jumps up by NOK 160 (roughly €15). So I should not, in joy over negative energy prices, crank up the heat, hot water tank, etc. etc. so that the 5 kWh/h line is crossed.
In the old days, "the power company" delivered both the energy and power lines. Politicians sold us the idea that forcing a split up by law would be a good divide and conquer strategy for the benefit of the consumers. In reality, it is a mechanism to make it simpler for the providers to manipulate energy and line prices independently, and in the name of "free competition" limit the consumers' freedom. E.g. in the old days, the student homes here in Trondheim were built as four small individual bedrooms sharing a kitchen, bath and electricity bill. Today, in the name of free competition, each bedroom must pay its own fixed fee, plus the consumed energy (mostly that is a LED table light and charging the smartphone). The fifth electricity bill, fixed fee for the kitchen/bathroom and the energy consumed for cooking and hot water, is split among the four students. The "logical" argument for this is that to be prepared for each student wishing to buy his energy from a different provider, they must have individual meters. The fixed fee is tied to the meter.
If I were a student today, I guess I would have started a major revolt against the power line company.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
trønderen wrote: Politicians sold us the idea that forcing a split up by law would be a good divide and conquer strategy for the benefit of the consumers. Same here in the UK (electricity, gas, water, railways), but most of these decisions were forced on us by the EU. And in reality they were a costly waste of time and money.
|
|
|
|
|
Considering the cost of manufacturing and then installing everything needed to get that "green power", who's the winner here?
|
|
|
|
|
There just was a huge protest rally in Germany against Tesla, who chopped down half a million CO2 absorbing trees, to make room for their new factory for building cars with less CO2 emissions.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
I don't understand half of this whole conversation. What's this Free Electricity magic you all speak of?
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
It is something related to the free beer you get at FOSS gatherings.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
The way I understand it is that energy suppliers pre book blocks of electricity months in advance. If they use it all, then they pay £X per unit. But if they don't use it, the price goes up because the actual energy generator has planned their usage and is pissed that it doesn't get used.
So it's cheaper for the supplier to offer free electricity in the hope that we will use the whole block (and maybe exceed their booking) to keep the price to them down.
Stupid system all round, which only exists so the middle men (suppliers) can make a (sometimes massive) profit.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|