00:00
00:00
Newgrounds Background Image Theme

Forsynth just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

3,047,207 Views | 60,186 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2016-09-26 10:21:32


At 9/25/16 10:36 PM, egg82 wrote: Real passwords currently in use at my workplace.
Still running a few more lists before I finally give up on the last 10 that I have yet to break.

We had a client once that wanted us to port what I made for them over to their Azure platform (for whatever reason) and everything in that that was password protected, that wasn't the custom login they gave to me and my coworker, had a password that was the name of their company followed by 123!.

This was also a multi-billion dollar company spending like $10,000.00 per month on their Azure subscription.

Incompetence knows no bounds.

Response to The Flash 'Reg' Lounge 2016-09-26 15:22:19


At 9/26/16 10:21 AM, Diki wrote: We had a client once that wanted us to port what I made for them over to their Azure platform (for whatever reason) and everything in that that was password protected, that wasn't the custom login they gave to me and my coworker, had a password that was the name of their company followed by 123!.

This was also a multi-billion dollar company spending like $10,000.00 per month on their Azure subscription.

Incompetence knows no bounds.

Every single company I've worked for so far has had one of these combinations as real passwords protecting valuable information:
company name + 123! (sometimes not even the !)
smile101
application name + 123!
welcome123 or welcome201x ("x" being the current year. Sometimes they mix it up with the company name or part of it in front)
password1 (or some variant)
shortened company name (ie. 2-4 letters) + 123!
shortened application name (ie. 2-4 letters) + 123!

sometimes exclamation points, sometimes capitols, etc etc. A comprehensive list of all these types of passwords would rang in the hundreds of thousands at the very best.
aka even at its slowest, my PC would crack a password like this in a matter of seconds. If I really wanted to get fancy, I could add markov permutations and get a massive list that would take me a minute or so.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-09-26 20:51:19


My friend recently introduced me to Semantic UI as an alternative to Bootstrap, which has become rather bloated, and is kind of a pain in the ass.

I definitely prefer the way it handles columns:

<div class="three column row"> <div class="column">Butts</div> <div class="column">Boobs</div> <div class="column">Baldur's Gate</div> </div>

Which means if you want to add a column, you just need to add that element and then change "three" to "four," whereas with Bootstrap you need to specify the size of every single column:

<div class="row"> <div class="col-xs-4">Buttocks</div> <div class="col-xs-4">Breasts</div> <div class="col-xs-4">Icewind Dale</div> </div>

So if you want to add a column, you need to add that column, then change the size of all the others to accommodate (aka it's a pain in the ass). Bootstrap also is especially a pain in the ass if you have an odd number of columns that you want to centre, because you have to specify the size of each and well... yeah. With Semantic UI you just specify the number of columns and it does the rest.

It also looks nice and has better native form support, most notably with dropdowns.

Unfortunately it doesn't have nearly as many plugins as Bootstrap does, but you gotta take what you can get.

All in all, I'm quite pleased with Semantic UI, especially considering making websites is my job and it's going to make my job easier, which Bootstrap has only barely been able to do. So goodbye Bootstrap and good riddance.

Response to The Flash 'Reg' Lounge 2016-09-28 22:31:29


I mean..
Uhh..

.. Yeah, I got nothin'.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-09-29 12:50:10


At 9/28/16 10:31 PM, egg82 wrote: I mean..
or that the power supply voltages have drifted out of tolerance

This seems more appropriate.

Yeah I know this song wasn't out back then. Shut up.

Response to The Flash 'Reg' Lounge 2016-10-02 22:58:57


Keep this in mind as you read this:
If it didn't work, they wouldn't do it.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-10-03 02:31:37 (edited 2016-10-03 02:34:03)


Top-down movement Sorry it took so long, I had friends visiting from out of town all week.

IntelliJ has to be the worst editor I've ever encountered. I can deal with every UI element being ridiculously slow, if it offers a lot of refactoring and telemetry (There's no reason for it be THIS slow, but I looked past it), however, I've never seen an editor automatically run auto formatting whenever it damn well pleases with no option to revert. the default editing/formatting settings are some of the dumbest I've ever come across. I'm using Notepad++, for now.

I'm having trouble with:

index.html:1 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access.
At 9/25/16 07:43 PM, OmarShehata wrote: Off the top of my head: Do you have a local web server running? Shouldn't you be accessing it via localhost:8000 or some port, as opposed to opening the html file directly in your browser?

