[JAVA] Robot class mouseMove

Learn Programming - Thu, 11/15/2018 - 12:09

I want to move my mouse poiter to this scepific (784px, 238px) position. Here is simple code i wrote:

public class testmcd {

public static void main(String[] args) throws AWTException {

Robot robot = new Robot();




But here's the trick. Every time I compile this program my mouse is in different position. It stabilizes after about 5 compilations and land in given place(784px, 238px). I dont have any idea why this is happenning. Any help?

submitted by /u/Amazing_NickName
[link] [comments]

How should I start learning C?

Learn Programming - Thu, 11/15/2018 - 12:05

I'm a complete beginner to programming, and have no idea where to start. Any tips?

submitted by /u/NateTate142
[link] [comments]

How to create a chess engine

Learn Programming - Thu, 11/15/2018 - 11:52

I've been wanting to give my shot at creating a chess engine for a while now. I'm around 1600 rated so I understand the chess theory needed to create a decent engine but I just have no idea where to start programming wise. I have some experience coding with C#, java and python.

submitted by /u/andrevd
[link] [comments]

How Do You Download a Blob Video URL???

Learn Programming - Thu, 11/15/2018 - 11:49

I have been trying to download a video from this website:

However, I've had no luck using Chromes Developer tools, specifically the network tab. Can anyone help me out?

submitted by /u/waterbells
[link] [comments]

Drupal how to add/remove database tables dynamically

Drupal - Open Source Content Platform - Thu, 11/15/2018 - 11:42

Our website has several administrators. Each of them moderates a large amount of data.

So website sometimes goes extremely slow. I think that we can separate our main data table into small chunks. So each administrator will be associated with its own database table. What is the best possible approach to implement it?

The nuance is that administrators can be replaced so we need to update database schema (add/remove tables) dynamically somehow. Is there a way to add/remove tables dynamically (not via hook_install)?

submitted by /u/dakruchko
[link] [comments]

Deploying Azure Function App to Azure hangs on "Deploying: Step 1...", help?

Learn Programming - Thu, 11/15/2018 - 11:36

So I'm trying out Azure Functions for the first time and simply followed the standard tutorial: . When doing the publish & deploymen, it's stuck like this : .

Can't cancel also, restarting VS didn't help, restarting PC didn't help, starting in admin didn't help.

Anyone ran into the same issue once?

PS: A resource group was created now, but nothing else, seems like deploy is stuck (again) ?

submitted by /u/horoblast
[link] [comments]

New site, games you play with code

Learn Programming - Thu, 11/15/2018 - 11:36

Hey everyone, I'm working on a site (Point at Infinity) for games you play via API. My goal for each game is to have a tutorial along with it so if you don't know what to do yet you can learn something. I started out with a paid model but no one was signing up, and honestly, I just want people to enjoy the games. That said, everything is free to play now, no accounts, just games and tuts.

Right now there are two games and two tutorials. The games are a 3x3 slide puzzle Eight and a 4x4 slide puzzle Fifteen.

The tutorials are for solving the 3x3 with breadth first search, and for solving the 4x4 with A*.

Feedback is way appreciated at this point, stuff might break, but yea, let me know if you like it.


submitted by /u/__GG
[link] [comments]

Point me in the right direction for Physical Computing?

Learn Programming - Thu, 11/15/2018 - 11:35

There's something I want to make as a gift that is going to require several different skills, most of which I know where to find out more information for, but I'm a little stumped on this part.

Essentially, I'm going to be creating a whistle. There'll be a mic at the front that will pick up when it's being blown, and then it'll play one of a few different sound files on the attached mini speaker. I know how to program, but I'm not sure what or how I would be putting the necessary code into the device. Could someone point me in the right direction of where I need to go to find the skill to do this?

submitted by /u/RandomHabit89
[link] [comments]

Why is this not working (javascript, uses discord api)

Learn Programming - Thu, 11/15/2018 - 11:13

It should be simple enough. Here's a case that works fine because the message is sent:

case 'noshutupJacob': var shutup = 'off'; bot.sendMessage({ to: channelID, message: 'Not shutting Jacob up' }); break;

But when I try to retrieve that variable for debugging purposes:

case 'isshutup': bot.sendMessage({ to: channelID, message: shutup }); break;

It won't send a message. When I set the variable outside of the switch it gives me that variable, but it won't save what I set it to. I've tried a few different ways. I don't actually know Javascript, I only know PHP well but it should be the same logic. What am I doing wrong and how can I fix this? Sorry for bad description, I'm a bit tired atm.

submitted by /u/MasterHecker
[link] [comments]

Capitalized scriban variables in C#

Learn Programming - Thu, 11/15/2018 - 11:00

Just wondering if anyone here has enough experience with C# scriban to tell me whether there is a way to use capital letters in scriban variables?

var simpleText = "Hi {{Name}} \n Hi {{other_name}}"; var template = Template.ParseLiquid(simpleText); var result = template.Render(new { Name = "steve", other_name = "stephen"}); Console.WriteLine(result);

In my provided example, "steve" won't show up, but "stephen" will.

submitted by /u/kepanoegg
[link] [comments]

Looking for a Java buddy to work towards employment together

Learn Programming - Thu, 11/15/2018 - 10:58

I've been trying to make myself Java-employable for a while now. I've learnt some things, but still feel miles behind the goal. I start feeling despondent and lonely on this journey and sometimes doubt it's even doable.

So I wouldn't mind having someone to correspond and exchange progress reports/techniques and keep procrastination at bay with. If you feel similar, you are welcome to PM me.

submitted by /u/AwakenedToNightmare
[link] [comments]

Programming language for bitwise operations

Learn Programming - Thu, 11/15/2018 - 10:54

Top of the morning fellow programming learners, Currently I'm leraning a lot about cryptographic algorithms in university and would like to implement some of them. I know enough of C++ to do it, but to be honest, it's a pain in the pants to do. Are there any good programming languages that provide better tools for manipulating single bits? I'm thinking about adressing single bits and maybe datatypes like nibble, byte, or registers of a specific bit length. I know how to get away with C++, however it always seems a bit hacky. Thanks for any suggestions :)

submitted by /u/maxinator80
[link] [comments]

React Hooks in Action: Building a Todo App (hint: no classes)

Learn Programming - Thu, 11/15/2018 - 10:52

What are we building?

We’ll be building a Todo app step by step using React Hooks. As I promised, there will be no classes in this app. The reason, I choose to build a todo app as it covers all 4 aspects of CRUD; Create, Read, Update, Delete. I’m sharing the github repo link as, you can follow the instruction along with the complete code and know the map, where it’s going.

App Live Preview:
GitHub Repo Link:

submitted by /u/ShuvoHabib
[link] [comments]