-
Posts
-
-
By M. Murcek · Posted
Never mind that in many cases such a migration would also violate the license for the third party software. Not that anyone thinks that license applies to them. -
By zikalify · Posted
Google unveils OSS Rebuild to combat open source supply chain attacks by Paul Hill While much open source software is available free of charge, it makes up the backbone of modern digital infrastructure, making up 77% of applications and is valued at over $12 trillion. Its popularity has made it a prime target for sophisticated supply chain attacks, which can erode trust and create hesitation among developers and users. Some notable supply chain attacks (where malicious code is injected into trusted components) include solana/webjs, which saw a backdoor added via a compromised npm account, which led attackers to steal crypto private keys; tj-actions/changed-files had a compromised GitHub Action leaking secrets; and xz-utils got infected with a sophisticated backdoor that gave malicious actors remote access. To boost the safety of open source projects, Google has launched OSS Rebuild, which developers can use to verify the integrity of open source packages by reproducing their builds. The search giant said that OSS Rebuild generates Supply-chain Levels for Software Artifacts (SLSA) Build Level 3 requirements without maintainer effort, giving you a verifiable record of how a software artifact was built. Discussing the motivations behind the project, Google said: The OSS Rebuild project has multiple benefits, mainly aimed at security teams and maintainers. For security teams, they benefit from being able to detect unsubmitted source code, build environment compromises, and stealthy backdoors. OSS Rebuild also enhances metadata, augments Software Bills of Materials, and accelerates vulnerability response. Maintainers get strengthened package trust through independent verification and benefit from retrofitting historical packages with integrity attestations. The project initially supports PyPI (Python), npm (JS/TS), and Createsio (Rust) with more ecosystem support planned. The project can be used via the command line for users to fetch provenance, explore rebuilt versions, and rebuild packages. Image via Depositphotos.com -
By Snake Doc · Posted
Watch this video. After changing all those settings the Windows 11 UI is much faster. https://youtu.be/k3uRYKJRons?si=6XhJTlZJa3A3Grxt -
By Snake Doc · Posted
I use both MacOS and Windows and have since Mac went to Intel. Just replaced my MacBook M1 Pro 16 inch with a 15 inch M4 Air. Shaved off 1.5 lbs basically. MacBooks are hands down the best laptops when it comes to hardware. Fit and finish, and battery life are best in class. MacOS is also installed cleaner than Windows. A tamed install of Windows however just feels faster and is more capable than MacOS IMHO. That said almost all of the MacOS native apps are not great (Safari, Mail, Notes, pod casts, photos, text edit, finder etc). System properties used to be way more organized but is a mess theses days, much like Windows conversion from control panel to Settings.
-
-
Recent Achievements
-
Snake Doc earned a badge
Collaborator
-
Snake Doc earned a badge
Week One Done
-
Johnny Mrkvička earned a badge
One Month Later
-
Sender88 earned a badge
Week One Done
-
Daniel Pinto earned a badge
Dedicated
-
-
Popular Contributors
-
Tell a friend
Question
asmit
Can somebody help me!!?
I need to read a txt file filled with words (separated by spaces and/or line breaks) and grab each word (tokenize the file and save each token in an array). For now, I just want to print each token to the screen!
My creation of my InputStream looks like:
InputStream inputS = new FileInputStream(filename);
And my java method looks like:
public static void tokenize(InputStream inputS) throws IOException
{
StringTokenizer st = new StringTokenizer(inputS);
while (st.hasMoreTokens())
{
System.out.println(st.nextToken());
}
}
But i'm getting an error saying that it cannot resolve:
StringTokenizer st = new StringTokenizer(inputS);
Can someone help me tokenize and output the results of the file?
Link to comment
https://www.neowin.net/forum/topic/248132-java-file-tokenizer/Share on other sites
7 answers to this question
Recommended Posts