[Solved] Icons in jsf do not appear

Your HTML is invalid. You have to remove extra spaces: <li><i class=”fa fa-phone”></i>+2 95 01 88 821</li> <li><i class=”fa fa-envelope”></i>[email protected]</li> Tag names are usually in lowercase. Hope you have CSS describing your classes fa, fa-envelope and fa-phone… Update As I understand from your comments you have no CSS and font Awesome for your HTML. So … Read more

[Solved] Block system in anonymouse chat system [closed]

The reason you seem to be getting down votes is that there is no proper way to do what you want. Either you allow anonymous messages, or you get a working block system (and even most authenticated messaging systems have a hard time getting a 100% safe blocking mechanism). To be able to block someone, … Read more

[Solved] How to read a JSON file in Javascript [closed]

JSON refers to JavaScript Object Notation, which is a data interchange format. Your JSON is not properly formatted. A proper JSON object would look something like [{“count”: 1, “timestamp”: 1257033601, “from”: “theybf.com”, “to”: “w.sharethis.com”},{“count”: 1, “timestamp”: 1257033601, “from”: “”, “to”: “agohq.org”}] You can get the JSON from desired URL using $.getJSON(), like $.getJSON( “Yoururl”, function( … Read more

[Solved] C# array of numbers

Your code is unnecessarily complex. use default .Net implementations to make your code readable and understandable. string skaiciai = “skaiciai.txt”; string[] lines = File.ReadAllLines(skaiciai); // use this to read all text line by line into array of string List<int> numberList = new List<int>(); // use list instead of array when length is unknown for (int … Read more

[Solved] C# Readint a txt file and creating an exact copy of it inside a program

To acomplish your goal you need to do two steps: Read the entire file. Transform to appropiate structure. Thanks to LINQ you can accomplish quickly: var cells = (from l in System.IO.File.ReadAllLines(“myfile.txt”) select l.Split(” “.ToArray(), StringSplitOptions.RemoveEmptyEntries)).ToArray(); Now you can access the cells like this: var value = cells[1][2]; 3 solved C# Readint a txt file … Read more

[Solved] How to read txt file and save as a single string in java in order to split it by a certain character [closed]

Files#lines returns a stream of all the lines in the file. You could join these lines to a single string, and then split it according to the separator: String separator = “:”; // for example… String entireFile = Files.lines(Paths.get(“file.txt”)).collect(Collectors.joining()); String[] separated = entireFile.split(separator); solved How to read txt file and save as a single string … Read more

[Solved] Insert a row at the end of an Excel file without it’s old data

In general you can’t update a spreadsheet inline, or the API doesn’t work nicely anyway. But, this is how you can modify an existing spreadsheet and overwrite the old workbook with the changed workbook. import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory; public class ModifySheet { public … Read more

[Solved] Find contact in location tree

You could use a recursive common-table expression to walk up until you find a parent with a contact. For example: ; with CTE as ( select ID , ContactID , ParentID , ID BaseID , 1 as Level from Location where ID in (4,5) union all select parent.ID , parent.ContactID , parent.ParentID , child.BaseID , … Read more