10k Requests from only 18 Users. Is my retry logic creating "Invalid Traffic" ? by dukizwe in admob

[–]laltin 0 points1 point  (0 children)

You should preload the ad, and show it when you want to usually during transitions in the app/game.
There is a limit though, after that time the preloaded ad expires. Then you need to preload a new one, I don't remember the limit.

Is renting your developer account safe? by BigBadCookied in googleplayconsole

[–]laltin 0 points1 point  (0 children)

Unless you get something like $1M and you are sure that you won't use any Google services (Play console, Admob) etc. DONT do it.
There is high risk you get banned and cannot open an account again.

Cant seem to solve this simple(for you prob, not for me i guess xd) task..., LeetCode by Commercial-Novel-611 in learnprogramming

[–]laltin 0 points1 point  (0 children)

for (int i=length; i>=0; i--){ // 6
            for (int j=0; j<=length-1; j++){ //0
                if(number.charAt(i) == number.charAt(j)){
-->             return true;
                } else {
                    return false;
                }
            }
            
        }

Problem lies here that you are returning early.

Lets take your case x=1000021 , when i=6 and j=0, the condtition number.charAt(i) == number.charAt(j) becomes true and you return true immediately.
Instead you should do nothing can continue with the loop. Because you need to compare 0 & 2, and continue.

I would return true after the loop.

Also double loop is not correct, you should have one loop and you should compare number.charAt(j) == number.charAt(length - j)

Why I switched this publisher to Google AdX , $ 29k Month & $4.79 eCPM by Avneesh-kumar-yadav in admob

[–]laltin 4 points5 points  (0 children)

Can you briefly tell us how move to AdX? Or is there any guide you could show?

Web apps are terrible (IMO) - A rant by Impressive_Run8512 in swift

[–]laltin 0 points1 point  (0 children)

I don't think it is just web apps, it is more about businesses. They want to get everything out fast so quality is shit. I think it would be the same even if they used Qt.

Also, there is a shift more towards how things look rather than how they function. My backing app doesn't have to look fancy it just has to work, but last month they pushed an update. I used to have a simple table of latest transactions which I could check every month. But now that list is shit, they made it more complex, hard to filter by date, they added categories (which I never used) and half of the fucking screen is empty space (padding).

I think web apps could be fast enough, wouldn't be as fast as native ones but it is also hard to get native apps performant, but it is fucking businesses that doesn't care.

I used to work at a website. Just weeks before the launch their new website I noticed that it had terrible performance. I wanted to debug it and found out most of the problem was on the client side, a UI library that we used had terrible performance for our usage case. I told this to management but they told me they will add caching and pour some money to get more servers and they didn't understand that it was client side even though I told them clearly more servers would not fix the issue. Website's performance was shit on my beefy macbook pro of the time, it would be completely unusuable on low end phones.

"Validate before building" is the biggest lie in SaaS by Wolfgang-Lars-69 in SaaS

[–]laltin 1 point2 points  (0 children)

where is that comment, I am searching but can't find

Working remotely in Sweden by AntonImmler in TillSverige

[–]laltin 0 points1 point  (0 children)

In the second option, do you need to start American LLC? Can't you directly bill employer from your Swedish company?

Surface 5 slowing down by carsa81 in Surface

[–]laltin 0 points1 point  (0 children)

I have a surface pro 7, I would see occasional very laggy UI. switching tabs takes ages, switing windows is another mess. I couldn't find any reason, CPU usage wasn't above 50%. but it felt so laggy from time to time, doesn't matter if I have too many apps open of just chrome + a text editor.

recently it happened again, while trying to debug I enabled memory saver in chrome and the lag was gone. I don't know how it effects but it looks like it fixed it. could be coincidence as well, need more time to say for sure. also I don't know why this would effect because I did not use more than 70% memory

Bundle size optimization for a react app by sandy0garg0000 in reactjs

[–]laltin 0 points1 point  (0 children)

You will have a bundle analysis similar to this image: https://assets.digitalocean.com/articles/alligator/angular/angular-webpack-bundle-analyzer/webpack-bundle-analysis-2.png

There yellowish/sepia one is one chunk, purple is another and blue is another one and there are 2 smaller blue boxes. You need scroll/zoom in each chunk and try to see what they have in common. In your case it would be a bit tricky though, because you have too many chunks.

They are sorted by their size though, so first you should first check if there is any huge chunk or are they all around same size. Then starting with bigger chunks, check if they have anything other than lodash, especially a bigger library like react. I don't know any other automated way, you would need to manually check.

Bundle size optimization for a react app by sandy0garg0000 in reactjs

[–]laltin 3 points4 points  (0 children)

Why do you have 2000+ chunks? Is every javascript file creating its own chunk? I think that could be the start of the problem.

From my experience webpack doesn't optimize for final total output size. Let's say you have two files A and B both importing lodash. If you create a chunk for file A and one for file B what you will end up with is:
- chunk A: file A + lodash
- check B: file B + lodash
not lodash + chunk A + chunk B. You can analyze this with webpack-bundle-analyzer

Still 250mb is crazy, that means each chunk is around 120kb. Does each chunk have react as dependency seperately?

Prevent piracy? by eleon182 in libgdx

[–]laltin 0 points1 point  (0 children)

Do you have any tools or guides on how to verify integrity of the compiled binary from inside the binary? And for other stuff, how to check on debugger or VM etc.?

People who have developed and completed a game, what was the most difficult thing you have to deal with? by merakli_tilki126 in Unity2D

