Junior Research Associate in HPC | Job position at CMCC Foundation, Italy

2023-04-21 Thread info cmcc
*Junior Research Associate in HPC*

*Deadline: May 15, 2023*
*The job location is CMCC Headquarters of Lecce*

The CMCC Foundation is a scientific research center on climate change and
its interactions with the environment, society, the world of business, and
policymakers.

Our work aims to stimulate sustainable growth, protect the environment and
develop strategies for adapting and mitigating climate change.

Our Division of Advanced Scientific Computing (ASC) is looking for a new
position of Junior Research Associate in HPC, responsible for *supporting
research activities in HPC*.

The position has been opened within the project *PNRR HPC SPOKE, CUP Number
C83C22000560007.*

The job location is CMCC Headquarters in *Lecce, Italy. *

We are looking for a motivated person with the following requirements:

   - *M.Sc. degree in Computer Science or Computer Engineering or
   equivalent fields;*
   - *3+ years’ experience in scientific software development and parallel
   programming;*
   - *Excellent knowledge of C and Fortran programming language;*
   - Parallel programming with MPI of scientific codes for heterogenous HPC
   architectures;
   - OpenACC/OpenMP and GPU programming;
   - Performance analysis of parallel codes;
   - *Expert with HPC systems;*
   - Fluent handling of scripting languages like Bash and Python;
   - Experience in complex software development and software version
   control systems (e.g. Git);
   - Knowledge in numerical methods and numerical schemes;
   - Knowledge in the application of computational fluid dynamics or
   weather and climate modelling is an asset;
   - *Good knowledge of both written and spoken English language.*

The project promotes female and youth employment and the reduction of
territorial gaps according to art.  47 “promotion of generational and
gender equal opportunities for the awarding of public contracts for the
implementation of the National Recovery and Resilience Plan (PNRR)”, of the
Italian Law Decree no. 77/2021 converted into law no. 108 of 29 July 2021.


*More details and info about HOW TO APPLY:
<https://cmccfoundation.applytojob.com/apply/ScbvrZiu29/12434-Climate-Weather-Model-Developer?source=Our%20Career%20Page%20Widget>*
https://cmccfoundation.applytojob.com/apply/qCBuoQihlI/12447-Junior-Research-Associate-In-HPC
*-- *
Fondazione CMCC
Centro Euro-Mediterraneo sui Cambiamenti Climatici
Via Augusto Imperatore, 16 - 73100 Lecce
i...@cmcc.it - www.cmcc.it
-- 
https://mail.python.org/mailman/listinfo/python-list


Deadline Reminder: April 30, 2023 - Software Developer | Job position at CMCC Foundation, Italy

2023-04-21 Thread info cmcc
*Software Developer (Research Associate) code 12428*
(Deadline: April 30, 2023)

The CMCC Foundation is a scientific research center on climate change and
its interactions with the environment, the society, the world of business
and policy makers.

Our work aims to stimulate sustainable growth, protect the environment, and
develop strategies for the adaptation and mitigation of climate change.

Our Division of Ocean Predictions and Applications (OPA) is looking for new
positions of Software Developers, responsible for (i) supporting modelling
developments, implementation, and validation, (ii)
porting/recoding/re-engineering/developing numerical procedures in the
frame of ocean models, and (iii) deployment of applications and services
with virtualization software such as Virtual Machines and Dockers.

The job location is CMCC Headquarters in Lecce, Italy.

We are looking for motivated persons with the following requirements:

   - M.Sc. degree (or equivalent working experience) in Computer Science,
   Engineering, or other scientific disciplines (i.e., physics, mathematics);
   fluency in English;
   - knowledge of UNIX/Linux operating systems and script languages (i.e.,
   *nix shell);
   - good knowledge and skills in programming (i.e., Python and bash
   scripting);
   - knowledge of version control systems (i.e., git).

Furthermore, it is welcome that you have as much as possible of the
following experience:

   - knowledge of workflow management platforms;
   - knowledge of Fortran;
   - HPC architectures and job schedulers (i.e., IBM Spectrum LSF);
   - experience in managing/manipulating NetCDF data.




*More details and info about HOW TO APPLY:
https://cmccfoundation.applytojob.com/apply/WkA5Dhltc9/12428-Software-Developer-Research-Associate
<https://cmccfoundation.applytojob.com/apply/WkA5Dhltc9/12428-Software-Developer-Research-Associate>*


-- 

Fondazione CMCCCentro Euro-Mediterraneo sui Cambiamenti Climatici
Via Marco Biagi, 5 - 73100 Lecce
i...@cmcc.it - www.cmcc.it
-- 
https://mail.python.org/mailman/listinfo/python-list


Scientific Software Developer for the Digital Twin of the Ocean | Job position at CMCC Foundation, Italy

2023-04-18 Thread info cmcc
*SCIENTIFIC SOFTWARE DEVELOPER FOR THE DIGITAL TWIN OF THE OCEAN*
[Job Opening Code: 12443]
*Lecce (Italy) - Deadline: 30/04/2023*


