Jump to content

mkohlmyr

mkohlmyr

Member Since 21 Jun 2010
Offline Last Active Oct 13 2014 06:43 AM

#143717 Process of making a website

Posted by mkohlmyr on 08 August 2014 - 11:08 AM

The answer to this varies wildly depending on what you are developing. There is no definitive process.

 

While your system is fine for a small website, it is not a good process for a large scale web application. There the focus becomes overreaching structure of the application, design patterns, data-structures, database and services interaction. The front-end becomes largely a separate process, something that can be worked in parallel without affecting (or delaying) back-end development.

 

Most of those things. The things that actually make that web application tick, would live under 'etc' in your list.




#143610 Apply for a Webmaker Badge

Posted by mkohlmyr on 16 July 2014 - 08:23 AM

While for now it seems a little gimmicky, I would say it speaks to the potential for large scale change in education and accreditation.

 

I haven't read up enough on the Mozilla project yet to see where the project is at but it immediately strikes me as an incredibly powerful thing to be able to provide something along the lines of electronically signed accreditation in a standardised format.

 

If you have a certificate authority (or several) that is restrictive enough to instil a certain degree of trust in the issuing institutions and you have an open agreed upon standard format all of a sudden you have a common language to speak across hiring / admissions / project management (skills in your organisation) and you effectively make resume sites as well as (bad) recruiting agencies redundant over night. Particularly if you maintain a distributed ledger a la bitcoin, now you have a queryable dataset of skilled workers. You know exactly what you are looking for and you know exactly what you are getting.

 

This is actually a fantastically interesting opportunity. I would be super excited to see it pursued.




#142493 Only submit unchecked checkboxes in GET form

Posted by mkohlmyr on 25 March 2014 - 08:40 AM

Personally I would probably just use JavaScript to intercept the form submission, run a filter over the the inputs, only keeping the unchecked. Generate a querystring and send the ajax request manually.




#141164 Help me understand the modulo operator

Posted by mkohlmyr on 17 January 2014 - 05:22 PM

You can think of it as wrapping numbers around another number.

 

If you imagine the integers 0 -> (n-1) on a line with a single step between each, now you make another step (n-1) -> 0.

