[issue34875] Change .js mime to "text/javascript"

2022-01-21 Thread Oleg Iarygin


Oleg Iarygin  added the comment:

Myles, it looks like the draft 14 contains a mismatch in 6.2.1:

> # 6.2.1. text/ecmascript
>
> Type name: application
> Subtype name: ecmascript

In header it's `text`, in details it's `application`. Is it intended?

I believe that a typo wouldn't pass though fourteen revisions but nevertheless, 
just to be safe.

--
nosy: +arhadthedev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "text/javascript"

2022-01-21 Thread jiahua wang


Change by jiahua wang :


--
nosy: +wangjiahua
nosy_count: 3.0 -> 4.0
pull_requests: +28927
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/30740

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu


milahu  added the comment:

python-ideas thread
https://mail.python.org/archives/list/python-id...@python.org/thread/V53XGQPIY7ZAISMTQHPHKGWZNSN5EXQG/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

Ok, I reopened this as an enhancement request for mimetypes to know about the 
'deprecated' types. If you want to push it forward it might be a good idea to 
bring this up on python-ideas as well.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
stage: resolved -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution: duplicate -> 
status: closed -> open
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu


milahu  added the comment:

edit:

-  mimetype_of_ext[ext] = mimetype
+  else:
+# add new entry
+mimetype_of_ext[ext] = mimetype

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu


milahu  added the comment:

this issue is different than Issue32462
because here, both entries are valid

```
cat /etc/mime.types | grep javascript
application/javascriptjs
application/x-javascript  js
```

but the alphabetical ordering of the file
makes the last entry take precedence

python could be smarter at parsing the /etc/mime.types file
in that it could give lower precedence to the deprecated types

pseudocode:

deprecated_mimetypes = set(...) # values from rfc4329
mimetype_of_ext = dict()
# parser loop
for ...
  ext = "..."
  mimetype = "..."
  if ext in mimetype_of_ext:
old_mimetype = mimetype_of_ext[ext]
if old_mimetype in deprecated_mimetypes:
  mimetype_of_ext[ext] = mimetype # replace old with new
  # assume that mimetype is not deprecated
  mimetype_of_ext[ext] = mimetype

--

___
Python tracker 
<https://bugs.python.org/issue46035>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel


Irit Katriel  added the comment:

As noted in Issue32462, the fact that system files take precedence over the 
definitions in the sodlib is a feature, so the proposed patch to reverse this 
behaviour cannot be applied unless it is decided to change the API in this way. 
 That would require a discussion on python-ideas. If you want to being it up 
there, and there is a decision to change the behaviour, please create a new 
issue.

--
nosy: +iritkatriel
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> mimetypes.guess_type() returns incorrectly formatted type

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "text/javascript"

2022-01-17 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 
3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2021-12-10 Thread milahu


milahu  added the comment:

patch

https://github.com/milahu/cpython/commit/8a50633bb1b0c3e39fbe2cd467bb34a839ad068f

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2021-12-10 Thread milahu


New submission from milahu :

deprecated mimetype?
per rfc4329, the technical term is "unregistered media type"

https://datatracker.ietf.org/doc/html/rfc4329#section-3

related

https://stackoverflow.com/a/9664327/10440128

https://github.com/danny0838/PyWebScrapBook/issues/53

quick fix

```py
# python/Lib/mimetypes.py

class MimeTypes:
# ...
def guess_type(self, url, strict=True):
# ...

if ext in _types_map_default:
# prefer the python-internal values over /etc/mime.types
return _types_map_default[ext], encoding

if ext in types_map:
return types_map[ext], encoding
```

why is `application/x-javascript` returned?

on linux, mimetypes.init() loads /etc/mime.types
source:
https://mirrors.kernel.org/gentoo/distfiles/mime-types-9.tar.bz2

/etc/mime.types is sorted by alphabet, so

```
cat /etc/mime.types | grep javascript
application/javascript  
js
application/x-javascript
js
```

apparently, the last entry application/x-javascript
will overwrite the previous entry application/javascript

--
components: Library (Lib)
messages: 408197
nosy: milahu
priority: normal
severity: normal
status: open
title: mimetypes.guess_type returns deprecated mimetype application/x-javascript
type: behavior
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46035>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: How to get dynamic data in html (javascript?)

2020-01-13 Thread Friedrich Rentsch



On 1/11/20 2:39 PM, Friedrich Rentsch wrote:

Hi all,

I'm pretty good at hacking html text. But I have no clue how to get 
dynamic data like this : "At close: {date} {time}". I would appreciate 
a starting push to narrow my focus, currently awfully unfocused. Thanks.


Frederic

Thanks for bothering. I'm sorry for having been too terse. The snippet 
was from an html download (wget 
https://finance.yahoo.com/quote/HYT/history?p=HYT). Here's a little more 
of it:  ".  .  .  ED_SHORT":"At close: {date} 
{time}","MARKET_TIME_NOTICE_CLOSED":"As of {date} {time}. 
{marketState}","MARKE . . .". I suppose the browser gets the values 
whose names appear in braces, dialoguing with the server. I believe it 
is javascript. I see sections marked  . . . section here . . . 
</tt><tt>. If it is javascript, the question would be how to run 
javascript in python, unless it runs on the server by requests sent by 
python from my end.


Frederic


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


Re: How to get dynamic data in html (javascript?)

2020-01-13 Thread Chris Angelico
On Sun, Jan 12, 2020 at 4:41 AM Friedrich Rentsch
 wrote:
>
> Hi all,
>
> I'm pretty good at hacking html text. But I have no clue how to get
> dynamic data like this : "At close: {date} {time}". I would appreciate a
> starting push to narrow my focus, currently awfully unfocused. Thanks.
>
> Frederic
>

You're asking this on a Python mailing list. Are you using Flask?
Django? AIOHTTP? Do you have a templating engine like Jinja?

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


Re: How to get dynamic data in html (javascript?)

2020-01-12 Thread musbur
On Sat, 11 Jan 2020 14:39:38 +0100
Friedrich Rentsch  wrote:

> I'm pretty good at hacking html text. But I have no clue how to get 
> dynamic data like this : "At close: {date} {time}". I would
> appreciate a starting push to narrow my focus, currently awfully
> unfocused. Thanks.

Focus on the str.format() function.
-- 
https://mail.python.org/mailman/listinfo/python-list


How to get dynamic data in html (javascript?)

2020-01-11 Thread Friedrich Rentsch

Hi all,

I'm pretty good at hacking html text. But I have no clue how to get 
dynamic data like this : "At close: {date} {time}". I would appreciate a 
starting push to narrow my focus, currently awfully unfocused. Thanks.


Frederic

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


Re: JavaScript Calculator Program

2019-12-07 Thread Chris Angelico
On Sat, Dec 7, 2019 at 11:21 PM ferzan saglam  wrote:
>
> Hi People, I am working on a simple calculator which uses operands (+-*/).
> The program allows me to choose an operand and enter the first two values, 
> but when it gets to doing the maths, it gives me an error on
> "console.log ("The result is ", res);" under the + operand.
> (error code reads: Println is not a function)
>
> Any help will be much appreciated.
> Thanks in advance.

Do your own homework.

You've just posted a JavaScript homework problem to a Python mailing
list. The only help I'm going to give you is to remind you to read
your error messages, because they are there to help you.

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


JavaScript Calculator Program

2019-12-07 Thread ferzan saglam
Hi People, I am working on a simple calculator which uses operands (+-*/).
The program allows me to choose an operand and enter the first two values, but 
when it gets to doing the maths, it gives me an error on 
"console.log ("The result is ", res);" under the + operand.
(error code reads: Println is not a function)

Any help will be much appreciated. 
Thanks in advance.

---

console.log ("1. Add numbers"); 

console.log("2. Subtract numbers"); 

console.log("3. Multiply numbers"); 

console.log("4. Divide numbers");   


console.log = prompt("What's your choice?");


var num1 = prompt("Enter the first number ");   

firstnumber = prompt;   

var num2 = prompt("Enter the second number ");  

secondnumber = prompt;  

var choice; 
var res;

if (choice == 1);   
result = (num1 + num2); 

console.log ("The result is ", res);


if (choice == 2);   
result = (num1 - num2); 

console.log ("The result is = ", res);  


if (choice == 3);   
result = (num1 * num2); 

console.log ("The result is = ", res);  


if (choice == 4);   
result = (num1 / num2); 

console.log ("The result is = ", res);

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


[issue34875] Change .js mime to "text/javascript"

2019-06-17 Thread Myles Borins


Myles Borins  added the comment:

Hey All,

I'd like to reopen this. We are almost done with the IETF standardization of 
.mjs, and part of this process is making obsolete application/javascript in 
favor of text/javascript.

--> https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/

--
resolution: rejected -> 
status: closed -> open

___
Python tracker 
<https://bugs.python.org/issue34875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

We can return to the question when (and if) the draft will be accepted.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Myles Borins


Myles Borins  added the comment:

There is a IETF proposal that would make "text/javascript" no longer obsolete.

Will revisit at the point this lands

https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/

--

___
Python tracker 
<https://bugs.python.org/issue34875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

By RCF 4329 https://tools.ietf.org/html/rfc4329#page-9 text/javascript is 
obsoleted, application/javascript is a part of the standard.

WhatWg is a controversial group. Their specs don't always follow official 
standards but Python does.

Sorry, I should decline the proposal.

Feel free to raise an issue again if IETF will change their opinion.

--
nosy: +asvetlov

___
Python tracker 
<https://bugs.python.org/issue34875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "text/javascript"

2018-10-03 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
title: Change .js mime to "test/javascript" -> Change .js mime to 
"text/javascript"

___
Python tracker 
<https://bugs.python.org/issue34875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "test/javascript"

2018-10-02 Thread Ammar Askar


Ammar Askar  added the comment:

It should be noted that the HTML spec also says:

The term "JavaScript" is used to refer to ECMA-262, rather than the official 
term ECMAScript, since the term JavaScript is more widely known. Similarly, the 
MIME type used to refer to JavaScript in this specification is text/javascript, 
since that is the most commonly used type, despite it being an officially 
obsoleted type according to RFC 4329.

https://html.spec.whatwg.org/#dependencies:willful-violation

--
nosy: +ammar2

___
Python tracker 
<https://bugs.python.org/issue34875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "test/javascript"

2018-10-02 Thread Myles Borins


Change by Myles Borins :


--
keywords: +patch
pull_requests: +9066
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34875] Change .js mime to "test/javascript"

