r/web_programming • • Feb 01 '18

How Designers And Developers Can Work Together Faster

Thumbnail
designtoolnews.com
4 Upvotes

r/web_programming • • Jan 19 '18

How can I extract a full text from a canvas?

4 Upvotes

I'd like to extract the text on a website that hides it in a canvas. I have managed to extract half of the text by inspecting the canvas in Firefox, but for some reason, it doesn't show the rest.

Is there a different way to get the full text?


r/web_programming • • Jan 17 '18

The value of Event Sourcing

Thumbnail
keith-mifsud.me
4 Upvotes

r/web_programming • • Jan 05 '18

Copious and varied errors from ads.thehiveworks.com/delivery/spc.php, used by many webcomic sites. Is it as crappy as it looks?

4 Upvotes

So I wrote myself an app to read web comics. I used Python and PyQt, and invoke the Qt5.9 QWebEngineView interface to display the web comic pages.

The QWebEngine API returns copious messages which I log with the Python logging facility and then mostly ignore, but finally I took a look and realized they are all coming from one function, ads.thehiveworks.com/delivery/spc.php. Flipping through a dozen webcomic pages produces a hundred-odd error and warning messages, all coming from the operation of this function which it seems most web comics invoke to sell ads.

I spent a little time collating and editing the various messages this thing is producing. Each individual log message gives a "Qt context" which has the line number in the function. However often the line number is 0, which I assume means "we don't know". So here is a display of the kinds of messages, cleaned up and sorted by line number.

There are many, many messages of this form, from lines 0, 23, 25, 56, 81, etc:

WARNING:root:Qt message: A Parser-blocking, cross-origin script ...

 ... http://ads.thehiveworks.com/delivery/spc.php?zones=245%7C246%7C387&source=&r=25071947&charset=UTF-8&loc=http%3A//sssscomic.com/comic.php,
 ... http://partner.googleadservices.com/gampad/google_ads.js,
 ... http://partner.googleadservices.com/gampad/google_ads.js,
 ... https://securepubads.g.doubleclick.net/gampad/ads?correlator=3734082798657945 <blah blah blah redacted>,
 ... http://ap.lijit.com/adcfg?zoneid=255795&tid=b0d0065fdcc048edb8df65976eb3f89ab0a9a90c&mode=0&dmn=www.sinfest.net,
 ... http://ap.lijit.com/addelivery?zoneid=255795& <blah blah blah redacted>,
 ... http://ml314.com/tag.aspx?402018,
 ... http://ad-cdn.technoratimedia.com/00/93/27/uat_32793.js?ad_size=728x90,
 ... http://a.tribalfusion.com/displayAd.js?dver=0.8&th=10949142916,
 ... https://www.googletagservices.com/dcm/dcmads.js,
 ... https://www.googletagservices.com/dcm/impl_v41.js,

... is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. See https://www.chromestatus.com/feature/5718547946799104 for more details.

The following occur multiple times, always from line 0, trying to execute a GIF. Shady?

ERROR:root:Qt message: Refused to execute script from...

 ... 'http://dpm.demdex.net/ibs:dpid=96678&dpuuid=L5T8l9tRCxuP'
 ... 'http://ps.eyeota.net/pixel?pid=51md42u&t=gif&uid=eaeb4ac3176c52bc9b2e237f'
 ... 'http://bcp.crwdcntrl.net/5/c=5436/tp=SVRN/tpid=eaeb4ac3176c52bc9b2e237f/pv=y?https://ce.lijit.com%2Fmerge%3Fpid%3D5001%263pid%3D%24%7Bprofile_id%7D'
 ... 'https://ml314.com/utsync.ashx? <blah blah blah redacted>
 ... 'http://bcp.crwdcntrl.net/5/c=5436/ <blah blah blah redacted>

... because its MIME type ('image/gif') is not executable.

From line 0: it hammered on this script "vast.bp...." more than 25 times with different combinations of parameters, refused every time.

ERROR:root:Qt message: XMLHttpRequest cannot load http://vast.bp3872891.btrll.com/vast/3872891?n=1515081914377275&br_w=480&br_h=360. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://owlturd.com' is therefore not allowed access. The response had HTTP status code 404.

From line 1

WARNING:root:Qt message: 'webkitURL' is deprecated. Please use 'URL' instead.

From line 1