(Drawing this out for a small N and acting out the steps should make it really obvious what's going on)

 

29 % 26 means you take 29 steps from zero and the result is the number you end up on.

 

Now say that each of the resulting numbers is an index for a letter in the alphabet. 29 % 26 = 3, Alphabet[3] = D.

 

What happens if we instead said (29 + 6) % 26? Well we get an offset from the original alphabet which still wraps around in the same place. (29 + 6) % 26 = 9, Alphabet[9] = J.

 

We now have a cipher where D is represented by J.

 

 

edit: I have a weird feeling I screwed this up somehow. I will double check in a minute lol.

edit2:Double checked, I wasn't being stupid as far as I can tell.




#141163 Light Table

Posted by mkohlmyr on 17 January 2014 - 03:52 PM

Yes, if you can locate default.behaviors you'll find those settings around the middle of the file.




#140874 Storing Reddit Style Votes

Posted by mkohlmyr on 06 January 2014 - 10:54 AM

I would fully normalize the database layout and also cache recent votes in a redis instance. Pretty sure that is the most maintainable way of storing it while also being very fast for common or repeated lookups.

 

That might be what the poster above is talking about since he seems to have fleshed out the problem but I'm not in a read-y mood right now!




#140334 [Designer/Developer] League of Legends coaching/boosting

Posted by mkohlmyr on 05 December 2013 - 06:38 AM

"The profit will surely come" - said no successful business ever.

 

Also you don't seem to mention a payment system anywhere in your post, nor indeed any of the back-end development that seems inevitable.

 

Also. If you are looking for a developer and a designer to build the whole thing for you, and are having someone else do the actual elo-boosting - why in the world do you deserve 50%? How about I build the whole thing myself and do a 90/10 split with the booster? 13% between two (at least) developers / designers, "maybe, but not guaranteed, we can talk about it but we probably wont sign a contract so fuck me right" is a completely ridiculous proposition. You need to get serious. Do the maths on recurring costs vs revenue and make an honest assessment of what a fair revenue split would be in terms of sweat equity etcetera.

 

 

ALSO, you keep posting these ideas in which you seemingly do nothing but come up with the idea - "but it will make money because magic and if you're lucky I'll give you some when you've built it for me"!

 

 

End of rant. Also.




#140229 How many undergrad CS students?

Posted by mkohlmyr on 28 November 2013 - 06:15 AM

To add some colour to the discussion I'll go out on a limb and say don't immediately throw yourself into work with advanced courses and extracurricular research projects..

 

Join a sports club - maybe two or three. Make friends - not with professors. The social aspects of university are the ones you are more likely to have regrets about after the fact. There is no better time to make friends for life and it is the perfect time to design the lifestyle and build the habits that you want to keep for the rest of your life. Grow and mature as a person. Academic excellence is secondary.




#139087 How to validate a contact form in HTML website?

Posted by mkohlmyr on 22 October 2013 - 03:29 AM

Don't just rely on html5 or javascript though. Ever. Especially for a form that can send email. You need server-side validation (PHP in your case). Client-side is just a cherry on top.




#139072 Ghost - A Node.JS Blogging Framework

Posted by mkohlmyr on 21 October 2013 - 07:08 PM

I can't offer any examples as far as code, but I can tell you that it is pretty darn good at building horizontally scalable services that communicate in JSON over zmq.

 

It is very fast and lends itself incredibly well to connected services. We're currently serving million(s) of page-views per day with each page view generating one or more events, all of which move through multiple node services where they generate signals or get merged in various ways before being passed off to a database. If I'm not mistaken all of our back-end queues for data are written in node, only some of the heavier data-processing tasks are Python - for various reasons. So yeah. It's pretty good for service architectures where you're doing a lot of queueing/load-balancing and streaming of data. We also use it for some of the monitoring / negotiating between services (keeping up to date tables, passing keys, et cetera).




#138970 [Frontend] developer for yacht charter booking site

Posted by mkohlmyr on 16 October 2013 - 04:27 PM

Splash page looks nice and the idea sounds solid, nice to see a UK startup on here as well!

 

Would be interested but I'm very much taken for the time being :) And not London based either, although hopefully this time next year that will have changed.

 

On a separate note, I walked right by your office last tuesday!




#138352 Time to learn me some web code

Posted by mkohlmyr on 13 September 2013 - 05:08 AM

Welcome!

 

Java is a perfectly good object oriented systems language. It is however quite verbose and doesn't lend itself particularly well to rapid prototyping or development when compared to other languages. There's a lot of good to learn from Java and a lot of bad to take away as well. Ultimately though it's a strictly typed, un-flexible class-centric language - which is great for some applications but I don't think web applications are among them. If you're writing enterprise software to spec as a consultancy it's probably a great language to work in.

 

If you like the JVM and want to keep doing software development I would recommend trying out Scala or Clojure. They're very different from Java conceptually but can make use of some of its facilities.

 

In short, whether Java is worth knowing or not depends on what you want to do!




#138165 [help] Stuck in a hotel room, and...

Posted by mkohlmyr on 06 September 2013 - 07:07 AM

You're in an airport. They definitely have a bookshop. Read something!


  • Mo3 said thanks


#138017 [solved] Regex matching

Posted by mkohlmyr on 29 August 2013 - 04:55 PM

http://jsfiddle.net/L83bg/4/

 

 

[edit]

It seems like you want to to be more inclusive than your first post indicated though so if that's the case something like the previously posted regex would be more accurate. The set of possible valid urls is quite large and diverse. (subdomains, query-strings, - inside but not at the edges of the domain name)

 

also i updated it with the restriction of 3-63 characters:

http://jsfiddle.net/L83bg/6/




#138013 [solved] Regex matching

Posted by mkohlmyr on 29 August 2013 - 02:48 PM

If what you want to match really is as restrictive as you've said then this should do it for you

http://jsfiddle.net/L83bg/3/