Jump to content

Wicket

uniGUI Subscriber
  • Posts

    208
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Wicket

  1. Looking good, really interested in this! Sent from my Pixel using Tapatalk
  2. I am also in a very similar situation, so watching this with interest!
  3. Just incase anyone looks at this, apple fixed the issue in 11.3 you can now use the camera from a web application. Sent from my Pixel using Tapatalk
  4. Hi, I have a 'wsMaximized' form with client alignment working great (border) I then have a UniPanel at the bottom of the form with a OK and Cancel buttons - I need them to be bottom right of the form and stay there, when the form is resized - the same way VLC anchors work, how can I achieve this with clientside alignment, within a UniPanel? https://www.dropbox.com/s/fokg3xlk79nqaaw/Capture.PNG?dl=0 Thanks.
  5. Has anyone got any hints on how I might achieve this? The reasoning behind it - is I want to have the option to 'brand' the web application. The way it works at the moment is pulling a single image 'apple-touch-icon' from the root, eg I can only have one. The idea is to have multiple icons, but decide at runtime which one to use. My idea was to set a different href of the particular element, but I am not sure if this is possible. My guess would be to use the window.beforeInit event on the login form and change the href here. Any help appreciated.
  6. Hi, Currently I have the apple touch icon image in the root of web server - so each application gets the same image, for the its icon - this is working fine. However, I would like the ability to change the image per unigui application. eg, UniguiAppPath/Images/AppleTouchIcon.png Can someone show me how to add a new element specifying a new path to the apple touch icon, that points to a different location than the default root directory. It seems it is possible to do, as per the thread below. https://stackoverflow.com/questions/25041622/does-the-apple-touch-icon-have-to-be-in-the-root-folder However, I do not know how to code this to achieve what I want. I guess it will have to be called somehow before the login screen is shown - help is greatly appreciated. Thanks, Dan. **EDIT** I guess this boils down to having the ability to 1. Remove the element , eg <link rel="apple-touch-icon" href="apple-touch-iphone.png" /> 2. Add the element back in with a different href eg <link rel="apple-touch-icon" href="apple-touch-iphone_NEW.png" /> Can someone show me how to do this at application start? This way I think I can load the images with different names and different directories.
  7. Hi all, I need to be able to zoom in and out using gestures when viewing a pdf on mobile. Eg pinch to zoom. Currently you have to push the +/- buttons to achieve this, sometimes this is quite difficult as the buttons are small. Has anyone implemented zoom touch gestures for the pdf viewer or know how? Thanks, Dan Sent from my Pixel using Tapatalk
  8. Ok great stuff - I think I will do this also.
  9. Ok I will try your suggestions, thanks for the information. I might be worrying about nothing, the fact is I need to get it running in a production environment to really see if I have an issue. The issue only came to light when I performed the stress test with 100-200 users. What made me worry was that I expected the memory usage of the worker process to reduce a lot more when all sessions had ended - the memory does lower, but only by about half. And of course the worker process is still in the task list. Do you manually recycle your application pools? - I think I will have a scheduled task to perform this at midnight - I can guarantee no user will using the system then, and this will mitigate against memory usage causing the server to fall over. "c:\Windows\system32\inetsrv\appcmd.exe recycle apppool "NameOfTheAppPool"" Further testing needed - I will report back my findings.
  10. Hi Pickya, Yes - I have ReportMemoryLeaksOnShutdown := true; (This was my first thought too) Obviously, this only works for VCL - so when I run locally using the standalone server it is active, rather than in my production environment. I do not get any memory leak errors when running standalone vcl server.
  11. This would not explain why RAM is not being released when no sessions are active, unless I've misunderstood. However, I will test this and report back. Thanks Sent from my Pixel using Tapatalk
  12. Hi All, I would appreciate any help/tips/guidance Bit of a long one, as I have tried to be as detailed as I can - but please stay with it! My setup: Delphi Version - 10.2 Tokyo UniGUI version - 1.0.0.1425 Data Access – UniDAC DBMS – MS SQL Server Deployment – ISAPI dll, IIS 8 (settings exactly match the deployment guide) Number of Users – ~100-120 concurrent (Stress test) Architecture – Compiled to 64-bit - I use one application data module per software module (I have 5), I use CreateOnDemand = True, and Free the data module when the module is closed. I also use EnableSynchronousOperations, and TerminateOnBrowserClose ------------------------------------------------------------------------------------------------------------------------------ Ok, so I have an application that is nearing the end of the first phase of work – which contains all functionality for the agreed minimal viable product. On the surface everything looks great and everything is working as far as I can see. Today I tasked myself with doing some stress tests and looking at memory to make sure everything was stable, before putting the whole app through test. Which leads me to some questions – A single user idles at ~8 mb – once the application is logged on) Upon observing task manager, I noticed the "w3wp.exe" IIS Worker Process remains running in the task list, even after all of the sessions have ended – I guess this is because the deployment guide says to turns off Application pool recycling. The issue I have here is that while all 100 users are connected my RAM is ~300 mb – once they all come off this drops to ~220mb – and the "w3wp.exe" worker process memory usage stays at this indefinitely – and I am stumped to as why this might be the case? I would of thought once all sessions had terminate this would at least drop in RAM usage – I understand the "w3wp.exe" worker process will stay active until recycled, but the deployment guide said to turn off auto/timed/etc recycling – as this could affect the stateful nature of sessions. I get the same affect with using less users, but obviously the RAM usage is much lower, so its less noticeable. I do not get any errors on the stress test, and keep it really simple – log in to the application and open all modules, and scroll through some master detail relationships, to cause the app to do some work. With all this in mind, what is the correct solution to make sure my server doesn’t run out of RAM without constant maintenance and recycling the application pool manually? Am I missing something, or am I doing something wrong? Thanks, Dan
  13. Any other suggestion? I really only need a simplistic way of being able to pan, so then I can view other parts of the image on the screen, otherwise it is statically in the first of the image and cuts the rest off, with no way of viewing it.
  14. Hi Delphi Developer, This made no difference for my scenario
  15. Hi, I want to be able to view (pan around) large images on a small mobile app. I am using TUnimImage to load the image from the server file system. The screen area is too small for the image, so the screen will only show half the image (for example) What would be the best way to allow the user to pan/scroll around? Possible even zoom in and out? I have looked at using a TUnimScrollbox - but I cant seem to get it to work. Surely someone has implemented something similar - so any help/pointers/examples would be great. Thanks.
  16. Thanks for the input Marlon - lots to think about.
  17. Hi guys, I am looking into using PhoneGap to deploy a UniGUI mobile app to the Apple/android store. (or generate the .apk to install manually) Before I delve into the PhoneGap documentation - has any body used PhoneGap in conjunction with UniGUI? Is it straight forward to do? Any tips would be great. I am just about to sit down and look over the documentation, but its always nice to get opinions from anyone who has experience with doing this. Most importantly whether it is possible. Thanks.
  18. Thanks irigisoft, this has got me on the right track I think. Sent from my Pixel using Tapatalk
  19. Hi , I am looking at putting some simple fleet management into one of my projects. I need to be able to record locations of vehicles. I have all of the code to place a marker using longitude and latitude in Google maps, I just need a bit of advice on what device to use to get this information from a vehicle. Has anyone got any experience on using a tracking device in a car, that allows you to connect to a API, or some sort of service so I can at least get the longitude and latitude at that moment in time. I could probably implement what I need using a phone, but that is easy for a user to turn off location access and thus no GPS. I need something like a black box that can be put into the vehicle, and queried to get the current location. Like a tracker device. Any advice or suggestion would be greatly appreciated. Sent from my Pixel using Tapatalk
  20. Any news on this? I am having very similar issues using the iPad air. Sent from my Pixel using Tapatalk
  21. **EDIT** Sorted myself - skip to end for answer. Hi Lema, Firstly thanks for the component, post card will be in the post soon! Just one issue - I use SSL (https) from a a IIS ISAPI dll - the only way I can get it to work is to allow the site to 'load scripts from unauthorized sources'. Doing this makes my 'secure' site 'unsecure' The only method I call is UniGMap1.Geocoding('valid address', true); I guess the component loads the google library using http, not https - is their anything I can do about this? tell the component to load it from a https source? If i do not allow 'load scripts from unauthorized sources' I get 'google is not defined' - as the library is obviously not loaded. Can I override the path for http://maps.googleapis.com/maps/api/js?key=[API_KEY]&callback=initMap to https://maps.googleapis.com/maps/api/js?key=[API_KEY]&callback=initMap somehow? **EDIT** I thought Adding https://maps.googleapis.com/maps/api/js?key=[API_KEY]&callback=initMap to CustomFiles in ServerModule, might help, but it does not - I still get the complaint of 'This page is trying to load scripts from unauthenticated sources' - So it must be something to do with where the script is being loaded from. (i think) This is what I get if I load scripts from 'unauthorized sources' https://www.dropbox.com/s/0tw4mliqdw6f9y7/2018-01-21_23-17-55.png If I allow the script to run everything works as expected. Any ideas? **EDIT** I have just found the maps api URL in GMaps.pas constructor, doh!!! Left here in case anyone else has the issue and doesn't check in the most obvious place first!!
  22. Thanks, i will take a look once I am back at my computer. I did search before posting this, not sure how I missed that post! Sent from my Pixel using Tapatalk
  23. Hi Guys, I am having an issue with text alignment of TunimDBNumberEdit, its seems no matter the property I change it always appears right aligned, even when alignment is set to left. I am using client side alignment and vbox on the form, and the fieldset contains the controls. Below are two images, one of TunimDBEdit (which is aligned as I would expect) then TunimDBNumberEdit which is not. Image Link to explain, https://www.dropbox.com/s/ax4ewhm93b51oyy/text_alignment_issue.png?dl=0 Thanks *Edit* I am just trying to achieve a a list of fields which all work and align fine, apart from the TunimDBNumberEdit control. Am I missing something?
×
×
  • Create New...