Our Division of Advanced Scientific Computing (ASC Division) is considering
the possibility to hire a talented and proactive Post Degree candidate to
support CMCC research activities. The contract will be jointly funded by
CMCC and the HPC Training and Research for Earth Sciences (HPC-TRES)
program.

The job location is CMCC Headquarters in Lecce, Italy.

We are looking for a motivated person with the following requirements:

   - M.Sc. degree in Computer Science or Computer Engineering or equivalent
   fields;
   - 2+ years’ experience in scientific software development;
   - Excellent knowledge of Python programming language;
   - Good knowledge of Python scientific (numpy, scipy, scikit-learn,
   pandas) and visualization (e.g., matplotlib) libraries;
   - Good theoretical knowledge of Machine Learning algorithms and
   techniques for regression and classification tasks;
   - Good knowledge of at least one Machine/Deep Learning framework (e.g.,
   TensorFlow, Keras, Pytorch);
   - Good capabilities in writing technical reports and scientific papers
   as well as documenting code;
   - Good knowledge of both written and spoken English language.

Additional preferred experience:

   - Experience with HPC systems
   - Experience in training ML models in distributed environments and
   corresponding strategies

Belonging to legally protected categories (ex L. 68/99) will constitute a
preferential condition.


*More details and info about HOW TO APPLY:*
https://cmccfoundation.applytojob.com/apply/vmml1qbN4W/12443-Scientific-Software-Developer-For-The-Digital-Twin-Of-The-Ocean?source=Our%20Career%20Page%20Widget


-- 

Fondazione CMCCCentro Euro-Mediterraneo sui Cambiamenti Climatici
Via Marco Biagi, 5 - 73100 Lecce
i...@cmcc.it - www.cmcc.it
-- 
https://mail.python.org/mailman/listinfo/python-list


Post Degree in Machine Learning | Job position at CMCC Foundation, Italy

2023-04-12 Thread info cmcc
*POST-DEGREE IN MACHINE LEARNING*
[Job Opening Code: 12404]
*Lecce (Italy) - Deadline: 15/04/2023*


Our Division of Advanced Scientific Computing (ASC Division) is considering
the possibility to hire a talented and proactive Post Degree candidate to
support CMCC research activities. The contract will be jointly funded by
CMCC and the HPC Training and Research for Earth Sciences (HPC-TRES)
program.



The job location is CMCC Headquarters in Lecce, Italy.



We are looking for a motivated person with the following requirements:

   - M.Sc. degree in Computer Science or Computer Engineering or equivalent
   fields;
   - 2+ years’ experience in scientific software development;
   - Excellent knowledge of Python programming language;
   - Good knowledge of Python scientific (numpy, scipy, scikit-learn,
   pandas) and visualization (e.g., matplotlib) libraries;
   - Good theoretical knowledge of Machine Learning algorithms and
   techniques for regression and classification tasks;
   - Good knowledge of at least one Machine/Deep Learning framework (e.g.,
   TensorFlow, Keras, Pytorch);
   - Good capabilities in writing technical reports and scientific papers
   as well as documenting code;
   - Good knowledge of both written and spoken English language.

Additional preferred experience:

   - Experience with HPC systems
   - Experience in training ML models in distributed environments and
   corresponding strategies

Belonging to legally protected categories (ex L. 68/99) will constitute a
preferential condition.


*More details and info about HOW TO APPLY:*
https://cmccfoundation.applytojob.com/apply/c4A2a92Co7/12404-POST-DEGREEMachine-Learning-Skills?source=Our%20Career%20Page%20Widget
--

Fondazione CMCCCentro Euro-Mediterraneo sui Cambiamenti Climatici
Via Marco Biagi, 5 - 73100 Lecce
i...@cmcc.it - www.cmcc.it
-- 
https://mail.python.org/mailman/listinfo/python-list


Scientific Software Developer | Job position at CMCC Foundation, Italy

2021-03-12 Thread info cmcc
*Please, feel free to circulate *
*to anyone you think may be interested.**---*

*Scientific Software Developer (code 12305)*


*Deadline: April 4th, 2021*

The CMCC is taking into consideration the possibility to hire a talented,
motivated and proactive Scientific Software Developer.
This job announcement is a public invitation to express interest for the
above mentioned CMCC Position.

The location is CMCC Headquarters in Lecce, Italy. Remote working is
considered as an option.

The main responsibility for this position is the design and development of
Python-based scientific tools and applications for climate data management
and analysis. Other duties will be related to the deployment using
container technologies (Docker, Kubernetes) and the engagement and
contribution to open source software communities.

The minimum qualifications are:

   - M.Sc. degree in Computer Science or Computer Engineering or equivalent
   fields;
   - 2+ years experience in scientific software development;
   - Excellent knowledge of Python programming languages;
   - Good knowledge of Python scientific libraries (numpy, scipy,pandas);
   - Excellent knowledge of Git;
   - Good knowledge of container technologies (Docker, Kubernetes);
   - Good working experience with Linux/Mac OS environments;
   - Good knowledge of both written and spoken English language.

Additional preferred experience:

   - Good knowledge of NETCDF/GRIB data formats and corresponding tools
   (NCO, CDO), and Python libraries (xarray, iris);
   - Experience with Jupyter notebooks;
   - Knowledge of Go programming languages;
   - Knowledge of databases – PostgreSQL, TimescaleDB.

Belonging to legally protected categories (ex L. 68/99) will constitute a
preferential condition.

The initial appointment is for n° 12 months starting from May 2021 at an
annual salary ranging from 22K to 34K Euros, comprehensive of benefits,
depending on qualification and experience.

*APPLY
NOW: 
https://cmccfoundation.applytojob.com/apply/L0Zntdu4Je/12305-Scientific-Software-Developer
*

-- 

Fondazione CMCCCentro Euro-Mediterraneo sui Cambiamenti Climatici
Via Augusto Imperatore, 16 - 73100 Lecce
i...@cmcc.it - www.cmcc.it
-- 
https://mail.python.org/mailman/listinfo/python-list


Frontend Developer | Job position at CMCC Foundation, Italy

2020-11-04 Thread info cmcc
*Please, feel free to circulate **to anyone you think may be interested.*
--

*Frontend Developer (code 12294)*

*Deadline: 10/11/2020*

The CMCC is taking into consideration the possibility to hire a talented,
motivated and proactive Frontend Developer to support the digital ocean
applications.
This job announcement is a public invitation to express interest for the
above mentioned CMCC Position.

The location is *CMCC Headquarters in Lecce, Italy*.

The primary purpose for this position is to support both the research and
operational activities of the OPA division.
The desired, mandatory qualifications are:

   - M.Sc. degree (or candidate for graduation in the next couple of
   months) or equivalent working experience in Computer Science, Engineering;
   - web services and web application development;
   - REST api;
   - HTML and CSS (with cross-browser development);
   - JavaScript frameworks (jQuery, ReactJS);
   - Modern authorization mechanisms, such as JSON Web Token;
   - Programming languages (such as Python or Java)
   - Version Control Management Systems
   - Fluency in the English language

Furthermore, it is welcome to have as much as possible of the following
experience:

   - UNIX/Linux operating systems and script;
   - authorization mechanisms, such as JSON Web TokenFds;
   - Web Feature Service (WFS), Web Map Service (WMS), Web GIS;
   - DBMS (mySQL);
   - mobile applications languages;
   - Object-oriented design and developmental skills;
   - Platforms for publishing spatial data and interactive mapping
   applications to the web (i.e. MapServer);
   - experience in managing/manipulating NetCDF data.

Belonging to legally protected categories (ex L. 68/99) will constitute a
preferential condition.

The initial appointment is for 24 months starting as soon as possible at an
annual salary ranging from 24 to 36K Euros for Junior Research Associates
and from 32 to 50K Euros for Senior Research Associates, comprehensive of
benefits, depending on qualification and experience.

*APPLY NOW:  
**https://cmccfoundation.applytojob.com/apply/ABzlrQovtP/Frontend-Developer
*

-- 

Fondazione CMCCCentro Euro-Mediterraneo sui Cambiamenti Climatici
Via Augusto Imperatore, 16 - 73100 Lecce
i...@cmcc.it - www.cmcc.it
-- 
https://mail.python.org/mailman/listinfo/python-list


Web Developer | Job position at CMCC Foundation, Italy

2020-07-17 Thread CMCC Info

/Please, feel free to circulate //to anyone you think may be interested.///
--

Web Developer (code 11648*)* 

*Deadline: **23/08/2020*

The CMCC is taking into consideration the possibility to hire a 
talented, motivated and proactive Web Developer to support research and 
development activities.
This job announcement is a public invitation to express interest for the 
above mentioned CMCC Position.


 The location of reference is CMCC premises in Lecce, Italy.

The primary purposes for this position are to support the CMCC 
Communication and Media Office in the design, development, realization, 
and maintenance of websites and web-based products and initiatives that 
are aimed at:


- disseminating the CMCC’s scientific research and its outcomes
- exploring innovative languages to communicate climate science to a 
vast and diversified audience.


_The desired qualifications are:_

    Experience in WordPress websites, themes and plugins development 
and maintenance;
    Experience with web tools and languages like HTML, CSS3, SASS, 
JavaScript and PHP, SQL programming languages and good attitude to learn 
new tools and software languages and paradigms;

    Experience with Unix/Linux and MAC OS Systems;
    Experience with computer graphics software: raster and vector graphic;
    Experience with development tools (github, docker, pipelines 
building tools);
    Experience with remote collaboration and office tools like GSuite 
and good attitude in working with teams;

    Fluency in English language;
    Attitude to work remotely and availability to take part in meeting 
in presence and in videoconference;

    Willing to travel in Italy and abroad.

_Appreciated qualifications and skills:_

    Competencies in sysadmin tasks for GNU/Linux systems;
    Experience with frontend frameworks and libraries (like React, 
jQuery, d3.js);

    Experience of devops tools like terraform, ansible;
    Experience with cloud services providers (AWS, Google Cloud);
    Experience with backend environments like Node.js;
    Experience with the Clojure/ClojureScript language.

Belonging to legally protected categories (ex L. 68/99) will constitute 
a preferential condition.