2018-10-02 Thread Myles Borins


New submission from Myles Borins :

I propose to change the mapping of file extension .js to mime type 
"text/javascript" from "application/javascript.

"text/javascript" is the currently documented best practice in the whatwg HTML 
spec.

https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages:javascript-mime-type

--
components: Library (Lib)
messages: 326920
nosy: mylesborins
priority: normal
severity: normal
status: open
title: Change .js mime to "test/javascript"
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue34875>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



file download using django and javascript

2018-05-17 Thread Xristos Xristoou


i have create a django app with REST JSON API and i fill html table in web page 
from my JSON.

here some examples

javascript snippets :

var field22=document.getElementById('f22');
field22.innerHTML=e.target.feature.properties.id;

var field23=document.getElementById('f23');
field23.innerHTML=e.target.feature.properties.file_1;

html :

 

  
  id :
  
   
   file :
  
   

i have parse my JSON in table with success but in the file field now i have a 
simple text from image path.

Now i want in this path to have some hyperlink(or button) for download this 
file.

any idea how to do this because i stack ?i dont know how to connection 
javasscript with my download or how to download this file using javascript

django app code

models.py:

class MyModel(models.Model):
file_1 = models.FileField(upload_to='documents/',blank=True, null=True)

simple test django donwload :

def download(request, id):
product_file=MyModel.objects.get(pk=id)
f = StringIO()
zip = zipfile.ZipFile(f, 'w')
product_file_url = product_file.file_1.url
file_url = settings.MEDIA_ROOT + product_file_url[6:]
filename = product_file_url[6:].split('/')[-1]
zip.write(file_url,filename)
zip.close()
response = HttpResponse(f.getvalue(), content_type="application/zip")
response['Content-Disposition'] = 'attachment; filename=file-download.zip'
return response

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


Re: Does Python need Javascript?

2017-06-15 Thread Ned Batchelder
On Thursday, June 15, 2017 at 5:55:07 AM UTC-4, Gregory Ewing wrote:
> Chris Angelico wrote:
> > There've been a number of attempts, over the years, to make a
> > sandboxed Python interpreter, where you can run untrusted code. But if
> > Python came with a JS interpreter, it would be possible to run
> > untrusted JS code, with Python functioning as a gatekeeper.
> 
> If that would provide sufficient sandboxing, then how about
> writing a Python interpreter in Python to get a sandboxed
> Python?

PyPy has a sandboxed mode, where every system call is routed through
a controller process than can decide what to do with it.

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


Re: Does Python need Javascript?

2017-06-15 Thread Gregory Ewing

Chris Angelico wrote:

There've been a number of attempts, over the years, to make a
sandboxed Python interpreter, where you can run untrusted code. But if
Python came with a JS interpreter, it would be possible to run
untrusted JS code, with Python functioning as a gatekeeper.


If that would provide sufficient sandboxing, then how about
writing a Python interpreter in Python to get a sandboxed
Python?

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


Re: Does Python need Javascript?

2017-06-15 Thread Steven D'Aprano
On Thu, 15 Jun 2017 17:42:12 +1000, Chris Angelico wrote:


> Load up PyPyJS and run Python inside JavaScript inside Python.


I'm reminded of a demo I saw once, of a BeOS system running a classic Mac 
emulator (sheepshaver, I believe it was), then running a Windows emulator 
inside the Mac emulator.

I'd like to say it was still faster than native Windows, but that 
wouldn't be true. Nevertheless, performance was still reasonable: good 
enough to run MS Office.



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


Re: Does Python need Javascript?

2017-06-15 Thread Chris Angelico
On Thu, Jun 15, 2017 at 5:14 PM, Steven D'Aprano <st...@pearwood.info> wrote:
> Now that Java 8 includes a Javascript interpreter (Nashorn) as part of
> the JDK, and since Javascript is The Future™, does Python need a
> Javascript interpreter in the standard library?
>
> If Python came with a Javascript interpreter, what would you do with it?

Okay, now for a serious response.

There've been a number of attempts, over the years, to make a
sandboxed Python interpreter, where you can run untrusted code. But if
Python came with a JS interpreter, it would be possible to run
untrusted JS code, with Python functioning as a gatekeeper. You could
allow JS to require("fs"), but still govern which files it reads and
writes. You could allow JS to use the fetch() function, but still pick
and choose which servers it contacts.

It'd also make a great platform for experimenting with ECMAScript
itself. Imagine if JS-in-Python had some tweakable parameters that
technically violate backward compatibility, but which you can choose
to activate from the Python end. You could, for instance:

* Make strings truly Unicode, instead of UTF-16
* Introduce an arbitrary-precision integer type
* Eliminate the 'var' keyword (just use 'let')
* Add a dictionary type that uses non-string keys
* Etcetera

And possibly most importantly, you could have a high performance data
sharing system between the Python and JS sides. A "native code"
function could accept any JSON-safe object as a parameter, and
directly access its contents (without actually serializing and
deserializing). That would allow efficient bilingual code, where
anything written in Python can be called from JS and vice versa.
Obviously this would depend on the JS objects being internally
represented as Python objects, which may have some minor semantic
differences; my suspicion is that it'd end up being similar to the way
Jython and IronPython behave.

But really, I don't think it needs to be in the standard library. A
pip-installable third-party implementation would be just as effective.

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


Re: Does Python need Javascript?

2017-06-15 Thread Paul Barry
Life is too short... 

On 15 Jun 2017 08:17, "Steven D'Aprano" <st...@pearwood.info> wrote:

Now that Java 8 includes a Javascript interpreter (Nashorn) as part of
the JDK, and since Javascript is The Future™, does Python need a
Javascript interpreter in the standard library?

If Python came with a Javascript interpreter, what would you do with it?



(Serious question, but humorous answers accepted too.)




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


Re: Does Python need Javascript?

2017-06-15 Thread Chris Angelico
On Thu, Jun 15, 2017 at 5:14 PM, Steven D'Aprano <st...@pearwood.info> wrote:
> Now that Java 8 includes a Javascript interpreter (Nashorn) as part of
> the JDK, and since Javascript is The Future™, does Python need a
> Javascript interpreter in the standard library?
>
> If Python came with a Javascript interpreter, what would you do with it?
>
>
>
> (Serious question, but humorous answers accepted too.)

Load up PyPyJS and run Python inside JavaScript inside Python.

Just because.

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


Does Python need Javascript?

2017-06-15 Thread Steven D'Aprano
Now that Java 8 includes a Javascript interpreter (Nashorn) as part of 
the JDK, and since Javascript is The Future™, does Python need a 
Javascript interpreter in the standard library?

If Python came with a Javascript interpreter, what would you do with it?



(Serious question, but humorous answers accepted too.)




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


Re: Obtain javascript result

2016-12-29 Thread abaco121
Hi,
there's a problem in betexplorer?
this php page dont response anything to get odds

http://www.betexplorer.com/soccer/russia/youth-\league/matchdetails.php?matchid=rLu2Xsdi

from 24 december dont work

thanxs



Il giorno domenica 23 ottobre 2016 20:09:30 UTC+2, epr...@gmail.com ha scritto:
> Ok, I solved to this way:
> 
> from bs4 import BeautifulSoup
> from selenium import webdriver
> 
> driver = webdriver.Chrome()
> driver.get('http://www.betexplorer.com/soccer/russia/youth-\league/matchdetails.php?matchid=rLu2Xsdi')
> 
> pg_src = driver.page_source
> driver.close()
> soup = BeautifulSoup(pg_src, 'html.parser')
> # start from here I do something with soup ...
> 
> Windows 10 / Python 3.5.2
> 
> Thanks
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Obtain javascript result

2016-10-23 Thread eproser
Ok, I solved to this way:

from bs4 import BeautifulSoup
from selenium import webdriver

driver = webdriver.Chrome()
driver.get('http://www.betexplorer.com/soccer/russia/youth-\league/matchdetails.php?matchid=rLu2Xsdi')

pg_src = driver.page_source
driver.close()
soup = BeautifulSoup(pg_src, 'html.parser')
# start from here I do something with soup ...

Windows 10 / Python 3.5.2

Thanks


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


Re: Obtain javascript result

2016-10-22 Thread Bob Gailer
On Oct 22, 2016 12:45 AM,  wrote:
>
> Many Thanks to everybody.

You're welcome. It's fun to help in a challenging problem. Please let us
know what solution(s), if any, you have adopted, what problems, if any,
you've encountered, what Python version and operating system.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Obtain javascript result

2016-10-21 Thread eproser
Many Thanks to everybody.

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


Re: Obtain javascript result

2016-10-21 Thread justin walters
On Fri, Oct 21, 2016 at 8:07 AM, <epro...@gmail.com> wrote:

> Yes,
>
> the page is http://www.betexplorer.com/next/soccer/
> and You have to open any match You want.
>
> This pop-up new windows with match detail and odds
> (if present).
>
> I try to extract home team, away team, results, and
> bet365's bookmaker odds.
>
> I can't continue in my fun analyses because the odds
> are returned through that javascript code and
> I don't know how manage it in python
> to take that results.
>


The data is being obtained through an ajax call:

jQuery.ajax({
url: '/gres/ajax-matchdetails.php',
type: 'GET',
cache: false,
dataType: 'json',
success: function(data)
{
if (data.user_logged)
{
user.logged = true;
user.oddsformat = data.oddsformat;
}
bookmaker_urls = data.bookmaker_urls;

ajax_to_call--;
if (ajax_to_call == 0)
{
matchdetails_finish();
$('#odds-all-loader').remove();
$('#odds-all').show();
}
}
});

jQuery.ajax({
url: '/gres/ajax-matchodds.php',
type: 'GET',
data: 't=d=' + eventid + '=' + bettype,
success: function(data)
{
$('#odds-all').html(data);

ajax_to_call--;
if (ajax_to_call == 0)
{
matchdetails_finish();
$('#odds-all-loader').remove();
$('#odds-all').show();
}
}

You can see this by opening up your developer tools (chrome or Firefox) and
navigating to the debugger/scripts tab where you will find the
"matchdetails_init" function.

However, I tried fetching the "ajax-matchdetails.php" endpoint via httpie,
and I received a 404 page. Investigating the request via the developer
console led to some strange results as well. There was a small piece of
json data returned containing the keys "user_logged" and "bookmaker_urls".
There was no data about the match at all.

There are several other ajax calls in the script, so you may want to check
those out.

However, it seems like the match data itself is actually populated with
data server-side via a PHP script.

You should be able to get the link for a match, point beautiful soup at it,
parse it, and get the data.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Obtain javascript result

2016-10-21 Thread bob gailer

On 10/21/2016 11:07 AM, epro...@gmail.com wrote:

Yes,

the page is http://www.betexplorer.com/next/soccer/
and You have to open any match You want.

This pop-up new windows with match detail and odds
(if present).

I try to extract home team, away team, results, and
bet365's bookmaker odds.

I can't continue in my fun analyses because the odds
are returned through that javascript code and
I don't know how manage it in python
to take that results.

What version of Python are you using, and what operating system?

I would use splinter (https://pypi.python.org/pypi/splinter)
From a command prompt: pip install splinter

The Python program (this is not tested; your mileage may vary):

from splinter import Browser
browser = Browser(browser)
page = 
browser.visit('http://www.betexplorer.com/soccer/russia/youth-league/matchdetails.php?matchid=rLu2Xsdi')

div = browser.find_by_id('be')
text = div.text

text looks like
"




Soccer » Russia » Youth League 2016/201720.10.2016


Cruzeiro-Corinthians
4:2
(1:1, 3:1)



14.Abila Ramon
(penalty kick) 59.Abila Ramon
63.Rodrigo Bruno
83.De Arrascaeta Giorgian




35.Rodriguinho
86.Rildo





1X2 Odds (25)
O/U (100)
AH (33)
DNB (11)
DC (20)
BTS (14)




Bookmakers: 251X2

 10Bet1.573.555.05
 12BET1.753.554.40
 188BET1.723.654.40
 888sport1.683.704.80
 bet-at-home1.673.404.42
 bet3651.733.604.75
 Betclic1.653.404.60
 Betfair1.663.404.40
 Betsafe1.683.504.25
 Betsson1.683.504.25
 BetVictor1.703.605.00
 Betway1.703.404.75
 bwin1.673.704.40
 ComeOn1.573.555.05
 Expekt1.653.404.60
 Interwetten1.703.454.50
 Ladbrokes1.733.605.00
 mybet1.753.504.00
 Pinnacle1.753.815.25
 SBOBET1.723.504.70
 Sportingbet1.673.604.60
 Tipico1.653.504.70
 Unibet1.683.704.80
 William Hill1.733.404.40
 youwin1.673.604.60


Average odds 1.693.544.63





close window

$(document).ready(function() {
matchdetails_init('rLu2Xsdi', '1x2');
});




"
I hope you know enough to extract the data you want. There are probably 
better ways to drill down to the relevant table rows, but I can't do 
that right now as I am having my own problem with splinter.


splinter is the only tool I know that will do this. There may be others.

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


Re: Obtain javascript result

2016-10-21 Thread Michael Torrie
On 10/21/2016 07:29 AM, epro...@gmail.com wrote:
> Hello NG.
> 
> I'm new in Python for fun.
> 
> I have a html page (I load it by BeautifulSoap) that contain
> also this javascript code:
> ...
> 
>   $(document).ready(function() {
> matchdetails_init('rLu2Xsdi', '1x2');
>   });
> 
> ...
> Please, can You me to aim on the right way
> to obtain into a Python data structure 
> everything that JS code give back to browser.

All BeautifulSoup does is parse html. It doesn't run javascript.  To
obtain the html after the javascript has run, or to interact with the
Javascript you'll need a tool like Selenium[1], which has drivers for
Python and also Chrome or Firefox.  In other words you need a real
browser running that can execute the javascript.  After that you can
extract the html results using BeautifulSoup.

Google for many tutorials on using Selenium with python.

[1] https://pypi.python.org/pypi/selenium
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Obtain javascript result

2016-10-21 Thread eproser
Yes, 

the page is http://www.betexplorer.com/next/soccer/
and You have to open any match You want.

This pop-up new windows with match detail and odds
(if present). 

I try to extract home team, away team, results, and
bet365's bookmaker odds.

I can't continue in my fun analyses because the odds
are returned through that javascript code and 
I don't know how manage it in python 
to take that results.





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


Re: Obtain javascript result

2016-10-21 Thread Bob Gailer
On Oct 21, 2016 9:30 AM, <epro...@gmail.com> wrote:
>
> Hello NG.
>
> I'm new in Python for fun.
>
> I have a html page (I load it by BeautifulSoap) that contain
> also this javascript code:
> ...
> 
>   $(document).ready(function() {
> matchdetails_init('rLu2Xsdi', '1x2');
>   });
> 
> ...
> Please, can You me to aim on the right way
> to obtain into a Python data structure
> everything that JS code give back to browser.

Not without seeing the code for matchdetails_init. Likely we'd also need to
see the page source.

What do you expect to get?
-- 
https://mail.python.org/mailman/listinfo/python-list


Obtain javascript result

2016-10-21 Thread eproser
Hello NG.

I'm new in Python for fun.

I have a html page (I load it by BeautifulSoap) that contain
also this javascript code:
...

  $(document).ready(function() {
matchdetails_init('rLu2Xsdi', '1x2');
  });

...
Please, can You me to aim on the right way
to obtain into a Python data structure 
everything that JS code give back to browser.

Thank in advance

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


Re: Python3 html scraper that supports javascript

2016-05-02 Thread zljubisic

> Why? As important as it is to show code, you need to show what actually
> happens and what error message is produced.

If you run the code you will see that html that I got doesn't have link to the 
flash video. I should somehow do something (press play video button maybe) in 
order to get html with reference to the video file on this page.

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


Re: Python3 html scraper that supports javascript

2016-05-02 Thread Stephen Hansen
On Mon, May 2, 2016, at 08:33 AM, zljubi...@gmail.com wrote:
> I tried to use the following code:
> 
> from bs4 import BeautifulSoup
> from selenium import webdriver
> 
> PHANTOMJS_PATH =
> 'C:\\Users\\Zoran\\Downloads\\Obrisi\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe'
> 
> url =
> 'https://hrti.hrt.hr/#/video/show/2203605/trebizat-prica-o-jednoj-vodi-i-jednom-narodu-dokumentarni-film'
> 
> browser = webdriver.PhantomJS(PHANTOMJS_PATH)
> browser.get(url)
> 
> soup = BeautifulSoup(browser.page_source, "html.parser")
> 
> x = soup.prettify()
> 
> print(x)
> 
> When I print x variable, I would expect to see something like this:
>  src="mediasource:https://hrti.hrt.hr/2e9e9c45-aa23-4d08-9055-cd2d7f2c4d58;
> id="vjs_video_3_html5_api" class="vjs-tech" preload="none"> type="application/x-mpegURL"
> src="https://prd-hrt.spectar.tv/player/get_smil/id/2203605/video_id/2203605/token/Cny6ga5VEQSJ2uZaD2G8pg/token_expiration/1462043309/asset_type/Movie/playlist_template/nginx/channel_name/trebiat__pria_o_jednoj_vodi_i_jednom_narodu_dokumentarni_film/playlist.m3u8?foo=bar;>
> 
> 
> but I can't come to that point.

Why? As important as it is to show code, you need to show what actually
happens and what error message is produced.

-- 
Stephen Hansen
  m e @ i x o k a i . i o
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python3 html scraper that supports javascript

2016-05-02 Thread DFS

On 5/2/2016 11:33 AM, zljubi...@gmail.com wrote:



I tried to use the following code:

from bs4 import BeautifulSoup
from selenium import webdriver

PHANTOMJS_PATH = 
'C:\\Users\\Zoran\\Downloads\\Obrisi\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe'

url = 
'https://hrti.hrt.hr/#/video/show/2203605/trebizat-prica-o-jednoj-vodi-i-jednom-narodu-dokumentarni-film'

browser = webdriver.PhantomJS(PHANTOMJS_PATH)
browser.get(url)

soup = BeautifulSoup(browser.page_source, "html.parser")

x = soup.prettify()

print(x)


When I print x variable, I would expect to see something like this:
https://hrti.hrt.hr/2e9e9c45-aa23-4d08-9055-cd2d7f2c4d58; id="vjs_video_3_html5_api" 
class="vjs-tech" preload="none">https://prd-hrt.spectar.tv/player/get_smil/id/2203605/video_id/2203605/token/Cny6ga5VEQSJ2uZaD2G8pg/token_expiration/1462043309/asset_type/Movie/playlist_template/nginx/channel_name/trebiat__pria_o_jednoj_vodi_i_jednom_narodu_dokumentarni_film/playlist.m3u8?foo=bar;>


but I can't come to that point.

Regards.



I was doing something similar recently.  Try this:

f = open(somefilename)
soup = BeautifulSoup.BeautifulSoup(f)
f.close()
print soup.prettify()


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


Re: Python3 html scraper that supports javascript

2016-05-02 Thread zljubisic


I tried to use the following code:

from bs4 import BeautifulSoup
from selenium import webdriver

PHANTOMJS_PATH = 
'C:\\Users\\Zoran\\Downloads\\Obrisi\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe'

url = 
'https://hrti.hrt.hr/#/video/show/2203605/trebizat-prica-o-jednoj-vodi-i-jednom-narodu-dokumentarni-film'

browser = webdriver.PhantomJS(PHANTOMJS_PATH)
browser.get(url)

soup = BeautifulSoup(browser.page_source, "html.parser")

x = soup.prettify()

print(x)


When I print x variable, I would expect to see something like this:
https://hrti.hrt.hr/2e9e9c45-aa23-4d08-9055-cd2d7f2c4d58; 
id="vjs_video_3_html5_api" class="vjs-tech" preload="none">https://prd-hrt.spectar.tv/player/get_smil/id/2203605/video_id/2203605/token/Cny6ga5VEQSJ2uZaD2G8pg/token_expiration/1462043309/asset_type/Movie/playlist_template/nginx/channel_name/trebiat__pria_o_jednoj_vodi_i_jednom_narodu_dokumentarni_film/playlist.m3u8?foo=bar;>


but I can't come to that point.

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


Re: Python3 html scraper that supports javascript

2016-05-01 Thread Bob Gailer
On May 1, 2016 10:20 AM,  wrote:
>
> Hi,
>
> can you please recommend to me a python3 library that I can use for
scrapping JS
I'm not sure what you mean by that. The tool I use is Splinter. Install it
using pip.
that works on windows as well as linux?
-- 
https://mail.python.org/mailman/listinfo/python-list


Python3 html scraper that supports javascript

2016-05-01 Thread zljubisic
Hi,

can you please recommend to me a python3 library that I can use for scrapping 
JS that works on windows as well as linux?

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Chris Angelico
On Sun, Mar 27, 2016 at 3:05 PM, Gregory Ewing
 wrote:
> Gene Heskett wrote:
>>
>> But I learned a lot about hot ($2400F) iron too.
>
>
> 2400 dollars farenheit? That's an intriguing unit...
>
> Or is it meant to be the temperature in hex?

Hex, obviously. Which is something like five thousand Kelvin, in decimal.

Yeah that's hot.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Gregory Ewing

Gene Heskett wrote:

But I learned a lot about hot ($2400F) iron too.


2400 dollars farenheit? That's an intriguing unit...

Or is it meant to be the temperature in hex?

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Cameron Simpson

On 26Mar2016 02:36, Thomas 'PointedEars' Lahn  wrote:

Ned Batchelder wrote:

Chris, I apologize for Thomas.


How dare you to speak for me,


Because it is something you never say: sorry for my rudeness.


and *again* the rest of the subscribers?


He speaks for me at least, on this topic. I was tempted to say this yesterday 
after Ned, but didn't because his words were well chosen. But now:


Chris, I too apologise for Thomas' tone. With one or two exceptions, I have 
found this to be one of the most civil and welcoming fora on the net and hope 
you get good help and discussion here.



There is nothing to apologize for when I am *helping* someone by giving them
useful information.


Items of useful information shielded behind concealing walls of apparent anger 
and contempt. That is not a helpful delivery style, and it actively drives away 
new people.


May I recommend the film "Harvey"? As the lead character says at one point: "I 
used to be smart. I recommend nice." I used to be something of a hothead 
myself; I hope that I have matured.


[...]

Politeness is another thing you should try sometime, as I see that, your
having no valid argument at all, you like to throw dirt instead.

[...]

Your previous tone makes this admonition ineffective. Based on my samples, Ned 
is far beyond you in politeness.


My personal practice is usually to leave post that offend or disparage or 
otherwise have an agressive tone alone, or to snip the rant-like sections and 
address _only_ the technical content to try to keep the discussion on topic and 
civil. But not always, as evidenced here.


Thomas: your tone and delivery _is_ unhelpful to others, and comes across as 
hostile, at least to my eyes and evidently to others.


Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Michael Torrie
On 03/26/2016 11:49 AM, Michael Torrie wrote:
> Well said, Ned, and a good reminder for me, and I suspect all of us, to
> considering how we communicate.  It's our nature to think problems lie
^^
Sigh.  Consider.  And proof read.

> with everyone else but us (as witnessed by recent posts from another
> list member in this own thread), and it's good to be reminded to look
> inward as well.


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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Thomas 'PointedEars' Lahn
Mark Lawrence wrote:

> On 24/03/2016 20:53, c...@isbd.net wrote:
>> I use Python wherever I can and find this list (as a usenet group via
>> gmane) an invaluable help at times.
>>
>> Occasionally I have to make forays into Javascript, can anyone
>> recommend a place similar to this list where Javascript questions can
>> be asked?  The trouble is that there are very many usenet Javascript
>> lists and it's difficult to guess which one[es] might be good.
> 
> Perhaps this http://transcrypt.org/ is the way to go? :)

Unfortunately, no.  It needs attention from an expert in the targeted field.

To begin with, the “JavaScript” version (actually, only an ECMAScript 
*2015*-compliant version) of the original Python code considers a "class" as 
sealed (properties being only accessor properties with a getter), when in 
Python that is not the case:

class C:
def foo (self):
pass

o = C()
C.foo = lambda self, bar: print(bar)

# prints "baz"
o.foo("baz")

Further, to set up multiple inheritance in a conforming implementation of 
ECMAScript, one must not only set up the instance properties as by the 
constructor of a type, but also the *prototype* chain.  In fact, a Proxy 
instance would be required to really set up the *emulation* of such a 
branching prototype chain for any ECMAScript object.

This list of implementation mistakes is not exhaustive, but ECMAScript 
implementations are beyond the scope of this newsgroup/mailing list.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Michael Torrie
On 03/26/2016 05:37 AM, Ned Batchelder wrote:
> [...]

> Has anyone ever said to you, "Thanks, Thomas! Lots of people were giving
> me answers, but they were all so kind and polite about it, I couldn't
> see what they were saying.  Finally, your blunt direct manner got
> through to me, so now I understand."  Of course not. It's absurd.
> Bluntness doesn't help learning.  It just makes *you* feel good.  
> 
> Points of correctness are useless without points of connection.  You
> have to talk to people in a way that they will hear.  If you can't be
> bothered, then you are just wasting your time, and earning a negative
> reputation for yourself.
> [...]

Well said, Ned, and a good reminder for me, and I suspect all of us, to
considering how we communicate.  It's our nature to think problems lie
with everyone else but us (as witnessed by recent posts from another
list member in this own thread), and it's good to be reminded to look
inward as well.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Gene Heskett
On Saturday 26 March 2016 11:35:52 Larry Martell wrote:

> On Sat, Mar 26, 2016 at 11:31 AM, Gene Heskett  
wrote:
> > On Saturday 26 March 2016 07:52:05 Larry Martell wrote:
> >> As my wife once said, "If you start with 'Listen, asshole, ...'
> >> they probably won't hear what you have to say after that.
> >
> > She is 100% correct, but try as I might, I can't quite believe that
> > your missus would ever use that plain a language.  She is too good
> > at dressing it up.  She reminds me of our now passed Senator Bobbie
> > Byrd, who could tell somebody to go to hell in such flowery language
> > that they looked forward to the trip.
>
> Gene, she can curse like a sailor when needed.

The key is "when needed".  Been known to do that myself. I did, 60 years 
ago have a 10 minute monologue of swearing practiced up, no 4 letter 
word used twice. But common sense has prevailed and I've forgotten 9 
minutes of it by now. No longer 10' tall & bulletproof I guess. :)

The years do that to a body, so now my std excuse is that if I had of 
known I was going to live this long, I would have taken better care of 
myself.  But I would have had to start practicing that the summer of 
1960 when, for lack of a better job, I spent several months in an iron 
foundry. Woman and at that point, 2 kids to feed. But I learned a lot 
about hot ($2400F) iron too.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Larry Martell
On Sat, Mar 26, 2016 at 11:31 AM, Gene Heskett  wrote:
> On Saturday 26 March 2016 07:52:05 Larry Martell wrote:
>> As my wife once said, "If you start with 'Listen, asshole, ...' they
>> probably won't hear what you have to say after that.
>
> She is 100% correct, but try as I might, I can't quite believe that your
> missus would ever use that plain a language.  She is too good at
> dressing it up.  She reminds me of our now passed Senator Bobbie Byrd,
> who could tell somebody to go to hell in such flowery language that they
> looked forward to the trip.

Gene, she can curse like a sailor when needed.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Gene Heskett
On Saturday 26 March 2016 07:52:05 Larry Martell wrote:

> On Sat, Mar 26, 2016 at 7:37 AM, Ned Batchelder  
wrote:
> > Thomas, you don't have to choose between correct and nice.  It's
> > possible to be both.
>
> "I'm not good, I'm not nice, I'm just right."
>
> That was written by Stephen Sondheim and it's from his musical Into
> The Woods. It's said by the witch. That used to be my sig back in
> usenet days, and more then one person said "Who said that? Rush
> Limbaugh?"
>
> > I can see that you are knowledgeable, and I really appreciate the
> > energy you put into answering questions.  You are very generous with
> > your time. But when you bark correct things at people, they don't
> > hear you.  Your helpful energy is being overshadowed by your blunt
> > rude manner.
>
> As my wife once said, "If you start with 'Listen, asshole, ...' they
> probably won't hear what you have to say after that.

She is 100% correct, but try as I might, I can't quite believe that your 
missus would ever use that plain a language.  She is too good at 
dressing it up.  She reminds me of our now passed Senator Bobbie Byrd, 
who could tell somebody to go to hell in such flowery language that they 
looked forward to the trip.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Mark Lawrence

On 24/03/2016 20:53, c...@isbd.net wrote:

I use Python wherever I can and find this list (as a usenet group via
gmane) an invaluable help at times.

Occasionally I have to make forays into Javascript, can anyone
recommend a place similar to this list where Javascript questions can
be asked?  The trouble is that there are very many usenet Javascript
lists and it's difficult to guess which one[es] might be good.



Perhaps this http://transcrypt.org/ is the way to go? :)

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread cl
Thomas 'PointedEars' Lahn <pointede...@web.de> wrote:
> c...@isbd.net wrote:
> 
> > Occasionally I have to make forays into Javascript, can anyone
> > recommend a place similar to this list where Javascript questions can
> > be asked?  The trouble is that there are very many usenet Javascript
> > lists and it's difficult to guess which one[es] might be good.
> 
> There is no Javascript. 
> 
> There are no Usenet lists.
> 
> This is not only a Python *mailing* list, it is also mirrored as an 
> international Usenet _newsgroup_, <news:comp.lang.python> (which I am 
> reading).
> 
Which is what (OP) do too.  Life's too short to go into detail about
how one is accessing a group/list in the context of a question like my
original question.

It's quite fun following all the resulting flak though!  :-)

> If you can accept all of that, then the international Usenet _newsgroup_ 
> <news:comp.lang.javascript> (where I am posting primarily) is for you.
> So are other national/language-specific newsgroups on the JavaScripts and 
> other ECMAScript implementations.  In your newsreader, search for newsgroups 
> whose name contains “javascript”.
> 
> Next time, read <news:news.answers> and STFW first, and get a real name.
> 
Ay?  

Thanks anyway, comp.lang.javascript it is, or I'll try it anyway.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread cl
Ned Batchelder <n...@nedbatchelder.com> wrote:
> On Friday, March 25, 2016 at 5:17:21 PM UTC-4, Thomas 'PointedEars' Lahn 
> wrote:
> > c...@isbd.net wrote:
> > 
> > > Occasionally I have to make forays into Javascript, can anyone
> > > recommend a place similar to this list where Javascript questions can
> > > be asked?  The trouble is that there are very many usenet Javascript
> > > lists and it's difficult to guess which one[es] might be good.
> > 
> > There is no Javascript. 
> > 
> > There are no Usenet lists.
> > 
> > This is not only a Python *mailing* list, it is also mirrored as an 
> > international Usenet _newsgroup_, <news:comp.lang.python> (which I am 
> > reading).
> > 
> > If you can accept all of that, then the international Usenet _newsgroup_ 
> > <news:comp.lang.javascript> (where I am posting primarily) is for you.
> > So are other national/language-specific newsgroups on the JavaScripts and 
> > other ECMAScript implementations.  In your newsreader, search for 
> > newsgroups 
> > whose name contains "javascript".
> > 
> > Next time, read <news:news.answers> and STFW first, and get a real name.
> 
> Chris, I apologize for Thomas.  His main goal on this list seems to be
> pointing out when people are wrong, over the smallest details.  His
> secondary goal is enforcing some imaginary rule about real names, though
> he couldn't be bothered to read your post thoroughly enough to discover yours.
> 
> Thomas is not typical of the Python community. We are mostly nice people. :)
> 
Yes, I know, this is one of my favourite groups/lists.  Just about
every question I have ever asked here has received really helpful
replies.  Even this one has, though it does seem to have stirred a bit
of a hornet's nest at the same time.  :-)

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Larry Martell
On Sat, Mar 26, 2016 at 7:37 AM, Ned Batchelder  wrote:
> Thomas, you don't have to choose between correct and nice.  It's
> possible to be both.

"I'm not good, I'm not nice, I'm just right."

That was written by Stephen Sondheim and it's from his musical Into
The Woods. It's said by the witch. That used to be my sig back in
usenet days, and more then one person said "Who said that? Rush
Limbaugh?"

> I can see that you are knowledgeable, and I really appreciate the energy
> you put into answering questions.  You are very generous with your time.
> But when you bark correct things at people, they don't hear you.  Your
> helpful energy is being overshadowed by your blunt rude manner.

As my wife once said, "If you start with 'Listen, asshole, ...' they
probably won't hear what you have to say after that.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-26 Thread Ned Batchelder
On Friday, March 25, 2016 at 11:37:34 PM UTC-4, Thomas 'PointedEars' Lahn wrote:
> Chris Angelico wrote:
> 
> > On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn
> > <pointede...@web.de> wrote:
> >>> Thomas is not typical of the Python community. We are mostly nice
> >>> people.
> >>> :)
> >>
> >> You do not even know me.  I *am* a nice person, if only for the fact that
> >> I do not let people suffer from their own ignorance, and I encourage them
> >> to educate and enlighten themselves in order not be dependent on people
> >> like you who tell them what they should think.
> >>
> >> So *evidentially*, *you* are not a nice person.  According to your own
> >> "logic", *you* do not belong in the Python community.  Go away.
> > 
> > King Gama is a nicer person than you are, and in very similar ways.
> 
> I do not know a person called "King Gama", I do not think I need to know 
> them, I do not think that he is on-topic here either, and I think that you 
> should keep in mind that this is not a niceness contest, but a technical 
> newsgroup/mailing list.  I for one prefer a direct, if blunt, correct answer 
> over a nice, evading or incorrect one any time.

Thomas, you don't have to choose between correct and nice.  It's
possible to be both.

Even more important than being nice is being effective.  Do you think
your answers are achieving your goal?  Are people learning from you? Are
there ways more people could?

I can see that you are knowledgeable, and I really appreciate the energy
you put into answering questions.  You are very generous with your time.
But when you bark correct things at people, they don't hear you.  Your
helpful energy is being overshadowed by your blunt rude manner.

If your goal is to help people, you are missing the mark.  You say you
"encourage them to educate and enlighten themselves."  I haven't seen
encouragement. I've seen scolding and sneering and shaming. 

Has anyone ever thanked you for, "There is no Javascript"?  It's not
helpful, it's just pedantic.  Correct, yes; helpful? No.  Was "STFW
first" meant to be encouraging?  You have a different definition of that
word than I do.

I understand the desire to be right, and to point out incorrect things.
Heck, in writing this post I'm partly motivated by that desire.  But how
you say things has a huge effect on whether they are heard.

If you don't care if you are heard or not, then why say anything?  And
if you *do* care if you are heard or not, then you have to take into
account how people perceive you and your message.

Has anyone ever said to you, "Thanks, Thomas! Lots of people were giving
me answers, but they were all so kind and polite about it, I couldn't
see what they were saying.  Finally, your blunt direct manner got
through to me, so now I understand."  Of course not. It's absurd.
Bluntness doesn't help learning.  It just makes *you* feel good.  

Points of correctness are useless without points of connection.  You
have to talk to people in a way that they will hear.  If you can't be
bothered, then you are just wasting your time, and earning a negative
reputation for yourself.

But worse, you are tainting the reputation of this community.  Someone
comes here looking for an answer, or perhaps just comraderie, and they
get greeted by a rude condescending technocrat.  They don't just think,
"Thomas is a jerk," they think, "Python people are jerks."  That matters
a lot to me.


> See also: <http://www.catb.org/esr/faqs/smart-questions.html#not_losing>

An excellent link! Have you read it? It applies to this very case. You
screwed up on this community forum.  I am telling you how you screwed
up. And what you just did is "whine about the experience, claim to have
been verbally assaulted, demand apologies, scream, ..."

ESR's post exactly describes this situation, except you don't understand
how we map onto the roles he describes.

Perhaps you (and ESR) think that because this is a technical forum, all
that matters is technical correctness.  That's wrong.  This is a place
that people communicate, and how they communicate matters.  In fact, if
they can't communicate well, then none of the technical content matters
at all.

I'm sure you've heard this criticism before.  You seem to have made up
your mind that your way is right and that all of us criticizing you are
wrong.  I hope you'll take some of these points to heart anyway.  We can
use all the helpful knowledgable people we can get.

I know I can't change you.  But I can help set the tone in this forum.
Mostly by modeling good behavior, but occasionally by directly
addressing bad behavior.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Rustom Mody
On Saturday, March 26, 2016 at 9:55:15 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Mar 26, 2016 at 2:37 PM, Thomas 'PointedEars' Lahn wrote:
> > Chris Angelico wrote:
> >
> >> On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn wrote:
>  Thomas is not typical of the Python community. We are mostly nice
>  people.
>  :)
> >>>
> >>> You do not even know me.  I *am* a nice person, if only for the fact that
> >>> I do not let people suffer from their own ignorance, and I encourage them
> >>> to educate and enlighten themselves in order not be dependent on people
> >>> like you who tell them what they should think.
> >>>
> >>> So *evidentially*, *you* are not a nice person.  According to your own
> >>> "logic", *you* do not belong in the Python community.  Go away.
> >>
> >> King Gama is a nicer person than you are, and in very similar ways.
> >
> > I do not know a person called "King Gama", I do not think I need to know
> > them, I do not think that he is on-topic here either, and I think that you
> > should keep in mind that this is not a niceness contest, but a technical
> > newsgroup/mailing list.  I for one prefer a direct, if blunt, correct answer
> > over a nice, evading or incorrect one any time.
> >
> > See also: 
> >
> >
> > F'up2 poster
> 
> Fine. You want a blunt answer?
> 
> You, Thomas, are not a nice person. You think you are, but you are
> not. Be nicer or go away. Please.

"You think??"
I think you just failed the Turing test Chris 
Do admit it though...

Thomas 'juvenile' Lahn does a better job than Dihedral
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Chris Angelico
On Sat, Mar 26, 2016 at 2:37 PM, Thomas 'PointedEars' Lahn
 wrote:
> Chris Angelico wrote:
>
>> On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn
>>  wrote:
 Thomas is not typical of the Python community. We are mostly nice
 people.
 :)
>>>
>>> You do not even know me.  I *am* a nice person, if only for the fact that
>>> I do not let people suffer from their own ignorance, and I encourage them
>>> to educate and enlighten themselves in order not be dependent on people
>>> like you who tell them what they should think.
>>>
>>> So *evidentially*, *you* are not a nice person.  According to your own
>>> "logic", *you* do not belong in the Python community.  Go away.
>>
>> King Gama is a nicer person than you are, and in very similar ways.
>
> I do not know a person called “King Gama”, I do not think I need to know
> them, I do not think that he is on-topic here either, and I think that you
> should keep in mind that this is not a niceness contest, but a technical
> newsgroup/mailing list.  I for one prefer a direct, if blunt, correct answer
> over a nice, evading or incorrect one any time.
>
> See also: 
>
>
> F'up2 poster

Fine. You want a blunt answer?

