Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

04-08-2022 , 09:19 PM
Quote:
Originally Posted by suzzer99
I told Max I may be interested when I finish my book and leave my current job. But for now I'm way too busy.
when is volume II of how to photograph snails dropping?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2022 , 01:13 AM
The first draft should be done by the end of May. After that I don't know because I've never written a book before. But I'm hoping to get done with revisions and getting the book published and available on Amazon hopefully by the end of the year.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2022 , 01:24 PM
Quote:
Originally Posted by John21
Well good job on your first ever website. Definitely one of the better first-evers I've seen. You have a knack, maybe look into a front-end bootcamp. Just think in a few months you could be a fully qualified jr front-end developer
Thanks. but this is not something I want to do for a living

github is just straight out trolling me.

If I go to my github page, I see an old version of the page. If I do force-refresh I see the new content. But when I follow up with a normal refresh (or I leave the page and come back), the old index.html is back again
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2022 , 05:54 PM
What do you mean by github page? Are you talking about the code itself?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-10-2022 , 01:17 AM
Quote:
Originally Posted by suzzer99
What do you mean by github page? Are you talking about the code itself?
Free subdomain hosting:

“YOUR_WEBSITE.github.io”
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-11-2022 , 10:56 AM
https://word500.github.io/

That is where I developed my website before moving it to word500.com.

Now I simply want to have a page there that redirects to word500.com, so I've updated the index.html to remove most of the content of the page and only leave a message "Click the logo to browse to word500.com"

When I open https://word500.github.io I see the full blooded word500 page AKA the old version of the index.html. When I use CTRL+SHIFT+R to hard reload the page, I see the stripped version. You'd think now that the old version of the website is purged from the cache, but it isn't, because upon a standard refresh it is back again.

Very annoying.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-11-2022 , 12:04 PM
It's been too many years since I was in the game, but I want to say there's a way in the document header to force the browser to refresh instead of using its cache. If you could figure that out and post it to the github version, might be a solution.

BTW, when I click the link, I get the "word 500 page has moved" view. So it might be your browser caching rather than github.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-11-2022 , 01:32 PM
Yeah same here. I get the moved version.

Check your local storage and application cache. Also try different browsers/computers to see if it's only one that you get the old site.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-11-2022 , 03:44 PM
Quote:
Originally Posted by Gabethebabe
When I use CTRL+SHIFT+R to hard reload the page,
Pretty sure that's just temporally over-riding the locally cached version.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2022 , 09:10 AM
Quote:
Originally Posted by golddog
It's been too many years since I was in the game, but I want to say there's a way in the document header to force the browser to refresh instead of using its cache. If you could figure that out and post it to the github version, might be a solution.

BTW, when I click the link, I get the "word 500 page has moved" view. So it might be your browser caching rather than github.
I totally believe it is my local cache. But if local cache can present old versions of my pages, how can I be sure that my visitor will see the latest version?

Disabling the cache would be good for some files, but not for others. For example, the wordlists together are 600kb. They do not change. I wouldn't want to refresh them every time.
i will have to review this a bit more and find the best solution.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-12-2022 , 12:56 PM
Can't remember what platform you're using, but in something like MSFT MVC, you'd have a layout page that is the wrapper to your pages.

In the controller for the inital view, you'd have some logic to inject the 'force refresh' HTML; the other pages, it just wouldn't get delivered.

If you were taking this seriously, I might think about not delivering the 600K file you mention. Maybe use some kind of client side event (key up?)/ajax postback to hit a service which returns teh subset of words which match the input (given whatever your business rules are). You know, an auto-complete sorta deal. But, it sounds as if that complexity might be past your interest.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-14-2022 , 09:40 AM
Quote:
Originally Posted by golddog
Can't remember what platform you're using, but in something like MSFT MVC, you'd have a layout page that is the wrapper to your pages.

In the controller for the inital view, you'd have some logic to inject the 'force refresh' HTML; the other pages, it just wouldn't get delivered.

If you were taking this seriously, I might think about not delivering the 600K file you mention. Maybe use some kind of client side event (key up?)/ajax postback to hit a service which returns teh subset of words which match the input (given whatever your business rules are). You know, an auto-complete sorta deal. But, it sounds as if that complexity might be past your interest.
Let's put my abilities into perspective. About 1 month ago I started watching Youtube tutorials about HTML, CSS and Javascript and with the knowledge gained and websites like W3schools, I created word500.com. I had never coded an HTML page, styled a page or wrote Javascript before in my life. So your writing above is 90% Japanese to me
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-14-2022 , 10:00 AM
Yep, I remember you writing about this being your first experience. IIRC, it sounded as if it didn't do it for you, and you weren't likely to pursue web development.

Without going into too much detail, web pages (the html document) are generally generated by some framework which is invoked by the web server (as opposed to having several .html files laying about and being delivered).

This framework runs something in a language (C#, VB, php , Java, etc) that allows the developer to make logic decisions to generate (or not) parts of a document based on the current state.

Of course, the ability to be dynamic brings with it more problems.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-14-2022 , 11:56 AM
Quote:
Originally Posted by Gabethebabe
Let's put my abilities into perspective. About 1 month ago I started watching Youtube tutorials about HTML, CSS and Javascript and with the knowledge gained and websites like W3schools, I created word500.com. I had never coded an HTML page, styled a page or wrote Javascript before in my life. So your writing above is 90% Japanese to me
In that case if you're running into refresh/update problems with trying to cache a 600k file, I wouldn't worry about it and just remove the cache entirely. 600k isn't that big, and modern browsers are smart enough to cache files that haven't been updated.

FYI - when you do a "soft refresh", the browser first checks with the server to see if a cached file that it thinks is static (IE .txt, .js, .css, etc.) is stale (again this is automatic, you don't have to do anything). To do this, the browser sends an "If-Modified-Since" request header to the server with the timestamp of the file in its cache. If the file on the server is older or the same age as specified in the request header, the server returns a response with no content and a 304 status code. This tells the browser that it's ok to just use the file it has in its cache.

http://jessesnet.com/development-not...caching-part1/

This might even be the problem you're running into. If you try to replace a static file with one with an older timestamp (which can happen), the browser can sometimes get confused and not load the new (older timestamp file). Check the network tab in Chrome dev tools and look for 304 responses.

I think most browsers and servers handle the problem of older timestamps with unique file IDs now. Then again after working with AWS for years I wouldn't be surprised if cloudfront doesn't do that. Cloudfront to host a website, or S3, is really kind of a kluge. Ideally you'd want something like nginx or apache. But that's a pain to maintain especially for a small site.

Last edited by suzzer99; 04-14-2022 at 12:01 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-14-2022 , 12:09 PM
Good points suzzer, especially around the "new-old" file timestamps.

Remember the days of doing a rollback, and getting into this mess? Pretty sure modern deployment techiniques/webservers have pretty much addressed this, as you say.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-14-2022 , 03:20 PM
When I replace a file, it is always with newer timestamp

With the current traffic I'm getting, I can indeed remove cache w/o problems.

Thanks for the support, guys
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-14-2022 , 03:39 PM
To help us keep the interweb safe and secure please understand and follow recommended cache busting standards.
Thank You,
—The Google Hammer
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-19-2022 , 02:27 AM
Don't want to create another pleb laptop help thread. But looking to buy a new msi prestige 15. Currently using a lenovo that would do more good at the bottom of a lake. 95% of usage will be crm software, voip software, video calls and basic office functions- no heavy lifting. Guaranteed to have 15+ tabs open at a time mixing web, voip, various software and office. Anybody here have any experience with msi as I only learned of it yesterday while looking around online.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-22-2022 , 05:24 PM
Not sure how that is relevant to programming. This is more of an IT question, could you file a JIRA ticket through their web portal?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-28-2022 , 07:41 AM
Prices of sh graphics cards are dropping

I have access to a GTX 1060 3GB for 100€ that I will be buying and there is a 1070TI for just 229€ and a GTX 980TI for 190, but I will pass on those.
Are GPU's becoming available from miners?

In other news, I had a GTX 1070 that was shorted and it killed two ITX motherboards before I figured out what was going on

That's about 400$ of hardware gone to waste
I was so pissed
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-28-2022 , 11:24 PM
makes sense, eth2 is going to kill a lot of the demand for gpus
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-06-2022 , 01:45 PM
Anyone here know c++? Is the bool() here a type for a function that returns a bool? I've never seen syntax like this, just want to make sure it isn't some weird template voodoo. This is a remarkably difficult thing to google.

Code:
std::packaged_task< bool() > loaderTask{ LoadSaveGame };
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-08-2022 , 03:27 PM
That line is creating (call the constructor) for stdackage_task class. package_task is a parameterized class with T = bool() in this case. The { LoadSaveGame } is passing a callable into the constructor because packaged_task wraps some callable functionality.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-08-2022 , 03:29 PM
I need to read the docs but pretty sure bool() here is the return type of the function you're defining { LoadSaveGame }
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-08-2022 , 03:30 PM
In a normal programming language this would look something like

loaderTask = new packaged_task< bool() >(() => { LoadSaveGame(); });
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m