And "make CFLAGS+=-O2 CXXFLAGS+=-O2" are optimization levels, managed by compiler.
Full explanation -> https://gcc.gnu.org/onlinedocs/gcc/Opti ... tions.html
Search found 80 matches
- Sat Feb 28, 2015 11:50 am
- Forum: C/C++
- Topic: Node JS build options
- Replies: 3
- Views: 1918
- 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...
- 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?
- 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. ...
- 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...
- 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.
- 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...
- 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)?
- 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.
Basically, just get last version via gem and all should work.
- 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.
- 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.
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.
- 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
- 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.
- 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?
- 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
in your Python script.
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')
- 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.
- 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
Save file, restart X server, see if worked.
Insert
Code: Select all
[Settings]
gtk-icon-theme-name=Tango
- 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
Sudo ran from /etc/rc.local is not required since every process there runs with root privileges.
Code: Select all
mono /path/to/application.exe
- 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...
- 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
in your shell.
Code: Select all
nproc
- 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.
- 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.
- 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...
- 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...