The initial appointment is for 12 months starting from September 2020 at 
an annual salary ranging from 20K to 30K Euros, comprehensive of 
benefits, depending on qualification and experience.


*How to Apply*
Applicants should register to CMCC JAM (Job Application Manager) website 
and fill the online form following the link below:

http://jam.cmcc.it/careers/apply/11648/

--

Fondazione Centro Euro-Mediterraneo sui Cambiamenti Climatici
Web: www.cmcc.it  - Contact us: i...@cmcc.it 



--
https://mail.python.org/mailman/listinfo/python-list


Software Developer for the Digital Ocean Applications | Job position at CMCC Foundation, Italy

2020-05-20 Thread CMCC Info

/Please, feel free to circulate //to anyone you think may be interested.///
--

Software Developer for the Digital Ocean Applications (Code: 10822) 


*Deadline**31/05/2020*

The CMCC is taking into consideration the possibility to hire a 
talented, motivated and proactive Software Developer to support research 
and development activities. This job announcement is a public invitation 
to express interest for the above mentioned CMCC Position.


The location is CMCC Headquarters in*Lecce, Italy*.

The primary purposes for this position is to support the Applications 
Research Unit of the OPA Division of CMCC 
, 
in activities based on both observed and model maritime data. Candidates 
will be engaged in:


 * supporting VISIR model (visir-model.net
   ) developments
 * porting/recoding/re-engineering/developing new numerical procedures
   based on heterogeneous maritime data
 * developing/maintaining and improving operational chains components.

The desired qualifications are:

 * M.Sc. degree in Computer Science, Engineering, Physics, or Mathematics
 * Good knowledge of scientific programming languages (preferably
   Python, Matlab, R)
 * knowledge of version control systems (e.g., git)
 * Knowledge of UNIX/Linux operating systems
 * fluency in the English language
 * knowledge of workflow management platforms
 * experience in managing/manipulating NetCDF data//

Belonging to legally protected categories (ex Italian Law 68/99) will 
constitute a preferential condition.


The initial appointment is for 24 months starting from July 2020 at an 
annual salary ranging from 22 K to 38K Euros for junior research 
associates and from 32K to 48K Euros for senior research associates*, 
comprehensive of benefits*, depending on qualification and experience.


*How to Apply*
Applicants should register to CMCC JAM (Job Application Manager) website.

For further information on CMCC Job Opportunities, please visit our 
website https://www.cmcc.it/work-with-us.


--

Fondazione Centro Euro-Mediterraneo sui Cambiamenti Climatici
Web: www.cmcc.it  - Contact us: i...@cmcc.it 



--
https://mail.python.org/mailman/listinfo/python-list


Scientific Software Developers | Job positions at CMCC Foundation, Italy

2020-04-17 Thread CMCC Info

/Please, feel free to circulate //to anyone you think may be interested.///
--

Open positions at CMCC Foundation:

Scientific Software Developer (Job Opening Code: 10712) 


Deadline: 30/04/2020
The location is CMCC Headquarters in Lecce, LE, Italy.

The primary purposes for this position is to design and implement data 
science software libraries and applications for climate change. The 
activities will be carried out in the context of the Data Science (DS) 
research team of theAdvanced Scientific Computing Division (ASC) 
 
at CMCC. Other duties will be related contribution to participation to 
meetings, reporting, open source software communities.


Scientific Software Developer (Job Opening Code: 
10713) 


Deadline: 30/04/2020
The location is CMCC Headquarters in Lecce, LE, Italy*.*

The primary purposes for this position is to explore and develop 
Machine/Deep Learning techniques applied to climate change applications.
The activities will be carried out in the context of the Exascale and 
Machine Learning for Climate Change (EMLC2) research team of the 
Advanced Scientific Computing Division (ASC) 
 
at CMCC. Other duties will be related contribution to participation to 
project meetings, reporting, open source software communities.


For further information on CMCC Job Opportunities, please visit our 
website https://www.cmcc.it/work-with-us.


--

Fondazione Centro Euro-Mediterraneo sui Cambiamenti Climatici
Web: www.cmcc.it  - Contact us: i...@cmcc.it 



--
https://mail.python.org/mailman/listinfo/python-list


Scientific Software Developers | Job positions at CMCC Foundation - Euro-Mediterranean Center on Climate Change, Italy

2019-09-12 Thread CMCC Info

/Please, feel free to circulate //to anyone you think may be interested.///
--
Open positions at CMCC Foundation:

*Software Developers for the Digital Ocean (Research Associate) 
* 
[Job Opening Code: 9195]
The location is the CMCC – Ocean Predictions and Applications (OPA) 
office in Lecce, Italy.

_Deadline: 15/09/2019 _

*Scientific Software Developer 
***[Job 
Opening Code: 9209]
The location is CMCC Headquarters in Lecce, Italy. Remote working as 
well as part-time could be suitable options.

_Deadline: 20/09/2019 _

*Software Developer for the Digital Ocean (Research Associate) 
* 
[Job Opening Code: 9213]
The location is CMCC – Ocean Predictions and Applications (OPA) office 
in Bologna (Italy)

_Deadline: 20/09/2019 _