I've never setup a local web server, and don't really know how. but this issue seems related

Since I can't load the image I replaced it with a Graphic, for now. Let me know if the PR needs any changes, I have no experience with JS architecture/patterns, so criticsm would be greatly appreciated

Who's next?!

Response to The Flash 'Reg' Lounge 2016-10-03 09:31:37


At 10/3/16 02:31 AM, GeoKureli wrote: I'm having trouble with:

index.html:1 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access.

That's because you're not running a web server, essentially.

At 9/25/16 07:43 PM, OmarShehata wrote:
I've never setup a local web server, and don't really know how. but this issue seems related

You can use Valgrind to set one up and have it isolated from the rest of your machine, but it can be a little tricky if you've never worked with it before.

I'm pretty lazy so I just put Ubuntu Server on a VM with VirtualBox, install Apache, and setup a shared folder with the httpd directory. Then just browse to it like you would any other site (with whatever IP address VirtualBox has).

Having an actual server running makes things a lot simpler, so I'd recommend setting one up.

Response to The Flash 'Reg' Lounge 2016-10-03 13:32:06


At 10/3/16 02:31 AM, GeoKureli wrote: I've never setup a local web server, and don't really know how. but this issue seems related

You should just be able to run `npm start` to launch to local web server. It's built into the project.

Just make sure you've installed the dependency:`npm install http-server -g`

I'll take a look at the PR shortly :]

Response to The Flash 'Reg' Lounge 2016-10-03 13:38:30


At 10/3/16 01:32 PM, PrettyMuchBryce wrote: You should just be able to run `npm start` to launch to local web server. It's built into the project.

Just make sure you've installed the dependency:`npm install http-server -g`

Yeah, if you're using node then that would likely be the simplest thing to do.

Response to The Flash 'Reg' Lounge 2016-10-03 23:43:35


At 10/3/16 01:32 PM, PrettyMuchBryce wrote:
I've never setup a local web server, and don't really know how. but this issue seems related

XAMPP if you're lazy. Otherwise grab yourself a Raspberry Pi.

You should just be able to run `npm start` to launch to local web server. It's built into the project.

Win 10 now has a built-in Ubuntu kernel. npm-install away.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-10-04 01:06:50 (edited 2016-10-04 01:10:54)


I don't know whats different, but I used to just open index.html in chrome to test my changes, I tried all those npm commands and now I i don't see my changes

https://gist.github.com/Geokureli/73d1c875ad6f978cf704b73f624eaf2f

Response to The Flash 'Reg' Lounge 2016-10-04 09:17:01


At 10/4/16 01:06 AM, GeoKureli wrote: I don't know whats different, but I used to just open index.html in chrome to test my changes, I tried all those npm commands and now I i don't see my changes

https://gist.github.com/Geokureli/73d1c875ad6f978cf704b73f624eaf2f

You're browsing to http://127.0.0.1:8080 and it's showing outdated data/info? And everything in the Games/JS/reglounge is up-to-date?

Response to The Flash 'Reg' Lounge 2016-10-04 13:33:28


At 10/4/16 01:06 AM, GeoKureli wrote: I don't know whats different, but I used to just open index.html in chrome to test my changes, I tried all those npm commands and now I i don't see my changes

Did you first build the project by running `npm build` ? There is a build step as the project uses webpack to transpile and bundle the code.

When I tried to run it I saw a black screen with some errors in the console. Is that what you're seeing ?

Response to The Flash 'Reg' Lounge 2016-10-04 13:59:10


At 10/4/16 09:17 AM, Diki wrote:
At 10/4/16 01:06 AM, GeoKureli wrote: I don't know whats different, but I used to just open index.html in chrome to test my changes, I tried all those npm commands and now I i don't see my changes

https://gist.github.com/Geokureli/73d1c875ad6f978cf704b73f624eaf2f
You're browsing to http://127.0.0.1:8080 and it's showing outdated data/info? And everything in the Games/JS/reglounge is up-to-date?
At 10/4/16 09:17 AM, Diki wrote: You're browsing to http://127.0.0.1:8080 and it's showing outdated data/info? And everything in the Games/JS/reglounge is up-to-date?

