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

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

I built the site from scratch to learn. My knowledge consists of css jquery html, our jackass webmaster decided he didn't want to host the site any further so now I'm learning trial by fire.

Adbot
ADBOT LOVES YOU

White Light
Dec 19, 2012

What are the go-to website communities to get the most feedback on your personal Web Design/Development projects? This is a good place, but I was thinking of somewhere where I could make my own thread that I could update with any projects/tutorials I decide to work on. This forum seems to be better equipped for one-shot questions and debugging fixes, but i'd like to find something that could hone in a bit more on my own personal coding struggles with a reasonably quick response rate, ya know? Just something for myself that isn't gonna step on everyone's toes whenever I have the occasional dumb question that needs some pre-established reference to get.

Any favorite communities out there?

darthbob88
Oct 13, 2011

YOSPOS
All right, this is probably a stupid loving question, but it's driving me up the wall. I've made a lovely little console app in C# that just catalogs my various forms of media to various storage options, mostly as practice using various cool new features and skills. I'm trying to build a lovely little MVC5 web frontend to display that catalog, for Babby's First Webapp. I have added the console app project as a reference in the web app, but whenever I try to add an API controller to do anything with that data, I just keep getting "There was an error getting the type ConsoleApp.DAO", with advice to rebuild the project. I have rebuilt both projects, multiple times, and the solution, and still I keep getting that same damned error. Every result on Google has either been somebody saying to just rebuild the project, or somebody else saying that they still have issues. I've got the project up on Github here, how many things am I doing wrong?

SixPabst
Oct 24, 2006

darthbob88 posted:

All right, this is probably a stupid loving question, but it's driving me up the wall. I've made a lovely little console app in C# that just catalogs my various forms of media to various storage options, mostly as practice using various cool new features and skills. I'm trying to build a lovely little MVC5 web frontend to display that catalog, for Babby's First Webapp. I have added the console app project as a reference in the web app, but whenever I try to add an API controller to do anything with that data, I just keep getting "There was an error getting the type ConsoleApp.DAO", with advice to rebuild the project. I have rebuilt both projects, multiple times, and the solution, and still I keep getting that same damned error. Every result on Google has either been somebody saying to just rebuild the project, or somebody else saying that they still have issues. I've got the project up on Github here, how many things am I doing wrong?

What I would recommend is abstracting your data classes out of the console app and into a class library project instead. Then reference the class library from your web app.

Something like

code:
-log-data
--Models
---TVShow.cs
---Porn.cs
---Movie.cs
---Album.cs
---Artist.cs

----

-log-web
--Controllers
--Models
--Views
I'll clone your project when I get home and give you a better answer but this is how I do a lot of my projects and would be worth trying. Not sure exactly why having a console app project is breaking things but it smells funny to me.

Also make sure both projects are compiling against the same version of .NET and confirm that you have references to EF and SQLite in the web app

SixPabst fucked around with this message at 01:17 on Sep 24, 2015

darthbob88
Oct 13, 2011

YOSPOS

mintskoal posted:

What I would recommend is abstracting your data classes out of the console app and into a class library project instead. Then reference the class library from your web app.

Something like
<snip>
I'll clone your project when I get home and give you a better answer but this is how I do a lot of my projects and would be worth trying. Not sure exactly why having a console app project is breaking things but it smells funny to me.

Also make sure both projects are compiling against the same version of .NET and confirm that you have references to EF and SQLite in the web app
I'm pretty sure it's not the fact that it's a console app, it's the fact that I'm doing something wrong when I try to reference it. Will try moving the data models out into a separate library, see if that's any easier to reference. Could probably also refactor things so the data classes contain their own methods for updating their catalogs, but that's more than I need right this second.

ETA: Moving everything to a class library worked, woohoo. Kicked an error briefly because the web app didn't have a connection string for the database, but that was easy to fix. Now to get the web app talking to the database, and then probably going to have to refactor the console app's functionality into the library. Tedious, but easier than getting battered by framework issues like this.

