r/mylittleprogramming • • Aug 08 '12

Best way to learn web design?

0 Upvotes

Hey guys,

I work in marketing, and it seems like more and more of the marketing field is moving torwards Internet based marketing. I manage things like social media (Facebook/Twitter/Pinterest/etc.), write content, do site troubleshooting: basic HTML edits like changing H1's, meta's and titles; and some basic CSS and PHP adjustments.

However, it seems I'm always waiting on a designer or a coder. Wouldn't it be easier to code these things myself? I already know the fundmentals of programming (loops, booleans, prntln, basic java, etc.)

Most of the sites I deal with are Wordpress backended; designed in Photoshop and coded in PHP and CSS. To give an example of what I'm looking to do, this is my main client at work. Something at that level of comptency.

So what would I be getting myself into trying to learn a language / coding? What are the best resources and methods; and what's the general timeframe on learning something like this?


r/mylittleprogramming • • Aug 12 '13

Someone with HTML knowledge should PM the website owner of this and help him/her out.

Thumbnail
bronythemovie.com
0 Upvotes

r/mylittleprogramming • • Nov 02 '12

ANY experienced/actively programming C++ programmers here?

2 Upvotes

Title says it all. Just wondering.


r/mylittleprogramming • • Jan 08 '14

Need help installing pony emoticons on a subreddit.

2 Upvotes

Can someone perhaps see the thing I'm doing wrong?

I have managed to get flairs working just fine but emoticons aren't wanting to have any of it.

Currently i'm following this tutorial

I have tried a few ways to test it and get it to work, perhaps someone can point me in the right direction:


emotes upload

v1:

.md a[href^="#"] 
{
     background: url(%%emotes%%) no-repeat top left;
}

.md a[href="#archie"]{ background-position: 0 0; width: 70px; height: 70px; } 

