Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
object
- Page 1
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
7 Hours Ago
by Hanginium65
…: {tarinfo.name}. Skip it") continue # Create a file-like
object
from the contents... file_like_object = io.BytesIO(file_contents) # Upload the returned… name of the file selected in the archive as your
object
name... contents=file_like_object, content_type='application/octet-stream' # Set the …
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
5 Hours Ago
by Salem
I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message?
How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
6 Days Ago
by Hanginium65
…='application/gzip' ) # Confirm the presence of the
object
holding the Netbox database backup obj1 = 'object_netbox_2024-03…file_contents) # Upload the returned contents to the OpenStack
Object
Storage container swift_conn.put_object( container, 'object_netbox_media_2024-03-…
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
6 Days Ago
by usmanmalik57
… LLM's response using the `content` attribute of the response
object
. ``` chain = prompt | llm result = chain.invoke( {"…()` class and pass it along with the `document_chain`
object
to the `create_retrieval_chain()` class
object
. ``` retriever = vector.as_retriever() retrieval_chain = create_retrieval_chain(retriever, …
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
2 Days Ago
by usmanmalik57
… associated problems. The following script creates an
object
of the `ChatOpenAI` llm with the GPT… embeddings) ``` Subsequently, we create a `ChatPromptTemplate`
object
that accepts our input query and context information extracted … responses. Next, while invoking the `history_retriever_chain`
object
, we pass the user input and the chat…
Re: How can I upload a tar.bz2 file to openstack swift object storage container
Programming
Software Development
5 Days Ago
by Salem
First, let's prepare two tar files using different compression schemes for demo purposes. $ cat foo_1.txt This is file 1 $ cat foo_2.txt This is file 2 This is file two This is file too # Three tar files, two compressed and one uncompressed for reference $ tar -j -c -f foo.tar.bz2 foo_1.txt foo_2.txt…
Re: Trying to animate sprite using DirectX9
Programming
Software Development
3 Days Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
Add property to standard object
Programming
Web Development
3 Weeks Ago
by Dani
I, very hackily, create an
object
of type stdClass as so: $arr = array( 'foo' => 'bar', 'baz' => 'bat' ); $obj = json_decode(json_encode($arr)); How can I now quickly add a third property to $obj without PHP getting angry?
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
1 Week Ago
by usmanmalik57
… of the process is straight-forward. You must create an
Object
of the `GenerativeModel` class and pass the input query to… text using Claude 3, you need to create a client
object
of the `anthropic.Anthropic` class and pass it your Anthropic…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
4 Weeks Ago
by usmanmalik57
… other splitter if you want. The following script creates an
object
of the `RecursiveCharacterTextSplitter` class. We divide our documents into chunks…
Re: Add property to standard object
Programming
Web Development
3 Weeks Ago
by jkon
I completely agree with you with the "hackily" part , but here it is: $arr = [ 'foo' => 'bar', 'baz' => 'bat' ]; $obj = json_decode(json_encode($arr)); $obj->newProperty = "something"; var_export($obj); exit;
Re: Add property to standard object
Programming
Web Development
3 Weeks Ago
by Dani
> $obj->newProperty = "something"; For some reason I thought that PHP didn't allow that without throwing an error?! (Hence the reason for me posting this question). I'm on PHP 8.2/8.3.
Re: Getting Started With C# - The List
Programming
Software Development
3 Weeks Ago
by Shahzad111
C-Sharp Tutorial is for student and prefessional who want to learn C# programming from basic to advance. We have discussed every topic of C# alonge with examples in this tutorial guide. https://c-sharptutorial.com/
Converting PDF Image to CSV Using Multimodal Google Gemini Pro
Programming
Computer Science
2 Months Ago
by usmanmalik57
…`vertexai.preview.generative_models` module. Each Part
object
contains the base64-encoded string and the … script sets the environment variable, creates the model
object
, and defines the configuration settings. ``` os.environ…call the `generate_content()` method of the `GenerativeModel`
object
. This method takes three arguments: **input:** A…
how convert cur images to image?
Programming
Software Development
1 Month Ago
by cambalinho
…?(just for learning) Private Sub btnChooseImage_Click(ByVal sender As System.
Object
, ByVal e As System.EventArgs) Handles btnChooseImage.Click If (ofdChooseFile… can i get the image from a cursor? the Cursor
object
read cur files and ani?
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
1 Month Ago
by usmanmalik57
…"], task_type = "CAUSAL_LM", ) ``` Finally, you can create an
object
of the `SFTTrainer` class and pass the Gemma model…
object
, the training data, and various training arguments. Next, you can …
Why am getting different syntax errors when running a Python script
Programming
Software Development
1 Month Ago
by Tom_45
… new to Python, but have a solid understanding of how
object
oriented design works, having taught myself VB.NET, C# and…
Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
1 Month Ago
by usmanmalik57
… columns. ``` def get_cropped_image(image, table, padding): # Create a new image
object
with the cropped area cropped_image = image.copy().crop((table["…
Re: Get error please help me the server threw an exception.
Programming
Software Development
2 Months Ago
by pritaeas
At what line exactly did the exception trigger?
Re: JTABLE HEADER GROUP
Programming
Software Development
2 Months Ago
by Jan_315
Hi, I have the same problem. Do you already know the solution? Thanks
Re: JTABLE HEADER GROUP
Programming
Software Development
2 Months Ago
by Jan_315
I have found it. These lines are necessary: private JTable table = new JTable( dm ) { protected JTableHeader createDefaultTableHeader() { return new EtsGroupableTableHeader(columnModel); } };
Re: Get error please help me the server threw an exception.
Programming
Software Development
1 Month Ago
by tinstaafl
Have you tried looking at the answers on this page? [Click Here](https://stackoverflow.com/questions/973206/what-causes-error-hresult-0x80010105-rpc-e-serverfault)
Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch
Programming
Computer Science
2 Months Ago
by habi_2
how to use the best_model.pt
Re: how convert cur images to image?
Programming
Software Development
1 Month Ago
by pritaeas
Not easy, but [here](https://github.com/thetrik/VbPng)'s a lot of information. Basically, it's an [ICO file](https://docs.fileformat.com/image/cur/).
Re: how convert cur images to image?
Programming
Software Development
1 Month Ago
by cambalinho
damn i can't edit.. it's VB2010 and not VB6... but the tags is vb.net... i'm sorry
Re: how convert cur images to image?
Programming
Software Development
1 Month Ago
by Reverend Jim
Why not just load it into paint.exe then save as whatever format you want? Or you could download [ffmpeg](https://ffmpeg.org/) (free) and do ffmpeg -i myfile.ico myfile.jpg (or whatever format you want) ffmpeg can also be used to convert video between any formats. Also subtitle files. ffmpeg is a portable app (no installation required)…
Re: how convert cur images to image?
Programming
Software Development
1 Month Ago
by cambalinho
like i said: is for learning... we can use that images in several places ;)
Re: Multilabel Text Classification using Hugging Face Models for TensorFlow
Programming
Computer Science
2 Months Ago
by Aravind_11
Thank you very much for this informative example! I have a question regarding the line "bert = TFAutoModel.from_pretrained(model_name, from_pt = True)". Since we are using Tensorflow here, shouldn't we leave out "from_pt = True" ?
Re: Using ChatGPT to Interact with Third-Party Applications in Python
Programming
Computer Science
1 Month Ago
by catherine_11
Integrating ChatGPT with third-party applications in Python involves utilizing [OpenAI's API](http://www.google.com). Begin by obtaining API credentials, then craft Python scripts to send requests and process responses. Adhere to OpenAI's documentation for optimal integration, ensuring secure and efficient interaction with the ChatGPT model.
Re: Why am getting different syntax errors when running a Python script
Programming
Software Development
1 Month Ago
by Tom_45
After I posted this question I noticed that I was missing the raw string indicator and the capture group enclosing parenthesis on the findall, which explains the subscripting error. So, hold off on the answers for now. I'm still having other issues with multiple file runs, though.
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC