Go to advanced search

by enedil
Sat Feb 28, 2015 11:50 am
Forum: C/C++
Topic: Node JS build options
Replies: 3
Views: 1918

Re: Node JS build options

And "make CFLAGS+=-O2 CXXFLAGS+=-O2" are optimization levels, managed by compiler.
Full explanation -> https://gcc.gnu.org/onlinedocs/gcc/Opti ... tions.html
by enedil
Sat Feb 28, 2015 2:05 am
Forum: Français
Topic: Publication de la consommation d’électricité sur internet
Replies: 17
Views: 4230

Re: Publication de la consommation d’électricité sur interne

Tu dois envoyer les documents HTML en utilisant HTTP. Alors, tu dois avoir un serveur Internet. Pour cette projet, Apache est trop grand. Node.js est simple et a des bindings InfluxDB. Tu pourrais avoir le serveur fait en Python (Flask, mentionnée par moi) mais creation dure. Node.js est plus rapide...
by enedil
Fri Feb 27, 2015 1:05 pm
Forum: General programming discussion
Topic: Php code not executing alongside webiopi
Replies: 2
Views: 684

Re: Php code not executing alongside webiopi

What do you use as your Web Server?
by enedil
Fri Feb 27, 2015 11:44 am
Forum: Français
Topic: Publication de la consommation d’électricité sur internet
Replies: 17
Views: 4230

Re: Publication de la consommation d’électricité sur interne

Enedil, que veux-tu dire pas douille ? Ce n'est je pense pas la bonne traduction, mais si tu nous donnes le mot en anglais, je pense que nous comprendrons. Le nom anglais, c'est "socket". C'est un solution plus rapide que MySQL. Et si une DB sera utilisée, les bases NoSQL ont de vitesse. ...
by enedil
Fri Feb 27, 2015 2:25 am
Forum: Français
Topic: Publication de la consommation d’électricité sur internet
Replies: 17
Views: 4230

Re: Publication de la consommation d’électricité sur interne

Mais tu dois avoir un serveur HTTP pour envoyer les données en forme d'une page Internet. Il y a nombreuses choses. Tu peux utiliser Node.js. Et comment partager les données entre le logiciel Python qui les génère et le serveur HTTP? Je peux penser de Unix Douille. Les docs de Socket pour Node.js so...
by enedil
Fri Feb 27, 2015 12:55 am
Forum: General discussion
Topic: Getting sounds from HTML using Chromium
Replies: 7
Views: 4361

Re: Getting sounds from HTML using Chromium

You must serve audio file from a web server to set the right mime to allow playing with HTML5 <audio> tag.
by enedil
Fri Feb 27, 2015 12:23 am
Forum: General programming discussion
Topic: Need help on RespberryPI board to Buy
Replies: 3
Views: 889

Re: Need help on RespberryPI board to Buy

1. As far as I know you can run it on Raspberry Pi. 2. The best choice this days is Raspberry Pi 2. It has 4 core CPU and 1 GiB of ram - it makes this version significantly faster and thus speeds up deployment. 3. Raspberry Pi runs a full Linux flavour. In every language you can program on desktop L...
by enedil
Thu Feb 26, 2015 11:16 pm
Forum: C/C++
Topic: Performance difference on PI2
Replies: 12
Views: 2850

Re: Performance difference on PI2

Does the issue still exist if you compile your app using LLVM/clang (avaliable in repositories)?
by enedil
Thu Feb 26, 2015 1:56 am
Forum: General discussion
Topic: Programming: Ruby on Rails
Replies: 2
Views: 653

Re: Programming: Ruby on Rails

Can you clarify? Because it is hard to understand what are you asking for.

Basically, just get last version via gem and all should work.
by enedil
Wed Feb 25, 2015 1:11 pm
Forum: Beginners
Topic: desktop icons
Replies: 6
Views: 1167

Re: desktop icons

Drag Idle icon from Menu to desktop.
by enedil
Wed Feb 25, 2015 11:34 am
Forum: Français
Topic: Publication de la consommation d’électricité sur internet
Replies: 17
Views: 4230

Re: Publication de la consommation d’électricité sur interne

Je dois vous excuser - je suis polonais. J'apprends le français depuis trois ans, alors ma niveau de langage n'est pas trop haute.

Tu peux utiliser Python avec le Flask module:
http://flask.pocoo.org . Il fait le développement rapide possible. Et, pour renvoyer les nouveaux donnés, utilise Ajax.
by enedil
Wed Feb 25, 2015 12:35 am
Forum: Français
Topic: Le prix
Replies: 5
Views: 1198

Re: Le prix

by enedil
Tue Feb 24, 2015 2:49 pm
Forum: Other programming languages
Topic: How to autostart an .exe program
Replies: 43
Views: 15222

