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

02-15-2022 , 10:35 PM
Huh. Glad I could help. Not often I can do so with a hardware issue.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-01-2022 , 11:04 AM
Vent/question:

So I was a c# programmer for a lot of years but doing JavaScript now basically for the first time. So in visual studio if you’re using some other library intelliseense gives you some inline comments/documentation about what a function does or what parameters it expects. In JavaScript (vs code ide) it seems you get none of that so either I have to experiment with what is expected or go find the documentation which seems cumbersome. Am I missing something or is that just the way it is?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-01-2022 , 11:15 AM
Biggle,

I've ben retired almost two years now, so memory might not be right. Your story seems to be what I remember as well.

Seems like there were intellisense plug-ins somewhere? Not sure. I think I remember w3schools being decent at js docs/examples, but I might be thinking of css or something else.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-01-2022 , 09:48 PM
Quote:
Originally Posted by Biggle10
Vent/question:

So I was a c# programmer for a lot of years but doing JavaScript now basically for the first time. So in visual studio if you’re using some other library intelliseense gives you some inline comments/documentation about what a function does or what parameters it expects. In JavaScript (vs code ide) it seems you get none of that so either I have to experiment with what is expected or go find the documentation which seems cumbersome. Am I missing something or is that just the way it is?
Are you working in node? or like a browser environment? A fair bit of that should just work out of the box in vs code, so I am a bit surprised.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-02-2022 , 09:39 AM
Quote:
Originally Posted by PJo336
Are you working in node? or like a browser environment? A fair bit of that should just work out of the box in vs code, so I am a bit surprised.

Using sencha extjs.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-04-2022 , 12:00 PM
Intellisense
inline comments
expected parameters

lol

programmers nowaways are spoiled sons of bitches

I remember writing byte-by-byte on my Commodore64 00 AE FF etc, 35-40 years ago

I wrote a rudimentary drawing program and a Tetris with multiple levels with it and played the hell out of it.
Good times
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-06-2022 , 03:20 PM
Quote:
Originally Posted by Gabethebabe
Intellisense
inline comments
expected parameters

lol

programmers nowaways are spoiled sons of bitches

I remember writing byte-by-byte on my Commodore64 00 AE FF etc, 35-40 years ago
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-13-2022 , 03:23 PM
Gabe lad you have been spoiled, punched cards, paper tape, and actual physical relays are part of what I have had to deal with.

One of my first programs was a little rocket display that I wrote on a TRS80 when it was in the shop window.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-13-2022 , 03:30 PM
The IBM graphics kit in the late 80s has the most vicious feature that I have ever seen, if it didn’t find “IBM” or “IIBBMM” in the first fifty bytes of the BIOS it would silently uninstall itself.
A quite difficult problem to diagnose.

Last edited by notrebelatall; 03-13-2022 at 03:33 PM. Reason: Never found out what the “Top Hat Virtual Mouse” was
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-22-2022 , 03:46 AM
Any web developers in here that can give me a hand?

I'm building my first website ever and never did anything before with HTML, javascript or css.

Still I'm making good progress, thanks to some demo videos on youtube. It helps that I'm a decent programmer in VB. My major issue is basically finding the right syntax for what I want to do (those {} make my head hurt btw)

The HTML is costing time though. I need to layout some menu items on TOTP, two icons aligned left (help and statistics, both static pages), some in the middle (name and logo) and some right (dificulty level and language). The icons on the right trigger a dialog that allow me to make choices (change difficulty level, change language, respectively).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-22-2022 , 09:58 AM
Gabe,

With the caveat that I've been out of the game almost two years now (so there may be better/more popular things available now), look into bootstrap for styling/alignment things.

It can be used to do some pretty complex things, but (IIRC), it was pretty easy to use for making nice-looking pages.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-27-2022 , 04:19 PM
I'm stuck with the multiple languages in my site

The "keyup"· event listener returns "semicolon" when I type the Ñ on my spanish keyboard ...

Anyone know how to fix that?

Code:
	document.addEventListener('keyup', (e) => {
		if (gameOver) return;
		if ('KeyA' <= e.code && e.code <= 'KeyZ') {
			addLetter(e.code[3]);
		}
		else if (e.code == 'Backspace') {
			deleteLetter();
		}
		else if (e.code == 'Enter') {
			processEnter();
		}
	})
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2022 , 10:42 AM
Found the solution, yeah

keypress is the best event for finding characters.
keyup is needed for enter and backspace.

Finding all this stuff out costs me a lot of time. Frustrating, when there must be thousands of people that would know the answer instantly
But at the end, if you solve it, it is quite satisfactory.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-28-2022 , 02:05 PM
Gabe,

Caveat: I've been retired a couple years, so haven't been on these sites for quite a while. However, a couple of sites I found helpful back in the day were codeproject and stackoverflow. Tons of stuff on there. Forums where you can search/post questions about stuff you're stuck on, that kind of thing.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-29-2022 , 02:52 AM
My project is live on the www. The game is fully functional in 8 languages (en, fr, es, de, nl, pt, it, ca) and quite engaging, if you're into this type of word games.

Someone around here wants to betatest and help me to improve the HTML? The site currently looks terrible on phone.

Things to do:
- Help page
- Stats page
- Include multi language messages
- Reduce to 1 word per day/language/difficulty level
- obscure the javascript
- move to the final website and host on AWS
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-05-2022 , 08:28 AM
Anyone in here with knowledge of Amazon S3 & Cloudfront?

My site was working perfectly linking my AWS S3 bucket to my domain, but it didn't have https.

I had to use Cloudfront to get a certificate and https and now my files distribute horribly slow.
I force emptied the Cloudfront Cache by invalidating all files and since then, nothing. It should re-take the files from the S3 bucket in matter of minutes, but nothing of the kind.

Here is my site:

www.word500.com

If there are easier ways to host my Route 53 domain through https, using gitbhub maybe, I'd be interested to hear it

****ing amazon
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-05-2022 , 02:58 PM
If you want the files distributed quickly (I assume you mean after a change) then set all the TTL cache times to 0 in cloudfront under the default behavior settings.


Last edited by suzzer99; 04-05-2022 at 03:04 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-05-2022 , 04:46 PM
Yeah, I did that, but after 5h I still didn't have a site.

Then I tried through github, but that certificate I get for free doesn't seem to work properly with custom domains
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-05-2022 , 04:59 PM
Ok I see now:



First of all you need to make sure you followed all of the steps here: https://aws.amazon.com/premiumsuppor...tatic-website/

Something is wrong with your Cloudfront to S3 connection. Either the bucket doesn't have the right permissions, or it's not in the right region (that does matter sometimes, I forget if it matters here), or cloudfront isn't pointing to the right bucket, or something. But my money is on the permissions.

In cloudfront your s3 origin name should look something like this: [YOUR BUCKET NAME GOES HERE].s3.us-west-2.amazonaws.com. I don't think it should have www in the name.

In S3 you need to turn off Block Public Access, and explicitly give cloudfront access to the S3 bucket. Under Permissions, your bucket policy should look something like this:

Code:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "2",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity [CLOUDFRONT DISTRIBUTION NAME GOES HERE]"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::[YOUR BUCKET NAME GOES HERE]/*"
        }
    ]
}

Last edited by suzzer99; 04-05-2022 at 05:10 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-06-2022 , 04:54 AM
Hi, thanks, it is working now. I deleted the bucket and cloudfrount distribution and started again.

I still have allowed public access for the S3 bucket, I think that doesn't make a difference.

This sure was a frustrating ride
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-06-2022 , 03:25 PM
Yeah the S3 setup for hosting a web page straight from S3 and hosting it from from cloudfront to S3 is completely different.

You want to turn off web-hosting at S3. But you don't want to block all public access, which is weird because you'd think the permissions giving cloudfront access to S3 should be good enough. But I remember checking it back to block all public access and the website dying.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2022 , 02:21 AM
github is a ****ing joke

I use it for development and testing.
It will just plain out refuse to update my site when I import and commit a new index.html

Fortunately, the update I made distributed quickly through s3 and Cloudfront
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2022 , 05:02 AM
Hi Team,

2p2 is looking for a Software Engineer - more details here: https://forumserver.twoplustwo.com/5.../#post57622547

If anyone is interested, let me know and I'd be happy to put in a good word for you (even Suzzer)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2022 , 07:08 PM
Quote:
Originally Posted by Gabethebabe
Hi, thanks, it is working now.
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
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2022 , 07:16 PM
Quote:
Originally Posted by Josem
Hi Team,

2p2 is looking for a Software Engineer - more details here: https://forumserver.twoplustwo.com/5.../#post57622547

If anyone is interested, let me know and I'd be happy to put in a good word for you (even Suzzer)
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m