No, there's an all.js that seems to have been built and includes an implanted copy of Main.js, but before I was editing Main.js and seeing the results immediately, now I have to 'npm build' to update it, which I can't seen to do once I run 'npm start'. and after the whole song and and dance I still get the Cross-Origin issue

Response to The Flash 'Reg' Lounge 2016-10-04 15:04:01 (edited 2016-10-04 15:04:51)


At 10/4/16 01:33 PM, PrettyMuchBryce wrote: Did you first build the project by running `npm build` ? There is a build step as the project uses webpack to transpile and bundle the code.

When I tried to run it I saw a black screen with some errors in the console. Is that what you're seeing ?

no errors, it runs fine for me. I can add some semicolons, in that area, though

Response to The Flash 'Reg' Lounge 2016-10-04 18:05:44


At 10/4/16 01:59 PM, GeoKureli wrote: No, there's an all.js that seems to have been built and includes an implanted copy of Main.js, but before I was editing Main.js and seeing the results immediately, now I have to 'npm build' to update it, which I can't seen to do once I run 'npm start'.

I've never worked with node before so unfortunately I can't help in that regard.

At 10/4/16 01:59 PM, GeoKureli wrote: and after the whole song and and dance I still get the Cross-Origin issue

Are the files you're referencing using absolute paths? So long as you do:

<img src="/static/img/butts.gif">

