A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.
- xcode 5.1.1
- python 3.4.0
- Qt libraries 5.2.1
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8 / html5"> | |
<title>Deportivos 2015</title> | |
</head> | |
<body bgcolor="00ffff"> | |
<center> | |
<font size=7> | |
<h1>Todo sobre lo novedoso 2015</h1> | |
</center> |
# coding: utf-8 | |
"""Juego de la vida de Conway. | |
Autor: Juan Luis Cano <juanlu001@gmail.com> | |
El tablero es un array de NumPy, donde 0 significa célula muerta y 1 célula | |
viva. Se muestra una animación con matplotlib. | |
""" |
For symmetic encryption, you can use the following: | |
To encrypt: | |
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt | |
To decrypt: | |
openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt | |
For Asymmetric encryption you must first generate your private key and extract the public key. |
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
package gziphandler | |
import ( | |
"compress/gzip" | |
"io" | |
"net/http" | |
"strings" | |
) | |
type gzipResponseWriter struct { |
The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.
Verify that your card is a Broadcom using: lspci -vnn -d 14e4:
Sample output:
02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/
package com.company; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
// write your code here |
#include <iostream> | |
#include <math.h> | |
using namespace std; | |
void calcQuadraticEq(float a, float b, float c) { | |
float d = (pow(b,2) - 4*a*c); | |
bool isComplexRoot = d < 0; | |
bool hasTwoReals = !isComplexRoot; |
#include <iostream> | |
using namespace std; | |
int main() { | |
cout << "Enter the lentgh of the box: " << endl; | |
int boxSize = 0; | |
cin >> boxSize; | |
for (int row = 0; row < boxSize; row++) { |