(I'm guessign this way would mean typing [](<Hashtag>archie) would = a emoticon?)


v2:

 a[href^="#/"]
{
     display: inline-block;   
     background: url(%%emotes%%)
} 

a[href='/archie'], .fair-archie 
{ 
     background-position: 0 0; width: 70px; height: 70px;
}

I'm new at this, so I basically have no idea what I'm doing.

The subreddit I'm working on can be found here.


r/mylittleprogramming • • May 08 '14

My buddy posted this on Facebook

Post image
25 Upvotes

r/mylittleprogramming • • Sep 07 '12

Hello, mylittleprogrammers!

4 Upvotes

I actually noticed this sub a few weeks ago, but I hadn't taken the time to stop in and say hi...so, I'll introduce myself! So...ummm,hi. .

Let's see... I'm a moderately skilled programmer, but kinda a jack of all trades. I've done everything from binary (no seriously, I took a 102 class that started out by assembling your own instructions for a RISC VM) to C++ to Python, along with a fair bit of web development, and probably a dozen other languages infrequently.

Most recently (for fun) I've been building www.sscs6000.com because I wanted to learn AJAX stuff and contribute to the community. I'm doing some programming for my graduate work, but that's semi-secret-squirrel stuff, so I'll just say it's C++ on embedded systems, for now.

So...hi MLProgrammers.


r/mylittleprogramming • • Feb 26 '12

cowsay wrapper for ponies

Thumbnail
github.com
4 Upvotes

r/mylittleprogramming • • Sep 06 '12

Check out my script that turns pictures on any page into ponies (x-post from r/mylittlepony)

Thumbnail imageponify.com
5 Upvotes

r/mylittleprogramming • • Nov 04 '12

Thought this belonged here.

Thumbnail
youtube.com
6 Upvotes

r/mylittleprogramming • • Nov 09 '12

Anyone wanna help make my game?

6 Upvotes

I need programmers to help me make my game, which will be an RPG tile based game in C++ and SFML. I will be back home on Monday, so if you're interested and have a github account, leave your username here.


r/mylittleprogramming • • Jan 25 '14

New Game: Magic Hexagon

7 Upvotes

Video: https://www.youtube.com/watch?v=aDpzdW4ODCM

Magic Hexagon is a game that boils itself down into two simple concepts: reflexes and endurance. The player is pitted against a collapsing, spinning level with only the left and right arrow keys to use to avoid their impending doom. Add in a trippy chiptune soundtrack, gradually increasing difficulty, and flashing colors, and you end up with a brutally hard twitch-reflex experience. Oh, and it spins.

More info: http://inderpxar.tumblr.com/post/74456368889/introducing-magic-hexagon

Download: https://dl.dropboxusercontent.com/u/31816885/magichexagon.zip


r/mylittleprogramming • • Oct 21 '14

Pony Twitterbot

Thumbnail
twitter.com
7 Upvotes

r/mylittleprogramming • • Feb 22 '13

Improve your debugging... by using your pony figurine. [replace duck with pony](x-post from TIL)

Thumbnail
en.wikipedia.org
26 Upvotes

r/mylittleprogramming • • Sep 17 '16

Anyone use this?

Thumbnail
orgmode.org
9 Upvotes

r/mylittleprogramming • • Jun 21 '12

Mane6 develop software for Celestia [emote comic]

9 Upvotes

I hope all of you have emote scripts for your browsers, at least with mane and MLAS1 emotes.


OK girls, I've got a letter from the Princess, she wants us to develop software for a Kingdom Management System!

Uhm, but does anypony of us know how to program?

No.

Don't worry, we can learn!

Yeah, that can't be too hard.

But there are so many programming languages, which one should we choose?

IDEA! We meet here again in a week and everypony says which language they chose, so we can discuss it!

Great idea, Rarity! Let's do it!


ONE WEEK LATER

Okay, so everypony has looked for a language. What've you got?

Ah asked mah Granny and she said all the serious programs should be written in C.

But in C it's very easy to introduce bugs into code. We're beginners, and we're writing for the government. Shouldn't we choose a safer language?

What do y'all mean by “not safe”? It's tons of times safer than assembly!

Twilight is right. We need a simple language. That's why I chose Pascal.

Seriously, Pascal?

Yeah! It's pretty easy, so it's ideal for us, and pretty fast, so it's ideal for me!

Pascal is a barbaric, uncouth language. It has horrid syntax and typing long keywords would be bad for my hooves.

But you type with your horn!

Anyway, I found a language that not only is elegant, but also its name matches my cutie mark: Ruby!

Ruby? That is like the unfastest language out there!

Be quiet! I have a solution!

An' that is?

Haskell! It's both elegant and fast!

Ah think Ah've heard that name before...

It's a purely-functional language with non-strict semantics, based on lambda-calculus—

Hold yer horses, Twilight! Don' try to muddle the issue with yer fancy mathematics!

Okay, so what else? Fluttershy, what do you suggest?

Uhm... C#.

And why C#? Is it fast? Is it easy? Is it fancy so Twilight will shut up?

Hey!

I'll tell you the story from the beginning. I was at the bookstore, browsing programming books. Then a stallion came over, asked me if I need some help, I panicked, said no, grabbed the thickest book, paid for it and ran home.

That's the lamest reason ever for picking a language.

Are you done? My turn?

Yes Pinkie! I knew I can count on you. What did you choose?

LOLCODE! Because D'UH! all the other languages are so boring, and LOLCODE is fun!

the_fun = the_fun * 2

Oh no! Princess Luna is here and we haven't even started yet!

I'm here, too!

I'm sorry, Princess, but we can't decide on the language! We spent this week on research and we can't agree!

Wait, you didn't know what language to use? I thought it was obvious.

It is?

I control the Sun, right?

Yes but what does it have to... Oh shit, right.

Right. Java.


r/mylittleprogramming • • Mar 25 '12

Best CPAN module ever.

Thumbnail
search.cpan.org
9 Upvotes

r/mylittleprogramming • • Dec 23 '13

I don't know what this is, but I really like the name

Post image
9 Upvotes

r/mylittleprogramming • • May 24 '14

Easter Egg in an update coming to my mod VoxelCam. When the subreddit is "mylittlepony" Karma pops up

Post image
10 Upvotes

r/mylittleprogramming • • Dec 10 '13

The only proper use for the GOTO statement

10 Upvotes
10 PRINT "PONIES"
20 GOTO 10

r/mylittleprogramming • • Oct 05 '12

EQD Editorial - FiM++, a pony programming language

Thumbnail
equestriadaily.com
12 Upvotes

r/mylittleprogramming • • Sep 26 '12

Would anyone be interested in Livestream programming tutorials?

12 Upvotes

EVEN NEWER EDIT: The date has been chosen: Python on 10th, Java on 12th, Haskell on 13th, other ones maybe later. See this post for more info.


EDIT: I'm posting here a survey: https://docs.google.com/spreadsheet/viewform?formkey=dGM2eHlzQnVVbUVjWTRYTEVJeUpzaGc6MQ

I'm also sending this link to all people who have expressed their interest in the comments on either sub.


Hi guys.

Several things changed in my life lately:

  • I bought a new, faster laptop;

  • I moved away and I now live alone;

  • I finally figured out how to run Procaster on Linux;

  • and I've got a job, but it's irrelevant to this post.

Anyway, to celebrate all these changes and also just for fun, I decided that, if there's any interest, to organize a livestream tutorial on some kind of programming.

When?

Somewhere in the next week. I haven't picked a date yet, but I've picked the hour:
22:15 UTC, i.e. 3:15pm US Pacific, 6:15pm US Eastern, 23:15 Britain, 0:15 Central Europe, 2:15 Moscow, 7:15 Japan, 8:15 Australian Eastern.
(Some of these might change due to daylight saving time – damn you, October! In any case, Central European is the reference point.)
Length of one session: 2–3 hours, maybe longer if you manage to keep me awake.

Why? 'Coz my mobile data plan has no bandwidth limits between midnight and 8:00. Don't worry, I've got 1 Mbps up, 3 Mbps down, so the stream will have a decent quality.

Where?

http://www.livestream.com/vytah

What?

Now that depends on what you want!

Sadly, I'm not that good at game making, and I think the web stuff is boring, so... I've got following choices for you (in no particular order):

  • Intro to Java: writing silly GUI programs – a pretty normal course on Java. There will be some Swing involved, maybe I'll dig out my old uni Java projects and see what we were doing back then. I remember that one of our first assignments was an Asteroids!-like game, and then we were trying to make a remote desktop client & server. Fun times.
    Note: I plan to use Netbeans, because it's easier for beginners, and Java 6, because not everyone uses 7.

  • Intro to Haskell: parallel computing and writing an optimizing Brainfuck compiler – for all the nerdier types out there. It's gonna be all about how a language designed by smart people is cleverer than that written by a dumb corporation. Also, a basic survival kit for those more elitist /r/programming discussions. But really, it will be about how to have static typing without writing types, how to separate doing I/O stuff from computation, how to stop messing up your own data, and how to use all of these to make programs easy to run on multicore machines.
    Note: I plan to use GHC 7-something, and probably no IDE. The only Haskell IDE that somehow works is Leksah, but it's PITA to install.

  • Intro to Python: how to make a Reddit bot – seriously, this is the only reason I use Python these days. Python is pretty easy to learn, has powerful libraries, but it's slow and doesn't scale on multicore machines at all. It's a perfect language for beginners and for small silly projects. Like Reddit bots. Also, there's /r/botcirclejerk , a subreddit made specially for bots.
    Note: I have no idea if I should use some IDE or not, but I'm sure I'll be using Python 2.7.

  • Intro to Inform 7: writing interactive fiction games (with ponies or not) – while not many of you might be fans of this genre of video games, those who are probably always wanted to make one themselves, only to stop while still writing the engine. Inform not only provides you with a powerful parser, but also with a library of default responses and one of the easiest to read, but hardest to write programing languages out there. The source code reads like English, but writing the correct English sentences to satisfy the parser is hard. Luckily, I'm here to help.
    Note: Interactive fiction is the cheapest way to participate in the My Little Game Jam if you can't do art but you have ideas for the plot.

  • Intro to Bash: how to make your life easier (if you use Mac or Linux) – I have no specific idea about this, but I'll dig out my own scripts and see what commandline and scripting tricks I could show. If you use Windows, you can install Cygwin to have some Bash experience.
    Note: starting Bash scripts with #!/bin/sh is evil.

  • Intro to Scala for Java/C# programmers: probably the same topics as in Haskell and Java courses – this is the only suggestion for those who have some experience (and by some, I don't mean I compiled a “Hello world” once). Scala is Java made better, Haskell made practical, or Ruby made fast. But it's not an easy language; it has so many features you can't learn it from scratch from one silly stream.
    Note: Scala 2.9.x and either Eclipse or IntelliJ IDEA, you choose. No SBT because there's no time for it.
    Note 2: If you want to learn Scala from Martin Odersky, its creator, there's a free course on Coursera: https://class.coursera.org/progfun-2012-001 and there's even one day left for the first assignment.

As you can see, most of my suggestions are for beginners, but some programming experience would be handy, because explaining to ten people what a variable is would be quite painful– oops, I forgot what subreddit I'm on, it won't be that bad.

So, which one should I do?
Or maybe several of these?
Or maybe I should tweak those plans a little?
Or maybe do something different (but don't ask me about Javascript/PHP/C#/Actionscript, I don't do these)?


r/mylittleprogramming • • Oct 06 '12

My Little Game Jam is a go! Theme: Chaos

Thumbnail mylittlegamejam.com
13 Upvotes

r/mylittleprogramming • • Jan 30 '12

Here's a shirt I made a while ago and wear at every opportunity!

Post image
13 Upvotes

r/mylittleprogramming • • Dec 09 '12

My Little Game Engine

13 Upvotes

http://www.youtube.com/watch?v=xDiZHIk1GqA&feature=youtu.be

Next steps:

  • Actually get the pony to move through WASD input

  • Create a walking animation for a pony

  • Toggle 3rd person / 1st person view

Just a side project from school.

Some aspects of the Engine.

  • Data Driven (Lua and XML define most of the work)

  • Framework usage

  • Clunky as hell right now

  • Documentation is laxing

Source and assets available @ github but it takes a lot to get started, and right now it seems to only work on Linux (weird MSVC compiler issues).


r/mylittleprogramming • • Apr 19 '15

Particularly Perplexing Programming Puzzle #2 : Minesweeping

13 Upvotes

It's time for another programming puzzle. Yay!

This puzzle will run for three weeks or until enough answers have been submitted that I can compare and contrast between them in the solution thread -- whichever comes later. This means that you're guaranteed at least three weeks to solve it, and if you want to see more of these you'll have to actually submit a solution! As people (hopefully) come up with solutions, I'll update the current leader listed later in this post.

This puzzle is a bit similar to the previous one. Don't worry, the next one will be something completely different.

The Puzzle:

Submit your solutions in this thread or by PM. If you submit a solution it's not final as long as the puzzle is running, so you can totally submit an improved version later.

The description of this puzzle is simple: write an AI to play the game of Minesweeper. There are a few different variations on the rules for Minesweeper, so for this puzzle let's settle on the version commonly included as part of Windows. You can also play it online here. As in the last puzzle, I'm sure you can look up other people's solutions to this one on the net, so don't do that unless you want it spoilered. If you do look up something interesting though, please link it here so we can all learn from it!

Here's the rule set in a bit more detail. The game place on a grid of squares. All of the squares start out hidden. Each hidden square might or might not contain a mine. The player can click on a hidden square to change it to a visible square. If the player clicks on a square containing a mine, they lose. Otherwise the square will turn to visible and show a number between 0 and 8 indicating the total number of mines surrounding that square. The player wins when the only remaining hidden squares are the ones containing mines. To avoid having the player lose on their very first click, it's guaranteed that none of the squares surrounding the very first square the player clicks will contain a mine. The mines are distributed randomly throughout the remaining squares.

The quality of your AI will be evaluated by what percentage of games it wins on four different difficulty levels, corresponding to the difficulty levels in Microsoft's Minesweeper, plus an extra super-easy difficulty for debugging:

namerowscolumnsnumber of mines
debugging991
beginner9910
intermediate161640
expert163099

Now, I'm sympathetic to the fact that this puzzle involves a fair bit of coding before you can even start to write an AI, so I've provided some Python code implementing the game of Minesweeper, an example AI, and a utility method to test a solution method and print out its score.

If you put both of these files in the same directory, then you can run the exampleSolver.py file. By default it'll test my example AI and print out its score, but if you look at the file there's a boolean flag you can modify to play yourself using a really crappy text interface.

I put extensive comments in both of the above files to help you in using them, so if you decide to use these files I really recommend reading through them to get an idea of what sorts of things I've already provided for you. I'll also try to answer any questions you have, and address any bugs you find. They're just provided an a convenience to you, so feel free to modify them however you like, or not use it at all.

Current leaders

Submit a solution better than anyone else's, and I'll update this with your name and scores.

Currently, it's a tie!

/u/GrayGreyMoralityFanscores
debugging100%
beginner94%
intermediate79%
expert24%
/u/SafariMonkeyscores
debugging100%
beginner92%
intermediate77%
expert25%

Honorable mentions

namedebuggingbeginnerintermediateexpert
/u/Kodiologist100%92%55%5%

Example AI

These scores are for the example AI included in the sample Python code. As you can see, it's pretty terrible, and can't even reliably solve the debugging difficulty. I'm sure you can do much better!

/u/phlogisticscores
debugging80%
beginner1%
intermediate0%
expert0%

Previous puzzles:

  1. Heads Up (solutions)