• Breaking News

    Sunday, October 21, 2018

    Pure CSS Kaleidoscope Hexagon web developers

    Pure CSS Kaleidoscope Hexagon web developers


    Pure CSS Kaleidoscope Hexagon

    Posted: 21 Oct 2018 11:13 AM PDT

    CSS Border Radius, but not as you know it

    Posted: 21 Oct 2018 12:20 PM PDT

    What backend language do you use for your personal projects?

    Posted: 21 Oct 2018 04:41 AM PDT

    Curious what language the backend folks here use for their personal projects.

    Another question - have you ever used java for backend stuff, if so, can you elaborate a little on the specifics of how you used Java? Thanks.

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

    How do guys lean and how do you figure out what to learn?

    Posted: 21 Oct 2018 07:43 AM PDT

    For me I always learn on a need to know basis. If I'm not going to use it I'm not going to learn it. But the problem for me is when a new project arrives with some stuff that I don't know I find myself full of things I need to know quickly and It's just tiring, it feels like homework. I'm not a guy who lives and breathes code. At the end of the day I still consider the stuff I do as a job not something I have to obsess over in my sleep. I'm not a smart guy, my brain cant process anything too complex. Im at a point to where If I could explain it to a kid I can explain it to myslef. I want to get better so that I could be more useful and probably get paid better. So how do you guys do it?

    submitted by /u/hey-ron
    [link] [comments]

    Today's Javascript react developer interview experience

    Posted: 21 Oct 2018 05:26 AM PDT

    .directly jump to questions if you don't want to feel the preface.

    I am on this interview spree to get hired or start working even with freelancing projects with React-Redux-Javascript on my resume since last 4 months and didn't got a single yes till now so I'm getting so much frustrated.

    Today's interview was for a position for which no other team of experienced developers will be there and it was taken by my college senior.

    Questions

    ``` Q1. a = 'abc'; function f() { 'use strict'; a = 'xyz'; foo = 'bar'; } f();

    //Output foo is not defined ```

    what will be the output I said foo is not defined (declared) globally it will give out error for that.

    ``` Q2 what is proto and what does it points to everytime.

    function foo(someParameter){ // which has some method return undefined; }

    var b = foo(12345);

    //foo's prototype; b.prototype; ```

    what will be the descripter value show and what will be the descriptor.proto will be and what will it be pointing to. ``` Object.proto = null;

    Object.create();

    var descriptor = Object.create(null);

    ```

    I really like the explanation given in the stackoverflow forum : https://stackoverflow.com/questions/9959727/proto-vs-prototype-in-javascript

    ``` Q2. var length = 10; function fn() { console.log(this.length); }

    var obj = { length: 5, method: function(fn) { fn(); arguments[0](); } };

    obj.method(fn, 1);

    //Output 10 2 ```

    for this question I said the answer will be 5 twice but he said the answer is 10 and 2 can you explain why?

    ``` Q3. (function () { try { throw new Error(); } catch (x) { var x = 1, y = 2; console.log(x); } console.log(x); console.log(y); })();

    //Output error ```

    for this I said it will give out error since the variable x is not defined before the try block. but he said the value of y will be consoled out or printed out.

    Upon asking the reason how does javascript works on this line and why will it give the value for y only var x = 1, y =2;

    I said y is also defined with var keyword and since there is a comma in between declaration continues on, but he said no comma operator works differently in Javascript, JS breaks that line like this

    var x = 1, y = 2;

    So I'm just confused in general

    What will be the output for the following:

    ``` Q4. fn1(); fn2();

    var fn1 = (function() { console.log("Inside fn1"); })(); (function fn2() { console.log("Inside fn2") })();

    //Output

    ```

    I said fn1 is the instance of the function which consoles out fn1 and it is the same as calling that function itself. But the question about Hoisting in Javascript which I know but I don't know so can someone please explain that.

    Also there was another question regarding What is event pooling in React Difference between cookies and cache in browser

    Task

    I was assigned the task to build the authentication with Node, mongo, express, react so I had used tokens in my react component as well, So I was told that one should never use tokens directly like this because someone can directly access the token and hit the api with it.

    also I got to know about one other thing is that localStorage that I have used while manipulating cookies for the session and token will be only for Chrome browser so my app won't work in Mozila or other browser, which I didn't know about at all.

    What is CORS upon explaining it that we need to define the allow-origin-access to true, I was asked following questions

    CORS is defined on client side or server side *if you want data to not get fetched from that particular domain then why would we set it up on the backend api ( or the server ) *

    so all that is that. And if someone can motivate me do more and have some freelance work to share with I would love to start working with you guys. It has been 14 months since college and I'm still at a random city without a job ( so I'm moving back home and I hope i get work )

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

    What task or project made you question your ability to be a web developer?

    Posted: 21 Oct 2018 09:28 AM PDT

    Idle Meteor app using CPU

    Posted: 21 Oct 2018 07:35 AM PDT

    I have a Meteor app with a dashboard that loads 40-50 graphs on the front end. When everything has loaded, I still see that the tab is taking up 10-20% of CPU. I have tried using the Chrome development tools to find the cause of this problem, but I am not able to find it (this could also be because of my lack of experience with these development tools). Can anyone tell me how I can best find the cause of this problem?

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

    Watchat! Live TV Chat Web App | Made in 3 hours | Vanilla JS/Python(Flask) + Firebase Database| Feedback Needed

    Posted: 21 Oct 2018 12:50 PM PDT

    Watchat! Live TV Chat Web App | Made in 3 hours | Vanilla JS/Python(Flask) + Firebase Database| Feedback Needed

    https://i.redd.it/p0qul5gaflt11.png

    Idea: Watchat! is a web app and maybe soon a mobile app for chatting together while streaming & reacting to your favorite team live.

    The chat has a Live Game Scoreboard (Realtime Updated). So you can chat and see the counter.

    Technology Used:

    Backend: Python (Flask) + Firebase Database

    Frontend: Vanilla JS/HTML/CSS

    Website is hosted on Github Pages.

    Server used is from OpenShift.

    Database is from Firebase.

    Why: I always wanted to chat to someone or react to how I feel while watching NBA or live TV shows, it makes me feel that I'm not just watching but sharing & receiving the joy while watching.

    How:

    1. Go to the website: www.watchat.ga
    2. Choose the live NBA Game that you're currently watching.
    3. Start chatting (No Registration is Required).

    What's Next?: I'm currently testing the prototype, if it turns out to be a good idea, I'll add more servers and work on developing the web/mobile app more. Also I'll add a way to react like facebook reaction system or some other creative reaction system that pops out of the screen.

    At the end I would love to know what do you think about the whole project.

    PS: I'm an amateur

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

    I wanna learn to create my own webapp!

    Posted: 21 Oct 2018 11:16 AM PDT

    Hi!

    I am a 23 years old, just graduated in Computer Science and I am working as a Software Developer (Java + Frontendstuff) for 4 months now.

    I am interested in UX and I love thinking about Userinterfaces. I am pretty familiar with html, css and vanila js and ich want to create my first very small webapps just for myself and just to learn. The main Problem is:

    I am afraid I don't have much knowledge about the backend, servers, hosting, databases and the overall interface between frontend and the rest. I don't know how to feed my interface with any data at all. At work, where everything is already set up, I'm doing my first steps with polymer and it works. But I have NO idea where to start in private and so I have no motivation and that's very frustrating.

    TL;DR:

    What is the easiest and most simple way to learn how to create a webapp? I want to know

    • Which techniques and tools are the most useful to learn
    • In which order I should learn which technique
    • How to not get overwhelmed but how to have small motivating results

    Example:

    I want to create a simple website where (at first) only I can login with my username and password. Then I can capture my financial income and expenditure.

    I want analyze the data and then I want to show the results in my interface.

    Thanks in advance!!!!!

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

    CSRF protect for authenticated sites

    Posted: 21 Oct 2018 10:21 AM PDT

    So I get that if you have a form that can be accessed by an unauthenticated user, you need some degree of a csrf token protection on that form to prevent another site from issuing a POST request to the form.

    But let's say that form and associated POST route are authentication protected i.e. they actually have a middleware that checks to see whether a user is authenticated or not (and let's also assume that we store session id's that are encrypted in the user's cookies). In this case, would I need to put csrf protection on that form? I've seen it done, but I don't understand why.

    The scenario I'm thinking about is two sites: Mysite.com and hackersite.com On mysite.com when a user is authenticated they get an cookie (some encrypted version of 'userid: whateverTheirIdIs). Protected route = /user/buyItem/:id (does a check to see if userid exists in DB).

    If hackersite.com sends a POST request to /user/buyItem/:id, do they even have access to the mysite.com's cookies? If not, how would a csrf attack be possible?

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

    I just realized that YouTube's ID structure could support trillions of unique IDs. What reasoning doing you think went into their ID system? (i.e. why 11 characters instead of 10 or 12 or whatever)

    Posted: 21 Oct 2018 03:46 PM PDT

    Example URL

    https://www.youtube.com/watch?v=-c9-poC5HGw

    "v" is the video ID and it contains numbers, punctuation and letters (case sensitive). If you only factor in 10 digits (0-9) and 26 letters (upper case and lower case)... that's a total of 62 possibilities for each character. If YouTube allowed IDs of varying length, they could support 52,036,560,683,837,100,000 unique IDs. However, YouTube IDs have 11 characters—no more, no less—so they support considerably fewer unique IDs.

    All of this got me wondering...

    Why use a fixed number of characters for an ID?

    What do you call an database index that uses alphanumeric characters + punctuation?

    When creating a potentially massive database, how do you justify supporting a trillion trillion unique IDs?

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

    My blog in development with Django and Bootstrap

    Posted: 21 Oct 2018 03:11 PM PDT

    currently hosted at: http://marcoscoder.pythonanywhere.com/blog/

    features: CKEditor, Comments and Reply, Search with icontains, Pagination

    It's still at an early stage and I'm doing it to learn Django. I accept any tip and criticism.

    Source: https://github.com/marcoscoder/blog-django-bootstrap

    Keep in mind that some things are missing:

    Add links in the navigation bar

    Some adjustments in the visual

    Content for left column

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

    Secure Password Hashing for WordPress

    Posted: 21 Oct 2018 11:11 AM PDT

    What are 3 tools in your workflow that make you feel like a badass developer?

    Posted: 21 Oct 2018 02:14 PM PDT

    You know what I mean, the tools that are so slick and shiny that you feel like you've got this whole development thing under control.

    I've been a developer for ~3 years, and I have to say it's Vagrant, Kubernetes, and Webpack for me. I feel like Billy Badass everytime I boot my Vagrant box so I can run some kubectl commands to my aws instances.

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

    What should I keep in mind before flushing pm2 logs?

    Posted: 21 Oct 2018 10:21 AM PDT

    So the logs from pm2 are taking a whole lot of space on my server. Seems like flushing could be a good solution to this but it would also mean I would lose all the logs that I have. So before I flush, what are some things that I should be careful about?

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

    Easy ways for clients to crop images for use on CMS?

    Posted: 21 Oct 2018 06:16 AM PDT

    Hi all.

    I'm currently building a website for a client who has multiple staff who will be updating the CMS (WordPress). I need to idiot-proof a way for them to create images for the pre-defined images sizes I've built into the site.

    For example, the most common updates will be header images, news story images and staff headshots.

    1800x650 (Header Image)

    600x600 (News Story Image)

    150x150 (Staff Headshots)

    Have any of you implemented solutions that you feel are idiot proof? I'm using WordPress and my prior experience is that clients always manage to mess up cropping images within WordPress regardless of the plugins I've used.

    I created a script using html2canvas for a previous client but even that isn't foolproof as it craps out with images over 10mb.

    At the moment my proposal is to use Photoshop templates, but they only have one licence which is a pain.

    Any ideas?

    Ideally the user experience would be:

    1) Select the size image they need.

    2) Select image from local drive

    2) Move image within window to choose area to be cropped

    3) Click save and a well compressed jpeg is delivered.

    TIA

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

    Feeling lost and useless in my web dev career

    Posted: 21 Oct 2018 01:32 PM PDT

    Not sure if this is the right sub for this so please remove if this isn't allowed.

    I decided to change careers and attended a boot camp at the end of 2016. We did RoR and React/Redux. I enjoyed front end a lot more then backend and focused on finding a job using React. I had a very tough time even getting calls back from people so when an opportunity for a full time position became available, I assumed it was my only chance and took it. The job was under the average salary for a junior FE position in NYC and also did not use React. There was a possibility of the company moving into using a CMS that was decoupled and would allow me to work using React but that never came to be. I pretty much am only using HTML/CSS with some very light vanilla JS/jQuery work.

    I'm not sure where to go from here. I know this job is holding me back career wise and it's also very much under the average salary for even someone with no experience. I've tried to create a portfolio but wind up getting stuck when trying to layout the project structure in my head whenever I attempt to start a personal project. I also struggle with ideas for projects that aren't the usual to do list or weather app. I've taken a bunch of React courses online in the past 6 months or so but still just feel like I'm lost whenever I attempt to start something.

    I guess this turned into being more of a vent than a question. I'm just not sure what to do next.

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

    Is there any way to put video files on a website and make them "undownloadable" somehow?

    Posted: 21 Oct 2018 12:28 PM PDT

    How to merge existing, free, Wordpress blog with domain name and virtual server i just bought?

    Posted: 21 Oct 2018 04:56 AM PDT

    Hello!
    I have a free blog on wordpress. 420esonia.wordpress.com
    I just bought a domain name from 3rd party https://www.zone.ee/en/ domain: 420estonia.ee
    I just bought a virtual server https://www.zone.ee/en/web-hosting/prices/ first plan in the list and installed wordpress
    How can i merge my 420estonia.wordpress.com blog with this web hosting service and domain 420estonia.ee and use the features I got with wordpress installing to develop my blog? Or I just have to build my whole blog anew now just at my web-hosts site?
    Im confused.

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

    I will automate your process for free

    Posted: 21 Oct 2018 12:17 PM PDT

    Share processes related to the web you do regularly. I would like to automate it for free in my spare time:)

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

    Need some WAMP help

    Posted: 21 Oct 2018 07:46 AM PDT

    Working remotely on a server, wamp logo is yellow/orange and I cant find phpmyadmin. Had a wordpress site installed and i'm needing to dump the db and core files and move them. This was a project I helped a local organization with and they've since farmed out the server/site to a 3rd party but a couple of club websites for lost in the process.

    So I'm looking for any advice/direction on how to dump the data so I can get it on another server.

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

    Ask reddit: Auto-complete on webpage URL

    Posted: 21 Oct 2018 05:18 AM PDT

    Hi, I'm no expert on working with web development, but I was wondering if there could be a prefetch from the list of pages in a website, to implement a Linux tab suggestions for file viewing like interface while browsing the web. Is this technically possible? It would make navigating through sites or finding specific resources much more intuitive.

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

    Looking for opinion about my portfolio

    Posted: 21 Oct 2018 05:10 AM PDT

    Starting NodeJS API - Does Webpack make sense for server side?

    Posted: 21 Oct 2018 05:37 AM PDT

    Hi all --

    I'm planning on starting a new API this week with Node that will be using MQTT with a few controllers.

    Have any of you all used Webpack with your node APIs? Does it make sense? Does it help performance for server side?

    If you have any starter repos that could help, it would be helpful!

    Thank you!!

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

    No comments:

    Post a Comment