3,013 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Sponge_2

Hi, How do i store files into blob datatype into mysql via user input with python? def read_file(filename): #Convert digital data to binary format with open(filename, 'wb') as f: photo = f.read() return photo @app.route('/createProduct', methods=['GET', 'POST']) def createProduct(): createProductForm = CreateProductForm() msg = '' if request.method == 'POST' and …

Member Avatar for AndreRet
0
633
Member Avatar for Andrei_11

Hello all! I have an excel file that looks like this: Time of Day Lap Lap Tm Speed 14 - Stoicescu Dan - Regularitate Coupe 9:40:50.835 1 2:47.462 88.763 9:43:37.584 2 2:46.749 89.142 9:46:33.319 3 2:55.735 84.584 9:49:58.901 4 3:25.582 72.304 9:53:13.988 5 3:15.087 76.194 9:55:50.639 6 2:36.651 94.889 9:58:49.884 …

Member Avatar for Andrei_11
0
524
Member Avatar for Satish_14

#include<iostream> using namespace std; int findmaxindex(int a[],int ,int); void swap(int a[],int ,int); int main(){ int n; cout<<"give the number of elements to sort"<<endl; cin>>n; if(n>100){cout<<"invalid"<<endl; return -1; } if(n<=0){cout<<"invalid"<<endl; return -1; } int count,a[100]; cout<<"give"<<n<<"integers to sort"<<endl; for(count=0;count<n;count++){ cin>>a[count]; } int currtop,currmaxindex; for(currtop=0;currtop<n;currtop++){ currmaxindex=findmaxindex(a,currtop,n); swap(a,currtop,currmaxindex); } return 0; } int …

Programming c++
Member Avatar for DGPickett
0
152
Member Avatar for cbz6109

Hi all, I have WordPress blog, problem is that when we upload new content and browse the blog the latest change won't appear on blog until unless explicitly refresh the page after opening a blog. Here is the blog URL: https://corevoila.in/ Any help or clue will be appreciated Thanks

Member Avatar for AndreRet
0
79
Member Avatar for macroasm

Visual Tkinter is Python 2.6 GUI builder. Visual Python programming language for advanced Visual Python IDE that offers the possibility. As of December 2008 starting and writing fasting Editor. This software is using Scintilla editing component. <URL SNIPPED>

Member Avatar for Titus_1
-4
2K
Member Avatar for texelbee

I am a nyophyte to PHP, and I've seen this answered so many different ways that it is confusing. I have a combobox that is dynamically populated from a MySQL table ACTIVE in a database AIRCRAFT. Based on the selected AIRCRAFTREGISTRATION value from the combobox, I want to find and …

Member Avatar for Biiim
0
294
Member Avatar for griswolf

I'm writing a utility that will likely be called by a script that uses `argparse`, but should be useable by any script. The engine object constructor needs a dozen or so parameters to tune its behavior. The question is: What is the best way to allow the caller to send …

Member Avatar for JamesCherrill
0
302
Member Avatar for RJPII

I have been browsing the web for days now trying to find a solution to my problem and have yet to come up with anything so far so I figured I would ask some professionals. Basically I need to read a text file which contains records along the lines of: …

Member Avatar for Syed Umair Mohsin
0
12K
Member Avatar for Climber Ty

So I am trying to wrap my head around link lists and the theory is there but the magic isn't (at least in my program)... my problem runs with the void traverseRecord() function. For some reason it automatically shows all the nodes. Maybe I haven't totally grasped the concept of …

Member Avatar for JamesCherrill
0
6K
Member Avatar for smachee

I have written the code for the following problem and would just like some feedback before I move on. The problem states: [QUOTE]Write a class names TestScores. The class constructor should accept an array of test scores as its arguement. The class should have a method that returns the average …

Member Avatar for patrick_25
0
5K
Member Avatar for Lacy_3

Hi, my name is Lacy. I'm new to java programming and need some help of this code I'm writing. The code is based on the game mastermind. The computer genrates a code that the user has to solve. I having trouble with my code on how comparing the user guess …

Programming java
Member Avatar for chuckgr
0
697
Member Avatar for GustavSimonsen

Hey everyone! I would like to create a crossplatform mobile app to showcase our dinner events which we run. I want the app to have a chat, to have the ability to send invites and I would want it to send push-notifications. By the way, I'm planning to outsource, maybe …

Member Avatar for techugo-app
0
401
Member Avatar for Martin_42

Hi all I'm trying to put together a room hire site, to be used by the lettings clerks, for our local Quaker meeting house and I've hit a couple of problems. I have an HTML form that, using data from a MySQL database and some JSON and JavaScript, when a …

Member Avatar for Martin_42
0
263
Member Avatar for sunil_32

