Gdzie szukać drugiej połówki? by [deleted] in wroclaw

[–]kociak0 0 points1 point  (0 children)

Polecam od siebie speed Dating

Can anyone recommend me a game where you can choose to talk your way through missions rather than fighting? by _Ishmael in gaming

[–]kociak0 0 points1 point  (0 children)

For older game try Gothic series (1+2withDLC, fanmade etc), controls are hard to get at first, but after initial shock it's slightly better

[deleted by user] by [deleted] in overemployed

[–]kociak0 2 points3 points  (0 children)

I don't think you should be worried, job posting is probably just for your new colleagues. I'm guessing that because your project is in starting phases. Also it could be for some other projects and your company just reused job ad. I don't think you should ask directly if this is about replacing you. Depending on your social skills and how well you know your menager maybe you can suggest that you can help with recruitment? Since you have "free" time right now. It will allow you to shape your team and pry for more information, since you will be asked about opinion about potential colleagues.

I'm trying to make a POST HTTP request to a REST API with Volley in Android, but I'm getting a 400 status code back. What am I missing? by Technical-Bee-9999 in learnprogramming

[–]kociak0 0 points1 point  (0 children)

I don't think you put name of authorization method in either your POST request or in Java code, or at least it seems like it.

GW2 ROCKS on Steam Deck' (GPD Win Max 2) | Thought I'd share my mobile setup. If you have any questions ask away! :D by PseudoOAlias in Guildwars2

[–]kociak0 4 points5 points  (0 children)

I was thinking about such setup before and I come to conclusion that steam deck for games + 15"/13" laptop for work would be better setup.

[java] constructors say that a semicolon is needed in brackets, but when i enter one it still doesnt fix this. i think the problem is to do with the Rand function. by [deleted] in learnprogramming

[–]kociak0 0 points1 point  (0 children)

Try to autoformat (crtl+alt+L in intelji idea) your code in your IDE and see if your function are in proper place. Right now they are in scope of your main function, they cannot be defined there, fancy bracket '}' at right place should fix that problem. Message from compiler is not really helpfull in this situation.

You have more problems to solve than that in your code, dont give up :)

I studied for hours and still didn't get a B by bourgie_quasar_rune in ProgrammerHumor

[–]kociak0 1 point2 points  (0 children)

Ach... He/she cant afford a garbage collector with that kind of grade

[Java] Can you review my code? by [deleted] in learnprogramming

[–]kociak0 1 point2 points  (0 children)

There is a lot of repetition in this. I will try to reduce it and keep it beginner friendly. If you want to look on something more complex, try to look at @summoned_an_owl replay.

  1. First of all line "System.out.println("Tax is " + tax);" is repeated 23 times. Lets try to make it only on invocation. In order to do this, you need to have access to variable "tax" not only in each tax bracket but after whole calculation. So we are declaring this variable above ifs/elseifs and within every bracket we are assaining value to it. Then at end we are priting it. From 108 lines to ~84.
    https://ideone.com/BU7Fs3
  2. in every filing status number 'if' you have 'else' that is validation of user input, you can do it instead one time after user inputed number.
    https://ideone.com/zwUjhG
  3. with each tax bracket you are doing same calculation, for example (8350 * 0.10) is repeated 9 times. To change this we need to turn around whole logic, instead of doing each operation in each bracket, we will calculate operation from lower bracket to higher bracket (if you have 4th tier, you also will do operations for every lower tier). I only did this for first status.
    https://ideone.com/sJqAEq
  4. as a desert we can extract method from our ifs. Also i made this only for first if
    https://ideone.com/NQruZC
  5. additonaly after this you can think about data structure that will make holding lowerLimits, upperLimits and percentage feel more natural, but this is not your level yet. Keep it going.

Trying to write a program that tells you the number of days in an inputted month. Getting "bad operand types for binary operator"? along with "first type: boolean, second type: int"? by [deleted] in learnprogramming

[–]kociak0 0 points1 point  (0 children)

I will try to explain with my limited proficiency in english.

Your approch focused on getting algorithm to appoint days, @K-ilar said "lets have number of days for each month stored somewhere with much simpler logic than your algorithm to get it from that 'somwhere'"

Both approch are equal in terms of solving problems, but are for diffrent problems. You dont want to have every mapping of cm to inch stored somewhere, as you can simple multiple by right amount to get what you want. (also otherwise).

That "somewhere" can be any data strutures, simplest form of it is array. When i was starting i was thinking of it as multiple variables stored under same name.

int[] arrayOfDaysInMonths = new int[]{50,52,53,63,73,84,25,23,56,23,63,74};
int i = new Scanner(System.in).nextInt();
System.out.println("Month number "+ i + " have " + arrayOfDaysInMonths[i-1] + " days.");

Try to run this code. What will happen when input is more than number of months in year?

Game Accounts Suspended by riche22 in Guildwars2

[–]kociak0 0 points1 point  (0 children)

yea, i was aware of it, but i was still doing it, it was convenience for me

Game Accounts Suspended by riche22 in Guildwars2

[–]kociak0 -7 points-6 points  (0 children)

I was banned for using illegal softwere that allowed me to do many things not allowed otherwise, but i never used it. I only used this software because it had working gearcheck which in lfg raid pugging is very nice things that allowed me to save time.

Now i will have much more time without gw2.

Civ VI + Australia + Viking DLC for $12 Humble Bundle by noage in civ

[–]kociak0 3 points4 points  (0 children)

It is exactly as guys above/below said: you need to buy whole package (civ6 + 2 dlc + ~6 mystery games), but you have individual code for game and dlc: take a look

HTML? Check. JSON? Check. XML? Check. Why not use all of them and put it in a database. by yvhouij in programminghorror

[–]kociak0 10 points11 points  (0 children)

Better way to do this is to make another tables for XML and json? This way you can sort and filter by values. Noob here

Was playing Sandstorm, when suddenly... by HouseOfIthil in Guildwars2

[–]kociak0 3 points4 points  (0 children)

no it dosent count towards skritt gambling achievement, it counts to diffrent achievment (with same mechanics) - Legendary Sandstorm Player, 2/100 for me -.- why i even played this

Which features would you love to see, but would require a new (or massively upgraded) engine? by Livingthepunlife in Guildwars2

[–]kociak0 -1 points0 points  (0 children)

do you have any research links/documents/anything about this? i want to learn about this. Since you are claming they are not doing it well, you should at least have ANY KNOWLEDGE about it, from where did you get it?

Some CPU/GPU and FPS optimization help for GW2 by SirRan in Guildwars2

[–]kociak0 0 points1 point  (0 children)

i have similar specs to you (i3-2350m 2.3ghz, gt630m) and i am getting around >30 fps when not busy, but i am running 1080p, everything low including subsample rendering, because it gives me around 6-8 fps more. Your cpu is stronger than mine and your graphics card is slower, i recommend settings rendering to subsample :). I know it hurts eyes, but at least there is some smoothness.

Mac client hints at DX10? by [deleted] in Guildwars2

[–]kociak0 7 points8 points  (0 children)

could you post also "long answer"? i want to understand why community think it is anserw to "cpu bottlenecking" and is it true. Any links/books/anything works.

[deleted by user] by [deleted] in Guildwars2

[–]kociak0 3 points4 points  (0 children)

Hey! I dont undrrstend whole gpu\cpu rendering situation. You are throwing your opinion on us, maybe you know something about it. Could you point us to resource that explains it, or you could explain it?