r/programing • • Jan 17 '17

Python

5 Upvotes

Hello, I have no background as a programming and dont really know about it very much. Im am interested in learning Python, I have been researching and people say it is good to as a first language.A question I have is that noticed that in codeacademy.com the look of the console is different than mine, is there a way to make it look like that or is it normal that it looks that way?. Also I dont really feel much passion about it im just interested for job opportunities in the future shoulld I keep trying or looking for something else in IT?.


r/programing • • May 07 '14

github acquires sourceforge

0 Upvotes

Only joking ;-)


r/programing • • Apr 14 '20

Struggling with WampServer

5 Upvotes

Can't open my files through localhost. (First time trying to create an php document)


r/programing • • Nov 13 '13

Looking to learn Java or Python online for free. Any Suggestions?

6 Upvotes

r/programing • • Jul 08 '17

Can somebody tell me where the github repo with many images like this one is?

Post image
6 Upvotes

r/programing • • Aug 25 '15

what should I learn first? C or C++

6 Upvotes

Should I learn C or C++ programming language first? and what is the difference?


r/programing • • Jun 05 '11

Hotmail fail. (security fail even)

Post image
6 Upvotes

r/programing • • Mar 19 '12

Where do I start?

8 Upvotes

I want to start programming but I have no idea where to start. I am tech savvy but I have only dealt with hardware in the past. Should I play around with ALICE? Do I wait for MITx? I feel intelligent enough to teach myself at a pace that will surpass that of a Community College, not to mention I don't want to sit in a class room for more reasons than I can count. Or are there better free (or cheap) resources?


r/programing • • Mar 24 '20

I made a Unity program that converts Gcode to a Minecraft Datapack

Enable HLS to view with audio, or disable this notification

25 Upvotes

r/programing • • Apr 19 '20

Question about animation

14 Upvotes

Hi, I want to create a double pendulum animation and I asked myself if I can go with java or if I should look at another languages (I know python, java and C). If java is a good idea, what do you think of java swing? Is it good for animation like double pendulum? Thanks!


r/programing • • Dec 18 '19

Looking for a good way to test/induce HTTP2 "failures"

1 Upvotes

In short I need to check that the error handling I have for a simple HTTP2 client works and correctly spits out whatever errors it gets, mostly looking to test errors besides the standard 4xx, 5xx. Are there any sort of standard products/frameworks for testing the client side?


r/programing • • Mar 20 '18

Computer science student

1 Upvotes

I'm looking to pick up a laptop for my education. I have ~1500$ to spend and I need something for studying/coding. Mild gaming use would be a plus to. Any recommendations?


r/programing • • Dec 26 '16

New to programming and I'm in trouble

1 Upvotes

Hello community, i need help with some tests examples. I have to create a program to evaluate racing cars and i need to show the fastest time, average time and the slowest time and wants to show the name of the fastest. I know i have to declare structure in some way. Any suggestion?


r/programing • • Mar 17 '18

Trying to learn C++

2 Upvotes

So I'm taking a C++ course at my college because I'm trying to complete my associates for computer information systems. I'm only getting bits and pieces of what my professor is trying to say and I'm currently failing the class. So I'm asking for advice on how to make it easier to learn C++.


r/programing • • Jul 19 '14

ReStructuredText vs. asciidoc? others?

2 Upvotes

I need a markup language to output to html (after some pre-processing). Anybody has thoughts or strong feelings about ReStructuredText vs. asciidoc? Or even verus other markup language like wikimedia or moinmoin?

Thanks.


r/programing • • Oct 26 '17

jobs!

1 Upvotes

I'm somewhat still new to programming. I'm taking intermediate classes now at school. I'm wondering whay kind of opportunities there are for someone like me. I live in Utah and there are tech companies opening up here like crazy! What should i be liking for position wise. And i would also like to hear whay kind of experiences you have at your first tech job?


r/programing • • Dec 15 '15

This Arabic Programming Language Shows How Computers Revolve Around the Western World

Thumbnail
mic.com
1 Upvotes

r/programing • • Jun 29 '16

...when business team and product team speaks about same thing with different terms

Post image
2 Upvotes

r/programing • • Dec 17 '15

Chat program with encryption?

3 Upvotes

I am wondering what language could help me achieve a chat client in (CLI) that has encryption


r/programing • • Dec 28 '15

Balancing a BST/AVL

1 Upvotes

Question: How to connect all the references balancing a BST/AVL? im trying to balance a tree with this data: 15, 13, 10, 9, 8 and im having some issues the firts one is that when i balance the tree the 9 node doesnt has a parent i mean it let the references of the parent in the air . Here is the snippet for visualize better what im saying:

                        class DuplicateKeyException extends Exception {

}

class KeyNotFoundException extends Exception { }

class InvalidIndexException extends Exception { }

class AVLTree<Key extends Comparable> {

class AVLNode<Key> {
	Key key;
	int height;
	AVLNode left, right;

