Skip to content
Code Project
CODE PROJECT For Those Who Code
  • and Edsger spake, thus:

    The Lounge algorithms
    8
    0 Votes
    8 Posts
    9 Views
    L
    BillWoodruff wrote: his invention of his shortest-path algorithm in twenty minutes while having coffee with his fiancée Current "she" would not approve. :suss: Bastard Programmer from Hell :suss: "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
  • Bitcoins: A Perspective

    The Lounge com algorithms
    17
    0 Votes
    17 Posts
    1 Views
    L
    W∴ Balboos, GHB wrote: Thread expanding too much And I'm at my limit anyway; this state is half awake and half dreaming, and gets me in trouble. I *need* to complete the post though. W∴ Balboos, GHB wrote: Bringing that into the conversation implied it was a relevant component of fuel the bitmining. it's not. Some cases, here, and there, but mostly set up where power is cheapest. Fuel cost is relevant, as you admitted. Mining costs resources. W∴ Balboos, GHB wrote: My first market trading was commodity options, not stocks and bonds. Mostly silver and gold. A bit of oil. I first heard the term silverbug in that context. But the majority of your implications are a mess: silver isn't just a token - it's a useful commodity. Yes! It is a thing like wood would be, and *that* is what makes it money! It is just lighter and easier to divide than wood would be. Gold, moreso than silver. That is what makes it money; utilization. And the more uses we have for it, the higher the demand. W∴ Balboos, GHB wrote: Perhaps you do, but you surely don't sound like it. Silver has real value because it is used for things. Just some 50 years of experience, stats, and even before it had that "real use"; if translated, "silver" and "money" in some languages the same. You're comparing wood with the tally stick :) W∴ Balboos, GHB wrote: When your data's held hostages, what do the sleaze want to be paid with? Because most crime is data held hostage ofc. No, most crime is paid for in US$. Because most of the world accepts those without question. W∴ Balboos, GHB wrote: It's a way to figure out who's involved with illegal traffic - how does an unemployed surfer afford a Maserati ? He's a mechanic, bought a wreck and restored it. Who are you as a government to question and track that? THAT is why I pay in silver. No records, no questions. And with my government giving the example, I shall follow their lead. W∴ Balboos, GHB wrote: where did that money come from Yes; the bank asked me that question when I wanted to withdraw part of my savings. The answer was whoring and drugs. And living in a country where that's al
  • The Good Life

    The Lounge com algorithms
    5
    0 Votes
    5 Posts
    1 Views
    L
    I did something similar recently, and it took me two days to recover. It's amazing how much energy a four-year old has.
  • Bright Idea

    The Lounge com algorithms
    6
    0 Votes
    6 Posts
    0 Views
    D
    It's always night somewhere... :-\ Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
  • Cosmetic vs More Efficient

    The Lounge visual-studio com algorithms question
    48
    0 Votes
    48 Posts
    5 Views
    L
    I would never want to be in a situation where I had to justify something that was redundant but looked better. It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food
  • 0 Votes
    5 Posts
    0 Views
    raddevusR
    David O'Neil wrote: ca44c0247faaa9c0bed669f8b32fdc8d551d2aecf63cf1e563b23a5dc5f30717 Thank you for the compliment. You're too kind, really. :rolleyes:
  • If this trend continues

    The Lounge com algorithms
    9
    0 Votes
    9 Posts
    1 Views
    Sander RosselS
    Eddy Vluggen wrote: After first turbulence ...I was admitted to the club and I didn't even try :laugh: Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript
  • Intel: a clever plan, indeed!

    The Lounge html com algorithms announcement
    6
    0 Votes
    6 Posts
    1 Views
    W
    BillWoodruff wrote: Your inferences from this article are even more confused than your usual. You worked way too hard for this comment. The point I find most interesting is yet to be seen: will the EU find fine Intel, down the road, with some sort of anti-trust accusation as punishment (read that EU money-mining) for being more successful than their own companies? Ravings en masse^ "The difference between genius and stupidity is that genius has its limits." - Albert Einstein "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
  • Interval schedule

    Database sql-server algorithms tutorial
    4
    0 Votes
    4 Posts
    26 Views
    M
    This is EXACTLY what I needed. This was far too complex for me to comprehend, so I started to look into why it works and breaking down everything in piece. No comments in anything for the query below, but should be able to figure it out for someone looking at the same thing: SELECT DATEDIFF(HOUR, '1:00', '23:00') SELECT DATEDIFF(HOUR, '1:00', '23:00') / 4 SELECT (1 + DATEDIFF(HOUR, '1:00', '23:00')) / 4 SELECT ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) AS N FROM sys.all_columns SELECT TOP ((1 + DateDiff(hour, '1:00', '23:00')) / 4) ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) As N FROM sys.all_columns SELECT DATEADD(HOUR, 5 * 4, '1:00') As ScheduleTime UNION SELECT DATEADD(HOUR, 4 * 4, '1:00') As ScheduleTime UNION SELECT DATEADD(HOUR, 3 * 4, '1:00') As ScheduleTime UNION SELECT DATEADD(HOUR, 2 * 4, '1:00') As ScheduleTime UNION SELECT DATEADD(HOUR, 1 * 4, '1:00') As ScheduleTime SELECT ',' + CAST(T.ScheduleTime As char(5)) FROM /* Tally table: */ ( SELECT TOP ((1 + DateDiff(hour, '1:00', '23:00')) / 4) ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) As n FROM sys.all_columns ) As N /* Generated schedule: */ CROSS APPLY ( SELECT DateAdd(hour, N.n * 4, '1:00') As ScheduleTime ) As T FOR XML PATH('') I had to make an adjustment to the final query though to make sure I was getting a schedule for a 24 hour period instead from the start time to midnight: WITH cteSource As ( SELECT CAST('13:00' As time) As StartTime, 4 As Hours UNION SELECT CAST('01:00' As time) As StartTime, 7 As Hours ) SELECT StartTime, Hours ,STUFF(T.ScheduleTime, 1, 1, '') As ScheduleTime FROM cteSource As S CROSS APPLY ( SELECT ',' + CAST(T.ScheduleTime As char(5)) FROM /\* Tally table: \*/ ( SELECT TOP (24 / S.Hours) ROW\_NUMBER() OVER (ORDER BY (SELECT NULL)) As n FROM sys.all\_columns ) As N /\* Generated schedule: \*/ CROSS APPLY ( SELECT DateAdd(hour, N.n \* S.Hours, S.StartTime) As ScheduleTime ) As T FOR XML PATH('') ) As T (ScheduleTime)
  • There's no cure

    The Lounge html com algorithms discussion announcement
    22
    0 Votes
    22 Posts
    1 Views
    M
    The funny thing is she IS a highly qualified professional nurse with decades of experience. One of the smartest people I know, still nuts though. Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP
  • An overhaul of the second kind

    The Lounge html com algorithms question announcement
    2
    0 Votes
    2 Posts
    1 Views
    D
    Nah, the airlines would simply hang you out to dry... Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
  • Oi! Chris

    The Lounge com algorithms
    12
    0 Votes
    12 Posts
    1 Views
    W
    BillWoodruff wrote: As a poet (for 56+ years), We are, all of us, poets. Some struggle to rhyme their way with that of another. Others are content to exclaim their verse to the sky Or sing their songs with the sea. Or be content - their verse is to but listen And to see the poetry around them. Ravings en masse^ "The difference between genius and stupidity is that genius has its limits." - Albert Einstein "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
  • Is it just me?

    The Lounge mobile com hosting algorithms question
    9
    0 Votes
    9 Posts
    1 Views
    D
    W∴ Balboos, GHB wrote: or a cloning experiment gone wrong? Or maybe it's politics that do that to you.
  • They're coming !

    The Lounge java com algorithms question
    16
    0 Votes
    16 Posts
    1 Views
    M
    W∴ Balboos, GHB wrote: You may not realize this but they've been around a lot more than seventeen years[^]. Yes, but maybe in this particular 17 years, they have had a reason to start hating humans. Maybe they don't agree with all the plastic pollution in the oceans, maybe they didn't vote Trump, maybe they have spent too much time on social media and are angry for no obvious reason.... maybe this time, it's war!
  • DaaS - 2021 : confusing

    The Lounge linux com hosting cloud algorithms
    9
    0 Votes
    9 Posts
    1 Views
    K
    You mean MVS (multiple virtual systems) running on Big Iron? Or do you mean Page Mode Terminals that send back all the fields of data for a specific much like an HTML Form does? [after the client terminal "interprets" the escaped text to determine how to display the page, and where to put the fields] Or the slew of new languages to make things easier to program? [Requiring ever more complex compilers] Or maybe a DB without SQL? Really fast lookups. Like the Dimensioned File Arrays of the Old PDP-11s. [Literally indexing a file as an array because it cannot fit into memory, but the "block" of data can. Lightning fast, so effectively using a hash, jumping to a file position and reading]. I think the ONLY new things are how we are applying these layers, and the speed at which things change!
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    4 Posts
    1 Views
    S
    I think we should let this little fishy go. If we see him again (and I doubt we will) and he does something really spammy, then we unleash hell. Thanks, Sean Ewington CodeProject
  • They just don't understand

    The Lounge com algorithms question
    15
    0 Votes
    15 Posts
    6 Views
    C
    W∴ Balboos, GHB wrote: Mine - we tolerate one another's "nuances" and, so far as I can see, the benefits of the last 45+ years have, and still, outweigh any downside. By so much. RTFM and no amount of mind bleach will be enough to forget that. Without reading the manual, your only chances are rose colored glasses or a slim chance that she somehow manages not to go overboard. 45+ years sound like the latter case, but I'm afraid that model is almost out of production now. I know my luck and don't intend to gamble. It's not so bad. I just trade one thing that seems only bearable with lots of self deception or lots of alcohol against the freedom to do practically everything else. I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
  • Be Afraid. Be Very Afraid!

    The Lounge html com algorithms announcement
    49
    0 Votes
    49 Posts
    4 Views
    M
    seems the world is running out of hand in a hurry
  • Only If It Was Every Week

    The Lounge html com algorithms question announcement
    16
    0 Votes
    16 Posts
    1 Views
    W
    Well - like I said - sometimes when you look behind a few rows of trees you can hardly gasp at such ruin. Driving through - makes me think of when I interviewed for the job: the director of the facility had to postpone his from with-lunch chat to late in the day. That was because his daughter drove into where civilized places have shoulders on the road - but here, ditches. It's so common they even have an expression for it: "Ditch-Diving". I only went off, once, sliding down backward from a hill on snow. Any snow on those hilly roads is insanely dangerous. On the other hand, since the ditches could be huge, my kids and their friends use to play across our road in one with a nice stream of runoff (clay soil: no absorption - just runoff). Building little moats and waterfalls. Ravings en masse^ "The difference between genius and stupidity is that genius has its limits." - Albert Einstein "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010