You, Thomas, are not a nice person. You think you are, but you are
not. Be nicer or go away. Please.

Also, go look up King Gama, as he's from a source that the Pythons follow.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote:

> On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn
>  wrote:
>>> Thomas is not typical of the Python community. We are mostly nice
>>> people.
>>> :)
>>
>> You do not even know me.  I *am* a nice person, if only for the fact that
>> I do not let people suffer from their own ignorance, and I encourage them
>> to educate and enlighten themselves in order not be dependent on people
>> like you who tell them what they should think.
>>
>> So *evidentially*, *you* are not a nice person.  According to your own
>> "logic", *you* do not belong in the Python community.  Go away.
> 
> King Gama is a nicer person than you are, and in very similar ways.

I do not know a person called “King Gama”, I do not think I need to know 
them, I do not think that he is on-topic here either, and I think that you 
should keep in mind that this is not a niceness contest, but a technical 
newsgroup/mailing list.  I for one prefer a direct, if blunt, correct answer 
over a nice, evading or incorrect one any time.

See also: 


F'up2 poster

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Chris Angelico
On Sat, Mar 26, 2016 at 12:36 PM, Thomas 'PointedEars' Lahn
 wrote:
>> Thomas is not typical of the Python community. We are mostly nice people.
>> :)
>
> You do not even know me.  I *am* a nice person, if only for the fact that I
> do not let people suffer from their own ignorance, and I encourage them to
> educate and enlighten themselves in order not be dependent on people like
> you who tell them what they should think.
>
> So *evidentially*, *you* are not a nice person.  According to your own
> "logic", *you* do not belong in the Python community.  Go away.

King Gama is a nicer person than you are, and in very similar ways.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Steven D'Aprano
On Sat, 26 Mar 2016 08:17 am, PointedEars wrote:
..^^^

> get a real name.

You sign your posts "PointedEars". Do you not realise how hypocritical these
repeated carping complaints about "real names" are? 

Not to mention pointless. Aside from the fact that "real name" is
subjective, you have no idea what is someone's real name and what isn't.


Nobody appointed you as Real Name Sheriff. Just give it up.



-- 
Steven

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Thomas 'PointedEars' Lahn
Ned Batchelder wrote:

> Chris, I apologize for Thomas.

How dare you to speak for me, and *again* the rest of the subscribers?  
There is nothing to apologize for when I am *helping* someone by giving them 
useful information.  You can apologize for your own presumptous behavior 
instead.

> is main goal on this list seems to be pointing out when people are wrong, 
> over the smallest details.

Certainly I point out when people are wrong.   That is how we develop 
*knowledge*.  For that it does not matter of you in your blissful ignorance 
think that those are “smallest details”, which they are not.  The underlying 
process is called *learning*.  You should try it sometime.

> His secondary goal is enforcing some imaginary rule about real names,

It is not an imaginary rule, it is a social convention that follows from 
another social convention, simple politeness.  When you are seeking the help 
of people that you do not know, there is a principle of basic politeness 
saying that you should tell them who you are.  Especially if those people 
have already extended you the politeness to tell them who *they* are; like 
here, when you have read their names already.

Politeness is another thing you should try sometime, as I see that, your 
having no valid argument at all, you like to throw dirt instead.

> Thomas is not typical of the Python community. We are mostly nice people.
> :)

You do not even know me.  I *am* a nice person, if only for the fact that I 
do not let people suffer from their own ignorance, and I encourage them to 
educate and enlighten themselves in order not be dependent on people like 
you who tell them what they should think.

So *evidentially*, *you* are not a nice person.  According to your own 
"logic", *you* do not belong in the Python community.  Go away.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Ned Batchelder
On Friday, March 25, 2016 at 5:17:21 PM UTC-4, Thomas 'PointedEars' Lahn wrote:
> c...@isbd.net wrote:
> 
> > Occasionally I have to make forays into Javascript, can anyone
> > recommend a place similar to this list where Javascript questions can
> > be asked?  The trouble is that there are very many usenet Javascript
> > lists and it's difficult to guess which one[es] might be good.
> 
> There is no Javascript. 
> 
> There are no Usenet lists.
> 
> This is not only a Python *mailing* list, it is also mirrored as an 
> international Usenet _newsgroup_, <news:comp.lang.python> (which I am 
> reading).
> 
> If you can accept all of that, then the international Usenet _newsgroup_ 
> <news:comp.lang.javascript> (where I am posting primarily) is for you.
> So are other national/language-specific newsgroups on the JavaScripts and 
> other ECMAScript implementations.  In your newsreader, search for newsgroups 
> whose name contains "javascript".
> 
> Next time, read <news:news.answers> and STFW first, and get a real name.

Chris, I apologize for Thomas.  His main goal on this list seems to be
pointing out when people are wrong, over the smallest details.  His
secondary goal is enforcing some imaginary rule about real names, though
he couldn't be bothered to read your post thoroughly enough to discover yours.

Thomas is not typical of the Python community. We are mostly nice people. :)

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Thomas 'PointedEars' Lahn
Mark Lawrence wrote:

> […] It is so blatantly obvious that he knows precisely nothing about
> Python, but still the moderators on this list let him get away with it.

This is a mailing list?  It is moderated?  *Seriously*?

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Thomas 'PointedEars' Lahn
c...@isbd.net wrote:

> Occasionally I have to make forays into Javascript, can anyone
> recommend a place similar to this list where Javascript questions can
> be asked?  The trouble is that there are very many usenet Javascript
> lists and it's difficult to guess which one[es] might be good.

There is no Javascript. 

There are no Usenet lists.

This is not only a Python *mailing* list, it is also mirrored as an 
international Usenet _newsgroup_, <news:comp.lang.python> (which I am 
reading).

If you can accept all of that, then the international Usenet _newsgroup_ 
<news:comp.lang.javascript> (where I am posting primarily) is for you.
So are other national/language-specific newsgroups on the JavaScripts and 
other ECMAScript implementations.  In your newsreader, search for newsgroups 
whose name contains “javascript”.

Next time, read <news:news.answers> and STFW first, and get a real name.

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Ben Bacarisse
Cousin Stanley <cousinstan...@gmail.com> writes:

> 
>> Occasionally I have to make forays into Javascript, 
>> can anyone recommend a place similar to this list 
>> where Javascript questions can be asked ?
> 
>
>   Several years back I found 
>   the newsgroup comp.lang.javascript
>   to be helpful 

Still going.  It can't hurt to try.

>   However, I haven't used that group
>   for some time now so don't know
>   the current nature of the group 

I suspect some people are put off answering because there's a poster
whose main pleasure seems to be to nit-pick other people's answers (and
the OP will be told there's no "Javascript" for starters!).  The usual
Usenet thick skin advised.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Cousin Stanley


> Occasionally I have to make forays into Javascript, 
> can anyone recommend a place similar to this list 
> where Javascript questions can be asked ?


  Several years back I found 
  the newsgroup comp.lang.javascript
  to be helpful 

  However, I haven't used that group
  for some time now so don't know
  the current nature of the group 


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread alister
On Thu, 24 Mar 2016 23:46:14 +, Mark Lawrence wrote:

> On 24/03/2016 23:33, Ian Kelly wrote:
>> On Thu, Mar 24, 2016 at 4:58 PM, Mark Lawrence
>>  wrote:
>>> No.  While this idiot, BartC, is let loose on this forum, I'll say
>>> what I like.
>>
>> Good to know. I've been on the fence about this for a long time, but
>> lately the frequency of your outbursts seems to have increased, and
>> you're being more of a nuisance to this list than the people whom
>> you're complaining about.
>>
>> *plonk*
>>
>>
> I just love it.  A complete moron like BartC insults the Python
> community day in, day out, yet I'm the problem?   When he can actually
> write a decent line of Python code and avoid discussing speed I'll think
> about him as a professional programmer.  I cannot see this happening
> when all he talks about is byte code.  He's clearly never read anything
> like Steve Maguire's "Writing Solid Code".

I am afraid I have to disagree with you
Responding in BartC's threads is one thing but you are now deliberately 
trolling him in others, this is a bad as a poster (who shall remain 
namless) continually telling people the cause of there issues is due to 
pythons Unicode handling. it does nothing for the OP of this thread & 
quickly renders it useless.



