- Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
- Models and Issues in Data Stream Systems
- Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
- Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
- [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 1999-2006 Sun Microsystems, Inc. All Rights Reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. | |
* | |
* This code is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
Java SE has never had support for bluetooth, the closest thing to a standard is JABWT (Java APIs for Bluetooth Wireless Technology) defined in JSR-82 which is actually for Java ME (Micro Edition).
JSR-82 provides the specification for the javax.bluetooth
and javax.obex
packages and would allow for code somewhat like:
import javax.bluetooth.BluetoothStateException;
import javax.bluetooth.DeviceClass;
Olá, seja bem vindo ao grupo Python-Brasil.
- Insira aqui o pedido de mais informações ou possivel solução a pergunta feita
Dito isto, aqui nós possuímos algumas regras que ajudam a manter essa lista útil e agradável para os participantes
Antes de mandar as suas próximas perguntas, pedimos para que leia o texto:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
#----Step 1 | |
# First, choose two random primes. | |
# In real world, they should be really big primes (hundreds of digits). | |
p, q = 41, 47 | |
#----Step 2 | |
# From them we have n=p*q and phi(n)=(p-1)*(q-1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.System.exit; | |
import static java.lang.System.out; | |
public class Dafuq { | |
/** | |
* This does not do what you think it does. | |
* <p> | |
* You think code is documentation? No! Documentation is code! | |
\u002a\u002f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# turn a jar with a Main-Class into a stand alone executable | |
(echo '#!/usr/bin/env java -jar'; cat blahblah.jar) > blah | |
# turn a jar with a particular main clas into a stand alone executable | |
(echo '#!/usr/bin/env java -jar package.MainClass'; cat blahblah.jar) > blah |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QuantileSketch sketch = new QuantileSketch(); | |
for (int i = 0; i < 100000000; i++) { | |
double x1 = Math.random(); | |
double x2 = Math.random(); | |
//random normal distribution with mean=0 and stdev=1 | |
sketch.offer(abs(sqrt(-2 * log(x1)) * cos(2 * Math.PI * x2))); | |
} | |
for (int i = 0; i <= 100; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import httplib, getpass, base64, json, datetime, sys, xml.etree.ElementTree as ET, os.path as path, os | |
KEY = 'your-private-repo' | |
NS = {'n':'http://maven.apache.org/SETTINGS/1.0.0'} | |
def make_auth(username, password): | |
return base64.b64encode('{}:{}'.format(username, password)) | |
def make_token(repokey, username, password): |
NewerOlder