[Solved] How to make div with text and icon right [closed]

I hope this is what you want. #red { width:500px; height:100px; padding:20px; background-color:#f70c1e; color:white; line-height:100px; font-size:40px; font-family:sans-serif; text-align:center; } img{ float:right; } <div id=”red”> Yada yada . <img src=”http://content.nike.com/content/dam/one-nike/en_us/season-2012-su/open-graph/onenike_homepage_v1_opengraph_100x100.jpg” alt=””> </div> solved How to make div with text and icon right [closed]

[Solved] Activity to fragment conversion

Fragment are use Like this… public class YourFragment extends Fragment { private View rootview; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { rootview = inflater.inflate(R.layout.activity_main, container, false); return rootview; } } solved Activity to fragment conversion

[Solved] How to subtract 30 days from current date [closed]

Use below code Calendar c = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd”); String date = new SimpleDateFormat(“yyyy-MM-dd”, Locale.getDefault()).format(new Date()); c.setTime(sdf.parse(date)); c.add(Calendar.DATE, -30); Date newDate = c.getTime(); solved How to subtract 30 days from current date [closed]

[Solved] awk printf with variable

Note that foo=4/3 sets foo to the string 4/3. When that is printed via %f, ‘4/3’ is treated as 4; when that is printed with %s, it is printed as 4/3. If you want to evaluate the expression, you need it evaluated inside the script. For example: awk ‘END {printf “%f\n”, foonum/fooden }’ foonum=4 fooden=3 … Read more

[Solved] How to split a text file on c# [closed]

Dont make a habbit of asking ppl to write your code, but, in order to welcome you to the community: (you should make the code safer openning and closing the files.) public void Texts(FileInfo srcFile, DirectoryInfo outDir, string splitter = “dipendent”) { // open file reader using (StreamReader srcRdr = new StreamReader(srcFile.FullName)) { int outFileIdx … Read more

[Solved] Phone book project error.There are no errors found in compiler but it exits when it runs have been trying for very long [closed]

Your code does not make any sense. There are many problems with what you have written I’m not going to go through them all, but the most glaring is if (option == 1) { void addcontact(info contactlist[]); } This is not how a function is called. Instead, it should look like if (option == 1) … Read more

[Solved] How to tell who is logged in PHP? [closed]

$_SESSION A session is a way to store information (in the form of variables) to be used across multiple pages. <?php // this line starts the session and must be present in any page where you need to set or retrieve a session variable session_start(); // this sets variables in the session $_SESSION[‘userid’]=’123′; //obv it … Read more

[Solved] How can I get the string between two tags [closed]

use this pattern: @”\[video.*?\](.*?)\[/video\]” and then get group 1. I won’t post the whole code because I dont want to do your work for you. Read about C# Regexes, Patterns and try to write your code with this pattern. 1 solved How can I get the string between two tags [closed]

[Solved] expected ‘)’ before object. class does not name a type [duplicate]

For starters, you should remove #include “Car.h” from Color.h. It creates an unnecessary circular include, and the compiler hits Car(Color a) before it knows that Color is a class. You also need to include the header <string> to output a string to cout. Next time, maybe don’t insult the people who are helping you. solved … Read more

[Solved] How to display the value of a javascript variable in html? [closed]

You would just set the .textContent of the element that it will be shown in to the variable. No hiding/showing of the element is needed because the element’s .textContent will be empty at first (so it will initially not show anything anyway). <html> <head> <title>Using form data in the page</title> </head> <body> <div> <input type=”text” … Read more