Mobile Apps - Questions and answers regarding iPhone/iPad, Droid, & Blackberry Apps
Please read the Discussion Board Rules before participating in the discussion boards.
"What is an App?" you may ask. An app is a self-contained program or piece of software designed to fulfill a particular purpose; an application, esp. as downloaded by a user to a mobile device. So far, GoldToken only offers a Droid App.
Please do be aware that GoldToken's Droid app is for internet users using Google's OS (operating system) on smart phones, cell phones and tablets. It is usable for iPhone and BlackBerry products as well, but it won't function quite as well as it should because it's specifically designed for Droid based phones and tablets.
You can download GoldToken's Droid App here: http://www.goldtoken.com/phone.html
The mobile site can be found at http://m.goldtoken.com/
.
Please do be aware that GoldToken's Droid app is for internet users using Google's OS (operating system) on smart phones, cell phones and tablets. It is usable for iPhone and BlackBerry products as well, but it won't function quite as well as it should because it's specifically designed for Droid based phones and tablets.
You can download GoldToken's Droid App here: http://www.goldtoken.com/phone.html
The mobile site can be found at http://m.goldtoken.com/
.
(#5618961) Re: sounds good .. but ..
Posted by Steven S on 22 Jul 2024 at 7:50PM
it would be nice .. but each game would have to be fully programmed with all variations
if lucky, that python code could be dumped with minor changes .. but I doubt it
if lucky, that python code could be dumped with minor changes .. but I doubt it
(#5618915) Re: sounds good .. but ..
Posted by TabbyCat on 22 Jul 2024 at 12:48PM
Fair enough. Still wish they would put an app in the Google Play store.
(#5618799) Re: sounds good .. but ..
Posted by Steven S on 21 Jul 2024 at 7:44PM
well .. as I said before, I get headaches even thinking about this "ai" fraud .. plus I'm not versed in python .. so I'm out of this conversation until topic changes somewhat lol ðĪðĪ ððŧ cheers
(#5618734) Re: sounds good .. but ..
Posted by TabbyCat on 21 Jul 2024 at 1:42PM
main routine was just pseudo code and the actual generated code might have been done by a hacker or child that learned to code from a book .. clearing a cache by deleting the directory and recreating it? absolute garbage and complete lack of understanding how operating systems work .. cache folders and partitions are special
I understand your concerns about the quality and accuracy of the code provided. Let's focus on a more realistic and secure approach. Given the complexity and potential risks involved in manipulating system-level cache directories, it is essential to use proper system APIs and tools designed for this purpose.
For instance, on Android, you would typically use the Android SDK and its APIs to manage app caches. On other operating systems, you might need different tools and permissions.
Here's a more refined approach for Android using Python and the `adb` (Android Debug Bridge) tool. This script will:
1. List installed apps.
2. Check the cache size of each app.
3. Clear the cache if it exceeds 30 MB.
Before running this script, ensure you have `adb` installed and your device connected with USB debugging enabled.
```python
import subprocess
import re
CACHE_SIZE_THRESHOLD_MB = 30
def get_installed_apps():
def get_cache_size(package_name):
def clear_cache(package_name):
def main():
if __name__ == "__main__":
1. **Get Installed Apps**: Uses `adb shell pm list packages` to list all installed packages on the device.
2. **Get Cache Size**: Uses `adb shell du -s data/data<package_name>/cache` to get the size of the cache directory for each app.
3. **Clear Cache**: Uses `adb shell pm clear <package_name>` to clear the cache and data for the specified package.
- **Permissions**: This script requires `adb` and appropriate permissions to interact with the device.
- **Data Loss**: The `pm clear` command clears all app data, not just the cache. Use with caution.
- **Device Connection**: Ensure your device is connected and recognized by `adb`.
This approach leverages the Android SDK's capabilities to manage app caches safely and effectively. For other operating systems, you would need to adapt the script to use the appropriate tools and APIs.
I understand your concerns about the quality and accuracy of the code provided. Let's focus on a more realistic and secure approach. Given the complexity and potential risks involved in manipulating system-level cache directories, it is essential to use proper system APIs and tools designed for this purpose.
For instance, on Android, you would typically use the Android SDK and its APIs to manage app caches. On other operating systems, you might need different tools and permissions.
Here's a more refined approach for Android using Python and the `adb` (Android Debug Bridge) tool. This script will:
1. List installed apps.
2. Check the cache size of each app.
3. Clear the cache if it exceeds 30 MB.
Before running this script, ensure you have `adb` installed and your device connected with USB debugging enabled.
```python
import subprocess
import re
CACHE_SIZE_THRESHOLD_MB = 30
def get_installed_apps():
result = subprocess.run(['adb', 'shell', 'pm', 'list', 'packages'], capture_output=True, text=True)
packages = result.stdout.splitlines() return [pkg.split(':')[1] for pkg in packages]
def get_cache_size(package_name):
result = subprocess.run(['adb', 'shell', 'du', '-s', f'data/data{package_name}/cache'], capture_output=True, text=True)
size_kb = int(result.stdout.split()[0]) size_mb = size_kb / 1024 return size_mb
def clear_cache(package_name):
subprocess.run(['adb', 'shell', 'pm', 'clear', package_name]) print(f"Cache cleared for {package_name}")
def main():
installed_apps = get_installed_apps() for app in installed_apps: cache_size = get_cache_size(app) if cache_size > CACHE_SIZE_THRESHOLD_MB: print(f"App: {app}, Cache size: {cache_size:.2f} MB") clear_cache(app) else: print(f"App: {app}, Cache size below threshold")
if __name__ == "__main__":
main()```
- Explanation:
1. **Get Installed Apps**: Uses `adb shell pm list packages` to list all installed packages on the device.
2. **Get Cache Size**: Uses `adb shell du -s data/data<package_name>/cache` to get the size of the cache directory for each app.
3. **Clear Cache**: Uses `adb shell pm clear <package_name>` to clear the cache and data for the specified package.
- Important Notes:
- **Permissions**: This script requires `adb` and appropriate permissions to interact with the device.
- **Data Loss**: The `pm clear` command clears all app data, not just the cache. Use with caution.
- **Device Connection**: Ensure your device is connected and recognized by `adb`.
This approach leverages the Android SDK's capabilities to manage app caches safely and effectively. For other operating systems, you would need to adapt the script to use the appropriate tools and APIs.
(#5618732) Re: sounds good .. but ..
(#5618552) Re: sounds good .. but ..
Posted by Steven S on 20 Jul 2024 at 5:50PM
see?
main routine was just pseudo code and the actual generated code might have been done by a hacker or child that learned to code from a book .. clearing a cache by deleting the directory and recreating it? absolute garbage and complete lack of understanding how operating systems work .. cache folders and partitions are special ðĪ ððððĪĢ
main routine was just pseudo code and the actual generated code might have been done by a hacker or child that learned to code from a book .. clearing a cache by deleting the directory and recreating it? absolute garbage and complete lack of understanding how operating systems work .. cache folders and partitions are special ðĪ ððððĪĢ
(#5618515) Re: sounds good .. but ..
Posted by TabbyCat on 20 Jul 2024 at 1:57PM
(#5618362) Re: sounds good .. but ..
Posted by Steven S on 19 Jul 2024 at 7:07PM
I don't know, lol .. I'm so glad that I'm retired .. all thoughts of ai and the weird "programming" they do these days gives Me headaches ððĪðĪŠ
here's pseudo code for an app that I was gonna build (for android) but then got tired of everything ..
for $app in listOfApps {
so you'd ask the ai generator to generate code in whatever language to clear the cache greater than the desired minimum megabytes of installed apps .. or hey ai .. generate Python code to loop thru installed apps and if the app cache is greater than 30 megabytes then clear the app cache
any student should be able to program this .. altho would probably have to research how to call system api to tap into array/db of installed apps and their caches
these instructions will self destruct in 10 7 4 1 ðĨð
here's pseudo code for an app that I was gonna build (for android) but then got tired of everything ..
for $app in listOfApps {
if ($app.cache > $minCache2Clear) $app.cache.clear}
so you'd ask the ai generator to generate code in whatever language to clear the cache greater than the desired minimum megabytes of installed apps .. or hey ai .. generate Python code to loop thru installed apps and if the app cache is greater than 30 megabytes then clear the app cache
any student should be able to program this .. altho would probably have to research how to call system api to tap into array/db of installed apps and their caches
these instructions will self destruct in 10 7 4 1 ðĨð
(#5618357) Re: sounds good .. but ..
Posted by TabbyCat on 19 Jul 2024 at 6:07PM
Fair enough. Give me a suggested programming problem. Just out of curiosity.
(#5617800) Re: sounds good .. but ..
Posted by Steven S on 16 Jul 2024 at 6:05PM
proves only that there is a script in the database (possibly from an example or teaching site) to code for prime in python .. if you search for that on google you'll probably find the same script
(#5617794) Re: sounds good .. but ..
Posted by TabbyCat on 16 Jul 2024 at 5:47PM
I asked Perplexity.ai to do the following:
Here's a Python script that determines the number of prime numbers between 1 and 1,000,000 using the Sieve of Eratosthenes algorithm, which is an efficient method for finding prime numbers up to a given limit:
```python
import time
def count_primes(limit):
print(f"Number of primes between 1 and {limit}: {prime_count}")
print(f"Execution time: {execution_time:.4f} seconds")
```
This script does the following:
1. We define a function `count_primes(limit)` that implements the Sieve of Eratosthenes algorithm.
2. We create a boolean array `is_prime` where each index represents a number, and the value at that index indicates whether the number is prime (True) or not (False).
3. We iterate through numbers from 2 to the square root of the limit. For each prime number found, we mark all its multiples as non-prime.
4. After the sieve is complete, we count the number of True values in the `is_prime` array, which gives us the count of prime numbers.
5. We use the `time` module to measure the execution time of the algorithm.
6. Finally, we print the count of prime numbers and the execution time.
When you run this script, it will output the number of prime numbers between 1 and 1,000,000 and how long it took to calculate. The result should be 78,498 prime numbers, and the execution time will depend on your computer's performance, but it should be relatively quick (typically less than a second on modern hardware).
This method is much faster than checking each number individually for primality, especially for large ranges like 1 to 1,000,000.
write Python code for determining the number of prime numbers there are between 1 and 1,000,000
Here's a Python script that determines the number of prime numbers between 1 and 1,000,000 using the Sieve of Eratosthenes algorithm, which is an efficient method for finding prime numbers up to a given limit:
```python
import time
def count_primes(limit):
# Create a boolean array "is_prime[0..limit]" and initialize # all entries it as true. A value in is_prime[i] will # finally be false if i is Not a prime, else true. is_prime = [True] * (limit + 1) is_prime[0] = is_prime[1] = False
for i in range(2, int(limit**0.5) + 1): if is_prime[i]: # Update all multiples of i for j in range(i*i, limit + 1, i): is_prime[j] = False
# Count prime numbers return sum(is_prime)
- Set the limit
- Record the start time
- Count the prime numbers
- Record the end time
- Calculate the execution time
print(f"Number of primes between 1 and {limit}: {prime_count}")
print(f"Execution time: {execution_time:.4f} seconds")
```
This script does the following:
1. We define a function `count_primes(limit)` that implements the Sieve of Eratosthenes algorithm.
2. We create a boolean array `is_prime` where each index represents a number, and the value at that index indicates whether the number is prime (True) or not (False).
3. We iterate through numbers from 2 to the square root of the limit. For each prime number found, we mark all its multiples as non-prime.
4. After the sieve is complete, we count the number of True values in the `is_prime` array, which gives us the count of prime numbers.
5. We use the `time` module to measure the execution time of the algorithm.
6. Finally, we print the count of prime numbers and the execution time.
When you run this script, it will output the number of prime numbers between 1 and 1,000,000 and how long it took to calculate. The result should be 78,498 prime numbers, and the execution time will depend on your computer's performance, but it should be relatively quick (typically less than a second on modern hardware).
This method is much faster than checking each number individually for primality, especially for large ranges like 1 to 1,000,000.
(#5617074) Re: sounds good .. but ..
Posted by Steven S on 13 Jul 2024 at 12:08AM
lol .. go for it .. pretty sure all of this so-called ai is garbage, especially where real programming is concerned.
it might be able to handle a flow chart or pseudo code, but I doubt that you could give it base code and have it actually program a module or continuation in actual programming languages
it might be able to handle a flow chart or pseudo code, but I doubt that you could give it base code and have it actually program a module or continuation in actual programming languages
(#5617071) Re: sounds good .. but ..
Posted by TabbyCat on 12 Jul 2024 at 10:57PM
I'm just thinking that with LLMs like chatgpt and Claude, the programming might be easier
(#5616228) sounds good .. but ..
Posted by Steven S on 9 Jul 2024 at 4:54PM
altho it sounds good to have an app, it would take a very long time to program all the different games and their variations
since this site is browser-based, you could just implement the browser api inside an app, but then you might as well just use your browser .. this site works pretty well, after a little tweaking, in Chrome on My pixel tablet ðĪðððððŧ
it's the same issue over at ItsYourTurn .. besides using mobile version of the website, an app is a pipe dream ðĪðĨģð
completely off-topic, how do I vote for post? ðĪð
since this site is browser-based, you could just implement the browser api inside an app, but then you might as well just use your browser .. this site works pretty well, after a little tweaking, in Chrome on My pixel tablet ðĪðððððŧ
it's the same issue over at ItsYourTurn .. besides using mobile version of the website, an app is a pipe dream ðĪðĨģð
completely off-topic, how do I vote for post? ðĪð
(#5616143) Re: app must be old
(#5616036) Re: app must be old
(#5614854) app must be old
Posted by Steven S on 3 Jul 2024 at 1:50PM
tried to install the apk on My google Pixel tablet (android 14) and Google Play blocked it .. called it unsafe .. saying "This app was built for an older version of Android and doesn't include the latest privacy protections"
would be nice to have an android app tho ðĪð ðĪ ððŧ
would be nice to have an android app tho ðĪð ðĪ ððŧ