For further information on CMCC Job Opportunities, please visit our 
website https://www.cmcc.it/work-with-us .


--

Fondazione Centro Euro-Mediterraneo sui Cambiamenti Climatici
Web: www.cmcc.it  - Contact us: i...@cmcc.it 



--
https://mail.python.org/mailman/listinfo/python-list


Re: Sequencing images using tkinter?

2014-08-31 Thread theteacher . info
Okay. Got it now. Your help is much appreciated. Thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
How do you exit from this function?

def next_image(): 
myLabel.config(image=random.choice(monster_images)) 
# tell tkinter to invoke next_image() again after 200 miliseconds 
root.after(200, next_image)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
Although getting next_image to run for e.g. 10 times in a for loop is still 
something I can't get to work. It only displays one image.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
Peter - Thanks! I've had a play around and followed your advice and have 
something that should take me on to the next step! This is what I have so far 
and it works, Thanks.

from tkinter import *
from tkinter import ttk
import random

root = Tk()
root.title("Messing about")

def next_image(): 
myLabel.config(image=random.choice(monster_images)) 
# tell tkinter to invoke next_image() again after 200 miliseconds 
root.after(200, next_image) 

mainframe = ttk.Frame(root, padding="3 3 12 12", width="800", height="600", 
borderwidth="120", relief="sunken")
mainframe.grid(column=0, row=0, sticky=(N, W, E, S))
mainframe.columnconfigure(0, weight=1)
mainframe.rowconfigure(0, weight=1)

mon1 = PhotoImage(file="MonsterImages/Converted/py01.gif")
mon2 = PhotoImage(file="MonsterImages/Converted/py02.gif")
mon3 = PhotoImage(file="MonsterImages/Converted/py03.gif")

#A list of object pictures
monster_images = [mon1, mon2, mon3]

#Set up one label
myLabel=ttk.Label(mainframe, image=mon1)
myLabel.grid(column=1, row=1, sticky=W)


next_image()

root.mainloop()
-- 
https://mail.python.org/mailman/listinfo/python-list


Sequencing images using tkinter?

2014-08-30 Thread theteacher . info
I've started to learn to use tkinter but can't seem to rotate images.

Here is a Python 3.4 program to illustrate the problem. Anyone spot why the for 
loop doesn't seem to want to display a sucssession of images please? Thanks.

import sys
from tkinter import *
import random
from time import sleep

myGui = Tk()
myGui.geometry("1000x800+400+100")
myGui.title("The Random Machine")

monsters = ["py01.gif", "py02.gif", "py03.gif", "py04.gif", "py05.gif", 
"py06.gif", "py07.gif", "py08.gif",
"py09.gif", "py10.gif", "py11.gif", "py12.gif", "py13.gif", 
"py14.gif", "py15.gif", "py16.gif",
"py17.gif", "py18.gif", "py19.gif", "py20.gif",]


#Main canvas
canvas1 = Canvas(myGui, width=1000, height=800, bg="white")
canvas1.place(x=0,y=0)


#button
myButton1=Button(canvas1, text='OK', justify = LEFT)

for i in range(10):
   myImage = PhotoImage(file="MonsterImages/Converted/" + 
random.choice(monsters))
   myButton1.config(image=myImage, width="100", height="200")
   myButton1.place(x=500,y=300)
   sleep(0.2)

myGui.mainloop()
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: An error when i switched from python v2.6.6 => v3.2.3

2013-03-08 Thread info
Τη Παρασκευή, 8 Μαρτίου 2013 8:54:15 μ.μ. UTC+2, ο χρήστης Steven D'Aprano 
έγραψε:
> On Fri, 08 Mar 2013 04:55:07 +0100, Vito De Tullio wrote:
> 
> 
> 
> > Νίκος Γκρ33κ wrote:
> 
> > 
> 
> >>> -c ''; rm -rf /; oops.py
> 
> >> 
> 
> >> Yes its being pulled by http request!
> 
> >> 
> 
> >> But please try to do it, i dont think it will work!
> 
> > 
> 
> > try yourself and tell us what happened
> 
> 
> 
> 
> 
> That's not very nice.
> 
> 
> 
> Please don't tell the newbies to destroy their system, no matter how 
> 
> tempting it might be.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> Steven

I dare anyone who wants to to mess with 'htmlpage' variable value's now!

I made it unhackable i believe!

I'am testing it myself 3 hours now and find it safe!

Please feel free to try also!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: I cant understand this error when i click a link on my website

2013-03-08 Thread info
Τη Παρασκευή, 8 Μαρτίου 2013 7:04:29 μ.μ. UTC+2, ο χρήστης sven έγραψε:
> On 8 March 2013 16:50, Νίκος Γκρ33κ  wrote:
> 
> 
> 
> 
> 
> 
> 
> 
> but that same exact code is executed withour errors when someone is 
> http://superhost.gr
> 
> 
> 
> the erro is produces when he is requesting a link from that page...
> 
> --
> 
> 
> 
> But with different arguments. It's http://superhost.gr/?htmlpage=files.py  
> http://superhost.gr/ and the arguments to your regex are coming up as 
> "string=['/home/nikos/public_html/index.html', 'files.py']" which is clearly 
> a list of strings.
> 
> In the case of http://superhost.gr/ it's probably just a single string
> 
> -- 
> ./Sven

