1- Right click
2- Open Terminal
3- Type the following:
dconf reset -f /org/compiz/
setsid unity
And you are done!! Life can go back to normal now...ish
Source (Thank you O master of askubuntu.com under the following link):
http://askubuntu.com/
{workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings. delete the following:org.eclipse.wst.server.core.prefsorg.eclipse.jst.server.tomcat.core.prefs#include <iostream> int fib(int n) { if ( n == 0 ) return 0; if ( n == 1 ) return 1; return fib(n-1) + fib(n-2); } int main(){ printf("Fib Val: %i", fib(7)); return 0; }
| public static byte[] GetBytesFromFile(string file) |
| { |
| try |
| { |
| // check if this is a file name; |
| if (file == null) |
| return null; |
| if (file.Trim().Length == 0) |
| return null; |
| // get the size of the buffer |
| int bufferSize = (int)(new System.IO.FileInfo(file).Length); |
| // check if the file has anything. |
| if (bufferSize == 0) |
| return null; |
| // create the buffer with the proper size |
| byte[] buffer = new byte[bufferSize]; |
| // create the stream |
| System.IO.FileStream fs = new System.IO.FileStream(file, System.IO.FileMode.Open); |
| // create the reader of the stream |
| System.IO.BinaryReader reader = new System.IO.BinaryReader(fs); |
| // populate the buffer |
| buffer = reader.ReadBytes(bufferSize); |
| // Close the stream |
| fs.Close(); |
| fs.Dispose(); |
| // close the reader |
| reader.Close(); |
| fs.Dispose(); |
| return buffer; |
| } |
| catch (Exception ex) |
| { |
| System.Windows.Forms.MessageBox.Show("Please Make sure that the file is valid or is not in use. Details:\r\n" + ex.Message); |
| return null; |
| } |
| } |
| public static void OpenFileWithDefaultApplication(string fullfileLocationAndName, byte[] data) |
| { |
| try |
| { |
| System.IO.FileStream fs = new System.IO.FileStream(fullfileLocationAndName, System.IO.FileMode.Create, System.IO.FileAccess.ReadWrite); |
| fs.Write(data, 0, data.Length - 1); |
| fs.Close(); |
| fs.Dispose(); |
| System.Diagnostics.Process.Start(fullfileLocationAndName); |
| } |
| catch (Exception ex) |
| { |
| MessageBox.Show("There was an error opening the file: " + ex.Message); |
| } |
| } |