I have a website in laravel [instazood](https://www.iinstazood.com/) I want to apply limit clause with eager loading. I tried many other ways made r and d but could not get any solution. function fetchData() { $user = new User; $data = $user->with('comments'=>function($query){ $query->where('status',5); $query->limit(1); })->get(); }

Member Avatar for sunil_32
0
233
Member Avatar for fecapeluda

Hello guys i'm using [batflat](https://github.com/sruupl/batflat/blob/master/inc/core/lib/Image.php) for a small project. The thing is want to save/display webP images too, How can it enabled/possible?. I try **imagecreatefromwebp** without luck. Any idea/help will be awesome. Gracias! /** * Saves image * * @param string $path Path to location * @param string $type Filetype …

Member Avatar for AndreRet
0
227
Member Avatar for 2020_man

Php Seniors, I still on OOP and mysqli. Not on pdo or oop yet. So, kindly show samples to that level, if you must. Can you tell me if this query is ok to get row count ? It works on my side but I need your confirmation. [code] $query_2 …

Member Avatar for AndreRet
0
60
Member Avatar for Kelvin_11

I am good in different languages, that is: Java, python, C#, VB.NET, php, javascript I have been programming for a while now it's about 2 and half years but the issue is when I focus on one language I tend to concentrate on it more than the others which leads …

Member Avatar for Mr.M
1
318
Member Avatar for serkan sendur

As usual i searched google to convert Decimal numbers to their Binary equivalents but i couldnt find any short algorithm for that matter. So here is mine..

Member Avatar for Deendayal_Hindu
1
3K
Member Avatar for Jacob_19

Dear software developers, We are researchers aiming to understand developers' knowledge needs and program comprehension. Our intention is to support practitioners in selecting tools that can facilitate developers' tasks. Moreover, we hope that our research results in the development of new tools that are customized to the actual needs of …

Programming c++ java javascript php python
1
44
Member Avatar for kamilacbe

Hi , Am new to teamcity build configurations . so somehow i get a builderror when the source code js build for first time after rebuild its sorted in my local machine . Unfortunately the same happends in teamcity build where it cannot get the nugget package and it produce …

1
32
Member Avatar for Shaitan00

First - so I don't get in any trouble - I've posted a similar question on other forums but have not gotten any responses so branching out in my quest for help as well as changing the question a little. Previously I was trying to find out why calling LoadUserProfile(...) …

Member Avatar for Pooja_20
0
6K
Member Avatar for pROKO

I programmatically edit my datagridview cell values. I use the vertical scrollbar to find the row I want to edit, select the row then click an edit button that takes me to another form where changes to the record are made. I then click a button which saves the changes …

Member Avatar for Trần Hoàng Sơn
0
5K
Member Avatar for monkey_boy_401

can you please tell how you would invert the mouse control so that up is down, left is right etc.

Member Avatar for D_5
0
3K
Member Avatar for garyjohnson

Hello I have a simple for and PHP that uploads multiple images to a file. The problem is I want these images to be resized when they are uploaded. Does anyone know of a simple way to resize these images with PHP? I am not a professional so further explaining …

Member Avatar for haree54
0
3K
Member Avatar for priyamtheone

I’m working with Visual Studio 2017 and Bootstrap 4.5.0. Under a master page, I have a Payment page that contains a txtName textbox, a txtPin textbox and btnPay button. To this, I want to add a DateTimePicker. When btnPay is clicked, values of txtName, txtPin and DateTimePicker should be saved …

Member Avatar for AndreRet
0
876
Member Avatar for Syada

Write a complete C++ program for WorldParking Sdn Bhd. to perform the following: a. Write a return-value function named calcCharges() to calculate and return the parking charges for the customers. The company charges a RM1.00 minimum fee to park for up to one hour. An additional RM0.50 will be charged …

Member Avatar for Fatur_1
0
588
Member Avatar for misstj555

Hello. I am making a database using SQLite. Then I need to make an API with functions that returns information about that database. Then I need to print out a report. However, when I try to return an answer to a query using inputs, nothing is returned. I either get …

Member Avatar for John_165
0
414
Member Avatar for pandglobal

I have a html form and a validation php file for the form, every thing works when a user submits the form, but there are certain aspect of the function that i want the user to get in real time, such as if field A value is (yam) then unset …

Member Avatar for jkon
0
272
Member Avatar for mexabet

I'm struggling to add a course to a MySQL database table using PDO prepared query with positional placeholders. When the form is submitted, the database table is not updated, as expected and no error is displayed. Please, where exactly do I place `var_dump()` to display the error? And how can …

Member Avatar for mexabet
0
231
Member Avatar for MagnusTheRed90

I am trying to pass url parameters to an angular js page for page setup. I was wondering if anyone could tell me whether I am missing something from these two code samples. The following is some code from a game related program that I am writing. The $routeProvider parameter …

Member Avatar for MagnusTheRed90
0
133

The End.