Feed aggregator
Intuit To Cut About 1,800 Jobs As It Looks To Increase AI Investments
Read more of this story at Slashdot.
Google Boosts High-Risk Account Security with Phone-Only Setup
Read more of this story at Slashdot.
US Officials Uncover Alleged Russian 'Bot Farm'
Read more of this story at Slashdot.
Samsung Electronics Union Launches First Strike In 55-Year History
Read more of this story at Slashdot.
Judge Dismisses Lawsuit Over GitHub Copilot AI Coding Assistant
Read more of this story at Slashdot.
Best of…: Classic WTF: Python Charmer
"I don't have a whole lot of experience in Python," writes Jakob, "in fact, when I was hired, the only thing I knew about the language was that whitespace was important."
"Fortunately — actually, unfortunately — it doesn't take a whole lot of experience in Python to recognize that my company's codebase is... well... sub-optimal. Submitted for your approval is a method used to generate a password, found in our network security library."
def genpassword(wlc,maxchar,txt,List,verbose): word = "" i1 = i2 = i3 = i4 = i5 = i6 = i6 = i7 = i8 = i9 = i10 = i11 = i12 = i13 = i14 = i15 = 0 txtfile = open(txt,'w') i = 0 mc = int(maxchar) - 1 lword = [0] for i in range(mc): lword += [0] for i1 in range(len(wlc)): for i2 in range(len(wlc)): for i3 in range(len(wlc)): for i4 in range(len(wlc)): for i5 in range(len(wlc)): for i6 in range(len(wlc)): for i7 in range(len(wlc)): for i8 in range(len(wlc)): for i9 in range(len(wlc)): for i10 in range(len(wlc)): for i11 in range(len(wlc)): for i12 in range(len(wlc)): for i13 in range(len(wlc)): for i14 in range(len(wlc)): for i15 in range(len(wlc)): if int(maxchar) == 1 : word = wlc[i15] if int(maxchar) == 2 : word = wlc[i14] + wlc[i15] if int(maxchar) == 3 : word = wlc[i13] + wlc[i14] + wlc[i15] if int(maxchar) == 4 : word = wlc[i12] + wlc[i13] + wlc[i14] + wlc[i15] if int(maxchar) == 5 : word = wlc[i11] + wlc[i12] + wlc[i13] + wlc[i14] \ + wlc[i15] if int(maxchar) == 6 : word = wlc[i10] + wlc[i11] + wlc[i12] + wlc[i13] \ + wlc[i14] + wlc[i15] if int(maxchar) == 7 : word = wlc[i9] + wlc[i10] + wlc[i11] + wlc[i12] \ + wlc[i13] + wlc[i14] + wlc[i15] if int(maxchar) == 8 : word = wlc[i8] + wlc[i9] + wlc[i10] + wlc[i11] \ + wlc[i12] + wlc[i13] + wlc[i14] + wlc[i15] if int(maxchar) == 9 : word = wlc[i7] + wlc[i8] + wlc[i9] + wlc[i10] \ + wlc[i11] + wlc[i12] + wlc[i13] + wlc[i14] + wlc[i15] if int(maxchar) == 10 : word = wlc[i6] + wlc[i7] + wlc[i8] + wlc[i9] \ + wlc[i10] + wlc[i11] + wlc[i12] + wlc[i13] + wlc[i14] \ + wlc[i15] if int(maxchar) == 11 : word = wlc[i5] + wlc[i6] + wlc[i7] + wlc[i8] \ + wlc[i9] + wlc[i10] + wlc[i11] + wlc[i12] + wlc[i13] \ + wlc[i14] + wlc[i15] if int(maxchar) == 12 : word = wlc[i4] + wlc[i5] + wlc[i6] + wlc[i7] + wlc[i8] \ + wlc[i9] + wlc[i10] + wlc[i11] + wlc[i12] + wlc[i13] \ + wlc[i14] + wlc[i15] if int(maxchar) == 13 : word = wlc[i3] + wlc[i4] + wlc[i5] + wlc[i6] \ + wlc[i7] + wlc[i8] + wlc[i9] + wlc[i10]\ + wlc[i11] + wlc[i12] + wlc[i13] \ + wlc[i14] + wlc[i15] if int(maxchar) == 14 : word = wlc[i2] +wlc[i3] + wlc[i4] + wlc[i5] + wlc[i6] \ + wlc[i7] + wlc[i8] + wlc[i9] + wlc[i10]\ + wlc[i11] + wlc[i12] + wlc[i13] \ + wlc[i14] + wlc[i15] if int(maxchar) == 15 : word = wlc[i1] + wlc[i2] + wlc[i3] + wlc[i4] \ + wlc[i5] + wlc[i6] + wlc[i7] + wlc[i8] + wlc[i9] \ + wlc[i10] + wlc[i11] + wlc[i12] + wlc[i13] \ + wlc[i14] + wlc[i15] if int(verbose) == 1: print word txtfile.writelines(word + "\n") i = 0 end = 0 if int(List) == 1 : for i in range(len(word)): lword[i] = "9" if str(lword) == str(list(word)): end = 1 elif (int(List) == 2): for i in range(len(word)): lword[i] = "z" if str(lword) == str(list(word)): end = 1 elif (int(List) == 3): for i in range(len(word)): lword[i] = "Z" if str(lword) == str(list(word)): end = 1 elif (int(List) == 4): for i in range(len(word)): lword[i] = "z" if str(lword) == str(list(word)): end = 1 elif (int(List) == 5): for i in range(len(word)): lword[i] = "Z" if str(lword) == str(list(word)): end = 1 elif (int(List) == 6): for i in range(len(word)): lword[i] = "Z" if str(lword) == str(list(word)): end = 1 if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break if end == 1 : break txtfile.close()Jakob continues, "I can only hope this language doesn't have a goto statement..."
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!Oregon County Seeks To Hold Fossil Fuel Companies Accountable For Extreme Heat
Read more of this story at Slashdot.
British Boarding School Bans Smartphones, Hands Out Nokia Phones Instead
Read more of this story at Slashdot.
Nike Is Killing the App for Its $350 Self-Tying Sneakers
Read more of this story at Slashdot.
Etsy Loses Its 'Handmade' and 'Vintage' Labels As It Takes On Temu and Amazon
Read more of this story at Slashdot.
In a First, Federal Regulators Ban Messaging App From Hosting Minors
Read more of this story at Slashdot.
OpenAI and Arianna Huffington Are Working Together On an 'AI Health Coach'
Read more of this story at Slashdot.
BlastRADIUS Attack Exposes Critical Flaw In 30-Year-Old RADIUS Protocol
Read more of this story at Slashdot.
Spain Sentences 15 Schoolchildren Over AI-Generated Naked Images
Read more of this story at Slashdot.
FCC To Block Phone Company Over Robocalls Pushing Scam 'Tax Relief Program'
Read more of this story at Slashdot.
US Nuke Agency Buys Internet Backbone Data
Read more of this story at Slashdot.
Mozilla Releases FireFox 128
Read more of this story at Slashdot.
Speed Limiters Now Mandatory In All New EU Cars
Read more of this story at Slashdot.
Australia's Cybersecurity Agency Says China-backed Hackers Behind Online Crimes
Read more of this story at Slashdot.
Google Expands Dark Web Monitoring To All Users
Read more of this story at Slashdot.