[Solved] Icons in jsf do not appear

[ad_1] 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. … Read more

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

[ad_1] 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 … Read more

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

[ad_1] 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”, … Read more

[Solved] C# array of numbers

[ad_1] 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 … Read more

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

[ad_1] 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 [ad_2] solved C# Readint a … 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]

[ad_1] 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); [ad_2] solved How to read txt file and save as a … Read more

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

[ad_1] 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 { … Read more

[Solved] Find contact in location tree

[ad_1] 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