Displaying 20 results from an estimated 2000 matches similar to: "python module"
2023 Apr 07
1
python module
On 07/04/2023 20:20, David Bear via samba wrote:
> I am looking for the python-samba module. I would like to
> add/disable/modify AD accounts using python running on a linux machine.
> ChatGPT suggested the python-samba module. Sample code as follows:
>
> from samba.credentials import Credentials
> from samba.netcmd.user import create as create_user
> from samba.netcmd.user
2023 Apr 07
1
python module
Thanks Rowland. I really appreciate your rapid responses and many years of
work helping the python community.
To answer your question, I could wrap samba tool -- but I thought it would
be easier -- and more pythonic to keep the code pure python.
As for what chatgpt knows... for the curious I'll paste the relevant
responses below. Chat did suggest making calls to the samba-tool. I thought
2023 Feb 13
2
An interesting chat with ChatGPT
Duncan -
Indeed, this has now been well documented; I have called these constructions "Schr?dinger Facts", since they arise from a superposition of truths in the training data that collapse into an untruth when observed.
https://sentientsyllabus.substack.com/p/chatgpts-achilles-heel
Now, the curious question is: why can it program. Why is its production of R-syntax less vulnerable
2023 Feb 13
1
An interesting chat with ChatGPT
I was wondering which anchor would match in the regular expression
"(a)|(b)" if both "a" and "b" matches the target string. What appears
to happen is that the first match wins, and that's how it is documented
in Python, but I was looking for docs on this in R.
As far as I can see, the ?regex help page doesn't resolve this. So just
for fun, I decided to
2024 Apr 13
1
Just for your (a|be)musement.
I recently had the chance to read a book explaining how to use
ChatGPT with a certain programming language. (I'm not going
to describe the book any more than that because I don't want to
embarrass whoever wrote it.)
They have appendix material showing three queries to ChatGPT
and the answers. Paraphrased, the queries are "if I throw 2 (3, 4)
fair dice, what is the probability I get
2023 Mar 07
1
insert hyperlink into svg graphic
This was actually the first thing that ChatGPT debugged for me.
The issue was that I was able to click on the link when I displayed the raw SVG in the browser (you can use that to test whether the syntax is even correct), but not when the svg displays inside a html page with the <img ...> tag.
ChatGPT correctly identified the issue and suggested a solution using <object ...> tags
2024 Apr 15
2
Synthetic Control Method
Good Morning
I want to perform a synthetic control method with R. For this purpose, I
created the following code:
# Re-load packages
library(Synth)
library(readxl)
# Pfadeinstellung Excel-Blatt
excel_file_path <-
("C:\\Users\\xxxxx\\Desktop\\DATA_INVESTMENTVOLUMEN_FOR_R_WITHOUT_NA.xlsx")
# Load the Excel file
INVESTMENTVOLUME <- read_excel(excel_file_path)
#
2023 Aug 13
3
OFF TOPIC: chatGPT glibly produces a lot of wrong answers?
**OFF TOPIC** but perhaps of interest to some on this list. I apologize in
advance to those who may be offended.
The byline:
********************************
"ChatGPT's odds of getting code questions correct are worse than a coin flip
But its suggestions are so annoyingly plausible"
*************************************
from here:
2023 Nov 21
1
Cambiar el intervalo de confianza en un anova
Buenas,
En R, como en la mayoría del software estadístico, no se utiliza ningún nivel de confianza sino que lo que se calcula es el p-valor asociado
al contraste. De forma que cuanto más cerca de 0 esté el p-valor "menos credibilidad le damos a la hipótesis nula". Dicho mejor, debemos
rechazar la hipótesis nula si el p-valor está por debajo de nuestro nivel de confianza.
Por ejemplo,
2020 Sep 25
2
Re: Help on Meson build Error
On Fri, Sep 25, 2020 at 11:23:57AM +0200, Andrea Bolognani wrote:
> On Fri, 2020-09-25 at 10:16 +0100, Daniel P. Berrangé wrote:
> > On Fri, Sep 25, 2020 at 05:03:24PM +0800, Wei Wang wrote:
> > > /usr/local/bin/rst2html5 --stylesheet= --strict docs/manpages/virsh.rst
> > > docs/manpages/virsh.rst:41: (ERROR/3) Error in "code-block" directive:
> > > 1
2017 Jul 18
2
LNT on pypy and documentation build
I updated the docs to show a pip/svn install like this:
pip install svn+http://llvm.org/svn/llvm-project/lnt/trunk <svn+http://llvm.org/svn/llvm-project/lnt/trunk>
> On Jul 18, 2017, at 11:24 AM, Kristof Beyls <kristof.beyls at arm.com> wrote:
>
>
>> On 18 Jul 2017, at 20:21, Daniel Dunbar <daniel at zuster.org <mailto:daniel at zuster.org>> wrote:
2023 Nov 21
1
Cambiar el intervalo de confianza en un anova
Gracias Carlos.
Yo también he visto el ejemplo que te pone chatGPT, pero la salida que te da no soy capaz de interpretarla.
Os paso las ordenes y las respuestas de R de la propuesta de chatGPT
Ejemplo.aov<- aov(P~TRAT+CORTE+REP)
> summary (Ejemplo.aov)
Df Sum Sq Mean Sq F value Pr(>F)
TRAT 6 0.0028 0.00046 0.777 0.590
CORTE 2 0.5022 0.25110 424.542 <2e-16
2006 Jul 25
5
webrick server slow or does not connect
hi,
In login_controller.rb when I do the fallowing code it works fine
before_filter :authorize, :except => :login
but I want to do the fallowing when creating the user so the
authorization is not checked
before_filter :authorize, :except => :login, :except => :create_user
but when I do this webrick server appear to be slow or not connected and
take lot of time to load?
Could someone
2008 Mar 17
4
RSpec''ing model association callbacks
Hi all,
i''m learning rspec and i must admit i really love it.
But at the time i started learning it, i already
developed my models classes and their callbacks.
Now i''m trying to get a 100% coverage of my code but i
cannot reach it because i do not understand how to
spec my callbacks.
Look at this for example:
----------------- User Model
class User < ActiveRecord::Base
2020 Sep 25
2
Re: Help on Meson build Error
On Fri, Sep 25, 2020 at 5:35 PM Daniel P. Berrangé <berrange@redhat.com>
wrote:
> On Fri, Sep 25, 2020 at 05:31:09PM +0800, Wei Wang wrote:
> > On Fri, Sep 25, 2020 at 5:24 PM Andrea Bolognani <abologna@redhat.com>
> > wrote:
> >
> > > On Fri, 2020-09-25 at 10:16 +0100, Daniel P. Berrangé wrote:
> > > > On Fri, Sep 25, 2020 at 05:03:24PM
2016 Aug 25
2
lnt issue- Could not find required distribution six==1.9.0
Dear Community members,
I am trying to setup *lnt* on a system where I do not have sudo access.
I am facing the following issue. Kindly suggest a solution.
virtualenv version => 1.11.6
OS => Debian with kernel 3.16.7
*While installing lnt into a virtual environment, I am getting the
following error -*
*Processing six-1.9.0.tar.gz*
*Writing /tmp/easy_install-ZBhMFI/six-1.9.0/setup.cfg*
2023 Jul 22
2
plotly
ChatGPT-4:
------ Query: ----------------------------------
Thank you. The `value` in the code example is 2874. The plot shows a large number at the center and a smaller value computed as a delta relative to the `reference` of 4800. But the large value is given as 2870, and the smaller value is given as -1930 i.e. both values are rounded. Can I control the precision of these two numbers?
2013 Jan 24
1
Python Xapian bindings in PyPi?
Is there a package for the Python Xapian bindings in PyPi (the Python package index)??I install nearly all of my Python packages using pip and virtualenv, but I've had to manually compile the Xapian bindings for Python for a couple of projects. I just did this again and was wondering if I'd simply missed the package before.
If there isn't a package in PyPi, would you be interested in
2007 Sep 23
4
Story Runner, autoincrementing
I''ve written a story and I run into a snag.
I''ve written the create_forum method and told it to set the id to 1
but when it creates the forum the id is autoincremented.
My forums table is empty but the id keeps incrementing the newest record on
creation.
When I run the story it comes out as something like 59 which fails my story
because I''m asking it to look at /forums/1
2020 Sep 25
3
Re: Help on Meson build Error
On Fri, Sep 25, 2020 at 05:03:24PM +0800, Wei Wang wrote:
> On Fri, Sep 25, 2020 at 4:54 PM Daniel P. Berrangé <berrange@redhat.com>
> wrote:
>
> >
> > > Yes, I tried, but it fails with
> > > ../src/util/virfile.c:42:11: fatal error: libutil.h: No such file or
> > > directory
> >
> > You'd have to delete the build dir and re-run