darthbob88 fucked around with this message at 05:08 on Sep 24, 2015

kiwid
Sep 30, 2013

I currently work in a corporate environment as the only webdev/programmer. I didn't originally start out in this role, instead I started out as a sysadmin. However, there just isn't enough work to keep me busy all day as a sysadmin so I started getting into the hobby of building web applications to ease other peoples job roles as well. Well... 5 years later and I have like 15 web applications that I'm managing all the while still doing my sysadmin responsibilities. I'm finding it really hard to keep web apps updated and some of them are suffering from software rot. Also, I've brought up the fact that they should split the responsibilities and hire a new person to do the sysadmin stuff but they refuse.

So, to alleviate this, I was thinking about combining all of the web applications into one monolithic web application. A lot of the web apps have similar tables like the branches tables, customers tables, users tables, products tables, etc. Is this a good idea or am I opening myself up to other problems I'm not currently considering?

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
To be honest, to alleviate the issue you should probably find a new job. Coming from experience, if your company is unwilling to hire another person they're not going to provide you the support you need.

The Dave
Sep 9, 2003

I was going to say something similar. Tell them you either need an intern or full timer to help out, cut down time spent on main thing some, or you're going to have to look for a new job and no one will be able to manage them.

If they find these web apps to be necessary and you're the only one that can maintain them you have some leverage.

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

kiwid posted:

I currently work in a corporate environment as the only webdev/programmer. I didn't originally start out in this role, instead I started out as a sysadmin. However, there just isn't enough work to keep me busy all day as a sysadmin so I started getting into the hobby of building web applications to ease other peoples job roles as well. Well... 5 years later and I have like 15 web applications that I'm managing all the while still doing my sysadmin responsibilities. I'm finding it really hard to keep web apps updated and some of them are suffering from software rot. Also, I've brought up the fact that they should split the responsibilities and hire a new person to do the sysadmin stuff but they refuse.

So, to alleviate this, I was thinking about combining all of the web applications into one monolithic web application. A lot of the web apps have similar tables like the branches tables, customers tables, users tables, products tables, etc. Is this a good idea or am I opening myself up to other problems I'm not currently considering?

Merging them could help some, if only as it will be a concentrated effort to clean up your code. However, if their purpose is not explicitly linked, maybe shouldn't have just One WebApp To Rule Them All. If there are some common tables talked to, maybe you could consolidate the data layers into a few DLLs and reference those instead of having the code in 15 places.

I would push to refactor the sites & look for a new job. You can then talk about how you merged them as part of your interviews!

kedo
Nov 27, 2007

Skandranon posted:

I would push to refactor the sites & look for a new job. You can then talk about how you merged them as part of your interviews!

Agreed. I've known a couple of people who were in similar positions to you in the past... sounds like your company either doesn't see the value in the apps you've created or they're just too cheap to hire another person. Either way, that's not the type of company you're going to be able to grow and learn with for much longer. You obviously have a fair bit of talent and drive, there are innumerable companies that would be excited to hire you. But why would your current company hire a new person when right now you're doing all this development work "for free?"

kiwid posted:

So, to alleviate this, I was thinking about combining all of the web applications into one monolithic web application. A lot of the web apps have similar tables like the branches tables, customers tables, users tables, products tables, etc. Is this a good idea or am I opening myself up to other problems I'm not currently considering?

This seems like it would be a logical next step. I'd be willing to bet that one of your big problems will designing an understandable UX. With so many tables, how do you make it obvious which one someone is looking at? How do they interlink, or do they? Will putting a one-size-fits-all table treatment harm or benefit the user experience?

kiwid
Sep 30, 2013

kiwid posted:

I currently work in a corporate environment as the only webdev/programmer. I didn't originally start out in this role, instead I started out as a sysadmin. However, there just isn't enough work to keep me busy all day as a sysadmin so I started getting into the hobby of building web applications to ease other peoples job roles as well. Well... 5 years later and I have like 15 web applications that I'm managing all the while still doing my sysadmin responsibilities. I'm finding it really hard to keep web apps updated and some of them are suffering from software rot. Also, I've brought up the fact that they should split the responsibilities and hire a new person to do the sysadmin stuff but they refuse.

So, to alleviate this, I was thinking about combining all of the web applications into one monolithic web application. A lot of the web apps have similar tables like the branches tables, customers tables, users tables, products tables, etc. Is this a good idea or am I opening myself up to other problems I'm not currently considering?

An update to this.

Today I was called into my bosses office totally unexpectedly and they are apparently branching off my roles and are going to hire someone. So umm... which one of you goons is my boss?

kedo posted:

This seems like it would be a logical next step. I'd be willing to bet that one of your big problems will designing an understandable UX. With so many tables, how do you make it obvious which one someone is looking at? How do they interlink, or do they? Will putting a one-size-fits-all table treatment harm or benefit the user experience?

I absolutely agree with you on this one. I've been thinking about this for a while but it seems to work in my head. I'm lucky that I have several friends that do the programming at a couple different ISPs and seeing the way they've implemented multiple functionality into one big web application.

kiwid fucked around with this message at 19:18 on Sep 24, 2015

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

kiwid posted:

An update to this.

Today I was called into my bosses office totally unexpectedly and they are apparently branching off my roles and are going to hire someone. So umm... which one of you goons is my boss?

So they are hiring a manager for you? Are you being transitioned into a full-time developer role? Do you want this?

Being passed over is usually a bad sign and it is unlikely there is anywhere to go now at this place. If you are transferred to full developer role, this is a good way to have a formal Developer title on your resume, but you should start getting ready to leave now. Maybe stay until you finish your refactoring, as it's a good resume builder, but since they just hired a new manager, they are unlikely to spring for any more money for you.

kiwid
Sep 30, 2013

Skandranon posted:

So they are hiring a manager for you? Are you being transitioned into a full-time developer role? Do you want this?

Being passed over is usually a bad sign and it is unlikely there is anywhere to go now at this place. If you are transferred to full developer role, this is a good way to have a formal Developer title on your resume, but you should start getting ready to leave now. Maybe stay until you finish your refactoring, as it's a good resume builder, but since they just hired a new manager, they are unlikely to spring for any more money for you.

No when I said "hire someone", I meant hire someone to take over the roles of either the programming side or the sysadmin side. Apparently they've decided to split the IT roles into software and hardware and have given me the option of choosing which direction I'd like to move towards. Overall, I think this is a good thing.

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

kiwid posted:

No when I said "hire someone", I meant hire someone to take over the roles of either the programming side or the sysadmin side. Apparently they've decided to split the IT roles into software and hardware and have given me the option of choosing which direction I'd like to move towards. Overall, I think this is a good thing.

Ok, that is better.

If you are choosing to go the Developer route, one thing to watch out for is making sure the role is transitioned fully. You don't want to end up effectively fixing all the mistakes new guy makes forever.

unlimited shrimp
Aug 30, 2008
Not sure if this is the right thread, but does anyone here know of a good/trustworthy SEO service? Brother-in-law is starting a business and asked if I knew anything about it, which I don't, but maybe I can funnel some money towards a goon or goon adjunct.

The March Hare
Oct 15, 2006

Je rêve d'un
Wayne's World 3
Buglord

unlimited shrimp posted:

Not sure if this is the right thread, but does anyone here know of a good/trustworthy SEO service? Brother-in-law is starting a business and asked if I knew anything about it, which I don't, but maybe I can funnel some money towards a goon or goon adjunct.

https://www.youtube.com/watch?v=iFOQXNT_T14

Pretty much SEO.

unlimited shrimp
Aug 30, 2008
Do I put the wax on the keyboard then or...?

