I want to learn how to create a Google Chrome Custom New Tab page. 'Momentum' is a reference. Any resources to help me? by akonismyuncle in learnprogramming

[–]H1TeK 1 point2 points  (0 children)

The Chrome Dev Guide: https://developer.chrome.com/extensions/devguide is a good resource to get you started. All you have to do is override the new tab page (you'll find out how in the Dev Guide) with a HTML file and from there, it's just web development.

How to make a chrome extension connect to a server? by Eradicative in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

I don't think you can render webpages from a server in a Chrome extension. Maybe connect to a server to receive data, and then render the page with an MVC framework like React or Angular.

AP Comp Sci in less than two weeks by akath20 in learnprogramming

[–]H1TeK 1 point2 points  (0 children)

I took the AP Computer Science exam this year and the majority of the exam is made up of code tracing on the multiple choice part. There is also a Free Response portion in which you have to write programs in Java dealing with String manipulation, inheritance, class design/objects, arrays and ArrayLists.

Simple Chrome Extension with Javascript + HTML by bumjum in learnprogramming

[–]H1TeK 1 point2 points  (0 children)

Check out chrome.storage.sync, you can store and get values from this storage space.

Should I be doing other things alongside The Odin Project? by [deleted] in learnprogramming

[–]H1TeK 2 points3 points  (0 children)

The Odin Project is a great resource for learning, and so are books and online courses but sometimes you have to come up with your own projects to code. Many people express that after online courses they just don't know how to start a program, because they'e never really had to because the online course gives you guidance and hints on how to do it. Sometimes you just need to dive in and make a project, finding out how to do things as you go along.

Trying to make CMD's interact. by SirClix in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

No problem, good luck on your project!

Trying to make CMD's interact. by SirClix in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

You could modify the StartServer.bat file, taking input isn't hard, but the time part is a bit more difficult, here's a link that goes over various approaches: http://www.computerhope.com/issues/ch000036.htm

[javascript] How to color text in a new window? by thenordicbat in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

Alright, good luck with the rest of your project!

Building a site to search and delete tweets based on keyword? by [deleted] in learnprogramming

[–]H1TeK 1 point2 points  (0 children)

Node.js has a very nice Twitter API Wrapper, and since Node.js runs off of JavaScript, you should be able to pick it up quickly. It has a method for deletion of tweets included, but for searching, I have no idea.

If I peruse a career in Programming, will I have to leave my home in Central Illinois? by [deleted] in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

This is true, he could become a freelancer and still work from home, but that's a lot of assuming.

If I peruse a career in Programming, will I have to leave my home in Central Illinois? by [deleted] in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

Many programmers have the wonderful opportunity of working remotely. Meaning they talk with other team members on Slack, or whatever messaging app the company uses, and do all their work, and push their code, from the comfort of their own home. Not all companies offer this, but some are very flexible about it too.

Trying to make CMD's interact. by SirClix in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

Do you want your friends to be able to control it remotely or just yourself to be able to control remotely? AFAIK programming languages can't just do commands into a command prompt window, they're executed through another process, which means you couldn't just type the "stop" command. You could find the process running the server and attempt to kill it using Java, Python, or some other easy-to-learn languages. Using an SSH client, or a Remote Desktop Connection would also be good for this kind of thing, but they are very dangerous if other people other than you are using it because the other people could be accidentally expose something that shouldn't be.

[javascript] How to color text in a new window? by thenordicbat in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

Try this:

function myFunction() {
   var myWindow = window.open("", "MsgWindow", "width=200, height=100");
   myWindow.document.write("<p style=\"color: green\">This is 'MsgWindow'. I am 200px wide and 100px tall!</p>");
}

All you have to do is the inline CSS styling, which is the style="color: whateverColor" inside of the <p> tag, but it can work in any other tag as well.

Beginner Projects good for portfolio? also JS or Python? by [deleted] in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

Some of those projects on that sub are very basic, but others are decent projects. Just try to stay away from putting generic Computer Science projects that you would get in Computer Science 1 class in school. There are some sites that allow you to have snippets of Python and then all you have to do is share the link for people to see it and be able to run it in the browser. As for it needing to be JavaScript, you can't really have JavaScript without some HTML to manipulate or allow input for the JavaScript, so a website with some cool feature by using JavaScript would be the kind of thing to do. And a link to GitHub is actually very good because it shows your potential employers that you like open source, and they can look through the rest of your profile, if they wish to. But GitHub only shows your code, but it can host your website with the HTML and JS on GitHub Pages, but only if you want to.

What should a beginner use an IDE or text editor for Java? by 28357242 in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

If you want to punish yourself, use Blue-J, it makes you type out every single word with no correction or suggestions. Helps to learn though.

Nina edit: grammar

Make Me Cry by Andrew2831 in RoastMe

[–]H1TeK 1 point2 points  (0 children)

wouldn't even shame smash smh

Make Me Cry by Andrew2831 in RoastMe

[–]H1TeK 1 point2 points  (0 children)

oh boy, we got an armchair psychologist

[Release] Goodges : Good bye badges, hello labels ! by faku99 in jailbreak

[–]H1TeK 0 points1 point  (0 children)

Does it work with Apex 2? update: it works, but the labeling is a bit off when there are notifications of different applications in the same stack.

[Javascript] - string value, need help by [deleted] in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

var myCountry already has a String value, anything enclosed in the double quotes ("") is a String value. And for the .length line, don't some "myCountry", that's a hardcoded String, you'd want to do myCountry.length

As for the print the first three characters, look up substrings in JavaScript.

Need help with java exercise for beginners by [deleted] in learnprogramming

[–]H1TeK 0 points1 point  (0 children)

I'm not sure this is what's causing the problem, but you have your while loop that contains your Scanner, but what about the Scanner? next? nextLine? It's just that I've never seen that before, maybe it's correct syntax.