Search:

Type: Posts; User: demontager; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    162

    Multiple interfaces in same network

    I have an Ubuntu server 14.04 without GUI, so using /etc/network/interfaces to setup net. Box has 3 network interfaces - p4p1, wlan0, eth0
    My aim is to create so called bridged network with wlan0...
  2. Replies
    7
    Views
    383

    Re: Http redirects in python

    Tried below code


    #!/usr/bin/env python3

    import http.server
    from http.server import CGIHTTPRequestHandler

    port = 80
    addr = '192.168.150.1'
  3. Replies
    7
    Views
    383

    Re: Http edirects in python

    I was unable to get it working, could you show any sample code example, please ?
  4. Replies
    7
    Views
    383

    Re: Http edirects in python

    ok, and how practically to code this redirection in python ? If i use apache2 as webserver i simply put in .htaccess
    ErrorDocument 404 /index.php
  5. Replies
    7
    Views
    383

    Http edirects in python

    How may i redirect user's webrowser to some url if non-existent file requested ? For example i want all 404 errors(not found) redirect to index.html
    I am using basic methods to run webserver, as you...
  6. Replies
    5
    Views
    494

    Re: Recheck/assign variable in Python

    Thanks, your suggestons i used in real script and you told to avoid globals, so i used functions inside other function to call variable:
    Helper function from which getting variable


    def monif():...
  7. Replies
    5
    Views
    494

    Recheck/assign variable in Python

    I am trying to assign variable in function, but when i call it doesn't work.


    #!/usr/bin/python3
    a = "This is a"
    def test_b():
    b = "This is b"

    print(a)
    test_b()
  8. Replies
    5
    Views
    538

    [SOLVED] Re: Concatenate strings in python

    Thanks Vaphell! It works as expected


    print i, str(d["Temperature"]) + "C", d["MHS 5s"],"Kh/s", pool_url

    Output


    # /opt/test devs+pools
    0 75.0C 1.4919 Kh/s...
  9. Replies
    5
    Views
    538

    [SOLVED] Re: Concatenate strings in python

    Below a full code. This is modified python code to get values while calling cgminer API. Raw output prints a lot of values - https://gist.github.com/Demontager/e6070387f0bbe97268af from original...
  10. Replies
    5
    Views
    538

    [SOLVED] Concatenate strings in python

    I have such piece of python code


    print i, d["Temperature"], "C", d["MHS 5s"],"Kh/s", pool_url

    and it produces such ouput

    0 74.0 C 1.4929 Kh/s stratum+tcp://stratum1.suchpool.pw:3335
    but i...
  11. Wicd (auto-connect any plugged interface)

    Recently tried Wicd and found that it does not connect to wired interface automatically. If interface not listed in prefrences, wicd does not handle it. Yes, after defining interface wicd do...
  12. [ubuntu] Nginx does not reveal real IP to Apache

    Ubuntu 14.04 server running on Nginx 1.4.6 as frontend and Apache 2.4 as backend. The problem in getting real ip in apache logs, there showing local ip 127.0.0.1 instead real. Also in phpinfo()...
  13. Replies
    3
    Views
    325

    Re: Run function in tmux

    I made one workaround. When tmux executed also one pane in it executes temporary script /tmp. And i also need a way to kill and exit tmux in that pane. Tried to put this in script

    kill $(ps...
  14. Replies
    3
    Views
    325

    Re: Run function in tmux

    Yes, i know it will work from .bashrc and yes will be more actions, like adding function to .bashrc. Hope it is still somehow possible within one script.
  15. Replies
    3
    Views
    325

    Run function in tmux

    My bash script has some functions and i need one tmux pane to execute function within bash script. For example below code won't work and will be reported that command "internal" not found.

    ...
  16. Replies
    0
    Views
    948

    RK3188 chip - Ubuntu ?

    Is someone has success with installing any Linux derivative to so called Android mini PC based on RK3188 chip ?
    I know that PicUntu http://home.g8.net/ running well on older one RK3066 chip,...
  17. Replies
    15
    Views
    48,068

    Re: can't find lib32asound2 in 13.10 64-bit

    Yes, also tried multiarch deb and it works. They haven't reply to my email as well
  18. Replies
    15
    Views
    48,068

    Re: can't find lib32asound2 in 13.10 64-bit

    Got same dependency error lib32asound2 when trying to install Teamviewer amd64 on Lubuntu 13.10 64bit. For now i'm using .tar.gz version of teamviewer, works fine but lack of autostart feature.
    ...
  19. Replies
    4
    Views
    717

    Re: Probably wrong charge battery state

    Just want to update: After installing Lubuntu 13.10 today, battery charge now showing correct charge 100% as on Win7. That's much good an convienient now, thanks to developers.


    But, i can also...
  20. Replies
    0
    Views
    389

    Epson XP-700 [supported ?]

    I just need advice from whom own Epson Expres Premium XP -700. In close future plan to buy this model, but worried about compatability. According to similiar thread...
  21. [SOLVED] Re: Format Conky output from tail or head variables

    That exactly what i wanted to know, awesome! Many many thanks!
  22. [SOLVED] Format Conky output from tail or head variables

    I don't have a problem actually, but want to ask about one feature if it exist in Conky. I'm using Conky variable ${tail} or ${head} to list content of log files. So, for instance I got file with...
  23. Replies
    4
    Views
    717

    Re: Probably wrong charge battery state

    Thank you for brief explanation, now it more clear to me why Linux showing 92%. Seems it taking wearing factor in account. Yes, it will be nice to tweak Linux files to show correct charge. If someone...
  24. Replies
    4
    Views
    717

    Probably wrong charge battery state

    I got problem with my laptop Asus UX32 VD, I noticed that battery state showing 91% charge rate when Fully Charged and not 100% as expected. BTW on Win7 seems battery state indication works fine and...
  25. Replies
    6
    Views
    563

    [ubuntu] Re: DPMS control via cron

    Seems working fine, but DPMS looks too picky to disable it.
    When system started all has zeros, but when i leave system idle it back to


    DPMS (Energy Star):
    Standby: 7200 Suspend: 7200 ...
Results 1 to 25 of 62
Page 1 of 3 1 2 3