Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

Data Graham posted:

Like this gem I saw a little while ago.



Yeah no thanks, how about I just go somewhere else

So *that's* how you defend against SQL injection.....

Adbot
ADBOT LOVES YOU

Data Graham
Dec 28, 2009

📈📊🍪😋



I mean what it thinks it's trying to defend against is HTML entities (like & nbsp;) and tags, but still what we've got there is someone who not only stores passwords in cleartext but does things with them (like I guess display them if you forgot).

Munkeymon
Aug 14, 2003

Motherfucker's got an
armor-piercing crowbar! Rigoddamndicu𝜆ous.



MrMoo posted:

Been challenged to create a 60fps synchronized video wall in HTML5. Starting with single computer, multiple port, and increasing up towards multi-computer synchronized play for much bigly displays. I may start a project.log as the last time it took 3 months to get news & quote tickers running across 6 displays.

Choice technologies are DASH streaming with WebRTC based sync, I've seen multiple Chrome Experiments using this method quite successfully since 2013

https://vimeo.com/60992231

Is each one streaming the whole file and just showing a part of it or is it pre-split into the grid with playback synchronized over multiple files?

MrMoo
Sep 14, 2000

It's targeting a customizable signage solution type thing so they have single super size videos that cover the entire wall, but from what I've seen they have been split up because I don't think anything is going to play 12x4k resolution in a hurry. They also have a lot of odd videos that need to be played side by side and looped in various forms, all different lengths and sizes.

Easy first step would be to at least preprocess the video so that you have easier chunks to work with.

ooh, one of the target walls is this thing, so sometimes single adverts, sometimes multiple:




and this the first wall to fix as it is looking super with tearing and other awesome artifacts:

MrMoo fucked around with this message at 18:55 on Dec 1, 2016

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

That sounds like a cool project.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

MrMoo posted:

It's targeting a customizable signage solution type thing so they have single super size videos that cover the entire wall, but from what I've seen they have been split up because I don't think anything is going to play 12x4k resolution in a hurry. They also have a lot of odd videos that need to be played side by side and looped in various forms, all different lengths and sizes.


I remember a few years ago a goon in the "post pictures of what you are working on" or maybe this thread did the NASDAQ (or was in NYSE?) video boards along these lines. If you can search or whatever, maybe you can pick their brain? Or maybe it was you!!

Skandranon
Sep 6, 2008
fucking stupid, dont listen to me

MrMoo posted:

It's targeting a customizable signage solution type thing so they have single super size videos that cover the entire wall, but from what I've seen they have been split up because I don't think anything is going to play 12x4k resolution in a hurry. They also have a lot of odd videos that need to be played side by side and looped in various forms, all different lengths and sizes.

Very cool indeed, this is pretty close to my industry actually... Do you know how many frames you can be off? I'm guessing very few. I would be surprised if you could offer any sort of guarantee of frame accuracy via HTML5, especially at 60fps. Is it an absolute "drat the torpedoes" decision to use HTML5 video? If not, I would first try to really clarify what your tolerances are and if you think that can be met, before investing too much into an avenue which may never pan out the way it needs to.

Munkeymon
Aug 14, 2003

Motherfucker's got an
armor-piercing crowbar! Rigoddamndicu𝜆ous.



I used to maintain a video delivery system as part of my job and if DASH had just come along a couple years earlier I could have made my old boss' dreams come true :allears:

MrMoo
Sep 14, 2000

Skandranon posted:

Very cool indeed, this is pretty close to my industry actually... Do you know how many frames you can be off? I'm guessing very few. I would be surprised if you could offer any sort of guarantee of frame accuracy via HTML5, especially at 60fps. Is it an absolute "drat the torpedoes" decision to use HTML5 video? If not, I would first try to really clarify what your tolerances are and if you think that can be met, before investing too much into an avenue which may never pan out the way it needs to.

It's a hard 60fps, this is what the tickers already run* at NYSE with live data at 4K resolution. On gigantic display boards any visual errors are significantly amplified over a desktop environment which is why it is rather challenging. One could say the new implementation is more of a commodity by leveraging Chromium for everything, previous implementations are bespoke hardware and bespoke software and thus with additional costs and maintenance. There is a big question on tolerances which is why previously I used WebAnimations for an independent frame rate and sub-pixel rendering which ultimately proved incredibly powerful and visually better than pure CSS hardware animation that has browser and system jitter interrupting everything. The primary question is whether this entire thing is feasible in a web browser and thus that is my project from today.

It looks like it has been done before, the Chrome Pixel Tree project used a Node.js server for synchronization and relaying of control signals. If one looks at something like the Jet Blue Terminal at various airports they have a super sized display:



Is that real wide display or just 10 monitors repeated? Is it in a web browser and is it 60fps? idk, looks pretty nice though.

LAX JetBlue has a couple infamous Windows XP desktops showing so probably some custom app or Flash monstrosity.

MrMoo fucked around with this message at 22:42 on Dec 1, 2016

Skandranon
Sep 6, 2008
fucking stupid, dont listen to me

MrMoo posted:

It's a hard 60fps, this is what the tickers already run* at NYSE with live data at 4K resolution. On gigantic display boards any visual errors are significantly amplified over a desktop environment which is why it is rather challenging. One could say the new implementation is more of a commodity by leveraging Chromium for everything, previous implementations are bespoke hardware and bespoke software and thus with additional costs and maintenance. There is a big question on tolerances which is why previously I used WebAnimations for an independent frame rate and sub-pixel rendering which ultimately proved incredibly powerful and visually better than pure CSS hardware animation that has browser and system jitter interrupting everything. The primary question is whether this entire thing is feasible in a web browser and thus that is my project from today.

It looks like it has been done before, the Chrome Pixel Tree project used a Node.js server for synchronization and relaying of control signals. If one looks at something like the Jet Blue Terminal at various airports they have a super sized display:

Is that real wide display or just 10 monitors repeated? (JFK repeats on 7 by photos) Is it in a web browser and is it 60fps? idk, looks pretty nice though.

One monitor at 4k isn't much a problem I don't think, but 2 monitors, which are 2 browsers, and synchronizing DASH playback to within a few frames... Could certainly use Websockets to communicate between them all, but can you get your DASH transport stream segments small enough to correct for just a few frames? Tricky, sounds like you're looking mostly at some custom DASH extensions or something. Sounds fun though!

MrMoo
Sep 14, 2000

4k is the glorious combination of 6 HDTV's at the joke resolution of 1366x768 or whatever the usual low end size is. However that is all on one PC, it is going to be interesting scaling up either with a server or peer-to-peer. The other important caveat is that the servers are low profile boxes that you cannot jam a nVidia Titan into.

For some reason nVidia have special cards for digital signage but they are a generation or two behind those for gamers, we already had to use better hardware for the tickers compared to the regular wallboards like the one showing the DJI index. They provide bezel correction and allegedly frame sync.



Behold the power of flot.

MrMoo fucked around with this message at 22:51 on Dec 1, 2016

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

Was going to come in here to ask you guys if you had any experience unpacking SQLite files but then I found a cool site that does it for you:
https://sqliteonline.com/

It's like a little MSSQLMS thing in a web page! Pretty neat.

spiritual bypass
Feb 19, 2008

Grimey Drawer
Running a site like that is such an opportunity for evil. Delicious!

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

Yeah I was thinking that, but it was just a little database I was troubleshooting for an embedded hardware Android app someone else made. They're welcome to the 20 or so lines of obscure name/number combinations used to configure which tiles should be displayed on the screen ;)

MrMoo
Sep 14, 2000

Chome video wall update: I started a project.log before I start forgetting and losing things.

an skeleton
Apr 23, 2012

scowls @ u
Anyone have a recommendation for a good (front-end) lightbox/image carousel-y type library? Slick wasn't quite cutting it for us in terms of responsiveness. Just need to be able to cycle through a list of images and look good on mobile or desktop.

The Merkinman
Apr 22, 2007

I sell only quality merkins. What is a merkin you ask? Why, it's a wig for your genitals!

an skeleton posted:

Anyone have a recommendation for a good (front-end) lightbox/image carousel-y type library? Slick wasn't quite cutting it for us in terms of responsiveness. Just need to be able to cycle through a list of images and look good on mobile or desktop.

We moved from Slick to Swiper

Boosh!
Apr 12, 2002
Oven Wrangler
Seconding Swiper.

