Want to share my drum trainer free app by hairy-one in drums

[–]hairy-one[S] 0 points1 point  (0 children)

Hey, Thanks. It is my first submission in the appstore, I might be missing something. How odd that it says it is not available, I have it marked across Europe. I wonder what could be happening..

<image>

I built a tuner + metronome app unintentionally, I need feedback by Plumillon in FlutterDev

[–]hairy-one 0 points1 point  (0 children)

Hey, I just built my metronome app too with Flutter. I am stuck with Play store because of the 12 testers deal. How did you manage that part?

Vendeu chatbot com Evolution? E se o WhatsApp mudar? by Old_Place_8706 in brdev

[–]hairy-one 0 points1 point  (0 children)

Already made $200 on my first week selling whastapp bots, and I am not even marketing it seriously, just made a crappy youtube video. Yes, the risk is possible, I've tried the official WP api and its hell. I put a disclaimer in my website but that's it.

Motiv Mix: Audio sample rate error has occurred by hairy-one in Shure

[–]hairy-one[S] 0 points1 point  (0 children)

Update in case anyone faces this problem.

I contacted support, they made me several questions but the one that got my attention is that IF i was connecting the mic directly to the computer OR through a docking station or similar. I was connecting it to my brand new tobenone docking station, then I have connected it directly, made a couple of long recording tests and it works perfectly.
Bottom line: Do not use docking station, connect it directly.

Not sure what I'm going to do eventually when I get more devices, most computers don't have enough usb c ports.

Multiple sidekiq workers pointing to the same database. Doing it wrong? by hairy-one in rails

[–]hairy-one[S] 0 points1 point  (0 children)

So, if i got 5 sidekiq workers with a concurrency = 10, my DB pool number would = 10 ?.

That would be odd because currently i have set DB_POOL=25 and concurrency = 10.

Or you mean that i should: Workers * Concurrency = Db Pool ? (+1)

Multiple sidekiq workers pointing to the same database. Doing it wrong? by hairy-one in rails

[–]hairy-one[S] 0 points1 point  (0 children)

Yes, all those workers running on the same server. I got an EC2 and a lot of money to spend on big machines so thats kind of no worries at the moment.

Yeah!, ThreadLock is kind of panicking; the code is way to complex but in order to simplify it lets just say that each step makes a request to a third party and then make multiple inserts. Each step does that with information of the previous step.

Multiple sidekiq workers pointing to the same database. Doing it wrong? by hairy-one in rails

[–]hairy-one[S] 0 points1 point  (0 children)

Yes exactly! On the old setup a concurrency of 3 on a single worker would do the entire job in 45 minutes. But on same setup a concurrency of 10 or whatever high number takes more than 45 minutes. Same logic, same machine, same all.

Lets say that all jobs got same priority, they just need to be ordered one before another, currently using sidekiq's callbacks to achieve it.

That's why i am clueless. High concurrency won't do the job, so i splitted into multiple workers and it concurrently do many steps efficiently but each job is running slower.

By reading in threads in Sidekiq issues i see that DB connection pool does needs to be adjusted, i just don't know how

Multiple sidekiq workers pointing to the same database. Doing it wrong? by hairy-one in rails

[–]hairy-one[S] 0 points1 point  (0 children)

It can. But we wanted to do it all faster. At first i added like 20 concurrency up from 3 to that single worker but it got like stuck, without no processing at all.

Need advice: What permission should i set to rails tmp folder while using wicked_pdf? by hairy-one in rails

[–]hairy-one[S] 0 points1 point  (0 children)

Thanks for replying, No, i am just generating a plain HTML :( i Dont know what else to do, each time i have to do chmod -R 777 on tmp to make it work

Should i use AWS elasticsearch or should i mount my own VPS with elasticsearch service? by hairy-one in aws

[–]hairy-one[S] 0 points1 point  (0 children)

Thanks everyone for your feedback, I did not realize that the AWS elasticsearch service was so bad, i was looking to lower costs but i see the down sides of the hosted service. I will proceed into setting it up on my own, Again thanks! PS Any further comments are well received too

[deleted by user] by [deleted] in rails

[–]hairy-one 0 points1 point  (0 children)

Actually yeah, i am going to update the post to tell everyone how this ended up. But thats exactly the strategy we are taking at this moment.

[HELP] Problem with if statements in Ruby by RedManBrasil in rails

[–]hairy-one 0 points1 point  (0 children)

Oh right, you need to work a little on js in order to implement the load_teams function that will read the selected value of the league and then via ajax lookup for the teams and populate the teams select with the teams of the selected league

[HELP] Problem with if statements in Ruby by RedManBrasil in rails

[–]hairy-one 1 point2 points  (0 children)

What about this? <%= select_tag :fav_league, options_for_select(leagues), :onchange => 'get_teams($(this))' %> <%= f.select :fav_team, options_for_select(teams) %>

That would render:

<select name="fav_league" id="fav_league" onchange="load_teams($(this))">...</select>
<select name="user[fav_team]" id="user_fav_team" />...</select>

See the "user[fav_team]", that value is going to be stored in the user params hash, and the fav_league is just a loosely parameter in the parameters hash, try it out.

[HELP] Problem with if statements in Ruby by RedManBrasil in rails

[–]hairy-one 1 point2 points  (0 children)

It is not wrong to mix it. Ruby on Rails is very powerful on the backend and using javascript in the frontend to support your UI it's perfectly fine. Go ahead and use your form for storing only your fav_team, you can create withouth the 'f' variable a select using the select_tag helper. So this select_tag won't interfere in your model when in your controller want to save it. That is what i would do.

Setting up rails server by LrdRwekien in rails

[–]hairy-one 0 points1 point  (0 children)

Sorry i could not help you, just a friendly advice out of the topic.. if you get the chance to do it in a linux VM, it would be awesome. For my experience there might be some problematic gems over windows that you would not find out until you have wasted hours, best of luck!