• Breaking News

    Thursday, January 30, 2020

    bradtraversy/vanillawebprojects: Mini projects built with HTML5, CSS & JavaScript. No frameworks or libraries web developers

    bradtraversy/vanillawebprojects: Mini projects built with HTML5, CSS & JavaScript. No frameworks or libraries web developers


    bradtraversy/vanillawebprojects: Mini projects built with HTML5, CSS & JavaScript. No frameworks or libraries

    Posted: 30 Jan 2020 02:25 AM PST

    Facebook PHP source code from August 2007

    Posted: 30 Jan 2020 06:38 AM PST

    mailgun is ending its free tier and the use of routes will now cost 35$ / month ? =/

    Posted: 30 Jan 2020 09:01 AM PST

    When everything is !importan, nothing is important.

    Posted: 30 Jan 2020 10:39 AM PST

    Thats all.

    I'm working with a new client and holy ($&@#(&$@(. All the CSS Files are riddled with !important everywhere!!!!!!!!!

    submitted by /u/I_AM_ALWAYS_ANGRY
    [link] [comments]

    Would you rather work on something boring but have full ownership, or work on something complex but have limited control and impact on the product?

    Posted: 30 Jan 2020 05:05 AM PST

    I work at an agency and mostly build custom WordPress or Jekyll sites. Because I'm the only developer, I have complete control over the project, and have a strong sense of ownership over the final product. Every decision I make matters.

    There's times where I wish I was working on a large web application with a team since it would be more challenging. However, I know that this would likely mean I would have less ownership and control over the product.

    Each scenario has pros and cons, but was wondering what ya'll think.

    submitted by /u/P013370
    [link] [comments]

    What does it mean to “know” javascript?

    Posted: 30 Jan 2020 03:20 PM PST

    I see alot that even with all these Frameworks you should always be strongest in vanilla JS, and that it takes years to get there.

    And when I learn something I feel like I learn better in a check list manner or " I want to complete this task using this" way. But I can't seem to find a definitive path.

    Between courses and messing around on my own , Arrow functiona, destructuring, manipulating strings and arrays, importing and exporting, async functiona, and AJAX techniques are what I come by most. But is there more to "knowing" javascript?

    submitted by /u/Hump_Master
    [link] [comments]

    Google Shuts Down Another Service: App Maker, will this trend keep continuing to GAE?

    Posted: 30 Jan 2020 07:55 AM PST

    Hey All,

    I've used Google App Maker to create quick, tiny apps to automate business processes for clients in the past. On the 27th they announced they will be shutting down service for all existing AppMaker apps within a year.

    I'm aware of Google's trend for fatal apathy toward their own products, so I suppose I should have seen this coming. However, now my concern is for GAE, the PaaS that hosts some larger apps. Kubernetes is winning the container wars, so they'll undoubtedly keep that service online, but if Google can't match PaaS competition, is it just a matter of time before they turn out the lights on GAE too?

    submitted by /u/Slagsy
    [link] [comments]

    How do I prompt a file download in response to an http request?

    Posted: 30 Jan 2020 04:12 PM PST

    Hi guys, with Postman I can 'Send and download' perfectly fine, but I am struggling to implement the client-side because createObjectUrl is deprecated and I can't find any solution to turn the response into a docx file to download. Could anyone please advice me?

    Here is the server-side:

    res.writeHead(200, { 'Content-Type': "application/vnd.openxmlformats-officedocument.wordprocessingml.document", 'Content-Disposition': 'attachment;filename=' + filename, 'Content-Length': buf.length }); res.end(buf); 

    As before, it works perfectly in Postman.

    I am using a userscript which is why I have to use xmlhttprquest, but that works fine anyway --- I can't get a download prompt to occur. I can see the raw file logged out in "res.response"

     GM.xmlHttpRequest({ method: "POST", url: 'http://localhost:3000/api/gen-letter', data: `name=foo&prop=bar&amount=baz`, headers: { "Content-Type": "application/x-www-form-urlencoded" }, onload: function(res) { // ? } }) 

    Many thanks!

    submitted by /u/yuze_
    [link] [comments]

    Help Understanding CORS errors - AWS

    Posted: 30 Jan 2020 03:56 PM PST

    I'm new to web development, this might be a question with a simple answer, but I have been stuck on this problem for hours and can't seem to solve it.

    A friend of mine is developing a pretty standard serverless web app using AWS, to which I have started to contribute. We are running python lambda functions connected to API gateway. These work fine, and pass all of my tests. I am attempting to make requests to the API with js scripts running in html files, which are currently living on my local machine.

    However, when I write my js code to make API requests using the jQuery ajax function, and run the html/js in my browser on my localhost, the requests are not sent because of CORS errors, even though our API is configured to allow CORS. I have read several articles about CORS and I grasp its purpose and basic mechanics. I have also read the full jQuery ajax documentation, and reviewed HTTP requests and responses.

    From what I have read, it seems that I in fact shouldn't be able to make requests from my localhost to an API hosted on AWS, since they are in fact hosted on different 'origins,' However, I am confused because my friend's code does not produce these errors, and after hours of comparing our js code, neither of us can find any meaningful differences in our scripts. We are both stumped. I found some workarounds that entail disabling various browser security features, but my friend thinks that is risky and unnecessary.

    So I have two questions:

    1. Should I be getting CORS errors in this situation? Is there a way to avoid them without disabling browser security settings?
    2. More generally how do people typically develop the front-end of a web app locally while making calls to a remote API? Am I approaching this project in the wrong way?

    Thank you thank you!

    submitted by /u/donny_don_don
    [link] [comments]

    New to flexbox, wtf is it doing to my box model?

    Posted: 30 Jan 2020 12:10 PM PST

    I've been a web developer for quite some time, but I'm actually new to flex as I've always worked for agencies that support older browsers for clients.

    Anyway, one thing that blew mind mind is that when you set a width on a flex item, adding padding will actually make the item wider. I don't mind it, but doesn't this go against the typical box model where a width is a width of the internal contents of the element, and adding padding will simply add padding inside the allotted width?

    As always, I'm using the following in my document:

    *, *:before, *:after { box-sizing: inherit; } 

    Thanks

    submitted by /u/PursuitOfAdvice
    [link] [comments]

    Good style frameworks for code documentation?

    Posted: 30 Jan 2020 03:45 PM PST

    I'm making some documentation for an API, and I'm sort of massaging Angular material and Prism.js to work. However, most SDK and API docs I browse have a familiar look and feel.

    Are there any good styles already made specifically for documentation purposes?

    submitted by /u/FullstackViking
    [link] [comments]

    Own My Own Domain, Need Hosting Help

    Posted: 30 Jan 2020 11:19 AM PST

    Hello all,

    I was poking around this sub and I saw some good stuff, like this post by u/blasiandude. I guess I'm an ultra beginner because I still have questions.

    So, I own my own domain, but it is currently through GoDaddy. I want to get off their platform. It's needlessly expensive.

    I'd like to move my domain to a different host company and restart my website there. My site is info-only. No frills. It's essentially a digital business card that gets about 1000-2000 hits per month. I have built using CSS templates and wordpress before, but I liked GoDaddy's Webbuilder tool. Ideally I'd like something more simplified to build the site, but my priorities are, in order:

    1) Cost for performance based on my limited need, and,

    2) Ease of use

    I don't need a website email or any sort of marketing tools. I just want a static page that I can easily set up and update.

    So, what would this community recommend in terms of cost and reliability?

    Thank you for reading my post.

    submitted by /u/Superbongy
    [link] [comments]

    Web Developer Monthly (January 2020)

    Posted: 30 Jan 2020 02:52 PM PST

    How i can make my portfolio bilingual?

    Posted: 30 Jan 2020 01:45 PM PST

    Hi, i started front-end development six months ago at my internship using angular. I decided to create my portfolio because i never did any project 100% alone.

    Since i'm from Brazil, i did my portfolio in portuguese. I was thinking posting my portfolio here for some feedback when i finished it but i realised that if isnt it in english, its pretty bad to show my work for foreigns.

    How could i implement something that change all the text from my app to english, like a option to the user select. I know some porn sites like pornhub (i dont have a better example lol) have something like this.

    My portifolio: https://arachnidiskandar.github.io/

    submitted by /u/darksady
    [link] [comments]

    Is it just me, or are short stint contract jobs super unattractive?

    Posted: 30 Jan 2020 01:39 PM PST

    I'm not looking but, I've been bombarded by recruiters the past week on LinkedIn.

    Every single job has been either a three or six month contract. This is Toronto by the way. Not a single one actually, now that I think about it, has been full time perm.

    I have a mortgage, and a baby. What's attractive to me is one thing..

    Stability.

    Which is the exact opposite of what all recruiters ever try to head hunt for.

    Is this the new normal or something? Do recruiters not understand this? Where the hell are all the full time perm jobs?

    submitted by /u/canadian_webdev
    [link] [comments]

    I don't understand how responsive design and screen resolution work together. Can someone ELI5?

    Posted: 30 Jan 2020 11:06 AM PST

    I have 2 devices...

    1. A Windows 10 desktop with a 32" monitor that has a 3840px wide screen resolution...
    2. A 13" 2019 Macbook Pro, which the Internet claims the resolution is 2560px wide (though I have it on "more space" in my settings).

    I struggle to understand how the professionals build responsive websites. Testing an example Google product page on both my devices leaves me even more confused!

    I exported fullscreen, full page screenshots from both devices using a Chrome extension:

    https://imgur.com/a/mYOleYq

    This is where I get confused.

    1. First, even though it says my Macbook's resolution is "2560x1600", the width of the screenshot is 3360px wide? Meanwhile, my PC exported the screenshot at exactly 3840px... so does that mean Macbook's stated resolution is not accurate?
    2. More importantly, 3360px and 3840px are really similar widths. To me, those are easily a single breakpoint. Yet, compare the 2 screenshots. The type scaling is COMPLETELY different, it's kind of crazy. Compare the size of navigation bars, labels, headers, etc. The desktop version has really small fonts with tons of open space, while the Macbook variant has less spacing and bigger type.

    What's going on here that's causing such a major change, and how do I better understand the mystery behind all of this?

    submitted by /u/RelocationWoes
    [link] [comments]

    Two characters, one grapheme

    Posted: 30 Jan 2020 04:58 PM PST

    Google shutting down non-profit platform One Today

    Posted: 30 Jan 2020 12:23 AM PST

    Not sure where best to post this

    Hacker News thread

    Google: "Hey good guys trying to save the world, listen here... we're shutting down your platform. But dooon't worry... you'll have almost 2 (yes, TWO) full weeks to get your data, before we shut it down and delete everything. Don't be evil, y'hear? K, byeeee"

    Yep, this "if we don't make enough money out of it or we just don't care enough anymore, we'll shut it down, go look for something else"-mentality is one of the reasons I'm trying to reduce my reliance on Google for my business (not 100% possible always, but let's see). Yesterday I installed Matomo Cloud (ex-Piwik, https://matomo.org/hosting/) instead of Google Analytics for my new project and used Opencage (https://opencagedata.com/) instead of Google Maps for geocoding.

    submitted by /u/kugelblitz42
    [link] [comments]

    What platform do you use to host personal & client NodeJS projects?

    Posted: 30 Jan 2020 03:11 AM PST

    Hey there, I am looking for a web hosting provider to host both my personal company website as well as the project I do for my clients (so they can preview it before I send it to them). I previously used Heroku, but am looking for something else. What do you guys use?

    P.S. Have been looking Amazon Lightsail, do any of you use it?

    submitted by /u/icyfoxlol
    [link] [comments]

    Domain Takeover?

    Posted: 30 Jan 2020 10:42 AM PST

    We have a new client who's business domain was originally purchased by a web developer a very long time ago. Our client and this developer had a falling out and parted ways. The web developer still has ownership of the domain, and still renews the domain registration annually. The domain itself is still serving our client's website. The name servers are currently redirected to our client's new web developers so their website is updated and we can make DNS changes.

    We've tried a few times to contact the developer and once they found out we were working with our client they stopped answering our calls. Before they stopped communication with us they told us repeatedly they don't own the domain anymore and are not renewing it. Of course, doing a simple domain registration lookup originally showed this isn't the case. This developer was listed as the Registrant and Admin Contact. The Tech Contact is a local web hosting company and we tried to engage them but their hands are tied unless they get approval from the Registrant. In the last few months though the domain registration has been set to private.

    We're at the point where this old developer is not interested in any communication and our client is concerned they could redirect their website at any time. I've heard of a domain takeover, but I'm not familiar with the process. Does anyone have any information about who to contact to do this or what the process is? Our client is concerned that going the legal route and serving the old developer with a "strongly worded" letter from their lawyer will just make them shutdown or redirect the website.

    If anyone has been through something similar or has a referral for businesses that specialize in this that would be very helpful. Thanks!

    EDIT - The registrar is ENOM, in case that is relevant.

    submitted by /u/StoneUSA7
    [link] [comments]

    Why Citationsy.com doesn’t have a cookie notice

    Posted: 30 Jan 2020 06:06 AM PST

    Is there a blog or website that case-studies specific modern websites and how they're built?

    Posted: 30 Jan 2020 06:17 AM PST

    I was looking at the live Coronavirus website that's been floating around, and love the layout. I started digging into the source but quickly got a headache reverse engineering how it worked. Digging that deep into how a webpage isn't in my wheelhouse, but I was wondering if there were blogs or websites that regularly take a modern website and pick it apart for study and academic purposes.

    submitted by /u/13_0_0_0_0
    [link] [comments]

    No comments:

    Post a Comment