ERROR:root:Qt message: Error while parsing the 'sandbox' attribute: 'allow-top-navigation-by-user-activation' is an invalid sandbox flag.

From line 2:

WARNING:root:Qt message: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

From line 20

ERROR:root:Qt message: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://shencomix.com') does not match the recipient window's origin ('http://owlturd.com').

From line 25: What kind of data is it trying to send? To whom?

WARNING:root:Qt message: [Facebook Pixel] - An invalid email address was specified for 'em'. This data will not be sent with any events for this Pixel.

From line 29

ERROR:root:Qt message: Uncaught (in promise) TypeError: Cannot read property 'type' of undefined

From line 209

WARNING:root:Qt message: The devicemotion event is deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

From line 326

WARNING:root:Qt message: 'webkitIndexedDB' is deprecated and will be removed in M57, around March 2017. Please use 'indexedDB' instead. See https://www.chromestatus.com/features/5775330191081472 for more details.
WARNING:root:Qt message: 'webkitOfflineAudioContext' is deprecated. Please use 'OfflineAudioContext' instead.

From line 470

ERROR:root:Qt message: Uncaught TypeError: u.dcsx.engn is not a function

From line 791

ERROR:root:Qt message: Uncaught TypeError: Cannot read property 'length' of null

From line 1 and again from line 407

ERROR:root:Qt message: Uncaught ReferenceError: _typeface_js is not defined

r/web_programming • • Dec 29 '17

Programmers, help me out with some advice, and brainstorming.

4 Upvotes

Hi everyone,

I work in a hospital laboratory, have a small bit of knowledge on programming, and I am trying to brainstorm an idea for a program that will be able to download procedures for laboratory instruments from the manufacturer's website and notify the user when the file has been updated.

We use vital information from these instrument procedures and sometimes our procedures are outdated because manufacturers do not notify individual clients of procedure updates, they leave that to us. Having something that can automatically check for us and tell us when to update our procedures would be very useful.

Is this type of program something that can be done fairly easy? Am I even in the right subreddit? Thanks for your advice.


r/web_programming • • Nov 10 '17

How does messenger know you're logged in to Facebook?

4 Upvotes

I was wondering how Facebook's messenger website is able to know you're logged in to Facebook without any oauth or other redirect tech? I was sure cookies cant be shared across domains.

eg: https://imgur.com/nM4OcVW


r/web_programming • • Oct 30 '17

CSS Grid Layout - When to use auto rows?

4 Upvotes

I have been using grid layout for a decent amount of time now, about 4 - 5 months. One question I keep coming to is this, when is it better to set grid-template-rows to auto as opposed to setting a specified size? As I type this I'm assuming it depends on what the content is. For example if a row has content that is for example 200px then it'd make sense for the row to be set to 200px. Is that assumption correct? Why not just always set the rows to auto? Wouldn't that take care of the size proportions for you?


r/web_programming • • Oct 30 '17

Legitimacy of Udacity and the courses offered?

4 Upvotes

Hello, I'm new and interested in becoming a web developer/programmer. I find it fascinating and want to learn as much as I can to get started.

I was doing research on different courses online and Udacity was brought to my attention by a friend.

I wanted to know how legitimate the courses offered there are and any opinions on if it was worth taking or not? If not then what are my best options to begin my journey into web development?


r/web_programming • • Oct 29 '17

Is there any app, script / coding solution, or existing website that checks & tells you when another website has been updated or modified. (Ex: Your competitor's website)

4 Upvotes

r/web_programming • • Oct 19 '17

How to use PhpMyAdmin on ubuntu?

4 Upvotes

I am trying to use wordpress and I've installed mysql apache and php. I'm now trying tocuse PhpMyAdmin to view my databases but after installing it when i type localhost/phpmyadmin into the browser all i see is a bunch of pho code not the actual PhpMyAdmin UI. I'm new to this database stuff so i need help please.


r/web_programming • • Sep 18 '17

Can someone please explain to me how to remake this mock up page??

4 Upvotes

This is my first ever assignment. I have to complete this page in 3 days. I need to recreate the page exactly as it it. The part I don't understand is how am I supposed to get the same images and know what fonts are being used on the page? They sent me a Photo Shop document but I need the images out of it. I don't have Photo Shop and Gimp won't give me the images. I don't want to waste a bunch of time trying to get the images.Please help.


r/web_programming • • Sep 18 '17

What are standards for SSO with seamless login/logout?

4 Upvotes

I've developed a web application in a certain technology. And, I want to extend it with some tool, but the tool would be developed using different technology stack, which suits better for tool character.

Therefore, the tool would be a standalone web application. But, it will have integrated its authentication and authorization to the already existing application. I think, this is called [SOA])https://en.wikipedia.org/wiki/Service-oriented_architecture).

All I materials for SSO, I have found, are "registration" based and require explicit login, and also explicit logout (ie. logout from SSO provider won't logout from other applications).

There are two options:

  • I develop it myself using cookies and some "magic". But, I might unnecessarily reinvent the wheel.

  • I use some standard. This would also made the tool easily reusable without need to implement custom integration on side application side, because it would probably be already provided by technology stack.

Is there any standard, which covers such SSO features?

  • seamless login to tool from existing login in application, ie:

    1. user logins to app A,

    2. navigates through link to tool T,

    3. user is automatically logged-in in background and can work with resources, for which he got a permission.

  • seamless logout from tool after logout from application, ie:

    1. user logouts from app A,

    2. user navigates to tool T using a saved link,

    3. user is redirected to app A login page.

Disclaimer: I'm studying all of this beyond scope of my education, and practically testing my knowledge by development of hobby projects. I know, that there are dirty and easy solutions to this. But, I would like to do things right and properly, and reusably.


r/web_programming • • Sep 01 '17

JS shortcomings that can be hell to debug

4 Upvotes

While writing a wrapper for some forms I recently run across this thing. https://jsfiddle.net/yp3boewt/

Do you have any similar stories where your javascript didn't work the expected way for some obscure reason? Would love to see some things to watch out for in the future.


r/web_programming • • Aug 25 '17

ASP.NET Core 2.0 Features

Thumbnail
blogs.msdn.microsoft.com
4 Upvotes

r/web_programming • • Aug 23 '17

SOLID principles with PHP

Thumbnail
spokenbyyou.com
4 Upvotes

r/web_programming • • Aug 14 '17

Web Dev. School Scholarship, Phone Interview

4 Upvotes

Have a phone interview coming up later today, and I'm freaking out a bit. Any last minute advice? It's a program being offered through my community college in conjunction with a company who specializes in web development training programs. The program will offer: "Website Development: Programming and Coding Skills."

Now, I'm not a complete novice, but I'm still a ways from being even a decent level hobbyist developer, but that said, I don't see how this could hurt to attend, and if anything I gain connections. Normally, the program would cost $3,000 ish, but if I can get the scholarship then I won't have to pay anything which is ideal bc I don't have any money, lol. I do need this really badly though bc I want it so much, whether I get it or not, I will continue to self-teach.


r/web_programming • • Aug 10 '17

YouTube: develop a backend service in less than 8 minutes

Thumbnail
youtube.com
4 Upvotes

r/web_programming • • Aug 10 '17

Setting up Amazon Web Service: a Real Time Chat App On The Cloud With Docker And FeathersJs

Thumbnail
blog.sicara.com
4 Upvotes

r/web_programming • • Jul 28 '17

CSS Transition explained

Thumbnail
reallifeinfo.com
4 Upvotes

r/web_programming • • Jul 28 '17

Angular Testing In Depth: Components

Thumbnail
auth0.com
4 Upvotes

r/web_programming • • Jul 03 '17

Getting started with Node.js and Robotics

Thumbnail l.instagram.com
4 Upvotes

r/web_programming • • Jul 02 '17

Taking Full Page Screenshots with Headless Chrome

Thumbnail
jonathanmh.com
4 Upvotes

r/web_programming • • Jul 01 '17

Tips moving forward

4 Upvotes

I'm a Computer Science student just finished my first year. Even though my education is mainly back-end focused I decided this summer to learn some HTML, CSS, and JS. During my first year of school, I've learned Java and Scheme. Until now I've read up on HTML and CSS and could use some guidance moving forward:

  • As I ain't got any knowledge om Javascript specific should I learn this first or start with something like React straight away?

  • Do you recommend to learn a CSS preprocessor?

  • With all the frameworks out there I'm a little nervous picking something that's going to be obsolete the next week.

And generally, some tips learning front-end for someone in my position :)


r/web_programming • • Jun 27 '17

Master the fundamentals of React and Redux

Thumbnail
medium.com
4 Upvotes