-- 
I'm into SOFTWARE!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread cl
Larry Martell <larry.mart...@gmail.com> wrote:
> On Thu, Mar 24, 2016 at 4:53 PM,  <c...@isbd.net> wrote:
> > I use Python wherever I can and find this list (as a usenet group via
> > gmane) an invaluable help at times.
> >
> > Occasionally I have to make forays into Javascript, can anyone
> > recommend a place similar to this list where Javascript questions can
> > be asked?  The trouble is that there are very many usenet Javascript
> > lists and it's difficult to guess which one[es] might be good.
> 
> I don't know of any JS specific mailing lists. When I have a JS
> question I usually use stackoverflow. But there is also the web design
> mailing list, which will accept JS questions. See
> http://www.webdesign-l.com/
> 
OK, thanks, I do know about both of those though I hadn't realised
there was a mailing list at Web Design.


> For jQuery questions I use the jquery forum - http://forum.jquery.com/

I find forums very difficult to use in general for a number of reasons:-

I have to visit them individually, it's not practical for the
number of subjects I'm interested in. I belong to 77 lists just
now, a similar number of forums would be totally unmanageable.

I can't use a decent editor (or my choice) to write and reply to
messages.

The threading is often rather poor (though some are better than
others).

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-25 Thread Ben Finney
Mark Lawrence  writes:

> No.  While this idiot, BartC, is let loose on this forum, I'll say
> what I like.

That is the attitude of a petulant schoolyard bully. Stop, please. You
are to behave well in this community, and this is not conditional on the
behaviour of others.

You are better that that. Please continue to show it.