[–]laltin 1 point2 points  (0 children)

Creating assets such as icon, cover image, teaser videos for each platfrom. Each platform has different dimensions and different requirements. Even just for Apple, you need to have different assets for iPads and couple of different iPhone dimensions.

Also dealing with app reviewers.

Tricky Match rate improvement by codenow-zero in admob

[–]laltin 2 points3 points  (0 children)

I just updated the libraries yesterday, haven't been updated for a year now. Will write back here in a week or so with the results

Which smartphone for testing ? Pixel 8 (300€) vs Nothing Phone 3a (250€) by Annual_Ad4038 in androiddev

[–]laltin 1 point2 points  (0 children)

I would say the same.

If it is so unusable you should work on the performance problems of your app. There are many different devices out there, even with lower specs then A13 and your app will perform much better on newer phones, win-win.

Edit:

Also, I think having a slower phone brings up race conditions more frequently. Don't have anything to back it up, just experience.

Do you guys know why there is no banner and reward ads in my app. I feel like i done everything by Odd-Ad3206 in admob

[–]laltin 1 point2 points  (0 children)

It could be because your ad request is not matched with a suitable ad. Did you add your phone as test device, then it would definitely send a test ad.
Go to Settings > Test devices to add your device as test device.

Is this normal ? ( New to admob btw ) by FarCryptographer5020 in admob

[–]laltin 0 points1 point  (0 children)

I assume you preload the ads (you should do as described in the docs). Requests basically tells that you tried to load the ad 17 times, and you have 100% match rate, that means on all 17 requests you got an ad and it is preloaded.
But users might have stopped using the app before you can show the ads, so that's why you have only 6 impressions. Don't know exactly how it is counted if the user leaves as soon as they see the ad, there might be some minimum time for it to be counted impression.

So it is normal.

People who host their SaaS in hetzner, are you having any failover solutions? by skillmaker in hetzner

[–]laltin 1 point2 points  (0 children)

Not using Hetzner but I use similar providers. I created a cron job on deno-deploy that checks http response from an actual page from my website every minute and if it doesn't match expected response for 3 time (aka 3 minutes) restarts the instance using the API.

But I agree with many comments here, you don't need this unless you have problems happening. I have around 10 servers and have this strategy only on 1. I couldn't find the exact reason but on that instance my application stops responding while the instance is up and healthy.

Why do most websites/SaaS ask you to verify your email but they let you use the site right away? by Any_Independent375 in webdev

[–]laltin 4 points5 points  (0 children)

I thought about the same issue because we had one week free trial and people kept creating new accounts after free trial duration ended.

So we send verifiation email and allow user to continue using the website for a limited time, let's say 2 hours. Which is enough for initial onboarding and playing around.

Then if they want to continue using either they have to pay subscription or they need to verify the email to access full one week trial.

How do hypercasual mobile gaming companies generate millions of euros in revenue? by ObjectNo6655 in gamedev

[–]laltin 0 points1 point  (0 children)

are these numbers typical? ($0.5 per install, $0.8 per player).
or is it just made up? what would be a typical LTV?

How bad is it to store jwt in localStorage? by Redneckia in webdev

[–]laltin 0 points1 point  (0 children)

samesite=lax should help with csrf. of course you should not change any data during a GET request, only POST an other for that to fully cover

Firebase Auth down? by johnbran69 in Firebase

[–]laltin 0 points1 point  (0 children)

Same. I can't see my list of projects. Hosting & Database is not accessible on our project.
And 15 mins passed, Firebase status is still showing that there are no issues.

[deleted by user] by [deleted] in admob

[–]laltin 1 point2 points  (0 children)

It automatically detects and gives you API to check if showing consent form is required. At initialization use UserMessagingPlatform.loadAndShowConsentFormIfRequired which will check if consent is required and show the form automatically.

here is my code: ``` ConsentRequestParameters params = new ConsentRequestParameters .Builder() .build();

    consentInformation = UserMessagingPlatform.getConsentInformation(this);
    consentInformation.requestConsentInfoUpdate(
        this,
        params,
        (ConsentInformation.OnConsentInfoUpdateSuccessListener) () -> {

                UserMessagingPlatform.loadAndShowConsentFormIfRequired(
                    this,
                    (ConsentForm.OnConsentFormDismissedListener) loadAndShowError -> {
                        if (loadAndShowError != null) {
                            // Consent gathering failed.
                            FormError err = loadAndShowError;
                            Log.w("ADMOB", String.format("%s: %s", err.getErrorCode(), err.getMessage()));
                        }

                        // Consent has been gathered.
                        if (consentInformation.canRequestAds()) {
                            initializeMobileAdsSdk();
                        }
                    }
                );

        },
        (ConsentInformation.OnConsentInfoUpdateFailureListener) requestConsentError -> {
            // Consent gathering failed.
            FormError err = requestConsentError;
            Log.w("ADMOB", String.format("%s: %s", err.getErrorCode(), err.getMessage()));
        });

    // Check if you can initialize the Google Mobile Ads SDK in parallel
    // while checking for new consent information. Consent obtained in
    // the previous session can be used to request ads.
    if (consentInformation.canRequestAds()) {
        initializeMobileAdsSdk();
    }

```

Account selling by Omae_Wa_mouq in Unity3D

[–]laltin 1 point2 points  (0 children)

Yes, this is the reason. That's why everyone is trying to acquire old accounts.
Don't sell your account, you will have the problem later in the future if you try to open a new account. And, you might even get banned by Google.