darron

0

votes
0

answer
15

views

Sequelize - How do I query a one-to-many relationship?

I am trying to grab a list of values from a one-to-many relationship. Once I have those values I planned to delete them. I have tried using Op.in method on a where key. let queryValues = await productInput.findAll({ include: [{ model: productInputValue, where: { id: Sequelize.col('productInputValue...
Darron
1

votes
1

answer
676

views

Pyueye image saving with wrong resolution

personally pretty new to programming and I am trying to save a high mp Image from an IDS camera using the pyueye module with python. my Code works to save the Image, but the Problem is it saves the Image as a 1280x720 Image inside a 4192x3104 I have no idea why its saving the small Image inside the...
Darron
1

votes
3

answer
349

views

How do I report an error midway through a chunked http repsonse if I'm willing to close the connection?

(See related question: How do I report an error midway through a chunked http repsonse without closing the connection?) In my case, the #1 desire is for the browser to display an error message. No matter how uninformative. Closing the ServletResponse outputStream obviously doesn't work. Neither do...
Darron
1

votes
1

answer
1.1k

views

How to create an execve() child process with the right tty settings to run 'vi' yet still redirect IO back to the parent process?

How do I get a forked, execve() child process that can run 'vi', etc. and redirect all IO to the parent process? I'm trying to pass shells through from an embedded Linux process to the PC software interface connected over the network. The IO for the shell process is packaged into app-specific messag...
darron
-2

votes
1

answer
16

views

How often does the Google Play store Apple store OS check for application updates?

My supervisors asked me some very good questions today that I am unable to answer. I reached out to Apple Developer support for answers and hit a wall. These are the questions I would like answers for? How does the OS pull a new version of the application? What is the default amount of time the OS c...
Darron
5

votes
2

answer
2k

views

Dropdown select in form not working in Internet Explorer

This is my first question on this site. I have an issue with Internet explorer. My contact form works fine in Chrome, Safari and FF but not in IE. Here is the link for my form. Basically the problem(s) are that there is no text in the dropdown select and as a consequence, nobody can send an enqui...
5

votes
5

answer
4.6k

views

Qt, VS2005, Qwt - Can't use Q_OBJECT in class derived from Qwt widgets

We've compiled QT 4.6 and QWT 5.2.0 for VS2005. We're trying to derive a class from QwtDial, and the derived class has slots. So, we need to add the Q_OBJECT macro. However, when we do that, the linker chokes out this error: error LNK2001: unresolved external symbol 'public: static struct QMetaObj...
darron
2

votes
2

answer
867

views

Qt for Symbian - odd network sockets behavior

I grabbed the 4.6.0 release, and immediately tried writing a little test app for it. This application simply shows an edit box for a host address, and a checkbox if it's to use an encrypted connection or not. There are also simple 'Connect' and 'Disconnect' buttons. It tries to download and show...
darron
28

votes
5

answer
49.1k

views

How do I programmatically zoom a UIScrollView?

I'd like to zoom and unzoom in ways the base class doesn't support. For instance, upon receiving a double tap.
Darron
3

votes
1

answer
409

views

QtEmbedded (for Kindle!): How are the device plugins supposed to get feedback from the app?

I'm not having an easy time making a workable mouse pointer interface on the Kindle with Qt (unofficial, of course). The fiveway joystick can't track more than one direction at a time (no diagonal moves), and the screen is too slow to update for good feedback. I've got limited acceleration, but wit...
darron
24

votes
2

answer
11.3k

views

Using a Qt-based DLL in a non-Qt application

Am I doing it right? A client of mine has a group where I'm developing Qt-based client-server stuff with a lot of fun widget stuff and sockets. Another group within the company wants to use a wrapped version of the QTcpSocket-based client data provider classes. (Which does basically what it sounds...
darron
35

votes
20

answer
4.5k

views

What are some reasons why a sole developer should use TDD?

I'm a contract programmer with lots of experience. I'm used to being hired by a client to go in and do a software project of one form or another on my own, usually from nothing. That means a clean slate, almost every time. I can bring in libraries I've developed to get a quick start, but they're...
darron
39

votes
6

answer
16.7k

views

Qt - top level widget with keyboard and mouse event transparency?

I want an app's main window to ignore mouse and keyboard events, passing them to applications underneath it in the window manager Z-order. I see how to make child widgets ignore keyboard or mouse events, but how about the main window? I'm trying to make a desktop widget that always sits just over...
darron
2

votes
1

answer
193

views

Birth simulator

I'm working on a program that is supposed to select random numbers (with half being assigned as boys and the rest are girls) and should stop when at least one boy and one girl has been selected, then print out the total babies. It looks a little like this: public class BoyAndGirl { public static voi...
Darron Martinez
2

votes
2

answer
116

views

Address and Coordinates not displaying in Mysql database

OK, I have tried to get this to work and I cant seem to get the addresses and coordinates from places to store in MySql database from my PHP form. Any help will lower my cortisol levels significantly :)
Darron Donaldson
3

votes
3

answer
8.4k

views

Qt & double buffering - are there any neat tricks to capture pixels or manipulate the back buffer?

I'm migrating an application to Qt from MFC. The MFC app would use GDI calls to construct the window (a graph plot, basically). It would draw to a memory bitmap back buffer, and then BitBlt that to the screen. Qt, however, already does double buffering. When the user clicks and drags in the graph,...
darron
7

votes
2

answer
3.3k

views

Qt QFileDialog - native dialogs only with static functions?

I'm trying to simply save a file. However, I need a filename entered without a suffix to automatically get a default suffix (which setDefaultSuffix() does). I'd rather not completely lose the native save dialog just for this. exec() is not overloaded from QDialog, so it totally bypasses the native...
darron
1

votes
2

answer
3.2k

views

Windows XP embedded - RS485 problems

We've got a system running XP embedded, with COM2 being a hardware RS485 port. In my code, I'm setting up the DCB with RTS_CONTROL_TOGGLE. I'd assume that would do what it says... turn off RTS in kernel mode once the write empty interrupt happens. That should be virtually instant. Instead, We see...
darron
8

votes
3

answer
79.3k

views

How to make my website mobile and tablet compatible? [closed]

I want to make my existing website automatically adjust itself when viewed either on mobiles, tablets, or even when you adjust your screen on a desktop. Failing that, if it's too difficult, what suggestions do you have?? I basically want an ipad and iphone (android) version that uses the same url,...
Darron Donaldson
3

votes
1

answer
1.3k

views

Disable velocity.js animations for mobile devices

I have created a few Velocity.js animations that work well on a laptop using Chrome, Safari and Firefox, however, the animations sometimes crash or don't appear on my ipad2. Due to the fact that it sometimes works, leads me to believe its my ipad2. My question, is it possible to disable animations...
Darron Donaldson
5

votes
3

answer
4.6k

views

Apache2 and CGI - how to keep Apache from buffering the POST data?

I'm trying to provide live parsing of a file upload in CGI and show the data on screen as it's being uploaded. However, Apache2 seems to want to wait for the full POST to complete before sending the CGI application anything at all. How can I force Apache2 to stop buffering the POST to my CGI applica...
darron