-- 
 \  “Some forms of reality are so horrible we refuse to face them, |
  `\ unless we are trapped into it by comedy. To label any subject |
_o__)unsuitable for comedy is to admit defeat.” —Peter Sellers |
Ben Finney

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Ned Batchelder
On Thursday, March 24, 2016 at 7:47:34 PM UTC-4, Mark Lawrence wrote:
> On 24/03/2016 23:33, Ian Kelly wrote:
> > On Thu, Mar 24, 2016 at 4:58 PM, Mark Lawrence  
> > wrote:
> >> No.  While this idiot, BartC, is let loose on this forum, I'll say what I
> >> like.
> >
> > Good to know. I've been on the fence about this for a long time, but
> > lately the frequency of your outbursts seems to have increased, and
> > you're being more of a nuisance to this list than the people whom
> > you're complaining about.
> >
> > *plonk*
> >
> 
> I just love it.  A complete moron like BartC insults the Python 
> community day in, day out, yet I'm the problem?   When he can actually 
> write a decent line of Python code and avoid discussing speed I'll think 
> about him as a professional programmer.  I cannot see this happening 
> when all he talks about is byte code.  He's clearly never read anything 
> like Steve Maguire's "Writing Solid Code".

Yes Mark, you are a problem.  You insult people personally. There is no need
for that.  BartC is a challenge, I agree, but he has not said anything
personal against you or anyone else.

Stop making personal attacks.  Find another way to deal with your frustration.

The Python Code of Conduct says to treat people with respect.  You aren't
doing that.  I know you feel like Bart has been disrespectful by dragging out
threads and ignoring important parts of the Python language.  I agree, that
is frustrating, but it different than making personal insults.

Stop it.  You are hurting this list and you are hurting Python.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Larry Martell
On Thu, Mar 24, 2016 at 4:53 PM,  <c...@isbd.net> wrote:
> I use Python wherever I can and find this list (as a usenet group via
> gmane) an invaluable help at times.
>
> Occasionally I have to make forays into Javascript, can anyone
> recommend a place similar to this list where Javascript questions can
> be asked?  The trouble is that there are very many usenet Javascript
> lists and it's difficult to guess which one[es] might be good.

I don't know of any JS specific mailing lists. When I have a JS
question I usually use stackoverflow. But there is also the web design
mailing list, which will accept JS questions. See
http://www.webdesign-l.com/

For jQuery questions I use the jquery forum - http://forum.jquery.com/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Mark Lawrence

On 24/03/2016 23:33, Ian Kelly wrote:

On Thu, Mar 24, 2016 at 4:58 PM, Mark Lawrence  wrote:

No.  While this idiot, BartC, is let loose on this forum, I'll say what I
like.


Good to know. I've been on the fence about this for a long time, but
lately the frequency of your outbursts seems to have increased, and
you're being more of a nuisance to this list than the people whom
you're complaining about.

*plonk*



I just love it.  A complete moron like BartC insults the Python 
community day in, day out, yet I'm the problem?   When he can actually 
write a decent line of Python code and avoid discussing speed I'll think 
about him as a professional programmer.  I cannot see this happening 
when all he talks about is byte code.  He's clearly never read anything 
like Steve Maguire's "Writing Solid Code".


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Ian Kelly
On Thu, Mar 24, 2016 at 4:58 PM, Mark Lawrence  wrote:
> No.  While this idiot, BartC, is let loose on this forum, I'll say what I
> like.

Good to know. I've been on the fence about this for a long time, but
lately the frequency of your outbursts seems to have increased, and
you're being more of a nuisance to this list than the people whom
you're complaining about.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Joel Goldstick
On Thu, Mar 24, 2016 at 7:06 PM, Mark Lawrence <breamore...@yahoo.co.uk>
wrote:

> On 24/03/2016 22:45, c...@isbd.net wrote:
>
>> Mark Lawrence <breamore...@yahoo.co.uk> wrote:
>>
>>> On 24/03/2016 22:08, c...@isbd.net wrote:
>>>
>>>>
>>>> If you do find anything like c.l.p for Javascript, let us know...
>>>>>
>>>>> OK!  :-)
>>>>
>>>>
>>> I'd try c.l.bartc as he is the world's leading expert on everything that
>>> you need to know about any language, whereby the only thing to know is
>>> how fast is it.  It's just fantastic, you don't have to bother about the
>>> source code that you write, all you have to bother about is the
>>> underlying byte code.
>>>
>>> Many a true word.
>>
>>
> I wasn't jesting.  BartC is a complete insult to the entire Python
> community, and I find it quite staggering that he has been allowed to spew
> his complete cobblers for so long and get away with it.  It is so blatantly
> obvious that he knows precisely nothing about Python, but still the
> moderators on this list let him get away with it.
>
>
> --
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
>
> Mark Lawrence
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>


at least ferous cranis is gone!
-- 
Joel Goldstick
http://joelgoldstick.com/ <http://joelgoldstick.com/stats/birthdays>
http://cc-baseballstats.info/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Mark Lawrence

On 24/03/2016 22:45, c...@isbd.net wrote:

Mark Lawrence <breamore...@yahoo.co.uk> wrote:

On 24/03/2016 22:08, c...@isbd.net wrote:



If you do find anything like c.l.p for Javascript, let us know...


OK!  :-)



I'd try c.l.bartc as he is the world's leading expert on everything that
you need to know about any language, whereby the only thing to know is
how fast is it.  It's just fantastic, you don't have to bother about the
source code that you write, all you have to bother about is the
underlying byte code.


Many a true word.



I wasn't jesting.  BartC is a complete insult to the entire Python 
community, and I find it quite staggering that he has been allowed to 
spew his complete cobblers for so long and get away with it.  It is so 
blatantly obvious that he knows precisely nothing about Python, but 
still the moderators on this list let him get away with it.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Mark Lawrence

On 24/03/2016 22:49, Chris Angelico wrote:

On Fri, Mar 25, 2016 at 9:31 AM, Mark Lawrence <breamore...@yahoo.co.uk> wrote:

On 24/03/2016 22:08, c...@isbd.net wrote:




If you do find anything like c.l.p for Javascript, let us know...


OK!  :-)



I'd try c.l.bartc as he is the world's leading expert on everything that you
need to know about any language, whereby the only thing to know is how fast
is it.  It's just fantastic, you don't have to bother about the source code
that you write, all you have to bother about is the underlying byte code.


Enough. You don't need to drag this into arbitrary threads.

ChrisA



No.  While this idiot, BartC, is let loose on this forum, I'll say what 
I like.  It is quite clear that he hasn't got the faintest idea, and the 
sooner he is kicked into touch, like the RUE, the better for the Python 
community.


"I'll just factor out the loop in this test".

Yeah, right.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread cl
Mark Lawrence <breamore...@yahoo.co.uk> wrote:
> On 24/03/2016 22:08, c...@isbd.net wrote:
> >
> >> If you do find anything like c.l.p for Javascript, let us know...
> >>
> > OK!  :-)
> >
> 
> I'd try c.l.bartc as he is the world's leading expert on everything that 
> you need to know about any language, whereby the only thing to know is 
> how fast is it.  It's just fantastic, you don't have to bother about the 
> source code that you write, all you have to bother about is the 
> underlying byte code.
> 
Many a true word.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Chris Angelico
On Fri, Mar 25, 2016 at 9:31 AM, Mark Lawrence <breamore...@yahoo.co.uk> wrote:
> On 24/03/2016 22:08, c...@isbd.net wrote:
>>
>>
>>> If you do find anything like c.l.p for Javascript, let us know...
>>>
>> OK!  :-)
>>
>
> I'd try c.l.bartc as he is the world's leading expert on everything that you
> need to know about any language, whereby the only thing to know is how fast
> is it.  It's just fantastic, you don't have to bother about the source code
> that you write, all you have to bother about is the underlying byte code.

Enough. You don't need to drag this into arbitrary threads.

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Mark Lawrence

On 24/03/2016 22:08, c...@isbd.net wrote:



If you do find anything like c.l.p for Javascript, let us know...


OK!  :-)



I'd try c.l.bartc as he is the world's leading expert on everything that 
you need to know about any language, whereby the only thing to know is 
how fast is it.  It's just fantastic, you don't have to bother about the 
source code that you write, all you have to bother about is the 
underlying byte code.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread cl
Grant Edwards <invalid@invalid.invalid> wrote:
> On 2016-03-24, c...@isbd.net <c...@isbd.net> wrote:
> 
> > I use Python wherever I can and find this list (as a usenet group
> > via gmane) an invaluable help at times.
> >
> > Occasionally I have to make forays into Javascript, can anyone
> > recommend a place similar to this list where Javascript questions
> > can be asked?
> 
> Are you asking about
> 
>  1) Javascript itself (the language)?
> 
Probably mostly this.

>  2) jQuery or some other client-side framework?
> 
A little of this, but not much.


>  3) The DOM model and API provided by various web browsers?
> 
Not this.


> In most forums 99% of the threads are about 2 and 3.
> 
> > The trouble is that there are very many usenet Javascript lists and
> > it's difficult to guess which one[es] might be good.
> 
> That's a tough one.  I dabble in Javascript in order to support the
> Web UI's on some of the embedded products I work on, and I've yet to
> find a high quality forum for Javascript questions.  Javascript
> programing seems to be dominated by cargo-cult programmers with little
> understanding of the language.  They just sort of cut-n-paste code
> snippets they find online and then hope.  It's not quite as bad as PHP
> in that regard, but that's not saying mutch.  [IMO, the design of the
> Javascript language itself is _far_ better than the "design" of the
> PHP language, and that the results of cargo-cult programming in
> Javascript usually turn out better than they do in PHP.]
> 
Yes, it seems that the 'right way' in Javascript is often almost the
opposite of the 'right way' in other langueages.  Optimise at the
expense of readability seems to be the main aim.


> If you do find anything like c.l.p for Javascript, let us know...
> 
OK!  :-)

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread Grant Edwards
On 2016-03-24, c...@isbd.net <c...@isbd.net> wrote:

> I use Python wherever I can and find this list (as a usenet group
> via gmane) an invaluable help at times.
>
> Occasionally I have to make forays into Javascript, can anyone
> recommend a place similar to this list where Javascript questions
> can be asked?

Are you asking about

 1) Javascript itself (the language)?

 2) jQuery or some other client-side framework?

 3) The DOM model and API provided by various web browsers?

In most forums 99% of the threads are about 2 and 3.

> The trouble is that there are very many usenet Javascript lists and
> it's difficult to guess which one[es] might be good.

That's a tough one.  I dabble in Javascript in order to support the
Web UI's on some of the embedded products I work on, and I've yet to
find a high quality forum for Javascript questions.  Javascript
programing seems to be dominated by cargo-cult programmers with little
understanding of the language.  They just sort of cut-n-paste code
snippets they find online and then hope.  It's not quite as bad as PHP
in that regard, but that's not saying mutch.  [IMO, the design of the
Javascript language itself is _far_ better than the "design" of the
PHP language, and that the results of cargo-cult programming in
Javascript usually turn out better than they do in PHP.]

If you do find anything like c.l.p for Javascript, let us know...

-- 
Grant Edwards   grant.b.edwardsYow! I'm sitting on my
  at   SPEED QUEEN ... To me,
  gmail.comit's ENJOYABLE ... I'm WARM
   ... I'm VIBRATORY ...
-- 
https://mail.python.org/mailman/listinfo/python-list


[OT'ish] Is there a list as good as this for Javascript

2016-03-24 Thread cl
I use Python wherever I can and find this list (as a usenet group via
gmane) an invaluable help at times.

Occasionally I have to make forays into Javascript, can anyone
recommend a place similar to this list where Javascript questions can
be asked?  The trouble is that there are very many usenet Javascript
lists and it's difficult to guess which one[es] might be good.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Jon Ribbens
On 2016-03-02, Chris Angelico <ros...@gmail.com> wrote:
> On Thu, Mar 3, 2016 at 5:29 AM, Jon Ribbens
><jon+use...@unequivocal.co.uk> wrote:
>> On 2016-03-02, Chris Angelico <ros...@gmail.com> wrote:
>>> You're no more vulnerable looking at one of those listings
>>> than you would be going to a web site entirely controlled by the
>>> attacker, save that (particularly on mobile devices) there are a lot
>>> of people out there who'll say "Oh, it'e eBay, I'm safe".
>>
>> This however I don't think is true at all. eBay already has a great
>> deal of data about its customers, if an attacker can hijack sessions
>> and steal this data just from a user visiting a listings page then
>> that isn't anything like visiting a random malicious site.
>
> Hmm, maybe. But the description of the exploit talks of getting people
> to click a button to install an app, which is something anyone could
> do with full control of a web site;

I think that's just a proof-of-concept sort of thing. There's much
more interesting things you can do than put up "download this exe
and run it" pop-ups if you can run arbitrary javascript in someone
else's domain.

> the value (to the attacker) of exploiting the eBay filter limitation
> is that it slips it into an otherwise-trusted web site (both from
> the human's point of view -"this is eBay, it's fine" - and from a
> machine filter's - "yes, this is the same site you thought you were
> on").

You can of course just register egay.com (or whatever) and hope for
the best (including putting an SSL cert on it).
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 5:29 AM, Jon Ribbens
 wrote:
> On 2016-03-02, Chris Angelico  wrote:
>> To be fair, this isn't a JS exploit; it's a trusting-of-trust issue -
>> eBay has declared that you can trust them to sanitize their sellers'
>> listings, and so you trust eBay, but this exploit gets past the
>> filter.
>
> This is true. It sounds like their filter is frankly bizarre,
> I can't imagine why it works the way that has been described.

Agreed. I also don't understand why they can't simply say "no 

Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Jon Ribbens
On 2016-03-02, Chris Angelico  wrote:
> To be fair, this isn't a JS exploit; it's a trusting-of-trust issue -
> eBay has declared that you can trust them to sanitize their sellers'
> listings, and so you trust eBay, but this exploit gets past the
> filter.

This is true. It sounds like their filter is frankly bizarre,
I can't imagine why it works the way that has been described.

> You're no more vulnerable looking at one of those listings
> than you would be going to a web site entirely controlled by the
> attacker, save that (particularly on mobile devices) there are a lot
> of people out there who'll say "Oh, it'e eBay, I'm safe".

This however I don't think is true at all. eBay already has a great
deal of data about its customers, if an attacker can hijack sessions
and steal this data just from a user visiting a listings page then
that isn't anything like visiting a random malicious site.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Chris Angelico
On Thu, Mar 3, 2016 at 4:05 AM, Steven D'Aprano <st...@pearwood.info> wrote:
> Speaking of Javascript exploits:
>
> http://thedailywtf.com/articles/bidding-on-security
>
>
> This is a real exploit, and Ebay have refused to fix it. Yay them!
>
> More here:
>
> http://blog.checkpoint.com/2016/02/02/ebay-platform-exposed-to-severe-vulnerability/

To be fair, this isn't a JS exploit; it's a trusting-of-trust issue -
eBay has declared that you can trust them to sanitize their sellers'
listings, and so you trust eBay, but this exploit gets past the
filter. You're no more vulnerable looking at one of those listings
than you would be going to a web site entirely controlled by the
attacker, save that (particularly on mobile devices) there are a lot
of people out there who'll say "Oh, it'e eBay, I'm safe".

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


Speaking of Javascript [was Re: Everything good about Python except GUI IDE?]

2016-03-02 Thread Steven D'Aprano
Speaking of Javascript exploits:

http://thedailywtf.com/articles/bidding-on-security


This is a real exploit, and Ebay have refused to fix it. Yay them!

More here:

http://blog.checkpoint.com/2016/02/02/ebay-platform-exposed-to-severe-vulnerability/


-- 
Steven

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


Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-08 Thread Michael Torrie
On 01/07/2016 08:54 PM, jacob Kruger wrote:
> I would definitely like to try out something like this - I am primarily 
> a web developer, and, partly since am 100% blind, any form of GUI design 
> is at times an issue for me, whereas I have been working with HTML 
> markup layouts for almost 20 years now, but, which versions of python 
> should this work with, and, what does it actually then use to 
> generate/handle GUI interface? Ask since, some of the GUI frameworks are 
> not too accessible themselves.

This project is simply a web browser (qtwebkit) embedded in a bare
window that automatically loads a python-based web application you write
separately.  That's all it is.  It's not a GUI toolkit or even a
web-based GUI toolkit.  It's primary purpose is to allow you to wrap up
a Python-based web app (using Flask, but I have no doubt it could handle
Django) in a little self-contained package so you can run it as if it
were a standalone app. Kind of like how Google Chrome let's you take a
url and make a virtual app out of it.

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


PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread Saeed Moqadam
create multi platform desktop application by using Python, HTML, CSS and 
Javascript.
source code is https://github.com/smoqadam/PyFladesk

you can find RSS Reader app that made by PyFladesk in the following url : 

https://github.com/smoqadam/PyFladesk-rss-reader

I'll waiting for your feedback.

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


Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
Ok, double-checked again, and if force it to run under 2.7, then it 
complains about lack of pyQT4 - that's one of the issues was asking 
about relating to GUI frameworks - pyQT hasn't always worked too well 
under 2.7 in terms of accessibility API's in past, but, will 'see' if 
can get hold of that module for 2.7, and take it from there.


Jacob Kruger
Blind Biker
Skype: BlindZA
"Roger Wilco wants to welcome you...to the space janitor's closet..."

On 2016-01-08 7:07 AM, Bernardo Sulzbach wrote:

On Fri, Jan 8, 2016 at 1:54 AM, jacob Kruger  wrote:

Also, downloaded both the main master, and the RSS reader master images,
but, both python 2.7 and python 3.4 tell me that they have no urllib2, and
under 3.4, pip install can't find it either..?

TIA


Python 3 does not have urllib2. It is a Python 2 module that has been
split across several modules in Python 3.

However, are you sure you tried it with Python 2.7?



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


  1   2   3   4   5   >