Thanks i have fixed the problem just now after 3 hours!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to get a beep, OS independent ?

2008-12-07 Thread info
Sorry, with

  import Tkinter
  Tkinter.Tk().bell()

you get a new window for the same price...

So it's usefull only when using tkinter
--
http://mail.python.org/mailman/listinfo/python-list


Re: how to get a beep, OS independent ?

2008-12-07 Thread info
On Dec 7, 12:40 am, Stef Mientki <[EMAIL PROTECTED]> wrote:
> hello,
>
> I want to give a small beep,
> for windows there's message-beep,
> and there seems to be something like " curses" ,
> but that package seems to be totally broken in P2.5 for windows.
>
> Any other suggestions ?
>
> thanks,
> Stef Mientki

Not sure it's the simplest solution, but

import Tkinter
Tkinter.Tk().bell()

makes a beep
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python 3.0 automatic decoding of UTF16

2008-12-05 Thread info
On Dec 5, 3:25 pm, Johannes Bauer <[EMAIL PROTECTED]> wrote:
> Hello group,
>
> I'm having trouble reading a utf-16 encoded file with Python3.0. This is
> my (complete) code:
>
> #!/usr/bin/python3.0
>
> class AddressBook():
>         def __init__(self, filename):
>                 f = open(filename, "r", encoding="utf16")
>                 while True:
>                         line = f.readline()
>                         if line == "": break
>                         print([line[x] for x in range(len(line))])
>                 f.close()
>
> a = AddressBook("2008_11_05_Handy_Backup.txt")
>
> This is the file (only 1 kB, if hosting doesn't work please tell me and
> I'll see if I can put it someplace else):
>
> http://www.file-upload.net/download-1297291/2008_11_05_Handy_Backup.t...
>
> What I get: The file reads file the first few lines. Then, in the last
> line, I get lots of garbage (looking like uninitialized memory):
>
> ['E', 'n', 't', 'r', 'y', '0', '0', 'T', 'e', 'x', 't', ' ', '=', ' ',
> '"', 'A', 'D', 'A', 'C', ' ', 'V', 'e', 'r', 'k', 'e', 'h', 'r', 's',
> 'i', 'n', 'f', 'o', '"', '\u0d00', '\u0a00', '䔀', '渀', '琀', '爀', '礀
> ', '\u3000', '\u3100', '吀', '礀', '瀀', '攀', '\u2000', '㴀', '\u2000',
> '一', '甀', '洀', '戀', '攀', '爀', '䴀', '漀', '戀', '椀', '氀', '攀',
> '\u0d00', '\u0a00', '䔀', '渀', '琀', '爀', '礀', '\u3000', '\u3100', '
> 吀', '攀', '砀', '琀', '\u2000', '㴀', '\u2000', '∀', '⬀', '㐀', '㤀',
> '\u3100', '㜀', '㤀', '㈀', '㈀', '㐀', '㤀', '㤀', '∀', '\u0d00',
> '\u0a00', '\u0d00', '\u0a00', '嬀', '倀', '栀', '漀', '渀', '攀', '倀',
> '䈀', '䬀', '\u3000', '\u3000', '㐀', '崀', '\u0d00', '\u0a00']
>
> Where the line
>
> Entry00Text = "ADAC Verkehrsinfo"\r\n
>
> is actually the only thing the line contains, Python makes the rest up.
>
> The actual file is much longer and contains private numbers, so I
> truncated them away. When I let python process the original file, it
> dies with another error:
>
> Traceback (most recent call last):
>   File "./modify.py", line 12, in 
>     a = AddressBook("2008_11_05_Handy_Backup.txt")
>   File "./modify.py", line 7, in __init__
>     line = f.readline()
>   File "/usr/local/lib/python3.0/io.py", line 1807, in readline
>     while self._read_chunk():
>   File "/usr/local/lib/python3.0/io.py", line 1556, in _read_chunk
>     self._set_decoded_chars(self._decoder.decode(input_chunk, eof))
>   File "/usr/local/lib/python3.0/io.py", line 1293, in decode
>     output = self.decoder.decode(input, final=final)
>   File "/usr/local/lib/python3.0/codecs.py", line 300, in decode
>     (result, consumed) = self._buffer_decode(data, self.errors, final)
>   File "/usr/local/lib/python3.0/encodings/utf_16.py", line 69, in
> _buffer_decode
>     return self.decoder(input, self.errors, final)
> UnicodeDecodeError: 'utf16' codec can't decode bytes in position 74-75:
> illegal encoding
>
> With the place where it dies being exactly the place where it outputs
> the weird garbage in the shortened file. I guess it runs over some page
> boundary here or something?
>
> Kind regards,
> Johannes
>
> --
> "Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
> verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
>          -- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
>                          <[EMAIL PROTECTED]>

2 problems: endianness and trailing zer byte.
This works for me:

class AddressBook():
def __init__(self, filename):
f = open(filename, "r", encoding="utf_16_be", newline="\r\n")
while True:
line = f.readline()
if len(line) == 0:
break
print (line.replace("\r\n",""))
f.close()


a = AddressBook("2008_11_05_Handy_Backup2.txt")

Please note the filename: I modified your file by dropping the
trailing zer byte
--
http://mail.python.org/mailman/listinfo/python-list


Tktable on 3.0rc1

2008-11-03 Thread info
Has anyone used Tktable on python 3.0 ?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Good python equivalent to C goto

2008-08-17 Thread info
On Aug 17, 9:23 pm, Matthew Fitzgibbons <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Aug 17, 8:09 pm, Matthew Fitzgibbons <[EMAIL PROTECTED]> wrote:
> >> Kurien Mathew wrote:
> >>> Hello,
> >>> Any suggestions on a good python equivalent for the following C code:
> >>> while (loopCondition)
> >>> {
> >>>     if (condition1)
> >>>         goto next;
> >>>     if (condition2)
> >>>         goto next;
> >>>     if (condition3)
> >>>         goto next;
> >>>     stmt1;
> >>>     stmt2;
> >>> next:
> >>>     stmt3;
> >>>     stmt4;
> >>>  }
> >>> Thanks
> >>> Kurien
> >>> --
> >>>http://mail.python.org/mailman/listinfo/python-list
> >> I would not be too happy if I saw C code like that in my repository.
> >> This is equivalent:
>
> >> while (loopCondition) {
> >>      if (!(condition1 || condition2 || condition3)) {
> >>          stmt1;
> >>          stmt2;
> >>      }
> >>      stmt3;
> >>      stmt4;
>
> >> }
>
> >> In Python:
>
> >> while (loopCondition):
> >>      if not (condition1 or condition2 or condition3):
> >>          stmt1
> >>          stmt2
> >>      stmt3
> >>      stmt4
>
> >> If stmt3 and stmt4 are error cleanup code, I would use try/finally.
>
> >> while loopCondition:
> >>      try:
> >>          if condition1:
> >>              raise Error1()
> >>          if condition2:
> >>              raise Error2()
> >>          if condition3:
> >>              raise Error3()
> >>          stmt1
> >>          stmt2
> >>      finally:
> >>          stmt3
> >>          stmt4
>
> >> This will also bail out of the loop on and exception and the exception
> >> will get to the next level. If you don't want that to happen, put an
> >> appropriate except block before the finally.
>
> >> -Matt- Hide quoted text -
>
> >> - Show quoted text -
>
> > class Goto_Target(Exception):
> >     pass
>
> > def Goto_is_not_dead(nIn):
> >     try:
> >         if (nIn == 1): raise Goto_Target
> >         if (nIn == 2): raise Goto_Target
>
> >         inv = 1.0 / nIn
> >         print 'Good Input ' + str(nIn) + ' inv=' + str(inv)
>
> >     except Goto_Target:
> >         pass
> >     except Exception, e:
> >         print 'Error Input ' + str(nIn) + ' ' + str(e)
> >     finally:
> >         print 'any input ' + str(nIn)
>
> > if __name__ == '__main__':
> >     Goto_is_not_dead(0)
> >     Goto_is_not_dead(2)
> >     Goto_is_not_dead(3)
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
> I think this is needlessly ugly. You can accomplish the same with a
> simple if-else. In this case you're also masking exceptions other than
> Goto_Target, which makes debugging _really_ difficult. If you need to
> have the cleanup code executed on _any_ exception, you can still use
> try-finally without any except blocks. Your code is equivalent to this:
>
> def goto_is_dead(n):
>      try:
>          if n == 0 or n == 1 or n == 2:
>              # if you're validating input, validate the input
>              print "Error Input %s" % n
>          else:
>              print "Good Input %s inv= %s" % (n, (1. / n))
>      finally:
>          print "any input %s" % n
>
> if __name__ == '__main__':
>      goto_id_dead(0)
>      goto_id_dead(2)
>      goto_id_dead(3)
>
> More concise, readable, and maintainable.
>
> -Matt- Hide quoted text -
>
> - Show quoted text -

as mentioned 'in complex code the goto statement is  still the easiest
to code and understand'.
The examples are very small and do not require that at all. I agree
it's ugly.
Just to show a way to do it.

A very few functions where I use goto in C or C# are a few hundred
lines of code, difficult to split in smaller functions.
A  lot of common data.
One coming to my mind is a complex validation function for the user
input of a complex transaction.
If any test fails, goto the cleaning part and issue error message.

The goto code is the simpler way to do it.
We are not talking about simple if-else, but let say 20 if-else.
Many nested if-else  are more difficult to understand and do not fit
better the semantics.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Good python equivalent to C goto

2008-08-17 Thread info
On Aug 17, 8:09 pm, Matthew Fitzgibbons <[EMAIL PROTECTED]> wrote:
> Kurien Mathew wrote:
> > Hello,
>
> > Any suggestions on a good python equivalent for the following C code:
>
> > while (loopCondition)
> > {
> >     if (condition1)
> >         goto next;
> >     if (condition2)
> >         goto next;
> >     if (condition3)
> >         goto next;
> >     stmt1;
> >     stmt2;
> > next:
> >     stmt3;
> >     stmt4;
> >  }
>
> > Thanks
> > Kurien
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
> I would not be too happy if I saw C code like that in my repository.
> This is equivalent:
>
> while (loopCondition) {
>      if (!(condition1 || condition2 || condition3)) {
>          stmt1;
>          stmt2;
>      }
>      stmt3;
>      stmt4;
>
> }
>
> In Python:
>
> while (loopCondition):
>      if not (condition1 or condition2 or condition3):
>          stmt1
>          stmt2
>      stmt3
>      stmt4
>
> If stmt3 and stmt4 are error cleanup code, I would use try/finally.
>
> while loopCondition:
>      try:
>          if condition1:
>              raise Error1()
>          if condition2:
>              raise Error2()
>          if condition3:
>              raise Error3()
>          stmt1
>          stmt2
>      finally:
>          stmt3
>          stmt4
>
> This will also bail out of the loop on and exception and the exception
> will get to the next level. If you don't want that to happen, put an
> appropriate except block before the finally.
>
> -Matt- Hide quoted text -
>
> - Show quoted text -

class Goto_Target(Exception):
pass

def Goto_is_not_dead(nIn):
try:
if (nIn == 1): raise Goto_Target
if (nIn == 2): raise Goto_Target

inv = 1.0 / nIn
print 'Good Input ' + str(nIn) + ' inv=' + str(inv)

except Goto_Target:
pass
except Exception, e:
print 'Error Input ' + str(nIn) + ' ' + str(e)
finally:
print 'any input ' + str(nIn)

if __name__ == '__main__':
Goto_is_not_dead(0)
Goto_is_not_dead(2)
Goto_is_not_dead(3)
--
http://mail.python.org/mailman/listinfo/python-list


Re: Good python equivalent to C goto

2008-08-17 Thread info
as an oldtimer, I know that in complex code the goto statement is
still the easiest to code and understand.

I propose this solution using exception.

The string exception is deprecated but is simpler for this example.



# DeprecationWarning: raising a string exception is deprecated

def Goto_is_not_dead(nIn):
try:
if (nIn == 1): raise 'Goto_Exit'
if (nIn == 2): raise 'Goto_Exit'

print 'Good Input ' + str(nIn)
raise 'Goto_Exit'

except 'Goto_Exit':
print 'any input ' + str(nIn)

if __name__ == '__main__':
Goto_is_not_dead(2)
Goto_is_not_dead(3)
--
http://mail.python.org/mailman/listinfo/python-list


Telenet nieuwsgroepen mededeling: nieuwsserver adres aanpassen/Attention: modification de l'adresse du serveur de newsgroup

2008-01-29 Thread info
Beste klant,

Telenet heeft een migratie gedaan van haar nieuwsservers. 

Wat betekent dit concreet voor jou als gebruiker?

Er verandert niets aan de service, maar om verder gebruik te maken van de
Telenet nieuwsgroepen service moet je bij de instellingen van je nieuwslezer
het adres van de nieuwsserver veranderen van news.telenet.be of
newsbin.telenet.be in newsgroups.telenet.be. Verder dien je de authenticatie
op deze nieuwsserver uit te schakelen.

Met vriendelijke groeten,

Het Telenet team

--
 
Cher client,
 
Telenet a effectue une migration de ses serveurs de newsgroup.

Pour continuer a utiliser les newsgroups de Telenet, modifiez dans la
configuration de lecteur de nouvelles l'adresse du serveur de newsgroup:
newsgroups.telenet.be a la place de news.telenet.be ou newsbin.telenet.be.
Ceci ne necessite pas que vous vous identifiez pour acceder a ce serveur de
newsgroup.
 
Cordialement,

L'equipe Telenet

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Mail Delivery (failure [EMAIL PROTECTED])

2006-01-31 Thread info
Hemos recibido su correo, en breve nos pondremos en contacto con ustedes.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re:Autoroll Fix Members Update Now

2005-06-14 Thread info
Attn Satellite tv tester,http://www.nagra2ready.com

It is very urgent that you change your keys on your cards and fta units. The 
current keys are as follows.

Dishnetwork Key 1 is active, changed TUE JUNE 14th, 2005
KEY0: 34 12 B8 ED 07 A7 CB C8 KEY1:0C 97 B4 37 5E 3F BE 81

It is also very important to note that if you are using an fta that you flash 
it with the latest version 4.2 of our nagra2ready bin. We provide support for 
all brands of fta units. Login now to update your receiver with the ecm-proof 
bin that we have compiled.

http://www.nagra2ready.com

If you are using rom cards or other card based fixes, it is important that you 
are protected from the ecm slated in the stream within the next 24 hours. This 
rare type of damaging ecm will bypass all current blockers and will cause 
permanant dammage to your hardware. Update your equipment now, do not wait for 
the worst to happen.

We only have 72 slots open for new members, so if you fail to join in time, we 
will lock down the members section to new members. We do this to preserve the 
integrity of our ultra-private scripts and keep the code secure on a limited 
platform. 

http://www.nagra2ready.com



-- 
http://mail.python.org/mailman/listinfo/python-list