Recently shared snippets by user "anonymous"
If your site puts the username in the URL of the user’s profile page, what would happen if I created a user named login? If I were to populate my profile with the text “Our log-in page has moved, please click here to log in”, with a link to my credential-harvesting site, how many of your users do you think I could fool? If your site creates email addresses from usernames, what happens if I sign up as a user named webmaster or postmaster? Will I get email directed to those addresses for your domain? Could I potentially obtain an SSL certificate for your domain with the right username and auto-created email address? If your site creates subdomains from usernames, what happens if I sign up as a user named www? Or smtp or mail?
Arrays.asList(1,2,3,4).stream().mapToInt(i -> i.intValue()).sum(); Arrays.asList(1,2,3,4).stream().mapToInt(Integer::intValue).sum(); Arrays.asList(1,2,3,4).stream().collect(Collectors.summingInt(Integer::intValue)); // parallel streams LongAdder a = new LongAdder(); Arrays.asList(1,2,3,4).parallelStream().forEach(a::add); sum = a.intValue(); int sum = Arrays.asList(1,2,3,4).stream().reduce(0, (x,y) -> x+y)
Exceptiion while executing build FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. > com.android.build.api.transform.TransformException: java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files Sloution : You need to look at the build.gradle. There may be something wrong with your configuration. You may have misspelt something or may not have configured the plugins correctly. My issues were with the annotationProcessor not being configured properly.