how avoid memory leaks? from here: http://www.winprog.org/tutorial/bitmaps.html i learned: GetDC() - ReleaseDC() BeginPaint() - EndPaint() CreateCompatibleDC() - DeleteDC() i must get the old selected object. select it when isn't needed and then delete it. so seen these constructor and desctructor: image(const int width, const int height) { if (isimgused==true) delete img; isimgused=false; if(isGDIPLUSIniciated==false) { Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL); isGDIPLUSIniciated=true; } SelectObject(hdcimage, obj); DeleteObject(btBitmap); DeleteObject(obj); DeleteDC(hdcimage); hdcimage = CreateCompatibleDC(NULL); btBitmap = CreateBitmap(width,height,1,32,NULL); obj = SelectObject(hdcimage, btBitmap); framecount=1; imageheight=height; imageweight=width; } ~image() { if(isimgused==true) delete img; if(isGDIPLUSIniciated==true) Gdiplus::GdiplusShutdown(m_gdiplusToken); SelectObject(hdcimage, obj); DeleteObject(btBitmap); DeleteDC(hdcimage); } and these function: void DrawHICONtoHDC(HDC hdc, HICON hIcon, int PosX=0, …

Member Avatar
Member Avatar
+1 forum 3

Halli Hallo i hope im at the right Place. I want to get started with API-Gateway(s). Currently im running 5 Microservices written in Java (Spring-Boot) deployed via Docker. Each Microservices is protected via Keycloak. I want to use a API-Gateway so that i can combine every MS into 1 Link: * demo.com/api/ms1 * demo.com/api/ms2 * ... And more important i want to have the Authorization at one Place and not in everysingle Microservice. I found a couple of Solutions but im not sure which to use or if i maybe should write my own one? I was intrested in checking …

Member Avatar
Member Avatar
+1 forum 1

I have a table called download_manager .It has two columns filename and downloads .What I want to do is to get file name and its download count and display them inside ul element. I am able to get file names but I cant display the download count I'm getting undefined index error.This is my code <?php $handle = opendir($directory) or die('Error'); $files = array(); while ($file = readdir($handle)) { if ($file[0] == '.') { continue; } $files[] = $file; } sort($files, SORT_STRING); $query = 'select * from download_manager'; $data = mysqli_query($link, $query); $fileInfo[] = array(); if (mysqli_num_rows($data)) { while ($singleFile …

Member Avatar
Member Avatar
+0 forum 1

USB not Formatting ...disk protected

Member Avatar
Member Avatar
+0 forum 1

The title of the new employee training module alone was a sign that times have changed. This topic never came up in all my years at any job. Here's the boil down of the course. > If there is an active shooter in the area, we suggest you first run (away), hide and if forced fight I shared this with a friend in HR in Canada and they were mildly shocked. This wasn't my training session but my son at his new job.

Member Avatar
Member Avatar
+0 forum 5

ASUS Computers I recently had dealings with Asus. The situation was regarding a malfunctioning keyboard. The computer is a several-year-old (no longer under warranty) Asus K53E laptop. It belongs to my father-in-law and because he is somewhat careless with food (he is 91 so this is understandable), something eventually got under one of his CTRL keys causing it to stick closed. Naturally, this made the keyboard (and scroll wheel) useless. At this point there were two possible solutions: 1. Clean the keyboard 1. Replace the keyboard Before trying option 1 I wanted to see if I could actually purchase a …

Member Avatar
Member Avatar
+0 forum 2

Guardian newspaper columnist [Dawn Foster](https://twitter.com/DawnHFoster) posted images on Twitter this weekend showing how she was able to login to the official Conservative party conference app as Boris Johnson, until recently the UK Foreign Secretary. Not only was there no password required to login to the app, all that was required was an email address, but once in all the details of user registration were accessible. So, in the case of Alexander Boris de Pfeffel Johnson (yes, that is his real name) that meant contact details such as his mobile phone number. It also meant that the logged in user could …

Member Avatar
Member Avatar
+0 forum 6

Who would have guessed that would be a keyword a week ago?

Member Avatar
Member Avatar
+0 forum 3

The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/)

Member Avatar
Member Avatar
+0 forum 3

If you have a counter that gets incremented through multiple functions, is it better to use a global counter or pointer counter? They both work just curious which is better and why.

Member Avatar
Member Avatar
+0 forum 3

Hi to all! I'm fairly new to using High availability group and i've been having issues with storage space from my Logs drive from my primary server.. I just want to know why is my Log file not shrinking after I do backups(Full) on the primary server.. also, another question.. can I do the backup on my secondary server before shrinking my Logs on the primary? the reason I want to do this because my primary server has a database primarily used for Production(MES) and I don't want any downtime on their part.. Thanks in Advance.

Member Avatar
Member Avatar
+0 forum 4

I have a table that contains some cubes with servers and active status (see attached image): note: CUBE1 is repeated intentionally. The idea is the same cube is getting synced from the same server 1 as a data source (process_server) onto different target servers (query_server; say server2 is in region A and server 3 is in region B). The way the environment is set up is both servers have to be active/active status (meaning TRUE) except for some additional test cases, i am setting to false sometimes one or the other. I have the following script now calling the cube …

Member Avatar
Member Avatar
+0 forum 1

I want to protect my site from hacking. Currently I know about XSS and SQL injection. Do I need to use mysqli instead of mysql? And why? When should I use `htmlentities()` and `striptags()`? I also don't want users to upload melicious files and since I accept file uploading, is it enough to check file type? If not what can I do to prevent this? My website runs on PHP, is there anything else I should worry about?

Member Avatar
Member Avatar
+0 forum 6

Hi, In my application two fields are the user id and user name,i want to show the user name and user id along with other details in a html table. user id is a numeric dropdown menu and user name is text only.How can i show the specfic record in that table for that user which i have selected in both of the fields ,how i can fetch data from backend User table?am using html,css and javascript, Any suggestion would be grateful!Thanks..

Member Avatar
Member Avatar
+0 forum 1

It wasn't bad enough that Skype nagged me with "your current version will soon stop working" every time I brought up the GUI. When I ignored the upgrade requests is started popping up notices even when I wasn't using Skype. So I finally bit the bullet and did the upgrade to Skype version 8.25.0.5. As far as I can tell, the changes are only cosmetic. Changing the font size is non-standard. In Chrome, Firefox, my email, etc, you can increase/decrease the font size with CTRL+/CTRL- or by CTRL-SCROLL. But in Skype you have to CTRLSHIFT+. There is still no way …

Member Avatar
Member Avatar
+0 forum 11

I had made a Microsoft Office Access 2007 database with more than 2000 records. A copy of which was given to my friend. We both made a number of amendments and added new records in our respective copies. Now I want to compare both databases & merge the databases into one. There is only one table in the database, so basically both the tables need to be merged with the amendments made by both of us. How do I do it?

Member Avatar
Member Avatar
+0 forum 3

hi, i have installed XAMPP, but i would like to run my localhost from another computer..

Member Avatar
Member Avatar
+0 forum 10