Re: How to autostart an .exe program

Bad. Should be

Code: Select all

/home/pi/skripta/skripta1 &
mono /home/pi/Desktop/Program/WattsonIngestionTool.exe
by enedil
Tue Feb 24, 2015 1:54 pm
Forum: Other programming languages
Topic: How to autostart an .exe program
Replies: 43
Views: 15222

Re: How to autostart an .exe program

In /etc/rc.local you need to specify full path to .exe file.
by enedil
Mon Feb 23, 2015 7:05 pm
Forum: Other programming languages
Topic: How to autostart an .exe program
Replies: 43
Views: 15222

Re: How to autostart an .exe program

Are you sure you are trying to run a .exe file, not a .cs one?
by enedil
Mon Feb 23, 2015 7:00 pm
Forum: Advanced users
Topic: Put in a web page an image depending on daemon
Replies: 8
Views: 1201

Re: Put in a web page an image depending on daemon

Have something like

Code: Select all

import os
# some code
os.system('cp ../current.jpg /home/pi/html/directory/currentstate.jpg')

# at the end:
os.system('rm /home/pi/html/directory/currentstate.jpg')
in your Python script.
by enedil
Mon Feb 23, 2015 6:41 pm
Forum: Raspberry Pi OS
Topic: Should include the same version of gcc as the linux kernel
Replies: 18
Views: 3468

Re: Should include the same version of gcc as the linux kern

GCC is a critical component. No one can tell that v4.8 is enough stable and bug-free to enter stable stage. Nobody wants to guarantee the non-tested software. That's why GCC 4.8 is not included. And installing GCC 4.8 is quite easy, so no need of.
by enedil
Mon Feb 23, 2015 6:35 pm
Forum: Troubleshooting
Topic: epiphany browser doesn't show menu images
Replies: 6
Views: 1162

Re: epiphany browser doesn't show menu images

Edit file ~/.config/gtk-3.0/settings.ini.
Insert

Code: Select all

[Settings] 
gtk-icon-theme-name=Tango
Save file, restart X server, see if worked.
by enedil
Mon Feb 23, 2015 12:33 pm
Forum: Other programming languages
Topic: How to autostart an .exe program
Replies: 43
Views: 15222

Re: How to autostart an .exe program

Try

Code: Select all

mono /path/to/application.exe
Sudo ran from /etc/rc.local is not required since every process there runs with root privileges.
by enedil
Mon Feb 23, 2015 12:20 pm
Forum: Graphics programming
Topic: Modern UI frameworks?
Replies: 41
Views: 19806

Re: Modern UI frameworks?

I think that is the idea of Mono. You can develop on Windows and deploy to Pi, or even develop on Pi and deploy to Windows. I assume Mono maps Windows Forms to whatever native API is appropriate to the target. It appears that may be GTK+ on Raspbian. It surely isn't. It is plain X11. Mono’s Windows...
by enedil
Sun Feb 22, 2015 10:14 pm
Forum: General discussion
Topic: Number oc jobs when compiling
Replies: 5
Views: 731

Re: Number oc jobs when compiling

To get number of computing cores, run

Code: Select all

nproc
in your shell.
by enedil
Sun Feb 22, 2015 9:16 pm
Forum: General discussion
Topic: Newbie noob here
Replies: 10
Views: 1212

Re: Newbie noob here

Since OpenElec is a GNU/Linux Distribution, it should run VLC. VLC is free software and it was running on Linux since the very beginning.
by enedil
Sun Feb 22, 2015 9:12 pm
Forum: Raspberry Pi OS
Topic: GNOME 3 ON RASPBIAN
Replies: 8
Views: 16912

Re: GNOME 3 ON RASPBIAN

You should note that using GNOME 3 on Raspberry Pi will be a pain. 2 GiB of ram is the absolute minimum.
by enedil
Sun Feb 22, 2015 9:07 pm
Forum: Networking and servers
Topic: How can I make a web server that runs Python serverside?
Replies: 3
Views: 1269

Re: How can I make a web server that runs Python serverside?

If the only pourpose of running HTTP server is serving two text files, do not use heavy Apache. Try built-in Python 3 module: import http.server import socketserver PORT = 8000 # If you want port 80 (default), you need to run script as root (using sudo) Handler = http.server.SimpleHTTPRequestHandler...
by enedil
Sun Feb 22, 2015 9:00 pm
Forum: Raspberry Pi OS
Topic: Should include the same version of gcc as the linux kernel
Replies: 18
Views: 3468

Re: Should include the same version of gcc as the linux kern

And why it's done that way? Answer is simple: Debian version used to create Raspbian is Wheezy, which is currently stable. Which means that there won't be non-security updates. So the GCC version released is 4.6. However, newer compilers provide better binary files (faster, smaller). That's the reas...

Go to advanced search