Forum Replies Created

Adan Member

The first thing to remember is that the language is not really relevant: a programmer knows how to program and will learn any new programming language or library as needed.

However, as you correctly point out, you have to start somewhere. I would always recommend C since that’s much closer to the hardware than other languages. It teaches discipline – if you don’t follow the rules (which are not enforced by the language) you can do all kinds of weird stuff, particularly improper memory overwrites. It also has the basic language structure followed by pretty much all high-level languages, C++, Java, C#, etc. Of course, you won’t ever become good at a language until you have used it to create a working application that delivers a function that a user wants – the journey to actually making a program do what it’s supposed to without the user breaking it is a very powerful learning experience.

After that, it’s just a question of getting enough real practice and experience to make programming just flow.

Adan Member

I’ve never heard of a B.A.Sc., but the course looks promising just by looking at the module schedule.

There are developers from all sorts of backgrounds in the industry – both young and old, graduates and some with only high school (and lots of experience).

I think one important thing you need to know is that a degree won’t necessarily let you create games and cool stuff – it will only help you to understand and manage the processes involved in creating games and cool stuff. You could learn all the necessary stuff for free online, but unfortunately you mostly need an official qualification to do it as a career. The one cool thing you can do with this degree is mess around with electronics (by looking at the course content). Raspberry Pi, Arduino and similar boards are awesome for all sorts of cool projects.

You’ll need to spend time learning a language or two (I see they do include object oriented languages in the course, but typically they don’t go into enough detail). Maybe contribute to an open source project.

Adan Member

Progress Information is the bootstrap framework

http://getbootstrap.com

They should be used as they are and any changes should be placed on a separate css file.

If you want to get the particular above css files used by github, then load the script “index.html” on your browser, right click and select “view source”. From there, just click on the css file and you will get it’s source.

Adan Member

I learned back in the early 1990s on VAX, mainframe & PC platforms learning to develop in Visual Basic, COBOL & BAL/HLASM (mainframe assembler) along with these systems’ internals & utilities. I guess I’m dating myself here. Smile I used to spend hours in the college computer lab just for the love of it with my nose buried in manuals learning as much as I could about those systems. Becoming a lab fixture led to them asking me to run the lab. I eventually was able to hack into the State Department of Higher Education to poke around and see student loan info and other personal info on people–good times! This is what lead me to pursue jobs (not a career) in software development.

As another poster observed above, programming is really about problem solving, learning syntax being only a small part of it. The real skill is in being able to visualize the abstract, to break down problems into their logical elements. If you can do that, and can internalize the constructs & limitations of different programming languages, then you’ll be able to figure out how to solve those problems for varying platforms in different languages without much difficulty.

Adan Member

I learnt VB C++ just to make cheats for online games. Since then Ive not tried Java etc as its not needed for me. WPE pro is nice too.

Adan Member

Ok, follow these steps.

  • In the Form Design right-click on any item in the Toolbox and click Choose Items
  • Select the COM Components Tab
  • Scroll down and check Windows Media Player and click Ok (If Windows Media Player does not appear in the list, click Browse, and then open Wmp.dll, which should be in the Windows\System32 folder)
  • You should now see the Windows Media Player Control in the Toolbox
  • Drag the control to your form or add it dynamically
Adan Member

Are you using the button to populate the list after they type in the text box? You can use the text box TextChanged action to dynamically update the list depending on what is typed. I would use Linq to query your list. If I have time later, I will build a working example. If you are using the button, then just query your list using Linq or similar. Either way you need a filter in the search box to get the results.

Adan Member

Your algorithm is correct… I changed it a bit in order to work with large numbers. I think your error is in variable maximum size

This works at least in Linux and if you use it you have to link the code with the crypto library (by adding -lssl or -lcrypto to the libraries maybe not sure how it works on windows)
In Windows all you have to do to work with these libraries is to install OpenSSL i believe

https://www.openssl.org/related/binaries.html

(Now your limit is not 18,446,744,073,709,551,615)

#include 
#include 
#include 

#define MAXNUM 1000

int main(void)
{
   char dec[MAXNUM];
   int i = 0;

   printf("Enter a base_10 number from 0 to 18,446,744,073,709,551,615: ");

   scanf("%s", dec);

   BIGNUM * numero = BN_new();
   BIGNUM * d = BN_new();
   BIGNUM * rem = BN_new();
   BN_add_word(d, 2);
   BN_asc2bn(&numero, dec);

   unsigned int store[BN_num_bits(numero)];
   memset(store, 0, BN_num_bits(numero));

   BN_CTX * ctx = BN_CTX_new();
   while(!BN_is_zero(numero)) {
      BN_zero(rem);
      BN_div(numero, rem, numero, d, ctx);
      store[i++] = (BN_get_word(rem));
   }

   printf("The binary value for %s is: ", dec);
   int j;
   for(j = i - 1; j >= 0; j--) {
      printf("%u", store[j]);
   }

   printf("\n");

   return 0;
}
Adan Member

Think of the two matrices in relation and try to express them with an n n+1 syntax. You will clearly see a rule to make the mirrored matrix.

Adan Member

Well I guess if you’re concerned about your payload size, then having your CSS and JS resources minified or even moving all your static resources to a CDN would have a greater impact on size reduction than minimizing header meta-data.

I doubt that it would have a drastic slowdown on your server, unless you’re running a site that serves a massive amount of users simultaneously, in which case it would probably be of greater benefit to scale web servers horizontally than removing a header or two I do get your point though, if it’s not used, why include it…

Adan Member

I’m sure your first quote is based on this:

If a response includes a Cache-Control field with the max-age
directive (Section 5.2.2.8), a recipient MUST ignore the Expires
field.

https://tools.ietf.org/html/rfc7234#section-5.2.2.8

That doesn’t mean that you shouldn’t specify both, it just means that the user agent has to use Cache-Control instead of Expires if it is available. So specifying expires when max-age is present has no impact on HTTP/1.1 compliant user agents, but has the benefit of providing backwards compatibility for HTTP/1.0.

As you noted, this is probably redundant these days, but on the other hand there is no negative impact to specifying it – in fact, it creates better support in case someone uses an HTTP/1.0 compliant user agent.

Something else I’m wondering about, what is the point of caching something for 1 second? Unless you’re concerned about some kind of DoS (in which case the attacker would just ignore the caching headers), a user would probably not try to refresh a page more than once a second unless you’re doing the refresh from a client-side script. Would it perhaps not make sense to set max-age=0 and expires= a date older than now by default and for the other resources you set both max-age and expires to the appropriate values?

Adan Member

I was thinking of writing a function that finds a point in polygon. The main challenge now is how this function will determine which polygon was clicked.

Because if I have:
Area = polyarea(polygon)
The polygon parameter has to be retrieved first from the click event before parsing into the area function.

Adan Member

I’m looking to learn programming as well and am interested in starting with Java and going from there. Would this be a good language to start in if I’ve never programmed before? Also, everyone says to read and do the programming in lieu of watching videos. How do I know where to begin programming? Is there software I need to download and tutorials on how to start? I’ve looked at the Java website and read through the training there. I’ve also started reading Java For Dummies. But where do I go to start actually doing the programming and what do I program for?

in reply to:
Adan Member

If the maximum execution time on the server isn’t too low there should be no problem running the script.
You can figure that limit by running a script with following contents:


The number of links that can be checked depends on that time; so less time = less checked links, you gotta figure that for yourself.

Adan Member

Here is the start of your code, you should be able to figure it out from here:

import java.util.Arrays;
class Box {
   public static void main(String[] agrs) {
      int[] boxes = { 244, 483, 895 };
      Arrays.sort(boxes);
      display(boxes);
   }
   public static void display(int[] elems) {
      System.out.println("\nBoxes in order of size (smallest - largest):");
      for (int i = 0; i < elems.length; i++) {
         System.out.println("Box " + i + " is " + elems[i]);
      }
      System.out.println("\nTherefore, we can see that " + elems[0] + " is the smallest box volume");
   }
}
Viewing 15 posts - 31 through 45 (of 80 total)
en_USEnglish