s ~/.emacs.d
emacs
It may be a rabbit hole, but that adventure belongs to emacs, somehow.
Cheers
Brian
--
https://mail.python.org/mailman/listinfo/python-list
Hi Viet,
map applies the function to each of the elements of the list you provide.
It would be roughly equivalent to:
[add_all_elements(x) for x in alist]
It may help you to consider the term and function "map" from the view of linear
algebra.
Apparently it's a common term:
https://en.wikiped
That's one thing that confused me. Generators are supposed to be one-off
iterators. Iterators, *I understood* as reusable iterables.
--
https://mail.python.org/mailman/listinfo/python-list
> PS: I'm not a great fan of it, but I think we all know that off-topic is
> in a way what this list excels at.
+1
An open source community thrives on being open. It also welcomes those who like
to pick a fight for various, usually personal reasons.
Has any heard of that Python language? I hear
Could you please try another tool like `convert'? E.g.
$ convert 102_PANA/P1020466.JPG test.png
What does that say?
--
https://mail.python.org/mailman/listinfo/python-list
On October 17, 2018 7:56:51 AM GMT+02:00, Marko Rauhamaa
wrote:
>I can't be positive about swapping. I don't remember hearing thrashing.
>However, I do admit running emacs for months on end and occasionally
>with huge buffers so the resident size can be a couple of gigabytes.
>
That's a pretty
and kicking, a bit overkill for my use-case);
2. build on the examples in 'Automate the boring stuff';
3. forget about it.
Please tell me about any possible alternatives I missed.
Kind regards,
Brian
--
https://mail.python.org/mailman/listinfo/python-list
You don't have to start from scratch. You don't to do anything other than learn
to use anamnesis. I use anamnesis as my clipboard manager. I you can easily
tell to get which ever one you want (i.e. the thousandth item).
# Inform yourself
https://sourceforge.net/projects/anamnesis/
# Install it
On Sun, 2018-10-28 at 22:04 +0100, Karsten Hilbert wrote:
> [^<:]
Would a simple regex work?
I mean:
~$ python
Python 2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> t = '$$'
>>> re.f
On Tue, 2018-10-23 at 13:58 +0200, Brian J. Oney wrote:
> On Tue, 2018-10-23 at 10:31 +0100, Ali Rıza KELEŞ wrote:
> > On Tue, 23 Oct 2018 at 09:07, Thomas Jollans wrote:
> Now that it seems that I will be writing this.
So I have gotten so far as to have a little package cal
On Mon, 2018-11-12 at 14:17 +, Rhodri James wrote:
> On 12/11/2018 09:37, srinivasan wrote:
> > Because the problem is every time when ever I see the output using the
> > "nmcli c show", the below output is the weird output, so instead of
> > connecting to SSID "NIFunkloch" it randomly connect
On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote:
> On Nov 12, 2018, at 9:16 AM, eryk sun wrote:
> > On 11/12/18, Christman, Roger Graydon mailto:d...@psu.edu>>
> > wrote:
> > > I looked in IDLE's own configuration menu, and didn't see anything there
> > > --
> > > and I fear that I might have
On Tue, 2018-11-13 at 10:33 -0600, Bev in TX wrote:
> > On Nov 12, 2018, at 10:07 AM, Brian Oney
> > wrote:
> > On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote:
> > > I am not the OP and I’m on macOS — no shortcuts. How would one do the
> > > same thing
On Wed, 2018-11-14 at 09:47 +0100, srinivasan wrote:
> -68 >= -60
It's a problem with your test of wifi strength. Good job of making informative
output and running
tests!
--
https://mail.python.org/mailman/listinfo/python-list
On Sun, 2018-11-25 at 07:43 -0800, Muhammad Rizwan wrote:
> for each word in each line how can we check to see if a word is already
> present in a list and if it is not how to append that word to a new list
For your problem consider a set.
https://en.wikipedia.org/wiki/Set_theory
For the python
On Tue, 2018-11-27 at 13:50 +0100, srinivasan wrote:
>
> *except BluetoothctlError, e:*
>
I don't have python3.6 available, but I believe the proper syntax is:
except BluetoothctlError as e:
print(e)
See:
https://docs.python.org/3/tutorial/errors.html?highlight=exception
HTW
--
h
On Wed, 2018-11-28 at 08:44 -0600, Skip Montanaro wrote:
> What do people recommend? The target is Python 3.6 and 3.7. The
> audience at work is a mostly financial/statistical crowd, so exposure
> to things like Pandas would be nice, though I'm sure there are
> dedicated books for just that.
Given
I am unfamiliar with pynput. I have had good experience with pyautogui. As your
script isn't yet advanced, you may consider it.
https://pyautogui.readthedocs.io/en/latest/introduction.html
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 2019-01-09 at 08:29 -0800, anton.gridus...@gmail.com wrote:
> Hello everyone!
>
> I need to find a file, that contains a string TeNum
>
> I try to
>
> import os
> import sys
> def find_value(fname):
> value = 0
> with open(fname, encoding='cp866') as fn:
> try:
>
d rounding to the nearest
integer towards negative infinity. Any overflow bits are truncated. '
So the equivalent would be:
>>> typeBits = FCF >> 9
Cheers
Brian
--
https://mail.python.org/mailman/listinfo/python-list
FreeCAD is written in Python. It has a python interpreter.
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 2019-07-20 at 15:26 -0500, Tim Daneliuk wrote:
> On 7/20/19 2:56 PM, Peter J. Holzer wrote:
> > On 2019-07-20 14:11:44 -0500, Tim Daneliuk wrote:
> > > So, no, do NOT encode the hard location - ever. Always use env to
> > > discover the one that the user has specified. The only exception
On July 21, 2019 10:04:47 AM GMT+02:00, Manfred Lotz wrote:
>On Sun, 21 Jul 2019 10:21:55 +1000
>Cameron Simpson wrote:
>
>> On 21Jul2019 09:31, Chris Angelico wrote:
>> >On Sun, Jul 21, 2019 at 9:15 AM Cameron Simpson
>> >wrote: So you mean that a tool that depends on running on a
>> >c
On Mon, 2019-08-05 at 21:10 +0430, arash kohansal wrote:
> Hello ive just installed python on my pc and ive already check the
> path
> choice part but microsoft visual code can not find it and it does not
> have
> the reload item
Check out: https://code.visualstudio.com/docs/languages/python
or
On August 12, 2019 9:14:55 AM GMT+02:00, morphex wrote:
>Hi.
>
>What frameworks are there for generating static web pages in Python?
I have used:
https://github.com/Frozen-Flask/Frozen-Flask
It's pretty simple. Develop with flask and then "freeze" it.
I am looking forward to further answers
On August 13, 2019 4:00:30 PM GMT+02:00, "Morten W. Petersen"
wrote:
>Ok. Isn't it a bit splitting of hairs to talk about static site
>generators
>and their templates?
>
>Wouldn't a static site generator that can create a good, usable website
>with little input be desirable?
>
>I could pick an
On Sat, 2019-09-21 at 08:57 -0700, Dave Martin wrote:
> On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin
> wrote:
> > what does expected an indented block
>
> *what does an indented block mean?
It means that the line of code belongs to a certain body as defined
above its position
On October 25, 2019 12:22:44 PM GMT+02:00, Maggie Q Roth
wrote:
>Hello
>
>There are two primary types of lines in the log:
>
>60.191.38.xx/
>42.120.161.xx /archives/1005
>
>I know how to write regex to match each line, but don't get the good
>result
>with one regex to match both
How about a 1st party package in the stdlib?
>From the hip: Take an example or two from the 'python 2 or 3 standard library
>by example' book by a guy named Doug.
Hth (really)
--
https://mail.python.org/mailman/listinfo/python-list
On August 19, 2020 7:32:45 PM GMT+02:00, J Conrado
wrote:
>
>
>Hi,
>
>
>I'm satarting using Pandas to read excel. I have a meteorological
>synoptic data and I have for date:
>
>
>0 2017-11-01 00:00:00
>1 2017-11-01 03:00:00
>2 2017-11-01 06:00:00
>3 2017-11-01 09:00:00
>4 2017-11-01
Does anyone know how to do file navigation between drives? I know how to
navigate up and down within a drive (for example the C:\ drive), but I don't
know how to change drives. I'm looking for something like:
os.chgdrv('d:\')
Help
functionality in the near future (plus a mild
case of 'I wanna code' [aka NIH] syndrome), push me to learn and implement this
myself.
Thanks in advance!
Cheers
Brian
--
https://mail.python.org/mailman/listinfo/python-list
I am not exactly sure what you mean, so I will guess.
Jinja may be what you're looking for. It's an important component of flask &
ansible, for example.
pyweave may also serve your purposes.
HTH
--
https://mail.python.org/mailman/listinfo/python-list
On Stretch:
~ $ aptitude show python-pip
Package: python-pip
Version: 9.0.1-2
...
Maintainer: Debian Python Modules Team
...
Depends: ca-certificates, python-pip-whl (= 9.0.1-2), python:any (<
2.8), python:any (>= 2.7.5-5~)
Recommends: build-essential, python-all-dev (>= 2.6
On Mon, 2018-10-01 at 10:49 -0700, nanman3...@gmail.com wrote:
> I have a string like this:
>
> b'\tC:94.3%[S:89.9%,D:4.4%],F:1.7%,M:4.0%,n:1440\n'
>
> And I would like to extract the numbers corresponding to S,D,F and M in this
> string and convert them into an array like this:
>
> [ '89.9'
ron jobs. I
prefer the former for the handy logging options. What about a python solution?
What would the advantage of a python queue be over a systemd timer? I guess
that's an apples an oranges comparison. In my case I most likely would have a
raspberry pi running a python script to read and possibly answer any emails.
Thanks again for the tips.
Regards,
Brian
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 2018-11-07 at 10:22 +0100, srinivasan wrote:
> blkid -o export %s | grep \'TYPE\' | cut -d\"=\" -f3
You don't need to escape the single quotes.
Try either:
"blkid -o export %s | grep 'TYPE' | cut -d'=' -f3"
or:
'blkid -o export %s | grep "TYPE" | cut -d"=" -f3'
or:
"blkid -o export %s | g
ugh. To get the functionality you miss is pretty simple
with spacemacs. For more information and platform-specific instructions,
please see the following link.
https://github.com/syl20bnr/spacemacs
The basic template already activates python support.
That's my two cents.
Cheers
Brian
On Sun,
1101 - 1138 of 1138 matches
Mail list logo