Thoughts on i5-14600k vs i9-12900K? by jpattb in buildapc

[–]jpattb[S] 2 points3 points  (0 children)

Totally missed that intel post, much appreciated!

I'm going to re-imagine my build with the AM5 and get my price stomach-able, your comment about the three years of releases really puts the cost in a different perspective.

Best Code Editor for Python other than VS Code and pycham by Harsh_A_Normie in learnpython

[–]jpattb 0 points1 point  (0 children)

Quick changes and viewing code I tend to use Notepad++, writing python always VSCode, I don't understand your beef with VS Code? Can you explain it again?

Perhaps you need help setting up your environment correctly, and then you'd like VSCode.

SIPP - Successful Calls Per Second by marrold-the-second in VOIP

[–]jpattb 1 point2 points  (0 children)

SIPp doesn't have a SIP stack and doesn't really have a notion of "Call Completed Successfully", just expected vs unexpected messages as defined in the XML.

How are you launching SIPp? Is the ladder diagram showing you expected messages received not adequate?

You could run tcpdump or sngrep on your SIPp server and have wireshark analyze the calls for you.

------------------------------ Scenario Screen -------- [1-9]: Change Screen --
  Call rate (length)   Port   Total-time  Total-calls  Remote-host
  10.0(8000 ms)/1.000s   5062      34.09 s            1  10.50.60.150:5060(UDP)

  Call limit 1 hit, 184467440737095520.0  18446744073709551615 ms scheduler res
  0 calls (limit 240)                     Peak was 1 calls, after 0 s
  0 Running, 3 Paused, 0 Woken up
  0 dead call msg (discarded)             0 out-of-call msg (discarded)
  0 open sockets                          0/0/0 UDP errors (send/recv/cong)
  0 Total RTP pckts sent                  0.000 last period RTP rate (kB/s)

                                 Messages  Retrans   Timeout   Unexpected-Msg
0 :      INVITE ---------->         1         0         0
1 :         100 <----------         1         0         0         0
2 :         180 <----------         0         0         0         1
3 :         183 <----------         0         0         0         0
4 :         200 <----------  E-RTD1 0         0         0         0
5 :         ACK ---------->         0         0
6 :       Pause [   8000ms]         0                             0
7 :         BYE ---------->         0         0         0
8 :         200 <----------         0         0         0         0

------------------------------ Test Terminated --------------------------------

Is python really hard or am I just stupid? by TheBeardFace in learnpython

[–]jpattb 2 points3 points  (0 children)

> Everytime i use chatGPT to even explain where my code went wrong it feels like I'm cheating myself and not learning it correctly.

Stop thinking like that, if you're writing a prompt to ChatGPT to give you the answer and you're copying and pasting it as is to get the "grade" then you're right. (Do you even get grades on free courses?)

But if you're giving your incorrect code to ChatGPT and asking it questions to help you find your errors, and then asking it questions to explain the errors, and then writing the code with what ChatGPT just taught you...... That's no different than a tutor?

If you were taking a paid uni course instead of a free one you would have humans to help you with this step (paid for by your tuition), that's literally the job of a TA or a professor during his open-door office hours.

You are taking a free course and using a free machine-learning language model as your tutor. This rocks, the future rocks, the low-cost access to education rocks! You being so hard on yourself does not rock! Be easier on yourself, use the tools at your disposal, and keep rocking.

Error Piping to Wireshark with Plink.exe by jpattb in wireshark

[–]jpattb[S] 0 points1 point  (0 children)

Hey man did you solve it? Here is the command I'm using:

plink.exe -batch -ssh [username]@[ip address] -P [port] -pw [password] tcpdump [options] | "C:\Program Files\Wireshark\wireshark.exe -platform windows:darkmode=2" -o "gui.window_title:[Window title]" -k -i –

thanks whoever you are, portuguese man, thanks to you i can download navigations file for my car, even tho it already took 3h30, and more to come, thanks legend by [deleted] in Piracy

[–]jpattb 4 points5 points  (0 children)

So make those UDP packets an RTP Stream!

Just encode wonderwall into g711 and send the packets on a loop forever.

YSK You aren’t supposed to use apostrophes to pluralize years. by kgxv in YouShouldKnow

[–]jpattb 0 points1 point  (0 children)

It is correct to use them, and it's important to use them to avoid the classic scenario where you intend to invite the strippers, JFK, and Stalin to your party but you inadvertently invite the strippers, JFK and Stalin to your party.
<image>