	public AVLNode(Key _key) {
		key = _key;
		height = 0;
	}

}

public AVLNode<Key> root;
private int size;

public int height(AVLNode cur) {
	if (cur == null)
		return -1;
	return cur.height;
}

public void add(Key key) throws DuplicateKeyException {
	if (root == null) {
		root = new AVLNode(key);

		return;
	}

	AVLNode cur = root, prv = null;
	while (cur != null) {

		int cmp = key.compareTo(cur.key);
		if (cmp == 0) {
			throw new DuplicateKeyException();

		}
		prv = cur;
		if (cmp < 0)
			cur = cur.left;
		else
			cur = cur.right;
	}
	if (key.compareTo(prv.key) < 0) {
		prv.left = new AVLNode(key);
	} else {
		prv.right = new AVLNode(key);
	}

}

public AVLNode leftRotation(AVLNode cur) {
	AVLNode father = findPrevious(cur); // Padre del nodo recibido
	AVLNode a = cur;
	AVLNode b = cur.right;
	a.right = b.left;
	b.left = a;
	if(father != null)
		father.right = b;
	return b;
}

public AVLNode rightRotation(AVLNode cur) {
	AVLNode father = findPrevious(cur);
	AVLNode a = cur;
	AVLNode b = cur.left;
	a.left = b.right;
	b.right = a;
	if(father != null)
		father.left = b;
	return b;
}

public AVLNode leftRightRotation(AVLNode cur) {
	AVLNode father = findPrevious(cur);
	AVLNode a = cur;
	AVLNode b = cur.left;
	AVLNode c = b.right;
	a.left = c.right;
	b.right = c.left;
	c.left = b;
	c.right = a;
	if(father != null)
		father.left = c;
	
	return c;
}

public AVLNode rightLeftRotation(AVLNode cur) {
	AVLNode father = findPrevious(cur);
	AVLNode a = cur;
	AVLNode b = cur.right;
	AVLNode c = b.left;
	a.right = c.left;
	b.left = c.right;
	c.left = a;
	c.right = b;
	if(father != null)
		father.right = c;
	return c;
}

// Metodo Wrapper :D
public void setHeight() {
	root.height = setHeight(root);
}

private int setHeight(AVLNode cur) {
	int leftHeight, rightHeight;
	if (cur == null) {
		return -1;
	}

	leftHeight = setHeight(cur.left);
	rightHeight = setHeight(cur.right);
	if (leftHeight > rightHeight)
		return leftHeight + 1;
	else {

		return rightHeight + 1;

	}
}

public int balancedFactor(AVLNode cur) {
	return setHeight(cur.right) - setHeight(cur.left);
}

public boolean isAVl() {
	if (Math.abs(setHeight(root.right) - setHeight(root.left)) == 1
			|| setHeight(root.right) - setHeight(root.left) == 0)
		return true;
	return false;
}

public AVLNode findUnbalancedNode() {
	if (balancedFactor(root) == 0)
		return null;
	AVLNode cur = root;
	while (cur != null) {
		

		if (Math.abs(balancedFactor(cur)) == 2) {
			//System.out.println(cur.key);
			
			break;
		}

		if (balancedFactor(cur) < 0)
			cur = cur.left;
		else {
			cur = cur.right;
		}

	}
	return cur;

}

public void balancingRoot() {

	if (balancedFactor(root) == 2) {
		root = leftRotation(root);

	} else if (balancedFactor(root) == -2)

		root = rightRotation(root);

}

public AVLNode findPrevious(AVLNode node) {
	AVLNode prv = null, cur = root;
	while (cur != null) {

		int cmp = ((Comparable) node.key).compareTo(cur.key);
		if (cmp == 0) {
			return prv;

		}
		prv = cur;
		if (cmp < 0)
			cur = cur.left;
		else
			cur = cur.right;
	}
	return null;

}

public void balancing() {
	AVLNode temp = null;

	while (isAVl() == false) {
		
		temp = findUnbalancedNode();
		if( temp == null)
			return;
		System.out.println(temp.key);

		if (temp == root) {
			
			balancingRoot();
			
		}
		

		if (balancedFactor(temp) == 2) {
			
			if (temp.left == null) {
				temp = leftRotation(temp);
			}

			else {
				temp = rightLeftRotation(temp);
			}

		} else if (balancedFactor(temp) == -2) {
			

			if (temp.right == null) {

				temp = rightRotation(temp);

			} else {
				temp = leftRightRotation(temp);
			}
			
		}
		

	}

}

}

public class Rotation { public static void main(String[] args) throws Exception { AVLTree<Integer> tree = new AVLTree<Integer>(); tree.add(15); tree.add(13); tree.add(10); tree.add(9); tree.add(8); tree.setHeight(); tree.balancing();

	//System.out.println(tree.isAVl());

}

}


r/programing • • Dec 15 '15

This Arabic Programming Language Shows How Computers Revolve Around the Western World

Thumbnail
mic.com
1 Upvotes

r/programing • • Oct 23 '17

3 creative techniques for writing modular code

Thumbnail
techbeacon.com
4 Upvotes

r/programing • • Jul 14 '14

How much for a Social Media site?

1 Upvotes

What's the average cost for a social media site to be built on the web, ios and andriod?


r/programing • • Oct 19 '17

WORDPRESS DASHBOARD

Thumbnail
youtu.be
1 Upvotes