I think this guy has made some excellent points in [this article](http://tonsky.me/blog/disenchantment/).

Member Avatar
Member Avatar
+1 forum 1

Hi chaps, I have a Dell XPS17, dual booting with Windows and Ubuntu on it. I have to give it away and therefore reinstall windows. Usually, I'd format the whole HD and reinstall Windows, but I don't have the Windows CD – it wasn't dispatched with the laptop unfortunately – so I'd like to try to do everything with the Recovery partition. I checked and it appears to be there. Now, can I format the whole HD except the Recovery partition so that I reinstall windows and remove Ubuntu with some Windows' utility rather than manually formatting it?

Member Avatar
Member Avatar
+1 forum 14

I need to know what i sthe different between Google Analytics and Ahrefs tools

Member Avatar
Member Avatar
+0 forum 6

Hello i want to add fa fa-users (the users icon from font awesome) but when i do <i class="fa fa-users" aria-hidden="true"></i> i am not getting the icon, html displays the code of the font-f0c0 that is. Any guess why? p.s. i am using other fonts just fine e.g. contact, search and so on

Member Avatar
Member Avatar
+1 forum 3

Hi guys : Any help with this please! script1.py in 192.168.1.10 x = 10 script2.py in 192.168.1.20 if x == 10: print x else: print "sorry" how can apply this between two scripts in same network. Thanks for all

Member Avatar
Member Avatar
+0 forum 4

First how this happened. The Nissan Leaf from about 2011 to mid 2015 on the SV and SL models included Telematics. Telematics in thse models let the owner use a web site or smart phone app to query battery status, start or stop charging and turn on/off the climate control as well as get performance statistics. After years of warnings from AT&T that the 2G cellular network was going to shut down, AT&T did the shutdown in January 2017. This caused a lot of troubles in the M2M and Telematics space or business. Nissan responded by offering a (discounted?) upgrade …

Member Avatar
+0 forum 0

On my page https://fiftyallstars.com/50/curriculum.html , I have some basketball drills loading from a google spreadsheet of mine. Only thing is after it loads, I can't seem to get the datepicker to show today's date. My players get confused by having to select the date each time, and I'd rather it just default to today's date instead. Looking around the web, I stumbled upon a code that looked like it should work but did not $(document).ready(function() { $('#txtDate').datepicker(); $('#txtDate').datepicker('setDate', 'today'); }); Assuming that's close, could someone help me perfect it and maybe tell me where exactly to add it? Or, if …

Member Avatar
Member Avatar
+0 forum 6

Hi, I Have below table I want all rows with all coloumn from below table where ActCode is 1162828 and sum of DocAmount for DocNo. i.e where the docNo is repeated i want only one row with sum of amount of all repeated rows. ** "Select *, Sum (DocAmount) from TblPurLedTranData whre TblPurLedtranData.ActCode='" & 1162828 & "' Groupby DocNo " ** PosDate DocDate DocNo DocAmount DueDate Status Period DocType FinYear Chan ActCode 10/10/2018 12/10/2018 369896     36980      11/11/2018 INV      5         PUST       2018       PUST       1243684    10/10/2018 12/12/2018 665        36000      11/01/2019 INV …

Member Avatar
Member Avatar
+0 forum 1

Sorry for the lousy title, "InterProcess Communication" was too long Basically, I'm looking to use the native `_winapi` and `msvcrt` modules to launch an integrated python interpreter and communicate with it over pipes I can't find anything on Google or DDG, and I've been searching for days, but nobody uses these modules for some reason... I already have the foundation with a 1-way Parent->Child pipe that works, but it's giving me a few issues: 1: I can't seem to get a 2nd Child->Parent pipe to run without the program hanging 2: the output of the subprocess only prints after the …

Member Avatar
Member Avatar
+0 forum 9

I've following configuration PC. It goes crazy sometimes. All cabinate fans starts running crazily & display goes off, still I can hear audio like songs or movie audio. After switching the power it becames normal. **configuration** 1. **CPU:-** Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz 2. **Motherboard:-** Intel DH87MC 3. **RAM:-** 8.00GB Single-Channel DDR3 @ 798MHz 4. **Graphics:-** NVIDIA Quadro K600 5. **Storage:-** Seagate 2TB SATA How to fix the problem???

Member Avatar
Member Avatar
+0 forum 12

Hello i want to create an app -not native- to work with iOS, Android, and Windows. I am working with Ionic Framework to do that. A programmer told that i should use CodeIgniter because i am good with PHP. Whats your opinion about Ionic and CodeIgniter?

Member Avatar
Member Avatar
+0 forum 6

I would like to fill in the empty spaces of a csv column and its in one column using phpexcel I have added a demo for your viewing: The flow check B2 is its not empty go the next B3 if B3 is empty take value from B2. Here is demo: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <table width="200" border="1"> <tr> <td>Apple</td> </tr> <tr> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> </tr> <tr> <td>Banna</td> </tr> <tr> <td>&nbsp;</td> </tr> </table> <p>&nbsp;</p> <p>The final outcome</p> <table width="200" border="1"> <tr> <td>Apple</td> </tr> …

Member Avatar
Member Avatar
+0 forum 4

[B]Hi all.. I need to do a condition check in a script. The same condition check needs to be repeated in another script. So, I am looking for a way, where i can set, say a flag in the first script ,upon meeting the condition, and be able to access that flag in another script, instead of repeating the check all over again. Hope I am clear in explaining what I want to do. Can anyone pls give me suggestions? [/B]

Member Avatar
Member Avatar
+0 forum 13

The End.