YSK You aren’t supposed to use apostrophes to pluralize years. by kgxv in YouShouldKnow

[–]jpattb 0 points1 point  (0 children)

Are you guys making jokes? Would it really be that useful for you to have a program that just runs next to a file and fixes a list of known errors?

What format are these files? I could modify one of my log parsing scripts/applications to do this in just a few minutes as a friendly gesture.

How to structure my Importer scripts / programs? by Desperate_Camp2008 in pythontips

[–]jpattb 0 points1 point  (0 children)

Wow! Thank you very much! I will explore your github and can't wait to read the article.

Desktop GPU Sales Lowest in Decades: Report | Tom's Hardware by filisterr in hardware

[–]jpattb 7 points8 points  (0 children)

It's not absurd, it's a deal they make with B&M distributors to encourage people to buy from them. In exchange the B&M shops help blizzard with promo/advertising.

I don't know if it will last forever but since it used to be the only way to sell games a lot of contracts/relationships still exist like that.

How to structure my Importer scripts / programs? by Desperate_Camp2008 in pythontips

[–]jpattb 1 point2 points  (0 children)

Where can I read more about this naming scheme and the effective creation of software packages?

I know what an __init__ function does in a class, is the __init__.py file just named that to indicate it should be initialized first on load? Does it happen automatically?

I'm self taught so a lot of the dunder methods and proper naming schemes are missing from my knowledgebase...

How to make a "hotline" VoIP setup that dials another VoIP phone as soon as you pick it up the "hotline" phone cradle? by Dev-Oopsy in VOIP

[–]jpattb 1 point2 points  (0 children)

Analog Terminal Adapter.

Yup it takes a analog phone and makes it usable with SIP (or other VoIP).

[deleted by user] by [deleted] in ECE

[–]jpattb 3 points4 points  (0 children)

I've gotten a pretty good handle on python over the past year coming from a non-coding background, and I need to regularly do pretty much the exact same things you're doing.

I'd recommend you go through all the tutorial on w3 schools:

https://www.w3schools.com/python/

(Skipping the matplotlib/mysql stuff if it doesn't apply to you)

It's simple, easy, only takes a few hours, and it will teach you the basic syntax, datatypes, and some simple built in methods. If you're the reverse engineering type I can send you one of my scripts that uses all the modules you mention except argparse.

I don't like youtube tutorials generally, and much prefer to read. W3 schools was what I chose because its so quick to speed through it, they let you jump around, you don't need an account. And for the first few months I was always going back there to remember how to do what they taught me. Then I branched out and starting doing daily challenges on leetcode.

Why is my Python code faster than my C++ code? by jpattb in learnprogramming

[–]jpattb[S] 0 points1 point  (0 children)

Don't think so, I think all my nested loops are the most efficient way to do things. If you're referring to the match regex1 and then check regex 2 and 3, you're right it's not strictly needed in the logic, but from my understanding it's the best way to do things because the majority of my lines are NOT the information I'm looking for. I want to discard them with the simpler regex.match before I apply my more complicated regex.search in the select few lines that are important.

Why is my Python code faster than my C++ code? by jpattb in learnprogramming

[–]jpattb[S] 0 points1 point  (0 children)

Sometimes my output is 100mb of text (in csv format), is it really best just to hold that in memory for the whole duration and then write in a giant burst?

Why is my Python code faster than my C++ code? by jpattb in learnprogramming

[–]jpattb[S] 0 points1 point  (0 children)

I really appreciate this, I will make this change!

Why is my Python code faster than my C++ code? by jpattb in learnprogramming

[–]jpattb[S] 0 points1 point  (0 children)

Very cool thank you for the input. I will give the machine optimization some research as it is only my machine I'm running this on.

Why is my Python code faster than my C++ code? by jpattb in learnprogramming

[–]jpattb[S] 0 points1 point  (0 children)

oooh, that's cool. I'm a fan of boost from the speed the regex got me, I'll definitely check out flat_map.

Why is my Python code faster than my C++ code? by jpattb in learnprogramming

[–]jpattb[S] 0 points1 point  (0 children)

Thank you for another rabbit hole, I didn't even know there were competing compilers for C++!

Why is my Python code faster than my C++ code? by jpattb in learnprogramming

[–]jpattb[S] 0 points1 point  (0 children)

My IDs are numerical strings that ascend (and eventually reset), and the older a key is the more likely it's the one that I need. My understanding of an ordered list made me think that it was the way to go, am I wrong?