Munkeymon
Aug 14, 2003

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



https://support.google.com/webmasters/answer/35769 is the only one that's not overpriced

(just tell him to use Squarespace for his site and they'll do anything legitimate for him)

me your dad
Jul 25, 2006

I'm trying to help create a printer-friendly style sheet. The page in question has a background image, with a header image overlaid on top of the background image. The client wants the header image to print (no problem). However, the existing header image has a lot of transparent areas, making it not print well.

Is there a way, strictly via CSS, to replace the header image? I have a non-transparent image to replace it with. I've done some reading and it seems it may be possible, but seemingly only if there's no background image already in place.

From what I read I tried:

code:
#HeaderImage1 {
content:url("http://www.sprisemedia.com/wp-content/uploads/2014/07/header_poly.jpg") !important;
}
It did not work. (That image is just a random thing found online - not what I'm using)

This is the immediate HTML around the image:

code:
<div style="background-color:#;">
	<img border="0" src="http://placehold.it/900x100" alt="" title="" id="HeaderImage1">
</div>
I do not have access to the HTML.

Munkeymon
Aug 14, 2003

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



Like this? http://jsfiddle.net/ra3us67c/

me your dad
Jul 25, 2006


It works great in the fiddle but when I try it on the page it doesn't print the replacement image.

This gives me a good start though. Thanks - I'll keep plugging away. This is for a page we use on Cvent (a meetings platform) and maybe they have something odd going on that would prevent it from functioning.

Munkeymon
Aug 14, 2003

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



me your dad posted:

It works great in the fiddle but when I try it on the page it doesn't print the replacement image.

This gives me a good start though. Thanks - I'll keep plugging away. This is for a page we use on Cvent (a meetings platform) and maybe they have something odd going on that would prevent it from functioning.

In Chrome, at least, the debugger/page inspector works on the print UI, too. It's a great way to remove ads from tickets before printing them, for example :)

me your dad
Jul 25, 2006

Munkeymon posted:

In Chrome, at least, the debugger/page inspector works on the print UI, too. It's a great way to remove ads from tickets before printing them, for example :)

All the 'Printer Friendly' button does is:

java script:window.print();

Which just opens the printer dialogue window so I don't get to preview the page with the styles.

Munkeymon
Aug 14, 2003

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



me your dad posted:

All the 'Printer Friendly' button does is:

java script:window.print();

Which just opens the printer dialogue window so I don't get to preview the page with the styles.

E: well poo poo it renders as a PDF :\

http://stackoverflow.com/questions/9540990/using-chromes-element-inspector-in-print-preview-mode instead - my bad!

Munkeymon fucked around with this message at 17:13 on Sep 28, 2015

IAmKale
Jun 7, 2007

やらないか

Fun Shoe

me your dad posted:

All the 'Printer Friendly' button does is:

java script:window.print();

Which just opens the printer dialogue window so I don't get to preview the page with the styles.
I was just working on a page's print CSS and was saved by Chrome's Media emulation:



Hit F12, then Escape to bring up the Console. Click Emulation, enable it, and then go to the Media section and check the CSS media box. So long as print is selected in the dropdown you'll see your page as it'll appear when printing. You can do this on any page at any time to see how that page would render when printing. This saves you from having to hit Ctrl+P every time you update your CSS.

me your dad
Jul 25, 2006

Due to limitations beyond my control, I had to muck around with the print-friendly CSS on a live event and I was just forwarded an email from someone who wound up with 130 pages of nothing but the header image I was trying to replace :derp:

Needless to say I'm done. It's for an internal client and they can rethink the way they set up these pages in the future.

(the problem was only happening when printing to PDF. when actually sent to the printer, it was fine.)

me your dad fucked around with this message at 20:05 on Sep 28, 2015

Khelmar
Oct 12, 2003

Things fix me.
I'm hoping for some advice. I've been helping a group manage their website (http://www.cldavis.org). I've added some basic features (newsletter archive, etc.), but one of the things I'd like to do is get rid of the stupid Flash menu / image gallery at the top and replace it with something that works on mobile.

What we'd all REALLY like to do is hire someone to revamp the website, but that's not really feasible right now (we're a poor non-profit).

As an alternative, I was hoping folks could point me in the direction of some premade code I could work on plugging in there to provide (mostly) the same function while ripping out the Flash.

I'm not too knowledgable on most of the current web standards, but I've done some programming and I'm not afraid to try stuff and see if it works.

Thanks in advance for any help!

Impotence
Nov 8, 2010
Lipstick Apathy
I know someone that will do it for free that wants some portfolio padding for simple tasks, hilariously enough.


How exactly is this managed right now? I don't see any flash loading on a browser with flash enabled.

v1nce
Sep 19, 2004

Plant your brassicas in may and cover them in mulch.
Same. Is that just on a specific page?

If you can get someone to help you out for free, then just squeezing the current nasties out of the page would be a plus, but there's a lot that's not good going on with that site. You're only going to be able to stem the bleeding so much.

How far do the tendrils of the site go? Like is there a lot of content that's unique and hidden away or is it just collections of generic stuff like newsletters, news and articles? I notice there's a store attached that looks like the embodiment of early-thousands web design. What does the analytics data look like? Many visitors? bounce rates? audience?
If you know what you're contending with, you (we?) can start figuring out a cheap, quick direction you can take the site in.

Basically I'm saying let us give you our best recommendations on burning it to the ground and rebuilding it right now because it looks like rear end and why would you want to spend your time learning to make sandcastles with turds.

Khelmar
Oct 12, 2003

Things fix me.

v1nce posted:


Basically I'm saying let us give you our best recommendations on burning it to the ground and rebuilding it right now because it looks like rear end and why would you want to spend your time learning to make sandcastles with turds.

As far as the flash goes, maybe it's browser-dependent, because when I edit index.html to remove the SWF include, the menu and the photo gallery go away, but I use Chrome on a Mac.

I'll be upfront and say we don't have a lot of analytics - this site was put together sometime in the late 90s - early 2000s, and not a lot has been done with it since. It was being run by a single person, who was also running classes, etc. I'm one of four people that was brought on to try and modernize things - we've started Facebook and Twitter pages, etc. However, we're all pathologists rather than web developers, which doesn't help. Our target audience is a group of 2,000 specialists as well as folks elsewhere that are interested in the field but not specialized - maybe 5,000 people total. This group is the clearinghouse for a lot of information that's hard to impossible to find elsewhere, as well as training classes for the specialty. Since most folks are just stopping in to see what classes or seminars are available, sign up, buy books, or get the syllabi for classes, there's not a lot of retention or repeat business.

The site has an SQL backend that keeps track of meetings, the photos in the gallery on the front page, etc. The eCommerce end is driven by Network Solutions.

I'm open to suggestions to raze it all and start over, although I don't know if the board will ultimately go for it. :)

DarkLotus
Sep 30, 2001

Lithium Hosting
Personal, Reseller & VPS Hosting
30-day no risk Free Trial &
90-days Money Back Guarantee!
I seriously don't see any flash either, or a photo gallery on the main page.

Khelmar
Oct 12, 2003

Things fix me.
Whoops, looks like I edited the wrong file. :suicide:

Impotence
Nov 8, 2010
Lipstick Apathy
this doesn't have a git repo and build server and continuous integration??

fuf
Sep 12, 2004

haha
I have some pretty urgent front end design / development work if one of you wants to earn some quick cash over the next 48 hours or so.

It's a big ecommerce site and I need to replace their early-2000s table-based front-end.

I've already built a basic structure using Foundation but I'd like someone with an eye for design to take over and make it look not poo poo. I just need help with the homepage initially. It's basically a single html template so nothing too complicated.

Impotence
Nov 8, 2010
Lipstick Apathy
Sent a pm, i'm out for a run right now on mobile so I'll reply when I get back I guess

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

Khelmar posted:

I'm open to suggestions to raze it all and start over, although I don't know if the board will ultimately go for it. :)

There isn't much value in keeping what is already there. It would be easier for someone to start from scratch than to keep fitting things into the current design.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

Biowarfare posted:

this doesn't have a git repo and build server and continuous integration??

build server and CI is probably overkill, but a git repo and a deploy.sh script are certainly in order...

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
I suck at UI/UX. I've got a nice API & backend with Django Rest Framework, super fast single page app using react.js & backbone, s3 & cloudfront for media, RDS & EC2 all setup, etc.

Now I want to make the site look nice and it's gotta be the hardest part out of all of this poo poo. It's easy to make it look like all the other sites that have some fixed blue bar at the top and the same set of icons we see god drat everywhere. Maybe I just need to spend some more time banging away at it and see if I can improve.

Thermopyle
Jul 1, 2003

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

fletcher posted:

I suck at UI/UX. I've got a nice API & backend with Django Rest Framework, super fast single page app using react.js & backbone, s3 & cloudfront for media, RDS & EC2 all setup, etc.

Now I want to make the site look nice and it's gotta be the hardest part out of all of this poo poo. It's easy to make it look like all the other sites that have some fixed blue bar at the top and the same set of icons we see god drat everywhere. Maybe I just need to spend some more time banging away at it and see if I can improve.

I always come to this point in projects and I either have to hire someone, or lightly customize something already existing.

Adbot
ADBOT LOVES YOU

Xarthor
Nov 11, 2003

Need Ink or Toner for
Your Printer?

Check out my
Thread in SA-Mart!



Lipstick Apathy

Xarthor posted:

Okay, so I have a newbie(ish) question and I wouldn't ask here but I've done a bunch of Googling and research and I can't quite seem to find anyone who has addressed this question.

I'm using WP to build a site for my buddy's band and I'm using the Moeisia theme. By default when the page loads it has a big picture that fills up the entire page and you have to scroll down to see the menu bar. It looks like this, currently:



I like the big picture, but I'd really like the menu bar to appear at least a little bit when the page loads initially, because I've currently shown it to a few people how it is and they're like, "Oh, I have to scroll down to see the menu bar. I thought it was just a static image" So basically I'd like for it to load more like this:



I've used the exact image size that the theme called for (1920x650) so it's not as though I've used an oversize image. Any ideas on how I can get the menu bar to appear when the user first loads the page? Here's the site for anyone who wants to see it live.
================================

streetlamp posted:

The size is being set via this bit of js in scripts.js

code:
jQuery(function($) {
	if ( $(window).width() > 1024 ) {
		var height = $(window).height(); 
		$('.has-banner, .overlay').css('height', height);
		$(window).resize(function() {
			var height = $(window).height(); 
			$('.has-banner, .overlay').css('height', height);
		});
	}
	$(window).resize(function(){	
		if ($(".header-image").css("display") == "none" ){
			var height = $(window).height(); 
			$('.has-banner, .overlay').css('height', height);
		} else {
			$('.has-banner, .overlay').css('height', 'auto');
		}
	});
});
You just need to subtract some pixels from the height variable like for example 40px
code:
var height = $(window).height() - 40;
Make sure you do it for all the instances that height is being set
==================

For some reason this no longer works. I just updated my theme (Moesia) and when I went back to set my scripts.js to subtract the pixels nothing happens! I've tried subtracting more pixels, less pixels, etc. Nothing seems to change. The bar doesn't appear on the screen no matter how many pixels I remove. It worked fine in the past, even when I updated Moesia and then went back and updated the scripts.js.

Is there something new in WP that's preventing this from working? I'm totally confused. HALP

Xarthor fucked around with this message at 20:10 on Sep 29, 2015

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