user2909019

1

votes
1

answer
1.1k

views

React-router: Passing props to children

I'm trying to learn React by building a very basic 'portfolio' site with react-router. My main components are: App, Work, Project and ProjectDetail. On the 'Work' page you should be able to see all of the project thumbnails and titles. Clicking on a specific project should route you to that project'...
user2909019
0

votes
0

answer
2

views

VeeValidate multiple password constraints

I'm wondering if it's possible to have multiple password requirements passed to VeeValidate in order to display which requirements a user is missing. For instance, if we require that a user's password should have at least one uppercase letter and at least one number and be at least 5 characters long...
user2909019
6

votes
1

answer
4.4k

views

React Router deep linking

This is my first time using React and React Router, and I am running into some deep linking issues. I've build a simple SPA, and with the help of React Router, I can navigate to mysite.com/work, mysite.com/about, and mysite.com/work/:projectid. I have no problem navigating to these pages if I start...
user2909019
3

votes
3

answer
796

views

Adding names and assigning data types to ASCII data

My professor uses IDL and sent me a file of ASCII data that I need to eventually be able to read and manipulate. He used the following command to read the data: readcol, 'sn-full.txt', format='A,X,X,X,X,X,F,A,F,A,X,X,X,X,X,X,X,X,X,A,X,X,X,X,A,X,X,X,X,F,X,I,X,F,F,X,X,F,X,F,F,F,F,F,F', $ sn, off1, dir...
user2909019
3

votes
1

answer
701

views

Maintain aspect ratio with max-height

I'd like to have a div maintain it's aspect ratio while also having a max height. I have been able to maintain the aspect ratio in most cases, except when I hit my media query: @media only screen and (min-width: 59.063em) { #wrapper { max-width: 59.063em; } } When I hit the max-width and make the si...
user2909019
1

votes
1

answer
272

views

Semantic HTML for list of events

I have an Events page on my site that simply lists a bunch of upcoming events. The button would just link out to an external website. The design/content will look something like this: How would I go about making this semantic? Currently, I'm doing something like this: Event Title April 21-23, 2017...
user2909019
7

votes
2

answer
3.8k

views

Installing Jekyll on Ubuntu 14.04

I've been having some issues installing Jekyll on Ubuntu. Here are some of the versions I have: trevor~$ ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux] trevor~$ gem -v 2.5.1 trevor~$ rvm -v rvm 1.26.11 (latest) by Wayne E. Seguin , Michal Papis [https://rvm.io/] However, when I t...
user2909019
1

votes
2

answer
116

views

Python noob: manipulating arrays

I have already asked a few questions on here about this same topic, but I'm really trying not to disappoint the professor I'm doing research with. This is my first time using Python and I may have gotten in a little over my head. Anyways, I was sent a file to read and was able to using this command...
user2909019
5

votes
3

answer
2.5k

views

Setting Jekyll environment for GitHub Pages

I am building a site with Jekyll that I am hosting on GitHub Pages. I would like to be able to set the JEKYLL_ENV to 'production' (JEKYLL_ENV=production) when I deploy to GitHub Pages so I can do something like this: {% if jekyll.environment == 'production' %} {% include googleAnalytics.html %} {% e...
user2909019
2

votes
3

answer
164

views

Semantic HTML best practice for a screen reader

Suppose I have a list of article previews on my homepage with the following design: where there's an image to the left with all of the content to the right (region, date, title, abstract, and a Read More button that isn't in the image). How would you go about writing this semantically and accessible...
user2909019