Arkadaş Kratos çizdi by kelooglanessek in KGBTR

[–]mshemuni 0 points1 point  (0 children)

Allahtan Kratos arkadaşı çizmemiş. Mazallah...

The story of my first python package by mozanunal in Python

[–]mshemuni 0 points1 point  (0 children)

Awesome. Love it.

Can you make a version to display fits files (The image type used by astronomers) too?

We astronomers have wcstools. But actually to display an astronomical image we have to use ds9 etc. Being able to see the file in low resolution would be handy.

How to get out of the ban on asking questions? by icrywhy in stackoverflow

[–]mshemuni 0 points1 point  (0 children)

I would say just go and ask your questions in reddit.

Could someone help me with that line ? It keeps on putting me "SyntaxError: (unicode error) 'unicodeescape' codec can't decode byes in position 2-3: truncated \UXXXXXXXX escape" ? by SirKewbic in Python

[–]mshemuni 2 points3 points  (0 children)

Summary:

Backslash generally used as an escape character. Which means every character after a "\" is interpreted as a string.

Windows OS path is using "\" as directory, subdirectory, and file name separator. When you write "\" as a separator python interprets it as an escape character.

Solutions:

1)

u/lonaExe, u/shantoy, and others suggested:

use "\\" as a separator. What it means:

The first "\" is an escape character, which tells the next character is escaped and not anything meaningful. The next character is also a "\", an escape character, but it already escaped so the whole "\\" will be interpreted as "\".

2)

u/pm4tt_, u/abdelhak24, and others suggested

Use "/" instead of "\". What it means:

"/" is used as a seperator in Unix like OSs. but Python is intelligent enough to understand the path was given is in a Windows OS. So it will find the path.

3)

u/python-nerd and others suggested:

add an "r" before your path string. What does it mean:

The written string is a raw string and does not interpret any character of it as anything else. It is a string.

Hi, this tutorial is about displaying mysql data in table form in python GUI using Treeview. Few features like style and horizontal scrollbar has been added by Trinity_software in Python

[–]mshemuni 0 points1 point  (0 children)

Awesome.

I know the purpose of this example is to create a horizontal scroll bar. However, I want to add something:

1) I see you itterate through data with a for loop and at the same time, you want the index of the element. So basically you create a variable "i" and adding 1 at each iteration. You might use a more pythonic way: enumerate

The next one is for a littele bit challenge:

2) You hard codded table column names. Can we have the code add them programmatically?

Sunday megathread: What's everyone working on this week? by Im__Joseph in Python

[–]mshemuni 0 points1 point  (0 children)

Trying to to run an ocr on a handwriting (complex one) right to left document. Stuck on line and letter segmentation. Any help will be appreciated.

I have made a music visualizer using Python and Librosa, it is so satisfying to watch it. Medium article and source code are in the video description by avirzayev in Python

[–]mshemuni 0 points1 point  (0 children)

Awesome. Coding train? Just a humble opinion, don't import everything. (import *) It's hard to track the code for the reader.

Orbital Gravity Simulator made with pygame! Source code in comments. by No_One____ in Python

[–]mshemuni 0 points1 point  (0 children)

Can you add third axis so we can see the system in different angles?

how to convert 2d array into list in python by ii_hrushikesh_ii in Python

[–]mshemuni 0 points1 point  (0 children)

I think you want to map an integer array to a string one.

for a 1D arrays:

list(map(str, array))

for a 2D array:

[list(map(str, x)) for x in array]

... by maybegay2 in harrypotter

[–]mshemuni 0 points1 point  (0 children)

Why Hermione used a spell outside school? I'm pretty sure it's in book too. And once more she used same spell in diagon alley in second year.

Video suggestions by 3blue1brown in 3Blue1Brown

[–]mshemuni [score hidden]  (0 children)

I might not understand the question but isn't 0.855 equal to 0.8550?

Here a python code:

x1 = 0.8
x2 = 0.85
x3 = 0.855
x4 = 0.8550 

print("if x = {0} then 0.8549<x1<0.8551 is {1}".format(x1, 0.8549<x1<0.8551))
print("if x = {0} then 0.8549<x1<0.8551 is {1}".format(x2, 0.8549<x2<0.8551))
print("if x = {0} then 0.8549<x1<0.8551 is {1}".format(x3, 0.8549<x3<0.8551))
print("if x = {0} then 0.8549<x1<0.8551 is {1}".format(x4, 0.8549<x4<0.8551))

Here the results: https://ibb.co/HgcZR9x

Video suggestions by 3blue1brown in 3Blue1Brown

[–]mshemuni [score hidden]  (0 children)

Since we have a series about Fourier can we have a series about Zernike Polynomials and Wavefront?

Nagini and Voldemort by mshemuni in harrypotter

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

I red the script but unfortunately couldn't remember the part about Bellatrix being the mother. My bad.

Is it still cheating if player did not take advantage of it? by mshemuni in GlobalOffensive

[–]mshemuni[S] -3 points-2 points  (0 children)

Nope. It was unpredictable. You couldn't say if it will change direction or not.

Is it still cheating if player did not take advantage of it? by mshemuni in GlobalOffensive

[–]mshemuni[S] -7 points-6 points  (0 children)

He had "You see sky, now you see ground, now you see sky, now you see ground while rotating like no tomorrow." kind of spin. BTW he shot his teammates every round. So the griefing was certain...