you won't get a Cross-Origin error, but you will if you try to refer to it with your local machine's addressing (i.e. using the file:// protocol).

Response to The Flash 'Reg' Lounge 2016-10-04 18:16:11


At 10/4/16 01:59 PM, GeoKureli wrote: No, there's an all.js that seems to have been built and includes an implanted copy of Main.js, but before I was editing Main.js and seeing the results immediately, now I have to 'npm build' to update it, which I can't seen to do once I run 'npm start'. and after the whole song and and dance I still get the Cross-Origin issue

You can use `npm watch` to build as you make changes. BTW here are a list of all of the scripts related to the project. You should be able to run build and start at the same time in different terminals.

https://github.com/prettymuchbryce/reglounge/blob/master/package.json#L6

Not sure what's going on with the cross origin issue. It should work provided you are hitting the http://127.0.0.0:8080 address. You shouldn't be opening the html file manually.

Response to The Flash 'Reg' Lounge 2016-10-05 20:31:41 (edited 2016-10-05 21:00:10)


In the same week I've talked to Patricia Correa and delivered food to Google HQ, and talked to and delivered food for Xamarin Studio.

Pretty nifty week.

I called the store delivering and went "Okay, here's the deal.. Make damn sure you don't fuck this one up."

Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-10-06 13:10:19


At 10/4/16 06:16 PM, PrettyMuchBryce wrote: https://github.com/prettymuchbryce/reglounge/blob/master/package.json#L6

You don't need to install webpack globally since it's already in your project dependencies. Node will check your project node_modules first, which means you can also install http-server as a project dependency and completely omit the global install step.

Response to The Flash 'Reg' Lounge 2016-10-06 21:35:07


At 10/6/16 01:10 PM, Sam wrote: You don't need to install webpack globally since it's already in your project dependencies.

Ah good call. I'll fix that.

Response to The Flash 'Reg' Lounge 2016-11-15 23:05:49


I spent far too much time fiddling with GCloud and came up with this.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-11-16 17:25:45


I threw this together because boredom o.o

Also, yeah, hi. I haven't been posting in a while because overtime. I check this place every day, though.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-11-16 17:43:20


At 11/16/16 05:25 PM, egg82 wrote: I threw this together because boredom o.o

Also, yeah, hi. I haven't been posting in a while because overtime. I check this place every day, though.

School
+ Research
+ Extracurriculars
+ Netflix
=
Ded

Also all the haxelibs are in a weird spot, so I don't have too much I can do for coding

Response to The Flash 'Reg' Lounge 2016-12-07 23:35:39


Anybody alive in here ?

I am in between jobs right now so I thought I would hack on the game I was posting here some months ago. I decided to start by redoing the client since the backend is in a pretty good place from all the work I did before. Maybe I will make this feel more RTSish ?

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2016-12-08 01:24:42 (edited 2016-12-08 01:24:56)


At 12/7/16 11:35 PM, PrettyMuchBryce wrote: Anybody alive in here ?

After a stressful 2 months or so, I have no finals. Resuming gamedev and also working on a haxe flixel backend for the soon to be best haxelib for UI, HaxeUI v2. It works for every framework (because of the backends), so it's a crosslibrary crossplatform UI framework I guess.

I do have a ton of writing to do for research, but that's not as bad as my semester has generally been.

Response to The Flash 'Reg' Lounge 2016-12-08 01:28:05


At 12/7/16 11:35 PM, PrettyMuchBryce wrote: Anybody alive in here ?

Not me specifically, but one of flixel's maintainers is now under contract sorta to work on the lib, so it'll finally be able to use the latest OpenFL version. OpenFL 4 had a massive breaking change, and pretty much all of flixel's rendering has had to be rewritten. I'll finally be able to update my haxelibs without breaking everything.

Response to The Flash 'Reg' Lounge 2016-12-09 18:15:01 (edited 2016-12-09 18:17:24)


Meanwhile I've been busy building servers and tools for my work. Can't really show much since PCI and all, but I developed something kinda neat. All my work-related servers use GCloud for everything (server, sql, load balancing, etc) - minus CloudFlare. I wanted an easy way to patch these servers with the latest GRSec kernels.

I have one main "build server" that builds the kernel and puts the finished .deb install packages into a bucket (GCloud file storage) - all machines mount this as root and restrict access to it. Here's the build script, with prerequisites for using it.

Prereqs (use as root):

gpg --recv "DE94 52CE 46F4 2094 907F 108B 44D1 C0F8 2525 FE49" gpg --recv "D2E0 B4B6 16A3 B532 20B8 969B 956D 2366 39F0 81BF" gpg --recv-keys "647F 2865 4894 E3BD 4571 99BE 38DB BDC8 6092 693E" gpg --recv-keys "ABAF 11C6 5A29 70B1 30AB E3C4 79BE 3E43 0041 1886" sudo apt-get -y install build-essential libncurses5-dev gcc-4.8-plugin-dev libssl-dev

Build script (run as root):

#!/bin/bash verify_sig() { local file=$1 out= if out=$(gpg --status-fd 1 --verify "$file" 2>/dev/null) && echo $out | grep "\[GNUPG:\] VALIDSIG" | grep "\[GNUPG:\] GOODSIG" | grep -qsv "\[GNUPG:\] TRUST_NEVER"; then return 0 else echo "$out" >&2 return 1 fi } echo Clearing old files.. rm -rf linux-* rm -f grsecurity-* cd /home/builder rm -rf linux-* cd ~ echo Fetching version info.. grsecurl=`wget -q -O- "https://grsecurity.net/testing_rss.php" | grep -o '<link>.*\.patch</link>' | grep -o 'http.*\.patch' -m 1` grsecsig=`echo $grsecurl | awk '{print $1".sig"}'` kernelver=`echo $grsecurl | cut -d "-" -f 3` kernelfolderver=`echo $kernelver | cut -d "." -f 1 | awk '{print "v"$1".x"}'` kernelurl=`echo "https://www.kernel.org/pub/linux/kernel/"$kernelfolderver"/linux-"$kernelver".tar.xz"` kernelsig=`echo "https://www.kernel.org/pub/linux/kernel/"$kernelfolderver"/linux-"$kernelver".tar.sign"` grsecfile=`echo $grsecsig | grep -o 'grsecurity-.*'` kernelfile=`echo $kernelsig | grep -o 'linux-.*'` currentkernelver=`uname -r | cut -d - -f 1` if [ $kernelver == $currentkernelver ]; then echo "Nothing to do" exit fi echo Fetching GrSec.. wget -t 3 -T 60 $grsecurl &>/dev/null wget -t 3 -T 60 $grsecsig &>/dev/null echo Fetching kernel.. wget -t 3 -T 60 $kernelurl &>/dev/null wget -t 3 -T 60 $kernelsig &>/dev/null echo Verifying GrSec.. if verify_sig $grsecfile; then echo Good GrSec signature else echo Bad GrSec signature exit fi if [ ! -f "linux-"$kernelver".tar" ]; then echo Unpacking kernel.. unxz "linux-"$kernelver".tar.xz" fi echo Verifying kernel.. if verify_sig $kernelfile; then echo Good kernel signature else echo Bad kernel signature exit fi if [ ! -d "linux-"$kernelver ]; then echo Unpacking kernel.. tar -xvf "linux-"$kernelver".tar" &>/dev/null fi echo Applying patch.. cd "linux-"$kernelver patch -p1 < ../$(echo $grsecurl | grep -o 'grsecurity-.*') &>/dev/null cp /boot/config-*-grsec .config cd .. echo Moving to unprevileged user.. mv "linux-"$kernelver /home/builder/ chown -R builder:builder "/home/builder/linux-"$kernelver echo Building.. cd "/home/builder/linux-"$kernelver su builder -c 'fakeroot make deb-pkg' cd .. echo Installing new kernel.. dpkg -i linux-*.deb echo Moving packages.. find . -type f -name "*.deb" -exec mv -t /mnt/build-bucket/grsec-kernel/ {} + cd ~ echo Removing old kernels.. dpkg -l linux-{image,headers}-* | \ awk '/^ii/{print $2}' | \ egrep '[0-9]+\.[0-9]+\.[0-9]+' | \ awk 'BEGIN{FS="-"}; {if ($3 ~ /[0-9]+/) print $3"-"$4,$0; else if ($4 ~ /[0-9]+/) print $4"-"$5,$0}' | \ sort -k1,1 --version-sort -r | \ sed -e "1,/$(uname -r | cut -f1,2 -d"-")/d" | \ grep -v -e `uname -r | cut -f1,2 -d"-"` | \ awk '{print $2}' | \ xargs apt-get -y purge update-grub echo Restarting.. reboot

And the client's "pull & install" script below:

Pull script (run as root):

#!/bin/bash cd /mnt/build-bucket/grsec-kernel/ last=`ls -t linux-headers-*.deb | xargs -L 1 basename | sed -n 1p` version=`echo $last | cut -d - -f 3` currentversion=`uname -r | cut -d - -f 1` pkg=`echo "linux-*"$version"*.deb"` if [ $version == $currentversion ]; then exit fi echo Installing new kernel.. dpkg -i $pkg echo Removing old kernels.. dpkg -l linux-{image,headers}-* | \ awk '/^ii/{print $2}' | \ egrep '[0-9]+\.[0-9]+\.[0-9]+' | \ awk 'BEGIN{FS="-"}; {if ($3 ~ /[0-9]+/) print $3"-"$4,$0; else if ($4 ~ /[0-9]+/) print $4"-"$5,$0}' | \ sort -k1,1 --version-sort -r | \ sed -e "1,/$(uname -r | cut -f1,2 -d"-")/d" | \ grep -v -e `uname -r | cut -f1,2 -d"-"` | \ awk '{print $2}' | \ xargs apt-get -y purge update-grub echo Restarting.. reboot

Hacked a few items together from the interwebs to make this work, and it works pretty damn well.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2016-12-12 18:37:59


At 12/7/16 11:35 PM, PrettyMuchBryce wrote: Anybody alive in here ?

I am in between jobs right now so I thought I would hack on the game I was posting here some months ago. I decided to start by redoing the client since the backend is in a pretty good place from all the work I did before. Maybe I will make this feel more RTSish ?

Oh yeah, did you ever come up with a solution to that pathfinding problem you were having? Like how you needed the exact path but your map was dynamic and you had multiple actors.

Response to The Flash 'Reg' Lounge 2016-12-17 00:19:57 (edited 2016-12-17 00:25:56)


At 12/12/16 06:37 PM, MSGhero wrote: Oh yeah, did you ever come up with a solution to that pathfinding problem you were having? Like how you needed the exact path but your map was dynamic and you had multiple actors.

Sort of. I'm actually wrapping around to thinking about that again right now.

The biggest problem is that paths that are impossible end up taking a very long time to resolve. This is because with the way A* works it needs to exhaust the list of open nodes before it considers no path to be found. But the thing is, almost all of these cases happen because some other actor is blocking access to some enclosed space. e.g.

example: XXXXX X X A B T X X X XXXXX legend: X - Wall A - Actor A B - Actor B T - Actor A's Destination

So imagine here actor A needs to move to T, but actor B is in the way. Maybe this is some sort of house or cave that actor A would like to enter. If the world around the house/cave is very large then A* will need to exhaustively search all of it only to discover there is no path. I'm wondering if there is some way to exit early once we've explored a contiguous set of nodes around the target. I wonder even if there is already a paper somewhere that details some technique to do this, or variations of A* already handle. I'm just now starting to dig into it. If I can solve this then I think it should take care of the problem.