Affichage des articles dont le libellé est Technologie. Afficher tous les articles
Affichage des articles dont le libellé est Technologie. Afficher tous les articles

mardi 21 février 2017

Geometric mean in Python

Here is a small snippet of code that can be used to compute geometric mean of a set of numbers in Python:

import math

def geomean(listofvalues):
    s=0
    for v in listofvalues:
        s+=math.log10(v)
    s=s/len(listofvalues)
    s=math.pow(10,s)
    return s

# main function
def main():
    #test sample
    list=[4,4,4,5]
    y=geomean(list)
    print(y)

# main fucntion call
if __name__ == "__main__":
    main()


mardi 14 janvier 2014

Roger Antonsen TEDxKrakow: the beauty of maths and science



This mindset is inspiring me a lot, I think there is something very deep behind math!.
No matter what it is but it's not an obvious thing.
                                                                                          Mohamed Amine

lundi 25 novembre 2013

Playstation 4 a cheap Supercomputer

Sony has released the Playstation 4 with a full X86 architecture, and they made a choice of a very interesting APU (CPU+GPU on the same die), the name of this ship is Liverpool, it contain 8 CPU cores and 1182 GPU cores, and 8GB GDDR5 RAM memory @ 5500MHz clock frequency, this give 176GB/s of memory bandwidth, and 1,85 TFlops of GPU computing peak Throughput, if we add the CPU performance we can have more than 2 TFlops embedded in a system that costs 400$, this is more interesting when we know that the Playstation 4 is also OpenCL 1.2 compatible, a real personal Supercomputer that can be used for a lot of other funny things.



dimanche 24 novembre 2013

inFORM: Dynamic Shape Display



inFORM is a Dynamic Shape Display that can render 3D content physically, so users can interact with digital information in a tangible way. 
http://tangible.media.mit.edu/project/inform/

samedi 2 novembre 2013

mardi 28 mai 2013

Lire une vidéo YOUTUBE en boucle (How to)

Une méthode simple pour lire une vidéo sur Youtube en boucle (auto replay):

  1. Prenons un exemple de l'URL d'une vidéo Youtube : http://www.youtube.com/watch?v=iFb2bmZnGZY
  2. Il faut changer la partie /watch?v= en /v/ ce qui donne http://www.youtube.com/v/iFb2bmZnGZY
  3. Ajoutez à la fin de l'url &loop=1&autoplay=1 ce qui donnera http://www.youtube.com/v/iFb2bmZnGZY&loop=1&autoplay=1


c'est Fini !
enjoy :)

dimanche 5 mai 2013

Samsung vs Apple (une nouvelle PUB)

Cette pub où Samsung se moque de l'Iphone d'Apple, rappele les Pub Mac vs PC.
Le Samsung galaxy S4 fait son Show et c'est mérité: