Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • huseyincakir 1:21 pm on February 19, 2015 Permalink | Reply  

    Mono GtkSharp Application at Taskbar 

    using System;
    using Gtk;
    using Gdk;
    
    namespace monoGTK_Test
    {
        class  gtkTest : Gtk.Window
        {
            private static StatusIcon trayIcon;
    
            public  gtkTest() : base("monoGTK_Test")
            {
                trayIcon = new StatusIcon(new Pixbuf ("theIcon.png"));
                trayIcon.Visible = true;
                trayIcon.PopupMenu += OnTrayIconPopup;
                
                this.SetSizeRequest(300,300);
                this.ShowAll();
            }
            static void OnTrayIconPopup (object o, EventArgs args)
            {
                Menu popupMenu = new Menu();
                
                ImageMenuItem menuItemQuit = new ImageMenuItem ("QUIT");
                Gtk.Image imgmenuItemQuit = new Gtk.Image(Stock.Quit, IconSize.Menu);
                menuItemQuit.Image = imgmenuItemQuit;
                
                
                
                ImageMenuItem menuItemTIME = new ImageMenuItem ("CHK NOW!");
                Gtk.Image imgmenuItemTIME = new Gtk.Image("icon_passive.png");
                menuItemTIME.Image = imgmenuItemTIME;
                
                popupMenu.Add(menuItemQuit);
    
                popupMenu.Add(menuItemTIME);
                menuItemQuit.Activated += delegate { Application.Quit(); };
    
                menuItemTIME.Activated+= new EventHandler(menuItemTIME_Activated);
                popupMenu.ShowAll();
                popupMenu.Popup();
            }
            static void menuItemTIME_Activated(object sender, EventArgs e)
            {
                Console.WriteLine("menuItemTIME_Activated");
            }
    
            public static void Main()
            {
                Application.Init();
                new gtkTest();
                Application.Run();
            }
    
            
        }
    }
    

    Output:
    taskbar

    Download:

    https://drive.google.com/file/d/0B5CGxG0MWhPtQkZUOFp5RVpjelU/view?usp=sharing

     
  • huseyincakir 8:35 am on February 13, 2015 Permalink | Reply  

    Simple Security Precaution: Take picture of person who logins to your pc on logon 

    • CSharp detect logon/logout to Windows PC
    • CSharp capture picture from webcam
    • CSharp send mail attachment
    • Source: https://drive.google.com/file/d/0B5CGxG0MWhPtZ1FUTVJ4YlNyRGc/view?usp=sharing
    • Setting File Example:
      • <?xml version=”1.0″ encoding=”UTF-8″?><ROOT><SYSTEM pathForlogtext=”C:\Users\huseyin.cakir\Desktop\log.txt” pathForlogimage=”C:\Users\huseyin.cakir\Desktop\log.jpg” mailTo=”mailto@gmail.com” mailFrom=”test@gmail.com” mailFromClient=”gmailclientserver” mailFromClientPort=”587″ mailFromUser=”tester” mailSorucePassword=”password”></SYSTEM></ROOT>
    • Screenshots:

    1

    2

    3

     
    • coderDark 3:42 pm on February 13, 2015 Permalink | Reply

      Very nice way :)

      • netherland 11:46 am on February 19, 2015 Permalink | Reply

        Security is the degree of resistance to, or protection from, harm. It applies to any vulnerable and valuable asset, such as a person, dwelling, community, nation, or organization. :D

  • huseyincakir 3:12 pm on January 30, 2015 Permalink | Reply  

    Windows 8.1 disk usage 100% Problem 

    • Press “Windows+R” from keyboard
    • Write “services.msc”
    •  Disable
      • 1-Super fetch
      • 2-Windows search

    Before:

    100After:

    1001

     

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
Follow

Get every new post delivered to your Inbox.

Join 89 other followers