Unrelated: My company wants to livestream presentations (show their computer + voice) embedded on our site. I'm not familiar with anything other than Twitch and YouTue live which they wouldn't want to use. Chat, etc isn't required either; I'm thinking barebones live video would be enough. Any recommendations?

Impotence
Nov 8, 2010
Lipstick Apathy
youtube live might be the easiest to just embed

if you want to pay, there are places that just provide you a player JS/swf code and a rtmp url to push to

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

You might want to mosey over to the LP forum and the tech support fort thread therein. I believe they have instructions/experience with free programs like OBS and the like that might work. You can also hack together a janky stream with VLC, though I've never done it but I believe it's possible.

InevitableCheese
Jul 10, 2015

quite a pickle you've got there
Any of you UltraEdit owners know what the hell this "Download Insurance Service" is? It's $8 for what looks like a 2 year guarantee I can download installers for the software. Is this needed? I thought the trail was downloadable then I can just put my license key in that way?

well why not
Feb 10, 2009




OBS is kinda janky to setup, if you have money for it, maybe look into something like xSplit.

spiritual bypass
Feb 19, 2008

Grimey Drawer
Is anyone building web applications in Common Lisp? I made an HTML generation library for PHP a few weeks ago that turns out to be virtually identical to what Common Lisp and Clojure users are already doing. The idea of such an elegant language that produces fast-running binaries for the server just sounds so nice.

kedo
Nov 27, 2007

Another Drupal question that will probably go unanswered, but here we go... How can I see the unrendered contents of a field in a twig template?

For example, I have this:

code:
{{ content.link_field }}
Which renders a link field onto the page. However I know the link title and the link URL are both stored in there somehow. I'm just not entirely sure how to get at them. Through googling I was able to get the URL thusly

code:
{{ content.link_field.0['#url'] }}
but it would have taken me thirty seconds to figure this out instead of a half hour if I could actually just print the field's contents onto the page in an array/object format. dump() is supposed to do this, but I get a WSOD whenever I use it which is incredibly frustrating.

Any help? Pleeeease?

spacebard
Jan 1, 2007

Football~

kedo posted:

but it would have taken me thirty seconds to figure this out instead of a half hour if I could actually just print the field's contents onto the page in an array/object format. dump() is supposed to do this, but I get a WSOD whenever I use it which is incredibly frustrating.

Any help? Pleeeease?

dump() should work but kint() will work better (install devel module). You're probably running out of memory.

kedo
Nov 27, 2007

Yeah, I figured as much. I pumped my memory all the way up to 2 gigs (locally of course) and still had some issues so I started dumping only keys instead. It works, it's just a little slow. :(

I need to get kint working but I have so many composer errors that I don't want to take the time to fix right now that I can't. Fun stuff.

Thots and Prayers
Jul 13, 2006

A is the for the atrocious abominated acts that YOu committed. A is also for ass-i-nine, eight, seven, and six.

B, b, b - b is for your belligerent, bitchy, bottomless state of affairs, but why?

C is for the cantankerous condition of our character, you have no cut-out.
Grimey Drawer

InevitableCheese posted:

Any of you UltraEdit owners know what the hell this "Download Insurance Service" is? It's $8 for what looks like a 2 year guarantee I can download installers for the software. Is this needed? I thought the trail was downloadable then I can just put my license key in that way?

Total guess: I think they save your key with that, otherwise the responsibility is with you?

Man, how is ol' UE doing? I used to love working with that.

Kekekela
Oct 28, 2004

well why not posted:

OBS is kinda janky to setup,
Like janky to the point of "if you haven't done something similar, it'll probably be super-frustrating" ? I'd been thinking about trying it out for a personal project after seeing it recommended on a gaming board for something completely unrelated.

ufarn
May 30, 2009

Kekekela posted:

Like janky to the point of "if you haven't done something similar, it'll probably be super-frustrating" ? I'd been thinking about trying it out for a personal project after seeing it recommended on a gaming board for something completely unrelated.
"Overwhelming" is a better way to put it. As long as you know someone who can set you up the right way, it's pretty straightforward - at least OBS Studio.

well why not
Feb 10, 2009




Yeah, it's not like it's broken, it's just hard to get setup to a solid state. Hard to beat the price, though.

an skeleton
Apr 23, 2012

