[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ - its 2016 and you don't use C#?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 322
Thread images: 43

File: 1449507899971.png (747KB, 824x553px) Image search: [Google]
1449507899971.png
747KB, 824x553px
Old thread >>52229559

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/

>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks

>Useful tools
https://pastebin.com/q5nB1Npt/
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

What are you working on?
>>
First for FAP

https://www.nuget.org/packages/FAP.dll/

Page p = new Page("hello");
p.get = (a,b) => "<b>LOL DONGS</b>";
new Server(new Page[] {p});
Thread.Sleep(-1);
>>
>>52286404
>
Thread.Sleep(-1)

What?
>>
>>52286464
Sleeps forever, or until sigkill

Don't mind me guys, I'm just trying to get a few more users, not for any real reason just because I like seeing my nuget downloads go up.
>>
Who /yesod/ here?
>>
What's a simple php based blogging platform that i can integrate into my current static site? I looked into anchor but it doesn't natively support picture uploads and it comes with a front end that i really don't need.
>>
File: IMG_20160107_120020.jpg (2MB, 3264x2448px) Image search: [Google]
IMG_20160107_120020.jpg
2MB, 3264x2448px
I just recycled an old website of a bankrupt customer, rebranded it for a new customer and got cash.
>AMA
>>
>>52287043
I like the color of your banknotes
>>
>>52287043
Beautiful banknotes. What country?
>>
>>52287077
It's written on them, Switzerland.
>>
Apart from W3C, what other well know web specifications and standards are there?
>>
I want to set a div's border to one of 3 colors wich are contained in a variable.

how can I use
 function hintCard(event){
this.style.outline = "variable 1.8px solid";

variable is a string containing #ffffff for example
>>
>>52287928
this.style.outline = variable + " 1.8px solid";


if it's just the color it'd be better to just modify the color.
this.style.outlineColor = variable;
>>
>>52288018
I tried both, the first doesn't change the color, the second sets it completly black.
I don't know what I'm doing wrong here.
>>
>>52288139
works for me.
https://jsfiddle.net/vaq93zv7/

so post your full code.
>>
>>52287928
function hintCard(event){
//color-variable = '#ff0000'
$(this).css('border-color', color-variable);
}
>>
>>52288187
he isn't using jquery
border is not outline
variables can't have dashes
>>
>>52288164
he was obv using
border:
and not
outline:
>>
>>52288196
my bad, been a while since I did JS.
>>
>>52286732
Wordpress
>>
Any money to be made in wordpress themes? I hate wordpress but I like money.
>>
>>52288244
No. The market for $20-$50 Wordpress themes is already saturated. You'll never be able to compete with the 24/7 support, 3000 5/5 star review themes anyway.
>>
>>52287077
I second that. But it seems that the swiss themselves hate 'em
>>
>>52288274
what about bootstrap themes? Can I make around $500/theme lifetime?
>>
Why is everything I hear about MongoDB says it's shit and why is every book about node.js invloves it.
>>
>>52288295
because hipsters
>>
>>52288302
The money is in back-end anyway, don't want to learn PHP and maintain old code, RoR has way more jobs than node does and Go is literally nowhere to be found
Is ruby a safe bet anymore or is it dying down?
>>
>>52288335
>The money is in back-end anyway
I'm just looking to make some pocket change.. Anyone wanna team up?
>>
>>52288335
Python > Django

PHP > Laravel/Symfony

ASP .NET

Those are the big moneymakers right now anon. Also Angular 2 and React for the front-end.
>>
>>52288295
it was the first one to offer first class support for nodejs but its shit desu. use rethink or sql
>>
>>52288365
>Angular 2 and React for the front-end
M E M E S .. Any proofs? Real-world usage?
>>
File: Untitled.png (4KB, 439x84px) Image search: [Google]
Untitled.png
4KB, 439x84px
>>52288164
fuck it was the space, you saved me, thanks.
>>
>>52288386
He was asking for the things that will get you a job.

Google>"job listings for web developers in socal">first link:

https://www.localwisejobs.com/job/localwise-array-front-end-developmer/?utm_source=Feed&utm_medium=Indeed&utm_campaign=Indeed

>Experience with a leading client-side framework, e.g. Angular/React or Ember/Backbone.

I'm not pulling this out of my ass. You don't even need to know this shit, just put it in your resume and you'll get a first interview guaranteed.
>>
If I were to completely redesign CSS and HTML to be something hopefully not shit, would it be possible? What would you like to see? Should it be programmatic or markup?
>>
>>52288358
I'm that anon and I just want to make 800$ a month designing shit but I cant find clients to work with on these freelancing sites and speaking directly to the employer is where my autism kicks in.
Either way you have to think about what you're gonna do in the future, making 800$ is not ideal and will not sustain me for long.
>>
>>52288427
it would be react.
>>
>>52288428
I've never had any success on these 'freelancing' sites. :(
>>
>>52288386

>xDD le epic memes!!! pure javascript only!!!

shh
>>
>>52288471
because phajeet can live off 200$ a month comfortably, there are only a handful of people who pay decent prices.
>>
>>52288372
This.
>>
>>52287043
These and the Canadian dollars are beautiful.
>>
>>52288499
>tfw every successful freelancing phajeet i know makes atleast 10 times that per month.
>>
do gay bears like manlets?
>>
>>52288428
I need a good designer on my hands that I can call on.

I have clients who come to me to make websites. For generic requests I just buy a template and install the backend of choice (ecommerce, cms wtv).

Lately Ive been recieving custom template requests which I simply do not have the skills for.

I need a designer I can call on, who can work for reasonable prices. Usually we get draft PS or we make one (we include in the reciept) and we present to client. Once the client likes it and gives it a final green light, the designer creates the template.

If you're interested or anyone is interested, shoot me back here. Preferably, it would be nice if you had your own collection of templates for generic purposes (store, blog, w/e).
>>
File: Untitled.png (55KB, 1103x566px) Image search: [Google]
Untitled.png
55KB, 1103x566px
I've come to a complete stop in my code a since yesterday, I'm making a JS card game and I can't figure out how to make cards affect eachother, the card above the current card is -5 the one below is +5 left and right are -1 and +1 respectivley.

All this would go in a function called checkCards() or something like that.
>>
>>52289951
I thought of making a new array with the same amount of entries as cards and saving values in them like "cold" and "hot" and using that to keep dibs on what color border each card has, and comparing them to one another, does that sound crazy?
>>
>>52289988
Sample your code into a JSFiddle and post it here. laos what are you trying to do? Apply a border when you hover over the center card?
>>
>>52290015
It doesn't really work on jsFiddle, don't know why.
But you can still get the gist of what's going on.


I want to set a border to the superior, inferior, left and right card depending on what the center card is as soon as it's placed.
Like it a hot card touches a hot card the both burn, and if a hot touches a cold they cool down to neutral.
Thanks for offering a hand
>>
>>52289951
I'd separate game logic and markup completely.
Make classes and check against properties and later add the frontend/markup which just renders the board object.
use something like typescript.

otherwise you'll have a huge mess with JS which relies on markup, which is a pain in the ass to maintain or add features to without breaking everything.
>>
>>52290227
https://jsfiddle.net/en2wo4cs/ stupidly forgot link
>>
>>52290239
I'll take that into account, but I'm not looking to maintain this any more after it's done, altought I do understand how messy it can be to have JS depending on markup.
>>
>>52288187
>hay guiz how do I do the thing in JavaScript?
>Just do $(....

Fucking shit, man. Are there actually developers who don't know that jquery is its own thing?
>>
>>52290351
>not using superior methods despite them being available without any downside whatsoever
>>
>>52290369
>Jquery
>Superior

top joj

Superior to the native dom API maybe, yeah. Especially since that is so fucking inconsistent between implementations and needlessly verbose. (and faggit nodelists lack foreach, map etc).
>>
>>52290351
There are many developers that can only write JQuery and no Vanilla JS.
>>
>>52290227
How do you determine what type (hot, cold) the card is? Do you randomly determine it when it is placed? Or do you lay out a 'winning' grid beforehand and then check that when a box is clicked?
>>
Why is everything now:

>X Number of Y!
>Each Y is on it's own page

I close the tab immediately. What the fuck is that shit, I'm not reloading your entire fucking site 20 times for one picture and one sentence of content each.
>>
>>52290665
more page impressions = more ads to show
>>
>>52290610
It's a random number between 1 and 3, 0 is "none". It's determined when the turn starts and overwritten each turn.
function genTemp(){
window.temp = Math.floor(Math.random() * 3) + 1;
switch ( temp ){
case 1:
tempColor = "#aef5ff";
break;
case 2:
tempColor = "#aeffbf";
break;
case 3:
tempColor = "#ffbb73";
break;
}
console.log(">>Temp is "+ temp + " " + tempColor);
}
>>
>>52290351
>>52290419
I'm torn on this issue. I do more advanced JS stuff and, for the front-end, I often find myself defining shit like "getByClass(className)" and "ajaxSubmit(form, cb)", which would result in

ajaxSubmit(getByClass('.cool-form', function(data) {
console.log('aaayyyyy');
});


Obviously you would never make a call like that, but you know what I mean. Writing your own jQuery to understand what's happening would benefit a lot of people.
=========================

So I have an interview for a company, and they're using WordPress to power their external web pages.

That's fine, but the default "Hello world!" page is still there and you can see it if you run a result-less search via their search bar. Would sorta bug me if it were my page.

Is that something I should casually/jokingly mention during the interview or will I come across as an asshole?
>>
I need to make a web interface where you can search vehicle data. It used to be PHP site with a single MySQL table with around 100k rows, but it was atrociously slow. Before anyone complains, PHP was ditched already.

But I have a problem designing the database to perform acceptably. The schema goes somewhat like this: make, model, year, color, transmission, value. Should I stay with MySQL and split the data into multiple tables like make, model, and vehicle? Or should I go for NoSQL?
I thought about splitting it into multiple tables but since I need to import the data from a single CSV file it seems to be a total pain in the ass.
>>
>>52291031
seems a bad idea to point out mistakes of the company during an interview.
>>
>>52291035
Use Hadoop /s

NoSQL might actually perform decent here if you don't mind a ton of duplicate data, given the data set is very small. I still recommend against it though. That data sounds relational given that each model belongs to a make, etc. Very good read on the topic (sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/).

Though, 100k rows with very few possible constraints shouldn't take more than a few hundred ms to load. What the hell are your server specs?

>>52291070
I guess, but it's not a big mistake, just a small oversight on the landing page. If it were me I would be happy that someone was interested enough to dig through my site. I guess I'm trying to rationalize it, I'll probably keep my mouth shut.
>>
>>52290677
https://jsfiddle.net/SanderDLM/n3Lg4b4b/

This is my draft, could'nt finish it because I have to run but all the functions are in place. Only need to draw the borders atm.
>>
I have a site with two forms, both write to a database. Its easy for me to spam both forms though with below script

import requests


def search(num):
params = {
"newsletter_email": num
}
r = requests.post("http://localhost:8888/newsletter_submit.php", data=params)

for x in range(0,10000):
search(x)
print(x)


How can I protect the database from spam submissions aside from adding captcha?
>>
>>52290677
such bloat
wow
much binding to the browser's window object which is very slow
function genTemp() {
this.colors = ['', '#aef5ff', '#aeffbf', '#ffbb73'];
this.color = colors[Math.floor(Math.random() * (colors.length))];
console.log('color: ' + this.color);
}
>>
>>52291234
>>52291234
>https://jsfiddle.net/SanderDLM/n3Lg4b4b/
This is extremely helfull, I like how you pulled off
function checkNeighbours(card_id) {
for (card in cards) {
//Each card has 4 possible neighbours(-5, +5, -1 and +1)
if (cards[card]['id'] == card_id - 5) {
drawBorder(cards[card]);
} else if (cards[card]['id'] == card_id + 5) {
drawBorder(cards[card]);
} else if (cards[card]['id'] == card_id + 1) {
drawBorder(cards[card]);
} else if (cards[card]['id'] == card_id - 1) {
drawBorder(cards[card]);
}
}

This is gointo look pretty decent once I'm done
>>
>>52290677
You could try a more dynamic approach like this, so you can change your available colours more easily on runtime or whenever you want:

//Note that the first element is empty, so there is a change that tempColor===""
var tempColorArray = new Array("", "#aef5ff", "#aeffbf", "#ffbb73");

function genTemp() {
window.temp = getRandomNumberBetween(0, tempColorArray.length);
tempColor = tempColorArray[window.temp];
console.log(">>Temp is "+ temp + " " + tempColor);
}

function getRandomNumberBetween(min, max) {
Math.floor(Math.random() * max) + min
}
>>
>>52291178
Well, I'd probably make it into different tables with relations if I could figure out some relatively painless way to split the CSV data into 3 tables.
>>
>>52291464
That seems pretty maintanable, neat and easy to read, I'll try and not get used to coding like I'm doing it now.
>>
File: 1446313898273.jpg (155KB, 607x733px) Image search: [Google]
1446313898273.jpg
155KB, 607x733px
How do I into SEO?

Apparently meta tags are no longer relevant and I don't feel like paying someone to do that for me.
>>
>>52291464
Fuck, I clearly write it too quickly.
The getRandomNumberBetween function should be:

function getRandomNumberBetween(min, max) {
return Math.floor(Math.random() * max) + min;
}

And testing it a bit, I'm not sure that Random function is working as expected.
>>
>>52291464
>
console.log(">>Temp is "+ temp + " " + tempColor);


you can pass multiple arguments to console.log and it will separate them with spaces

console.log(">>Temp is", temp, tempColor);


with es6 shorthand property syntax you can do this:

console.log(">>Temp is", {temp, tempColor});


it should log ">>Temp is Object {temp: ..., tempColor: ...}" and let you expand it and stuff
>>
just thought you should know
>>
>>52292168
Happy to answer any of your question.
Moz is probably the best resource and is up to date.
>>
I'm reading a book on Laravel 5. PHP has namespaces now?All this organization..

Is there a framework where I can use spaghetti code? I can't focus if stuff is too organized because I get bored.
>>
>>52290351
Most do, but most also assume that you're using jQuery, too. Because why aren't you?
>>
Can someone give an example of something on a webpage that would be an object?

When I think "object" I can only think of monsters in video games.
>>
>>52293897

https://en.wikipedia.org/wiki/Document_Object_Model
>>
>>52293954
I mean like why OOP PHP instead of regular PHP? How does it make it easier?
>>
>>52293819
raw dom manipulation is dying out and that is a good thing. Angular 2, React, Polymer... those frameworks (or library, in Polymer's case) will change web development for the better.

UIs have gotten too complex to be reliably handled.
>>
>>52294021
http://inventwithpython.com/blog/2014/12/02/why-is-object-oriented-programming-useful-with-an-role-playing-game-example/
>>
File: CAM00180.jpg (267KB, 2048x1536px) Image search: [Google]
CAM00180.jpg
267KB, 2048x1536px
>This is PHP somehow.

What happened?
>>
>>52294199
What do you mean?
>>
>>52294199
Its PHP, whats the big deal.
>>
>>52294199
Not much. Developers were always fed up with how much it sucked at its one task, but faggot CEOs still won't allow other languages because PHP is installed everywhere else.

So sighing, people made modern frameworks for PHP. There's even a group that is independent from The PHP core dev team (which is a bunch of blithering idiots) called the FIG who have actually invented the kinds of standards and tools that the PHP devs SHOULD have invented, but never did.
Well, for the most part they just copied the shit out of Java tools, specs, standard libraries, patterns and coding styles.
Still, PHP as a shitty Java clone works better than PHP as PHP. It's still shitty and you're better off using the actual Java. Seriously.
I couldn't live without autoloading.

If you can use Java, you're likely free to use anything you want, so use Scala, C# or even Hack if you want a language that is based on PHP, but mends a majority of its largest flaws. Seriously, the only things I dislike about hack are the $variable $prefixes and the pig disugsting standard library it inherited from PHP.
>>
I am implementing a tag search feature on my web page.

Are there any query languages/structures recommended for use?

Simple things like

?tags=red+blue-green

which would for instance be red and blue but not green.

And/Or operators, groups, etc...

Is there such a thing?
>>
File: 1363814978878.png (11KB, 429x410px) Image search: [Google]
1363814978878.png
11KB, 429x410px
Not looking for how it's done, I can google.

Just asking, what's the background trickery websites like http://hiveswap.com/ do called?
>>
>>52294199
Nothing happened, you just fell for the PHP is bad meme and though we still program in PHP like the 90s.
>>
File: sticker-02-15-2.png (86KB, 2064x1434px) Image search: [Google]
sticker-02-15-2.png
86KB, 2064x1434px
daily reminder that if you aren't using meme technologies in your company right now you shouldn't be on /wdg/
>>
/g/, is it good pratice for using more than one junction table for the same relation. For example between users and posts I have a table name users_posts just to store users comment count, and another table named users_liked_posts that only have the composed primary key.
It's easier for me this way, but is it redudant to duplicate user_post primary key twice?
>>
Coming up with ways to make money on a 100% free website is pretty complicated.

Currently ads, pay for ad removal, promoted content(native ads), Youtube ads, Amazon affiliate links.

Screw mobile anchor ads though. I will never do that.
>>
>>52294879
Fixed background?

Some people call it parallax but it's not really.
>>
>>52294760
A tag system is fun to make and you can do it with any language that can work with a server-side db.

Count used tags in their own table. Store user tags as string you can explode.
>>
>>52294760
yes, using postgres array for tag.
>>
>>52287043
How do you find swiss clients?
Is it possible if you're not living in the country anymore but still have strong connections there?
Is it true that it's not profitable anymore to create websites yourself if you live there and that you have to outsource to eastern europe?
>>
What do you guys use for in loops for?
>>
>>52296350
For each digit in number,
for each char in string
>>
>>52295617
You're right. The one he linked isn't full parallax. Parallax actually implies that the background moves as well.
>>
I don't use it, because:
1) I'm Ubuntu user.
2) C++ is better for games(multiplatform) and apps(Qt)
>>
What are the most used loops between for, for/in, do/while, and while in Javascript when making websites?
>>
>>52295617
>>52296405
http://www.bootply.com/PRnQbVMjaK
found it just with that, thank you

do you guys have any specific templates you recommend with that idea in mind? That one looks good, I'm asking just in case I waste a lot of time by using a shitty one
>>
>>52295012
ASP .NET with AngularJS

I'm good
>>
I was wondering more about search syntax and structure.
Are there any standards available? A string only.

>>52295894
I'm using a many to many relation for the tags right now.

TAGGABLE
TAGGABLE_HAS_TAG
TAG

Three tables for the relation. I do this because I wish to describe and list all tags, and also limit which tags are used.

>>52296103
Also an interesting suggestion, since it can support own types.
>>
>>52296566
shit, nevermind, the project doc says I can only use the provided framework, god damn it I can't even try cool shit
>>
>>52296744
I have a column with tags just separated by space in one huge textfield and let the sql server search with its full text search.
Why bother trying to figure out how to do optimized searching if they already did it.
>>
>>52296744
using array make it way easier to search records by multi tags, which is I think a must for modern websites.
>>
>>52296856
>>52296744
also if you using sequel (ruby) to connect to database, you can use the array_association plugin to load tags from array of tag ids (instead of storing text which is slower and bloated)
>>
>>52296744
I am still confused as to what you are trying to do so I can't help with logic.
>>
>>52296575
acceptable. i'm exclusively backend so unless i keep up with all the meme technologies i wont be able to keep reinventing the wheel every year and the company i work at will realise they don't even need an IT department since everything just runs itself now.
>>
Is there any way to cheat CORS with the Fetch API, or am I still stuck using GM_xmlhttpRequest?
>>
Any suggestions for studying CSS code?
I just wan't to see how others are styling their sites and stuff, without looking at personalized content and shit.
>>
File: 1451997036248.jpg (85KB, 1024x768px) Image search: [Google]
1451997036248.jpg
85KB, 1024x768px
>tfw ive done the codeacademy html & css tutorial
>feel live ive learned a bunch of shit I will never use and has become obsolete because of more advanced ways of coding

Where can I learn something that is actually used in industry?
>>
>>52297819

Do some javascript. Try using jQuery and Underscore.
>>
>>52297819
HTML and CSS don't become obsolete. Retarded Javascript ways of doing things become obsoleted by better HTML and CSS ways of doing things.
>>
>>52297819
>Not using CSS preprocessors and HTML templating

wew lad
>>
>>52297819
Learn C# or Java.
>>
>>52297267
Yeah and who wants to keep learning new tech well into their 40s when they can just do SQL shit forever and make 80 an hour?
>>
>>52297819
>html & css
>obsolete
senpai, pls

Sauce on the rice cooker btw
>>
File: Jon Duckett Books Swastika.png (88KB, 993x294px) Image search: [Google]
Jon Duckett Books Swastika.png
88KB, 993x294px
I just finished these two books. Where do I go from here? I know I need to:
>Learn PHP/SQL/mySQL etc.
>Get better at HTML/CSS or maybe just git gud/learn photoshop?
>Get better with Javascript (a good intermediate javascript book)
>Get gud with WordPress maybe (Is Wordpress for faggots, pussies and queers that dont know how to actually code or could it benefit me?)
>>
>>52298138

People who care about doing good work, rather than doing the same thing for decades and never improving.
>>
File: alteredbasicpepe.png (9KB, 401x367px) Image search: [Google]
alteredbasicpepe.png
9KB, 401x367px
>>52297819
>Ive learned the most basic shit in web development
>Why does this seem like it isnt actually used in the industry
It actually is anon, you just have to git gud at Javascript and PHP also
>>
>>52297705
read the foundation framework then
>>
>>52298326
don't forget SQL
>>
>>52298271
Do javascript, seems like WordPress is very easily commoditized by low cost, off shore people.

I would look at Javascript the good parts.
>>
I just read the first 3 chapters of an intro to Laravel 5 book and have no idea what is going on. I have been using PHP for 6 years and there is so much added bullshit that I'm clueless. Maybe this author just sucks ass.
>>
File: cowboywoj.jpg (4KB, 120x125px) Image search: [Google]
cowboywoj.jpg
4KB, 120x125px
>>52298360
>tfw my aunt is "making websites" now after she got out of one of those coding bootcamps and showed me how she does it (Literally used Wordpress for everything) while I was fucking around on Dreamweaver at the time.

Okay interesting I'll look into that book. Also what makes you think it will benefit me more now to get better at javascript rather than take a dive into PHP or SQL ?
>>
>>52298434

Javascript is (probably) more relevant if you're trying to get a job. The Javascript ecosystem is famously very rapid, the frameworks and tools iterate fast. Javascript can be used on the front end, back end and mobile so it's a lot more versatile than PHP.

I also think it's a better language, but that's my personal bias as a JS dev.
>>
>>52298434
Check your local job offers. Wordpress is viable these days. Dozens of places here paging 20-50 an hour for people to shit out wordpress sites.
>>
>>52298271
If you're doing it for fun learn more languages or improve.
If you're doing it for a career decide if which type of developer you'd like to be or even be a designer.
>>
>>52298655
For now at least. I don't think Javascript is going anywhere, if you're thinking long term that is what I would go with.
>>
File: JonDuckettTableOfContent.png (403KB, 618x473px) Image search: [Google]
JonDuckettTableOfContent.png
403KB, 618x473px
>>52298620
Hmm interesting Also I looked at the "Javascript: The Good Parts" and it seems like I have already covered these topics. Im trying to get a Javascript book that covers another set of topics to further my understanding of the language and allows me to do more things with my scripts.

Pic Related is the Table of Contents that of the javascript/jquery/json book I was reading
>>
File: Flavortown.png (402KB, 402x536px) Image search: [Google]
Flavortown.png
402KB, 402x536px
>>52298718
I just want to make good looking and functional websites senpai.
>>
>>52298766
Then I would think about looking at a client side framework, Angular is probably the best choice.

That also gives you exposure to MVC style programming, which is good to have if you do PHP.
>>
Went job hunting, came across this site. Dat font....

http://www.sparepartslife.com/hiring/web-assistant
>>
If device is mobile
load mobile style sheet
Elseif device is not mobile
load regular style sheet

What is the best way? Don't say any framework. I have to work around what people already have.
>>
>>52299111
It's 2016 bro, you really shouldn't be going through all that trouble. Responsive web design takes care of that for you.
>>
Web designers are so unoriginal.

"Simplicity is both beautiful and timeless and your users will appreciate it. The best results are achieved when UX and design meet to deliver an engaging, relevant and positive experience. With mobile design at the forefront of our thoughts, UX has never been so important."

Take that paragraph and run it through Google, you'll see how many web devs use the same thing on their site. I have so many more examples that I've found and that's just from 5 minutes of googling.
>>
>>52299144
Pretend it's not and I have to go through that trouble.
>>
>>52299306
Duh. Fuck clients. We make all the cool shit for our own projects. The stuff I make would have Apple jizzing all day.
>>
Are frameworks really necessary for small stuff?

Let's say I had a business making websites for Chinese food places.

I could copy/paste almost everything.

Are frameworks like codeigniter and cake mainly for large groups of developers?
>>
>>52295012
I never quite got the need to use Docker with Go unless you want to benefit from container management tools.

One of the major points of the language is that your shit is just a binary. Why fuck it up?
>>
File: 1350896490667.gif (276KB, 500x424px) Image search: [Google]
1350896490667.gif
276KB, 500x424px
how to hack flash based website?
I need to prove to my boss why hes website is shit and that its time to upgrade.
>>
Cyanide and Happiness is hiring in Dallas for php dev.
I'm going to apply every single day.
>>
>>52299800
>Are frameworks really necessary for small stuff?
Nope. Built my personal website without a framework. If you're working in teams or if you're working on larger projects then a framework is your best option. Maintaining raw code is a bitch.
>>
File: 10-93149.jpg (80KB, 430x430px) Image search: [Google]
10-93149.jpg
80KB, 430x430px
>>52299860
go by itself is fine, go on docker is complete shit, go on docker with deployment tooling like ansible is hot shit.

it's all a matter of application, in my case we're in the business of deploying a fuck load of sites to whoever needs them and customising them, if the customer wants it on premise then they can do whatever they like, but to manage like 140 cms platforms that are tailored to the use case you can't just run that all on bare metal(if you call a vps bare metal anyway) because it's a nightmare to manage. tooling moves the nightmare to a week of sleepless nights at the beginning of a system design, once it's done you never have to worry about it again since you have the tools to blow it away and redeploy with very little effort.

tl;dr don't use docker unless you need it, but always use go because, like you said, muh binaries
>>
>>52300549

I use docker at work so I can run integration tests against postgres easily and repeatably.

Then, the exact same container is the one deployed for production.
>>
File: Screenshot-1452224261.png (293KB, 1920x1080px) Image search: [Google]
Screenshot-1452224261.png
293KB, 1920x1080px
i made ajax powered search engine for django-rest api i wrote earlier

it just werks
>>
>>52300068
If I wanted to stay in Texas, I might do that. But I have a second interview with a company in Boulder next week. I'm so close to just putting in my two weeks at my current job now.
>>
>>52301124
>ubuntu running on virtualbox
>>
>>52301410
i wanted the same gui as windows for my webdev environment. i'm fairly satisfied.
>>
File: images.jpg (4KB, 293x172px) Image search: [Google]
images.jpg
4KB, 293x172px
>>52301456
>Running windows
>>
File: 1390347146430.jpg (138KB, 1024x1024px) Image search: [Google]
1390347146430.jpg
138KB, 1024x1024px
>>52301483
i do design work too so i need my adobes and i can't yet afford a mac.
>>
>>52301500
> justifying buying a mac
> mac good at anything
give up.
>>
File: BfBxn3ICUAAPaCn.jpg (37KB, 600x600px) Image search: [Google]
BfBxn3ICUAAPaCn.jpg
37KB, 600x600px
>>52301500
>he can't figure out how to install all that on ubuntu
>>
File: tumblr_lsd45zi0Of1qjwbgpo1_500.png (242KB, 500x375px) Image search: [Google]
tumblr_lsd45zi0Of1qjwbgpo1_500.png
242KB, 500x375px
>>52301512
you can do visual design work AND have a proper unix environment for coding at the same time. how is that not good?
>>
>>52301527
> visual design work AND have a proper unix environment
> implying you can't do the same on windows
>>
>>52301545
try installing some node.js package through some cygwin-based environment (cygwin, mingw, msys2, you name it) that requires compiling c++ code to work i dare you

trying to do it on windows natively without having to install the huge blob that is visual studio 2015 just for the compiler and for some reason it won't work anyway, and then returning to powershell with all it's ugly quirks, it's all not worth it
>>
File: 1360811187761.jpg (50KB, 400x438px) Image search: [Google]
1360811187761.jpg
50KB, 400x438px
>>52301520
>wine
>reliable
>>
hello friends. i've been working on a personal site for shits and giggles, just trying to learn a few things.

i'm feel comfortable with htlm and css, and now i am trying to learn a bit more about php. i want to create a script to work in conjunction with my css that is fairly common, but i want to do it from scratch. i want to have a 3x3 of my most played albums from the last 30 days appear when i hover over my last.fm link on the page.

where are some places i should look to get started?
>>
File: 1445120682610.png (78KB, 249x250px) Image search: [Google]
1445120682610.png
78KB, 249x250px
What's the cheapest domain name registrar which isn't a scam/doesn't have strings attached?
It should be very cheap, but also give me full control of the domain I purchase (including the ability to transfer or sell it).
>>
>>52302733
>when i hover a link
you could actually do this with css i think, although i don't know how.
You could have your albums thing visibility=hidden, and when u hover over it, unhide it with css
div album {
visibility: hidden;
}
hmmm how would u do this....
maybe put the last.fm link inside a div, and put your albums thing inside the div as well. set the albums thing to hidden vis. then, u can do:
div:hover album {
visibility: shown;
}


ah ha i got it!
Take your album thing and stick it inside a made-up tag. like this:
<div>
<a>last.fm link</a>
<albumtag></albumtag>
</div>

then do
div albumtag {
visibility: hidden
}
div:hover albumtag {
visibility: shown
}

hot fuckin damn i feel like a css wizard now.
"visibility" and "shown" are probably wrong, just go look it up. it's either "shown/hidden" or "true/false"
>>
Where can I find a decent cheap hosting solution for my domain?

DigitalOcean good or is there something better?
>>
>>52291954
cardbro if you are still in this thread please share your cardback images I like them ty familia
>>
>>52304202
thanks! i know i could do it with just css by using someone elses 3x3 collage site, but the entire point is to learn! i want to make it so that it updates on its own and everything.
>>
I've started the Odin Project few weeks ago. Anyone here using Odin? I'm currently on web dev 101
>>
>>52305777
yeah! i have actually been reading and doing the exercises every day for a week now, as well as working on my own personal site with some of the things i've learned from it.

i really love that more of these hands on, do it yourself type site for learning different aspects of web design/coding are popping up because i love actually doing things but have a hard time just reading a textbook or whatever.

good luck my friend!
>>
>>52298271

Where can I find pdfs of these books?
>>
>>52299050

Arrrgh, my fucking eyes.
>>
What text editors would web devs recommend?
>>
File: Some webpage.png (1MB, 2734x5722px) Image search: [Google]
Some webpage.png
1MB, 2734x5722px
>>52299050
Looks fine to me. Sounds like have a cheap and shitty screen combined with a shitty OS with shit font rendering (windows). [laughs]
>>
>>52305948
Cool! I've tried using only Codecademy a year ago and that got me bored. I really love that Odin does not have "let me hold your hand" approach like codecademy.
>>
File: lunch.jpg (75KB, 600x839px) Image search: [Google]
lunch.jpg
75KB, 600x839px
>>52306183
yeah i had tried codecademy for the html/css course and the python course.

the thing i didn't like about it was that everything was so specific, it felt like i didn't understand how to use anything it taught me outside of the exact context it was taught to me in, which made it incredibly daunting to try to start something on my own.

i've never worked with ruby before so this site is actually pretty fun for me so far but i actually feel like i'm learning things i can use outside of the course.
>>
what can be some examples of a web application thats not purely crud?
>>
>>52306226
Same thing for me. I do several codecad exercises, and feel like a champ, and then when I try to do something on my own, it's a complete disaster.

Have you any other experience with programming? I'm almost complete newbie. I've started ruby just yesterday. I've only got a three month experience learning Java, and on and off experience with some other high level languages.
>>
>>52306180
So it's a website that only looks good on OSX? [Laughs]
>>
>>52306341
If you don't use OS X you're clearly not good enough for the job.
>>
File: princess.png (629KB, 600x903px) Image search: [Google]
princess.png
629KB, 600x903px
>>52306312
funny story actually. i'm 22 years old now, and one of my first experiences with other people online like across the country and world was on a website called stickam in like 2007 or 2008. it was basically like tinychat before tinychat existed. i had made a lot of friends on that site, and eventually had actually gotten super popular there. when the website was shut down, i think my profile had like 1.7 million views or something like that.

the profile pages were kind of layed out like a twitch stream page. you have the flash player that was the chat system at the top and in the center, then below that you can type stuff about yourself and all that. at first, like most people, i just wrote out stupid things like "hi my name is anon, i'm 15 years old and my favorite game is halo 3."

eventually i started to see people have these really cool boxes where they linked to their best friends' profiles, had bullet points of all their favorite things, and other stuff like that. well unbeknownst to me at the time, you were allowed to (or maybe it was unintended?) use CSS in that profile information section. so i started going to profiles i thought looked cool and jacking their CSS and changing it out with my own stuff. i would use photoshop to create cool fonts to use as jpgs for the headers of my boxes. i would then use things like the hover CSS tag to hide things on there only my friends knew about.

it was mostly just me using the view page source menu then me copy pasting code and changing out links to pictures or changing the position of boxes and stuff, but that was my first taste of anything like this. the site shut down in like 2012 or something and ever since i've been messing around with my steam profile kind of doing the same things.

i just recently was able to start school at a pretty good university for what is basically their web dev/user experience degree path and now i am hooked on this shit.

/blog
>>
>>52306444
Cool, so you know your way around html/css. I feel completely dumb when even basic design is in question. I know how to layout things and do basic css stuff, but I'm completely lost when design is in question.

It's cool that you were able to go to school with relevant programming curriculum. I mastered in mechanical engineering a year+ ago, and there I've only used Matlab (and that was willingly, because it was not required). Now I'm kind of sick of mech. engineering, and want to learn programming, 'cus I actually like it.

What courses are you having at uni web/dev related?
>>
File: 2016-01-08_06-18-01.jpg (376KB, 854x428px) Image search: [Google]
2016-01-08_06-18-01.jpg
376KB, 854x428px
>>52306555
well i am like two and a half years behind in school because i changed majors a bunch, had to skip half a year because of injury, came home after an anxiety attack, etc so i'm just now getting done with my general education classes.

this is what the school's website says about my degree. its a very general degree but the upper level courses can be kind of specific and you are encouraged to talk to your advisor and other students to take courses that are all grouped together well. i plan on taking all of the web development and user experience upper levels.

this semester i am taking two of the first degree related courses which are a research course and a theory course for design in consumer technology in general.

i can work my way through html and css with a LOT of googling because i taught all of it to myself but it will be nice going into the "internet studio" class and internet design theory classes with some of my own skills and knowledge.
>>
>>52306638
this program sounds cool, even more so with you adding the web development along the way. Inter/multi-disciplinary stuff is always interesting.

I hope your anxiety is checked. I heard that REBT therapy can be good for it.
>>
>>52306750
yeah its a really fun program so far from just the few courses i have taken. the best part about it is that all of the classes take place in the brand new ATEC/EMAC building that my school put up in the last 2 years which is super nice and an awesome place to hang out, and almost all of the professors are 35 years old or younger so they are all really fun for the most part.

yeah i used to have some problems with all that kind of stuff a while ago mostly because of undiagnosed bipolar disorder and uhhhh gender dysphoria (lol) but i see a psychiatrist very frequently now, and discovering this program at my school allowed me to meet some really cool people and life is pretty great right now.

the only thing i'm worried about is finding work after school :x
>>
>>52306783
Cool professors are good. Nothing worse than an old scary professor (and I've had some of those).

I don't know anything about the job market, I'll assume you're American. In my country economy and job market are horror. Though there are lot of opportunities in IT (but with experience).

I'm glad you're seeing a psychiatrist, most avoid them even when they need them. I hope you sort your problems. I can't imagine having gender dysphoria, but from what I heard it's really tough.

Have you posted some of your Odin project solutions on their site?
>>
I'm trying to use a basic javascript toggle mute button for some audio. What have I fucked up here?

<div id=music>
<a id="mute">
<img src="speaker icon.png" width="30px" height="30px">
</a>
<audio id="playmusic" loop autoplay volume=.05>
<source src="theme.mp3">
</audio>
</div>


var audio = document.getElementById('playmusic');

document.getElementById('togglemute').addEventListener('click', function(e) {
e = e || window.event;
audio.muted = !audio.muted;
e.preventDefault();
}, false);


Pls respond.
>>
>>52307247
oops, the id for the icon actually is 'togglemute' and not just 'mute'

pasted from jsfiddle instead of source file on accident.
>>
>>52307247
>document.getElementById('togglemute')
you don't have an element with id 'togglemute', your link has id 'mute'.
>>
>>52307273
this is what i meant to actually post, sorry.

    <div id=music>
<a id="togglemute">
<img src="speaker icon.png" width="30px" height="30px">
</a>
<audio id="playmusic" loop autoplay volume=.02>
<source src="his cave theme.mp3">
</audio>
</div>


var audio = document.getElementById('playmusic');

document.getElementById('togglemute').addEventListener('click', function (e)
{
e = e || window.event;
audio.muted = !audio.muted;
e.preventDefault();
}, false);


not sure why the button isn't working.
>>
>>52296410
>I'm ubuntu user
>what is Mono

>C++ is better
>muh opinions

>for games (multiplatform)
>seriously, what is Mono
>>
>>52307247
>>52307309
I tested it in jsfiddle and it works for me in firefox.
what's your browser say? does it find the sound file? any errors?
does it play at all or just not mute it?
>>
>>52286330
Anyone else /web development with C/ here?
>>
File: 8484.jpg (6KB, 170x165px) Image search: [Google]
8484.jpg
6KB, 170x165px
>Codeacademy
>Codeavangers
>Codeschool
>Treehouse
>Coursera
>Udacity

I don't even know where to start. I tried some Codeacademy courses but it feels like slow baby-tier lessons.
>>
>>52307374
does C# count?
>>
>>52307329
that's just part of the html for the whole site but when i go to the site, the song plays, but clicking the speaker icon doesn't work toggle the mute of it

maybe i am linking to my script file wrong? pretty sure i don't need to do anything other than this.

<title>「」</title>
<script src="music.js"></script>
<link rel="stylesheet" href="mystyle.css">


also, why does the "volume=0.5" attribute in the <audio> html tag not work? ( >>52307309
) volume won't change levels no matter what i change it to. stays the same.
>>
>>52307379
Try the Odin project, it is a course with bunch of links that are recommendations what you should learn. For example, they'll point you to codecademy, codeschool and MDN, to do hrml/css tutorials. So, you don't need to think where to start, they have done that for you.
>>
>>52300041
>need to prove to my boss his website is shit
try opening the page on any mobile. if it's really shit (no fallback), it won't show anything.
then, search about the marketshare of mobile devices for web browsing.
there you have it
>>
>>52307430
>>52307329
also chrome is giving me this error when i inspect

>Uncaught TypeError: Cannot read property 'addEventListener' of null
>>
>>52307430
>>52307471
when you do
document.getElementById('togglemute')

in your head, the element doesn't exist yet.
include your scripts at the bottom or execute your stuff in the DOMContentLoaded event.
>>
>>52307481
oh okay awesome. didn't realize that was a thing.

is putting script links at the bottom of your html a good habit to get into then? i have always just been putting them right before my css links.
>>
>>52307430
<audio> does not support the volume attribute.
you need to set it with JS.
>>
>>52307538
http://stackoverflow.com/a/2105394
>>
Is Polymer really worth getting into? Or is there something better?
>>
>>52307551
oh okay.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio

i just googled and this says <audio> apparently does support a volume attribute, but it doesn't work on any browsers? is this just wrong or something? im curious.

this works fine enough though
var audio = document.getElementById('playmusic');

audio.volume = 0.1;

document.getElementById('togglemute').addEventListener('click', function (e)
{
e = e || window.event;
audio.muted = !audio.muted;
e.preventDefault();
}, false);


>>52307586
awesome, thanks!
>>
>>52307649
it's not in the spec, not sure why mdn lists it.
https://html.spec.whatwg.org/multipage/embedded-content.html#the-audio-element
>>
hey wdg
I need to make some quick and dirty sites to show off as a portfolio to tech illiterate interviewer.

Any recommendations?
>>
>>52307436
I'll give it a try. thanks anon.
>>
File: 1444809661690.png (982KB, 561x1148px) Image search: [Google]
1444809661690.png
982KB, 561x1148px
I just discovered this website for syntax. Thought it would help some of you.

http://overapi.com/
>>
How do I get good at design?
>>
Is it worth it to start learning python and django?
Or is it better to go for php
>>
File: nyaruko0.jpg (3MB, 4470x6440px) Image search: [Google]
nyaruko0.jpg
3MB, 4470x6440px
>>52308583
php + laravel 5 master race if you want a job
>>
File: isischan.jpg (48KB, 780x439px) Image search: [Google]
isischan.jpg
48KB, 780x439px
>>52308118
very much appreciated
>>
>>52308583
i second that
i'm already a python developer, but i recently discovered go and want to switch to it.
but i'm not sure if i could find any freelance go job (more specifically, in web dev)
>>
>>52308583
>>52308750
oh, stupid me
i misread it like you axed about golang
but anyway, is it a good idea to switch to go?
>>
>>52308800
Like always, it depends on the use case, anon.
Go would be awesome for a real heavy webserver that should handle thousands of request, or make other critical and heavy tasks on the background.
You can always just use Go on certain parts of your application's flow instead of everywhere.
>>
F# deprecates C#
discuss
>>
>>52308930
It's a better language, but MS don't support it enough. It also takes more time to learn.
>>
>>52308601
Every job I got that advertised Larvel also used Django, Rails, and Angular. I was excepted to learn them all. You can't just know one framework, you have to be an expert and having a very good ability in the others or your are going to be looked at as an idiot.

This is my experience anyways
>>
Hi guys, i'm pretty new to javascript and im trying to get a form to submit, but in order for that i need a code. The code is 4 numbers. Sorry if this annoys you guys.

var initInputs = function(){
self.codeInput.first().focus();
self.codeInput.on('keyup', function(event){
var $input = $(event.currentTarget);
var $next = $input.next();
var val = $input.val();
if( (event.keyCode > 64 && event.keyCode < 91) || (event.keyCode > 47 && event.keyCode < 58)){
if( val.length ){
if ( $next.length ){
$next.focus();
}
else{
// Submit
submitForm();
}
}
}
else{
return;
}
});
>>
>>52308837
you're right
but there are many people who use python for heavy web applications and calculating big data.
and i don't understand it when go is like 20 or 30 times faster than python. so theoretically, it should be used anywhere, where efficiency and response time is crucial. but it's not, as it seems to me
it's even a challenge to find an open job posting on upwork. like all the go programmers either generally do open source, or have a full time job
>>
>>52308997
you what?

you want help implementing your "submitForm()" or are you trying to get around something?

The snippet you posted doesn't check for anything that is 4 numbers.
>>
>>52309085
im trying to get around something.
shouldve send the full checker. here you go: http://pastebin.com/raw/L1mC76MT
>>
>>52309115
this is more complicated then i though it was, nvm guys
>>
>>52309115
the input is checked on the server side, not with javascript.

you can pretend the server check is okay by running this
$('.mail').addClass('visible');
$("body").removeClass("denied");
$('.mail input').focus();
$('.logo').removeClass("visible");
$('.date').addClass("visible");
>>
>>52309190
yeah, but then i get redirected to an error page. thanks though. i already found out that the email thingy was hidden
>>
I have css file A and css file B intended for smaller screens. I am faced with having to put !important on almost all properties inside B.
File B is included after file A in html order.
What am I doing wrong?Why does file A always overrides B even when B is only for one type of screen.
More detailed scenario:
In B i have @media rule for max-width:350px screens, and if I dont put !important on properties inside that rule it gets the properties defined in A file which is default one(for laptops). Why isnt enough to write max-width:350px so it could apply properties from that rule rather than having to write !important on everything?
>>
>>52309631
> 2016
>not using percentage based dimensions.
>>
>>52309631
check your specificity of the selectors in your media queries.
http://www.w3.org/TR/CSS2/cascade.html#specificity

media queries don't override, but just simply add to the existing styles.
so if your specificity is higher in your normal css than your media queries it gets ignored.
>>
>>52309717
not him but what the fuck are you talking about?
how would you define in % google nexus 4?
>>
apps nowadays are made with c# and swift for phones. what are online applications made with?
>>
Hey, so I'm not really a web developer, but I'm looking to make a little project.

I'd like to just make a simple "banking" or money management system.
Essentially you would sign up, receieve some sort of account ID. You could send a certain amount of fake currency to another account. You could see your balance. You can see your past transactions. What's the best method of doing this? It's not for work, not for school, just a pure personal project I'd like to do. I've got the basic format of how the system should work in python. It technically works, but I'd like to be able to port it to the web somehow.

How would you guys recommend I go about doing this? I have my own machine to host this on.
>>
>>52310529
javascript
>>
>>52310535
make a restful webservice and use a front-end framework like angular/react/ember/yourown as interface.
>>
>>52310535
So bitcoin but better?
>>
>>52287900
WHATWG has their own set of specifications
https://whatwg.org/
>>
>>52310711
wtf does that mean? most i've ever done in webdev is like html/css + some super light javascript. like i said i'm not a web developer, so I have absolutely no clue.

>>52310713
it's basically just for a little experiment with my friends. I dont really intend it to have any REAL use, just a fun a project.

from what i understand, i'd have to have some sort of database to make calls from. database would store account ids, balances, and then probably a pointer to a difference database per person which would store a list of transactions.

i really am mostly clueless about this stuff, but i've got some experience with normal programming.
>>
>>52310844
you lack some very basics of programming already.
look up how to use databases first, then think about the rest.
using databases is not exclusive to web development, you want to run a marathon without even knowing how to walk properly.
>>
>>52309726
it cant be higher since they are identical
e.g. I have .xyz{font-size:20px} in normal css and in media .xyz{font-size:14px} and the one in media gets overridden by normal css.
>>
>>52310986
can you post a full working example?
>>
>>52310922
it's just i feel i'd learn better if i just took a project and went with it.
>>
I have a dynamic products page that returns the product data based on the ID (product.php?Id=product-name) the products are one one table in an mSql db, about 700 lines.

Whats the easiest or best way to add A search function to the front of the site? I only want it searching the products by name (the ID column). Also if it would autocomplete and ideally show a thumbnail preview in the search bar. Any advice bros?
>>
>>52311458
Have a textbox with a keypress event that makes an ajax call to the database that searches for name like. If you want a thumbnail, you may have to store the path to the thumbnail and pass it on your ajax done callback.
>>
File: Namnlös.png (276KB, 942x529px) Image search: [Google]
Namnlös.png
276KB, 942x529px
How would one do this with picture and text in one row in html?
>>
>>52311723
make a container with text-align: center;
then make another container with the image and text elements and change its display property to inline-block.
put multiple of those into your main container.
>>
So boys, I have an image tag that gets expanded on click in my javascript. How would i go about offering an link to the image source if js is disabled? pls help
>>
>>52311856
instead of an image tag use a link that points to the image.
style it with css so the image is set as background-image.
with JS just expand like you'd do and prevent the default event.

everyone who clicks it without JS gets to the image.
>>
>>52311856
try with alt=""
>>
File: instructions2.png (22KB, 411x334px) Image search: [Google]
instructions2.png
22KB, 411x334px
So I finished my shitty class asignament. It's a poorly coded card game with instructions in Spanish.
http://konbanwa.net16.net/
Thank god the teacher is correcting in firefox.
Why won't it run on chrome or mobile? My friends are reporting different errors I can never replicate under firefox.
>>
>>52311768
Any example code for this?
>>
Ok I don't like front end development. Which framework is better for just getting things done, React or Angular?
>>
>>52311995
<div class="frame-container">
<div id="frame1" class="frame">
<div class="image"></div>
<h3>Heading</h3>
<p>Text</p>
</div><div id="frame2" class="frame">
<div class="image"></div>
<h3>Heading</h3>
<p>Text</p>
</div>
</div>
>>
>>52311989
it looks cool, but i don't know how to play it
>>
File: sadforgespooked.jpg (15KB, 246x232px) Image search: [Google]
sadforgespooked.jpg
15KB, 246x232px
okey guys lets get real here for a sec.

my parents want me to find a job within a month or I will be forced into some slave tier job. I'm a self taught web developer(mostly frontend, nodejs) and I feel like I know enough to get my first job in this branch but I need a good portfolio site. I already finished the "about me" part of the site and its almost all done but I need some content in the "stuff I've done" section but as of now I can link to like 2 things that l'm somehow proud of but I need ~6.

So anons here is what I'm actually asking for, that is some cool project ideas I can finish in a few days that would secure me a junior webdev job.
>>
>>52312153
colors are temperatures. hot + hot burn eachother, cold + cold freeze. neutral + anything does nothing, hot + cold neutralizes

If more water cards on table water wins.
>>
>>52312196
Make a dashboard in node that pulls data from multiple analytic sources (like ad-sense) and presents them in a graphical format (charts, graphs, etc) all in one place.
>>
>>52294199
All of my Perl code looks exactly the same. Weird how it came full circle like that.
>>
Any existing php backend systems ready to go that I can grab? what i mean is i drop the files in the folder, enter the credentials, map the database fields as needed and then i have a secure backend which i can use to manage my site (more for the client i just use PHPadmin).

or do i have to build all this myself?
>>
File: 1452110707458.png (32KB, 240x249px) Image search: [Google]
1452110707458.png
32KB, 240x249px
Hey /wdg/. I have a question regarding the workflow of a website under development.

I have a small web application I want to deploy on a pi. I've configured the server correctly: installed the LAMP stack, and I'm using vsftpd to transfer the project folder to the server.

Since it's my first time doing it, I had to research a lot on system administration. So, I'd like to know if what I'm doing so far is good enough and it's what is done nowadays on production websites.

The pi is running raspbian jessie. I can't write to /var/www from the FTP client, because it belongs to root, and my current ftp user is 'pi', so I transferred the project's folders to the home folder (/home/pi). I also configured the document root on apache2 to be pi's home folder. I managed this by editing the 000-default.conf file and the apache2.conf. The project folder's owner is www-data.

The thing is, I find it difficult to maintain since when I ssh to the pi and try to access the project folder, it denies the access because it belongs to www-data, and have to be constantly 'chowing' the folder to pi, transfer the updated files.

Is there a better way of doing this? Is there something I'm doing wrong? What are the best practices when it comes to website administration?

I was also wondering if I could use git to update the files in the server.
>>
>>52312473
firstly, you can just add your user to the www-data group to solve your permissions problems.

as far as your workflow, you're doing it the old way, it's still a very well defined way but it's certainly not accepted in production anymore. normally you code and run the site locally on your machine then commit the changes to a version control system(git being the only real option nowdays), after that it can be deployed to a production box with something as simple as an ssh command that clones the repo and copies a config.php file for that server. but generally this is all wrapped up in some automation tool like chef/puppet/ansible/etc.

so my advice would be to move your source back to your machine, and when you get it to seamlessly deploy to the rpi without any manual actions or editing then you can call it production ready.
>>
>>52312576
I see. Thank you, anon.
>>
>>52312473
I set up a server last week and faced the same problems.
Here's a great answer which helped a lot to get FTP working correctly.
http://serverfault.com/a/357109
>>
>>52312615
Just what I was looking for, anon. Thank you.
>>
should I be using cloudflare for my personal site?

I switched the dns from the hosting service to cloudflares.

Did I goofed on that because I don't see anywhere on cloudflares panel a file manager or ftp access.
>>
>>52289800
I'm a self taught designer looking for work. I haven't done much but I can work cheap if you're interested
>>
>>52312875
cloudflare doesn't do hosting.
>>
>>52312916
Okay but how do I use their services for my website?

It told me to replace my current DNS nameservers.
>>
>>52312938
that's it, nothing more to do.

all requests now get proxied by cloudflare.
>>
>>52308118
fucking amazing, thank you
>>
>>52312955
but don't I need to use my hosting services DNS as well?

I'm using the free service from Freehostia...
>>
>>52313003
no.
>>
>>52313016
Okay how do I host my site then because I thought it was simply change my DNS nameservers to the hosting company's.

Am I way off here?
>>
>>52313060
the same way as you just did now, on freehostia, you don't need to change anything.
>>
File: Ariel.jpg (134KB, 640x383px) Image search: [Google]
Ariel.jpg
134KB, 640x383px
>have a job interview
>position is to teach kids k - 12 computer science & programming
>in Java
>They also want someone who can teach HTML
So I get to the interview...
>showing the interviewer some of my work
>fancy object oriented es6 animation game
>a fullstack website with use auth and db access
>a java program with a uml diagram containing something like 50 objects
>3D graphics opengl shit I wrote

>She's clearly impressed
>Offers me a second job out of the blue
>"hey anon can you make this feature for my company's site?"
>wants me to make an account system for parents & their students
>so that they can view their students' scores etc
>think, "yeah that's easy, just db shiz"

>interview going really well, score, finally going to land my first job that isn't at a swim pool
>suddenly can't stop coughing
>literally
>am asked to leave

fuck winter
>>
>>52313096
for coughing? really? they offer you the job, you start coughing and they dont offer you water? they ask you to leave?
was the job teaching kids in a biodome?
>>
>>52313082
so add freehostia's dns servers on to cloudflares site?
>>
>>52313152
ignore freehostias dns servers, you are using cloudflares dns servers now.
>>
>>52313130
I stepped outside 3 times. The third time the interviewer said we should reschedule
>>
>>52313197
alright thanks for the clarification, but didn't you say cloudflare doesn't host?

Right now my site is 404'in and saying "object not found!"
>>
>>52313274
name/dns-servers have nothing to do with hosting, all they do is tell where a domain name should point to.

now they point to cloudflare, which proxies requests to your freehostia server
>>
>>52312196
make a blog about your trials, ill subscribe. i want to find out if you make it in a month
>>
>>52311989
>http://konbanwa.net16.net/
slow-ass server lol
nice art
>>
>>52308118
bookmarking this, thanks anon
>>
>>52313299
my domain server is from namecheap...

so it will proxy requests to them?
>>
>>52313318
Thanks m8, I take pride on how it looks actually.
What fast free server would you recommend?
>>
>>52313338
it proxies to wherever your A record of your domain points to.
>>
>>52313356
alright so I need to get a web hosting service now correct?
>>
>>52313382
I thought you had on freehostia?
>>
>>52288295

Yes. It's a big problem waiting to happen, I think.
Mongo's ok for a lot of stuff, but under a proper load, for a serious (read 'safety critical') application, it's going to buckle.
>>
>>52313352
>free
I pay $1 a month to cloud at cost
It's a vps and I'm root, it's all I ever wanted
load times are decent
my site, check the load times:
104.167.111.17
>>
>>52288443

Roh oh
>>
File: Namnlös.png (923KB, 970x397px) Image search: [Google]
Namnlös.png
923KB, 970x397px
Does anyone know where to find image objects that are 1-3px in height and maybe 100px in length similar to this one? (the line)
>>
>>52313400
I *almost* got into mongo
ALMOST.
Nah, I'll stick with mySQL
>>
>>52313432
use a 1x1 white pixel and stretch it?
>>
File: Untitled.png (9KB, 219x167px) Image search: [Google]
Untitled.png
9KB, 219x167px
>>52313418
I think I like the kind of person you are
>>
>>52313392
Sorry I'm confused...

I do have freehostia and it's telling me my site is 1 of 5 domains hosted.

I'm assuming this means everything is good to go besides me not using freehostia's dns servers.

If so why does it tell me my site is 404 and Object not found?
>>
>>52313482
hehe
that was my first php program

under the HTML menu section, click the one that has FINAL in it, and go to the "linux" tab, there's some jokes I wrote
>>
>>52313482
Your site looks like booty senpai.
>>
>>52313555
yeah, i know

I know how to make things look nice but i never want to actually do it
>>
>>52313456
I was thinking of something with some kind of fade down you know, so that I could seperate lets say two blocks of text
>>
>>52308118
thanks. also learnxinyminutes.com
>>
>>52304202
>
albumtag 

What the fuck, bud

At least make it album-tag so it's legal.
>>
>>52313517
I don't know your setup.

So freehostia needs to know your domain name so it can point to your files, you added your domain to them, good.

You added your domain to cloudflare, it copied all the DNS Records for you and gave you 2 or 3 nameservers which you are supposed to use.

Now you go into your namecheap settings and change your nameservers to the ones cloudflare gave you instead of using the ones of namecheap.

so cloudflare is now in charge of your DNS Records, anyone who connects to your domain gets to cloudflare, they get the IP of cloudflare which then gets proxied to the A record of your domain.

make sure ^ is set up.
generally, you don't seem to know how hosting works, so I doubt you have a real use of cloudflare anyway, so why bother with it?
>>
File: 1441303521857.jpg (36KB, 426x628px) Image search: [Google]
1441303521857.jpg
36KB, 426x628px
can someone get an entry level job knowing HTML, CSS, PHP/SQL,jQuery and javascript?
>>
Does anyone know of a good CMS for personal use? Thanks.
>>
>>52314345
wordpress?
>>
>>52314298
Yup. But you have to be not socially retarded and know what you're talking about.
>>
>>52314388
what would be the best way to build a portfolio to show what I can do? Ive tried making websites for friends (indie movie, photography bussiness, etc) but begging people for content has gotten tedious. is there a better way?
>>
>>52314345
Ghost?
>>
>>52314448
bid low on freelancing sites and get projects to work on, p easy if you dont mind working for free
>>
>>52314055
You know what you're right... I'm not going to mess with CloudFlare until later on when I have a reason to.

I switched back my nameserver dns to the ones provided by Freehostia.

I guess I have to wait up around 48hrs to see if my site is running.
>>
>>52314448
You could build open source shit and put it on Github. Plus you could make Bootstrap and Wordpress themes and add it to your portfolio.
>>
File: font.png (108KB, 461x374px) Image search: [Google]
font.png
108KB, 461x374px
Anyone know what font this is or a similar font? Whats a good place to find fonts?
>>
>>52316272
segoe ui light
>>
>>52316272
>sell up to 20 products

Oh man, they're going all out.
>>
>>52313882
i think <ablumtag> would work
>>
>>52316272
use WhatTheFont:
https://www.myfonts.com/WhatTheFont/
>>
Is there a point on learning advanced JS when jQuery exists?
>>
>>52317540
hahahahahaha
>>
You could make the image yourself, but I prefer css

<hr class="title-bar" />


.title-bar {
border: 2px solid #fff;
width: 100px;
}


Scaleable (change width to %), easily modifiable, and doesn't require another resource downloaded by the user
>>
>>52317540
>2016
>Using jQuery
>>
>>52317698
Do you idiots actually use vanilla JS?
>>
>>52317786
I use Jquery for DOM selection and css manipulation. I use advanced Javascript for... things... and stuff...
>>
Someone please motivate me.
>>
File: JUST DO IT.jpg (59KB, 2000x1000px) Image search: [Google]
JUST DO IT.jpg
59KB, 2000x1000px
>>52318701
Thread posts: 322
Thread images: 43


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.