Forum Replies Created

Zaragoza Member

I would look into creating a CSV file of all the movies. So the CSV would be :
movie_title, movie_image, movie_imdb_link

Repeat a line like this for all 200 movies

I’m a php developer so I would use that.. but it requires a server running php .. so might not be ideal but it then has a function ‘fgetcsv’.
Which you can use something like:


';
      echo '
'; echo ' '; //$movie[2] == 3rd value in each csv row == imdb link echo ' '; //$movie[1] == 2nd value in each csv row == image link echo '
'; echo '
'; } fclose($file); ?>

That’s one quick example – its all untested but should work.

Zaragoza Member

Try to have a destination is mind with your programming.. I mean have something you want to achieve, something useful and work towards that. A tool for sprite packing, a game of pong, a tool for traffic light management, anything to give you context to the code.

Zaragoza Member

It really depends on what kind of programming you intend to do.
Low-level languages like ASM, C or C++ tend to be more complex but have significant performance advantages over higher-level languages. These languages are usually used if you intend to write low-level or time-critical software (examples would be: drivers, operating systems, games, real-time on embedded systems, …)
Higher-level languages tend to be easier to learn and use, leaving out a lot of details to the interpreter or virtual machine. Amongst these languages I quite like Python, Ruby and Lua. These languages are used for things like rapid-prototyping, scripting, dynamic web programming and server-side programming
I personally consider languages like C# and Java to be in between those two categories, as they remove some of the complexity of low-level languages while also trying to give the programmer enough options to create fast running applications. The most common use for those languages is server-side applications where performance is required (and you don’t want to deal with things like memory allocation), though they are sometimes also used for writing desktop applications or games (eg XNA)

If you could maybe specify what interests you most in programming we can give you better recommendations Smile
[Remember: for every task there is an ideal tool – there is no such thing as a programming language which does everything well]

Zaragoza Member

I’m going to take a wild guess and say you need to change the default FilesMatch rule to force your own max-age?

Not really familiar with the syntax, but I’m guessing something like this:

#Change this:
# default cache 1 year = 31556926 s
Header set Cache-Control "max-age=31556926, public, no-transform, must-revalidate"

#To this:
# default cache 1 second
Header set Cache-Control "max-age=1, public, no-transform, must-revalidate"

Or add a FilesMatch tag after all the others, but I guess this would technically be slower to process than just specifying the default as above:


# cache for 1 week = 604800 seconds
Header set Cache-Control "max-age=604800, public, no-transform, must-revalidate"



# cache image files for 1 month = 2629744 seconds
Header set Cache-Control "max-age=2629744, public, no-transform, must-revalidate"



# cache fonts and media files for 1 month = 2629744 seconds
Header set Cache-Control "max-age=2629744, public, no-transform, must-revalidate"

# NEW SECTION

# cache fonts and media files for 1 second
Header set Cache-Control "max-age=1, public, no-transform, must-revalidate"

Oh and one last thing, the Content-Type response header is used for rendering (the request header Content-Type is used for transforming the payload for processing) so /my-page/ can be application/xml, text/html or whatever and the page extension could be something else like .pdf or .whatever … It is handy for dynamic pages.

Not an expert in these things, so forgive me if my terminology is incorrect.

Viewing 4 posts - 1 through 4 (of 4 total)
en_USEnglish