VB.Net – Count substring occurrences in a string
The simplest way Dim text = “.Maui is awesome” Dim count = text.Split(“a”).Length -1
The simplest way Dim text = “.Maui is awesome” Dim count = text.Split(“a”).Length -1
In this example all the files with the extension gz inside the /var/log/ directory and in all its sub-folders will be deleted. find /var/log/ -name “*.gz” -type f -delete
Launch this console command du –max-depth=1 /* | sort -n
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <% pageContext.setAttribute("newLineChar", "\n"); %> <p class="text-muted"> ${fn:replace(myText, newLineChar, "<br />")} </p>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %> <%@ taglib uri = "http://java.sun.com/jsp/jstl/functions" prefix = "fn" %> <html> <head> <title>Exmaple of JSTL – fn:replace() Function</title> </head> <body> <c:set var = "string1" value = ".Maui…
var cars = from c in db.Cars join s in db.CarsSold on c.Id equals s.CarId where s.SellingPrice > 10000 group new { c.Id, c.Model } by new { c.Id, c.Model } into g orderby g.Key.Model…
After a little vacation, we got back to work. Thanks to those who have donated in these weeks and continue to support this project. Here’s the latest news: – Vulture CSS WEB Tool is now…
public static String downloadFromUrl(String my_url) { URL url; InputStream is = null; BufferedReader br; String line; String content = “”; try { url = new URL(my_url); is = url.openStream(); // throws an IOException br =…
We have created for a premium user a small client written in Java to minimize CSS through our API for version 1.2. This client is public and available for download or you can see the…
Assuming that the apache logs are under the /var/log/apache2 folder and you only want to delete .gz files older than 2 days: find /var/log/apache2/*.gz -mtime +2 -exec rm {} \;