[ / / / / / / / / / / / / / ] [ dir / random / abcu / fast / ita / loomis / pdfs / random / rule34 / tingles ]

/vichan/ - https://shitposter.club/vichan/

czan
E-mail
Komentarz *
Plik
Hasło (Randomized for file and post deletion; you may also set your own.)
Archive
* = pole wymagane[▶ Pokaż opcje posta oraz limity]
Confused? See the FAQ.
Osadź
(zamiast plików)
Oekaki
Pokaż aplet oekaki
(zamiast plików)
Voice recorder Show voice recorder

(the Stop button will be clickable 5 seconds after you press Record)
Opcje

Zezwolone typy plików:jpg, jpeg, gif, png, webm, mp4, swf, pdf
Maksymalny rozmiar pliku to 16 MB.
Maksymalne wymiary obrazka to 15000 x 15000.
Możesz wysłać 5 obrazków na post.


Status | Alternatywa (Atenszon.net) | /socpl/ | /techan/ | /fso/

YouTube embed. Click thumbnail to play.

 No.196432

Jakieś dziwne te tematy są. Mamy raid?

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196434

>>196432

kodeiniarz sie naćpał i rajduje sam udając karaczanersów

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196435

Jak definiujesz dziwność?

Byc może trochę kolegów z kurasię.olk, ew. kodeiniarz z UK ale raczej w normie - choć fajnie że ruch ostatnio większy, czuję się prawie jak w 2016/2017.

Btw. są tu anoni kuce? Szczególnie Python, .net, wpf, SQL.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196443

>>196434

Kurde no, tak sobie na nich patrzę i się cieszę, że w życiu nie tknąłem żadnego narkotyku.

>>196435

A nie wiem, taki ogólny "feel" tych postów. Mogę się mylić, nie naciskam, tylko tak-o pytam.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196450

>>196435

niechcący sobie usunąłeś ważny plik systemowy c:/windows/system/umyjkuca.dll musisz go przywrócić bo się UTOPISZ W ŁOJU

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196453

>>196435

Pytongowiec here, coś z SQLa też robię, co chcesz?

>>196450

Zainstaluj gentoo, mam nadzieję że pomogłem

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196460

File: 5dddce1b72cb6f7⋯.png (258,42 KB, 1024x1024, 1:1, 18766424_529642887425764_7….png)

>>196453

Sprzedasz mi jakieś tropy na napisanie kodu na archiwizację 8kun? Z tego co się orientuję najpierw przydaloby się napisać json wrapper i miec to wszystko w klasach, a potem rozpisać sobie logikę ściągania wszystkiego i ew ładowania na bazę (Prawdopodobnie sql server bo go często uzywam).

Próbowałem przebrnąć przez to ale za mały kuc na razie.

https://stackoverflow.com/questions/38464302/wrapping-a-python-class-around-json-data-which-is-better

Ostatnio w ramach treningu ogarniałem sobie kwestię klas i dziedziczenia:

""'''''''''

import names

class Employee:

employee_list = []

def init(self, name, salary = 1000, pos_type = "specialist", rating = 1.0, status = "Active"):

self.employee_list.append(self)

self.status = status

self.rating = rating

self.name = name

self.salary = salary

self.pos_type = pos_type

self.position = "junior " + self.pos_type

def str(self): #Class Print - understandable to human

return '[Person: %s | %s | %s | %s]' % (self.name, self.salary, self.status, self.position)

def repr(self): #Class print - understantable to python interpeter - need to be fixed !!

return "%s(%r)" % (self.class, self.dict)

def ComputeAnnualSalary(self):

return str(self.salary * 12)

def GiveRaise(self, rating):

self.salary += (self.salary*0.10*self.rating)

def Promote(self):

self.position = "senior " + self.pos_type

self.rating = 1.2

self.GiveRaise(self.rating)

def Retire(self):

self.status = "retired"

def GiveName(self):

return self.name.split()[1]

def GiveSurname(self):

return self.name.split()[0]

class Manager(Employee):

def init(self, name):

Employee.init(self, name, salary = 1000, pos_type = "manager", rating = 1.0, status = "Active")

def GiveRaise(self, rating, bonus=.10):

Employee.GiveRaise(self, rating+bonus)

def AssingTeam(self, team):

self.team = team

class BPA(Employee):

def init(self, name):

Employee.init(self, name, salary = 1300, pos_type = "BPA", rating = 1.0, status = "Active")

def Promote(self):

self.position = "senior"

self.rating = 1.3

self.GiveRaise(self.rating)

def AssingProject(self, project):

self.project = project

Emp1, Emp2, Emp3 = Employee(names.get_full_name()), Manager(names.get_full_name()), BPA(names.get_full_name())

Emp1.Promote()

Emp2.Promote()

Emp3.Retire()

if name == 'main': #Class testing, if class will be imported as module to another program, it wont execute

for emp in Employee.employee_list:

print(emp)

I napisalem sobie prosty skryp do cookieclikera który ssie pałę

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196462

>>196460

"""

import pyautogui as pag

import webbrowser

import time

import sys

import tkinter as tk, win32api, win32con, pywintypes

x = 2238

y = 497

Dur = 0.0001

distance= 770

CoockieClicks = 100

pag.PAUSE = 0.001

MaxI = 3

MaxI +=1 #change due to index starts from 0

#Main action

def AutomatedClicking(CoockieClicks):

start_time = time.time()

TotalCookieClicks = 0

for MainI in range(1,MaxI):

pag.moveTo(x, y, duration=Dur)

for i in range(0,CoockieClicks):

try:

pag.click()

except KeyboardInterrupt():

sys.exit()

pag.moveTo(3556, 280, duration=Dur)

for i in range(0,5):

pag.click()

distance= 770

for i in range(0,7):

pag.moveTo(3652, distance, duration=Dur)

for i in range(0,5):

pag.click()

distance -= 62

TotalCookieClicks += CoockieClicks

CoockieClicks += round(CoockieClicks*0.02)

print("CoockieClicks:" + str(CoockieClicks))

print("Iteration: " + str(MainI) + " of " + str(MaxI-1))

EndTime = round(time.time() - start_time)

pag.alert(text="Bot ended work!\nTotal clicks: " + str(TotalCookieClicks) + "\nTotal time: " + str(EndTime) + " seconds", title="Work done!" )

#Prompt and init

def Prompting(CoockieClicks):

test = pag.confirm(text='The bot is about to start working.\

\nNumber of iterations: ' + str(MaxI-1) + "\

\nNumber of initial clicks per iteration: " + str(CoockieClicks)

, title='Please click ok to proceed', buttons=['OK', 'Cancel'])

if test == "OK":

print("Bot starting")

Site = "https://orteil.dashnet.org/cookieclicker/"

#webbrowser.open_new(Site)

time.sleep(2)

else:

print("Bot action canceled")

sys.exit()

#Text

label = tk.Label(text='Bot is active!', font=('Times New Roman','70'), fg='red', bg='brown')

label.master.overrideredirect(True)

label.master.geometry("+1980+800")

label.master.lift()

label.master.wm_attributes("-topmost", True)

label.master.wm_attributes("-disabled", True)

label.master.wm_attributes("-transparentcolor", "brown")

hWindow = pywintypes.HANDLE(int(label.master.frame(), 16))

# http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543(v=vs.85).aspx

# The WS_EX_TRANSPARENT flag makes events (like mouse clicks) fall through the window.

exStyle = win32con.WS_EX_COMPOSITED | win32con.WS_EX_LAYERED | win32con.WS_EX_NOACTIVATE | win32con.WS_EX_TOPMOST | win32con.WS_EX_TRANSPARENT

win32api.SetWindowLong(hWindow, win32con.GWL_EXSTYLE, exStyle)

label.after(1 , label.pack())

label.after(1 , Prompting(CoockieClicks))

label.after(1 , AutomatedClicking(CoockieClicks))

label.after(1 , label.master.destroy)

label.mainloop()

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196465

>>196453

>>196460

>pisanie w SQL

1990 o was pytał

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196467

>>196465

Pierdolenie, działa nieźle - opisz lepsze rozwiązanie bez chmury. Inna kwestia że ode mnie się tego wymaga, to używam.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196468

>>196467

ORM, algebra relacyjna

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196471

>>196468

Masz o tym jakieś fajne materiały? Chętnie się zapoznam prócz googlowania samemu. Temat dosyć ciekawy, nie ukrywam że nie jestem fulltime kucem.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196473

File: de63c2287225abf⋯.gif (827,65 KB, 320x240, 4:3, 1592865067751.gif)

RAIDA WAM STARY KURWIARZ KUTASEM W DUPIE ROBIŁ UŁOMKI ZAJEBANE

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196475

YouTube embed. Click thumbnail to play.

>>196473

Ładnie się rusza i umie tańczyć, szanuję.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196477

>>196465

Spierdalaj, używany jest wszędzie

>>196462

>win32api

weź to pisz pod normalne systemy xD

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196478

>>196473

>>196475

już nawet yakuza jej nie postuje

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196481

File: fae81ff0a46e7c0⋯.jpg (91,11 KB, 708x1000, 177:250, sample_a3cb70258c6bc649a94….jpg)

>>196478

A twój stary twojej starej nie rucha jebany bo ma kutaska w klatce

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196483

>>196471

w skrócie chodzi o to:

https://en.wikipedia.org/wiki/Object-relational_mapping#Overview

a algebra relacyjna w sensie konstruowanie zapytań w lepszy sposób niż klejąc fragmenty w takim stylu

var zapytanie = "SELECT * FROM czesci_ciala cc ";

if (kuce)

zapytanie += "LEFT JOIN programisci p ON cc.wlasciciel = p.pesel ";

zapytanie += "WHERE cc.nazwa = 'kuc' ";

if (umyty_kuc)

zapytanie += "AND cc.status = 'umyty' ";

zapytanie += "ORDER BY cc.rozmiar DESC LIMIT 50 OFFSET " + strona*50;

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196485

>>196477

napisałem "pisanie" SQL, a nie używanie SQL, a to różnica

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196487

>>196485

A nie, to na szczęście nie xDD

Raz napisałem coś takiego na update ratesów z NBP (252 rows / week), ale rzygać mi się chciało, bo wydajność na poziomie 13rows/s, gdzie bulk statement + csv to 11k rows < 1s.

Ogółem to raczej wywoluje sobie view, pod którym mam schowaną całą logikę w postaci table functions/stored procedures + aggregate functions typu GetKremówkaZostatniegoKwartału() - nie wiem czy to prawilna droga. Więc sqla używam do mielenia różnych rzeczy ale nie pisałem jeszcze aplikacji (U mnie w robocie to głównie import danych z excela i do excela) która by z nim współpracowała. No i chyba przy takim podejściu aż się prosi o sql injection?

Dzięki za linka, ciekawa lektura - zapisaned

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196491

>>196487

właśnie ORMy nie stawiają aż tak bardzo na wydajność, bardziej na krótkość kodu, czy odporność na SQL Injection. na pewno nie ma jednej drogi dla każdego przypadku, bo czasem ważniejsza będzie czytelność kodu, a czasem wydajność, ale myślę, że w większości przypadków, kiedy programista musi z jakiegoś języka programowania interfejsować bazę SQL nie ma potrzeby, żeby w ogóle cokolwiek w SQL pisał.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196833

>>196491

Hmm, dzięki

Na razie zrobiłem takie gunwno ale dopiero wchodzę w Jsona

import json, requests

r = requests.get('https://8kun.top/vichan/catalog.json');

Pages = r.json()

i = 0

with open('data.txt', 'a', encoding='utf-8') as outfile:

print("-----Vichan-----" + str(i), file=outfile)

for Page in Pages:

Threads = Page['threads']

for Thread in Threads:

print ("PostID:" + str(Thread['no']) + " | Time: " + str(Thread['time']) + ' | Replies: ' + str(Thread['replies']) + ' | com: ' + str(Thread['com']) + '\n', file=outfile)

i += 1

print("Total threads collected: " + str(i), file=outfile)

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196835

>>196833

Dobra, poszło szybciej niż myślałem - zrobię tylko jutro jeszcze tylko loopa po odpowiedziach, potem walidację po md5 (Nie ma sensu sciagac co juz mam), nastepnie skladanie do kupy wypowiedzi i potem zacznę kombinować jak to ubierac w klasy. Nastepnie jakis interface graficzny. Na razie uzywalem tylko tkintera. Ktos wie czy to obciaza serwer, jak zrobic to tak by jednocześnie archiwizowac a nie szkodzic? Fajnie byloby miec kopię Vi jak 8kun spadnie z rowerka i wrzucić ja na mirrora.

Tu robota wydaje się być zrobiona, ale chcę samemu do tego dojść:

https://www.npmjs.com/package/imageboard?activeTab=readme#thread

import json, requests, urllib.request

r = requests.get('https://8kun.top/vichan/catalog.json');

Pages = r.json()

i = 0

with open('data.txt', 'a', encoding='utf-8') as outfile:

print("-----Vichan-----" + str(i), file=outfile)

for Page in Pages:

Threads = Page['threads']

for Thread in Threads:

print ("PostID:" + str(Thread['no']) + " | Time: " + str(Thread['time']) + ' | Replies: ' + str(Thread['replies']) + ' | com: ' + str(Thread['com']) + '\n', file=outfile)

if 'tim' in Thread:

Filepath = ("https://media.8kun.top/file_store/" + str(Thread["tim"]) + str(Thread['ext']))

LocalFileName = str(Thread['filename']) + str(Thread['ext'])

urllib.request.urlretrieve(Filepath, LocalFileName)

i += 1

print("Total threads collected: " + str(i), file=outfile)

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196837

>>196833

>>196835

o chuj nie wiedziałem że tu jest jakiś purpletext. stary 8chuj tego nie miał

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196839

>>196837

Faktycznie xDD

test:

Vichan

-Vichan—-

-Test—-

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196840

>>196839

"-Vichan-"

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196841

>>196840

>print("-Vichan-" + str(i), file=outfile)

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196842

>>196841

----PurpleText----

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196843

--–Stara OPa to Jaruzel-

Test - "-" 14x z lewej, 10 z prawej

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196844

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196845

>>196844

-–TEST-

9x z kazdej strony

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196847

File: b45351dea530663⋯.jpg (240,83 KB, 1145x732, 1145:732, Brum.jpg)

>>196835

Kurwa, wie ktoś czemu plik na dysku ma inne MD5 niz w jsonie? Picrel. Chciałem tego uzyc do walidacji chanfolderu by ograniczyc duplikaty.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196850

>>196462

>>196460

>>196833

ale kod to ty wrzucaj na pastebina bo inaczej formatowanie ci zepsuje i nie będzie się kompilowało

also test –test

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196851

test

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196864

>>196847

cloudflare rekoduje. dopisz ?_=RANDOM na końcu adresu obrazka

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.196866

>>196864

>cloudflare

widzam co tu zrobiłem xDDDD

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.197753

File: 5924a0436a69738⋯.png (25,76 KB, 509x466, 509:466, Testing.PNG)

>>196864

Dzięki wielkie za rady anon :3

Rozpisałem na funkcje (Wiem że na razie ssie pałę), Dodałem też ?_=RANDOM ale MD5 dalej takie same :|

Może testuję to w zjebany sposób:

MD5 check:

https://pastebin.com/2fgp4BKX

Cały kod:

https://pastebin.com/1sxqj5aU

Nie jestem także pewny czy dobrze zaimplementowałem timeout, i 3 próby sciagniecia pliku przy HTTPError.

Wydajność:

>TotalFiles collected: 188

>Total time: 309.4204623699188 seconds

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.197765

File: ef67703063bcb4f⋯.jpg (8,69 KB, 285x177, 95:59, indeks.jpg)

>>197753

Najnowsza wersja z loopem przez posty:

https://pastebin.com/3busVx86

Czyli zostało to do

1) MD5 z indeksem czanfolderu i sciaganiem tylko tego czego brakuje

2) rozpiska klas i GUI, przepisanie całości

3) Wrzucanie zawartości na bazę (Wstępnie CSV > SQL Server, chyba ze da się to zrobić przy użyciu pandasa lub innych magicnzych modulow)

4) Przegladarka offline na podstawie bazy, plus GUI do odpalania updatu

5) Wrzucenie do repozytorium na gicie i udostępnienie anonom, na wypadek gdyby ich ukochany czan spadł znowu z rowerka.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.197775

File: 94d39c0f920f522⋯.png (203,37 KB, 1310x1225, 262:245, JebaneMD5.png)

>>197765

Kurwa, poddaję się na dziś - Na myśl przychodzi mi jedynie:

B) 24 characters, Base64 per RFC 4648 /

24 characters, Base64 with Filename Safe Alphabet

https://crypto.stackexchange.com/questions/76902/what-is-the-use-of-encoding-a-hash-output

Tylko kurwa czemu BASE64 miałoby by podpisane MD5? Jednoczenie uzywajac konwerterow BASE64 uzyskuje caly zakodowany plik, wiec dlugosc stringa o wiele wieksza niz 24 znaki. Myślałem o tym że moze brane jest MD5 z pliku a potem konwertowane na BASE64 Filename Safe Alphabet

Tylko to tez gowno daje-

Picerel z >>197765 daje w MD5:

>8ABD0DF191654BC7FE0BD28F06A5F912

MD5 > BASE64 (https://www.base64encode.org/) daje jakieś kurwa

>OEFCRDBERjE5MTY1NEJDN0ZFMEJEMjhGMDZBNUY5MTI

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.197778

>>197775

pewnie chodzi o to, że wynik funkcji md5 zamiast być kodowany za pomocą base16 jest kodowane za pomocą base64. ale może lepiej spojrzeć na nazwę obrazka, która zawiera hash jakiś sha256 albo 512, bo md5 się już od dawna nie stosuje xD

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.198058

File: 8fe22a963bd64fc⋯.jpg (10,25 KB, 260x194, 130:97, exhausted.jpg)

>>197778

Dzięki za podpowiedź, moje domysły były trafne, 8kun oparty jest o vichan-API, i udało mi się dotrzeć do readme API, trochę to pomogło. W końcu wykucowałem ten jebany kod na checksum. Trochę godzin to zabrało.

-funkcja PackedBase64MD5(fname)-

https://pastebin.com/jpQys9H2

https://github.com/vichan-devel/vichan-API/blob/master/README.md

Szanuję czaksa za chuj-dl, o takie nazwy repozytoriów nic nie robiłem.

https://github.com/czaks/chuj-dl

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.198092

File: 0864593c1b524c8⋯.jpg (86,88 KB, 1280x720, 16:9, shirobako_24_misa_mii_cg_a….jpg)

>>198058

Działa!

Główny kod:

https://pastebin.com/WMDDwjX7

Md5 function (do tworzenia indexu hashy plików, a nastepnie sprawdzania czy to co chcemy sciagnac przypadkiem nie jest na dysku)

https://pastebin.com/K767aA9V

Wrzucę potem link do repozytorium na githubie - kolejny krok - wyrzucenie wszystkie do śmietnika i rozpisanie w ramach klas. :3

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.198663

File: b3cf96f3cb2eea5⋯.png (55,86 KB, 1268x599, 1268:599, FuckingConfig.png)

Ktoś ma pomysł co jest zjebane? Przeszukałem pół stacka, ale większość rozwiązań prowadzi do innych problemów których metody na rozwiązanie prowadzą z powrotem do tego problemu xDD

Czy warto wrzucać nagłówek i dodawać funkcje postowania na przyszłość?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.198690

>>198663

Ah, zpaomniałem - pastebin

RequestHanderss.py - ogolnie calosc nie ma takeigo znaczenia, jako ze nawet prosty print(configfile.host) nie działa. Uprzedzajac pytania - potrzebuje duplikatu zmiennej, nie będzie w ramach aplikacji na razie zapisywał niczego do configu.

https://pastebin.com/0uJmzUkV

Config - zdecydowales sie tam zrobic klasę, chuja dało. Ogółem przeniosę tam wszystko typu timeouty socetów i co się da,z gówien konfiguracyjnych z głównego pliku

https://pastebin.com/Q3vCY1TU

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.199260

>>197765

>GUI

Btw nie rozumiem dlaczego robisz/robicie wlasny projekt z tego, skoro na gicie wisi kilka projektow. Najwiecej ma 4 gwiazdzeczki jakis w Nodejs. Z tego co patrzylem nie jest to moze ES6+, ale cos mozna z tym zrobic. Nie wiem, czy jest sens marnowac czas na tworzenie kola od nowa

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.199394

>>196468

>ORM

Dobre jezeli robi sie w wieksza ilosc osob. W jedna osobe to zbyt duzy overhead. Powiesz mi, ze beda mu potrzebne migracje itd?

>>196465

Nie zgrywaj kogos doswiadczonego… Obojetne jest czym bedzie jego DB, moze wziac mongo, redis, postgres, dynamo itd Zadna roznica w takim projekcie.Jezeli potrafi w SQL, to niech pisze w tym.

>>196850

I dlatego bymthon jest dla podludzi

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.199663

File: 83692a31f688bb7⋯.png (58,89 KB, 1424x424, 178:53, DB.png)

>>199260

Bo nie ogarniam NodeJs, jak i kilku innych języków a Pythona i tak zamierzam wykorzystywać do analizy danych i automatyzacji. Robię sobię projekt by się poduczyć a jednocześnie się by się na coś przydał - nigdy mnie nie kręciło robienie niepraktycznych rzeczy. A nuż jakiś anon sobie z tego skorzysta a ja sam nie będę musiał sobie kiedyś szukać starych nitek zapisanych jako jpg. Inna kwestia że do roboty też musiałbym zaprojektowac jakiegoś prostego CRUDa z interface, bo wymiana 100 maili z wynikami audytów nie jest fajna, a jestem na to za leniwy by robić to ręcznie. Plus za takie rzeczy łatwo dostać podwyżkę.

>>199394

Co do formatowania - faktycznie wkurwia ale wymusza trochę porządku, pisałem w kilku innych rzeczach i czasem widząc kod łapałem się za głowę. Inna kwestia że mam prywatne repo, ale boję się że stalk - a na początku nie pomyslałem o pastebin.

Co do baz danych - siłą rzeczy jestem z niektórych powodów zmuszony używać sql server więc sobie też go ćwiczę, chociaż nie wykluczone że jak już wszystko sobie będzie hulać to rozejrzę się po rozwiązaniach i dodam sobie wsparcie dla czegoś innego.

Ogółem coś już tam śmiga plus walidacja zarówno dla plików na dysku jak i postów na bazie (w przypadku powtarzajacych sie nazw, rename pliku) - teraz sobie staram rozpisać klasy. Ktoś coś poleca w temacie projektowania klas tak by miały sens?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.199668

>>199260

Btw co to ES6+ ?

Nie ukrywam że z repozytoriami na Gicie nie mam jakoś od dawna do czynienia.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Powrót][Do góry][Katalog][Nerve Center][Losowo][Post a Reply]
[]
[ / / / / / / / / / / / / / ] [ dir / random / abcu / fast / ita / loomis / pdfs / random / rule34 / tingles ]