scowls @ u
Thanks for image carousel suggestions.

another quandary:

We have an image viewer of sorts in our app which allows a user to upload photos. If this photo is an iOS photo taken in portrait mode, for whatever reason, it is displayed in its side (rotated 90 degrees) instead of upright. right now the image is set into a background, but earlier it was in a regular old <img> tag, and both methods resulted in the img being sideways. anyone have a solution to this? i suppose we can read the metadata and maybe do some css rotation magic, but wanted to reach out before we tried that.

huhu
Feb 24, 2006
Are there any courses or tutorials that walk you through, with exercises, doing the very basics of requests, post, get, Ajax calls, etc? I already know the topics more or less by observing what happens with developer tools and I've built simple stuff with Django. However, this knowledge is very far removed from the basics of what's going on and I'd like to learn more about that.

Scaramouche
Mar 26, 2001

SPACE FACE! SPACE FACE!

I don't know about tutorials or the like, but for me way back in the day downloading and messing around with Fiddler really opened up my eyes on how that stuff worked. Basically pick your favourite site, fire up fiddler, and inspect things.

putin is a cunt
Apr 5, 2007

BOY DO I SURE ENJOY TRASH. THERE'S NOTHING MORE I LOVE THAN TO SIT DOWN IN FRONT OF THE BIG SCREEN AND EAT A BIIIIG STEAMY BOWL OF SHIT. WARNER BROS CAN COME OVER TO MY HOUSE AND ASSFUCK MY MOM WHILE I WATCH AND I WOULD CERTIFY IT FRESH, NO QUESTION
Writing the other end is very useful too. Try writing a very basic API in more or less whatever language and you'll learn so much about how HTTP requests work.

an skeleton
Apr 23, 2012

scowls @ u
what is the consensus on tools such as Browserstack? Anyone have experience using it, was it worth it, or is there an alternative you liked better?

well why not
Feb 10, 2009




Browserstack is kind of a joke IMO. Modern browsers are all fairly close to spec at this stage. IE6 is buried, IE7/8 are on the way out and IE9+ is generally fine. Just explain to your clients that worse browsers will have a degraded experience and be done with it.

If you have to test across browsers, the current best way - IMO - is with a Mac and Parallels Desktop. Covers IE, Safari, Chrome, Firefox.

kedo
Nov 27, 2007

Agreed. I use VMWare Fusion to run a couple different versions of Windows so I can test back to IE9. Browserstack is useless (or at least was last I used it) when you have some obscure JS error that you can't troubleshoot because it doesn't give you access to developer tools.

Granted I also used it last about 4 years ago, so take what I say with a grain of salt.

Munkeymon
Aug 14, 2003

Motherfucker's got an
armor-piercing crowbar! Rigoddamndicu𝜆ous.



I've been missing BrowserStack recently because the place I'm at right now doesn't have it and it turns out that modern browsers aren't consistent enough at, for example, rendering native date controls to pass QA here without a lot of browser-specific tweaking. Also I technically have to support IE 9 because corporate and of course I'm on 11 and lol no, there's no spare RAM for a VM on this thing :smith:

Aside from helping to fix the odd bug that only shows up in some annoying mad-libs-filled-in-at-random configuration, the mode that just shows you a giant grid of screenshots from ~20 different configurations is really nice for spot-checking changes that might break ~something~ ~somewhere~ and hand-testing each would take up too much time.

PT6A
Jan 5, 2006

Public school teachers are callous dictators who won't lift a finger to stop children from peeing in my plane
I just ignore ancient IE versions at this point -- I don't even mention them to clients. Better to ask forgiveness than permission, and so far I've had zero complaints in the past five years anyway.

Adbot
ADBOT LOVES YOU

Munkeymon
Aug 14, 2003

Motherfucker's got an
armor-piercing crowbar! Rigoddamndicu𝜆ous.



The place I was at this time last year was doing 30% of their online business through IE 9 and their site did about $1.2B per year, IIRC. They still do most of their sales over the phone, though, because they mainly sell to healthcare providers and lolll if you think a doctor is going to ever change their ways - or buy new computers for the office, apparently

By contrast, BBY dropped support for anything older than 11 because nobody on those old browsers was spending any money on the site, so :byewhore:

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply