Apache2 CMD to check VHOST Settings...
sudo /usr/sbin/apache2ctl -t -D DUMP_VHOSTS
Windows Server Login Script example
Login Script example:
Dim WSHELL, SETNETTIME
CONST DOMAINNAME = "myDomain"
Set WSHELL = Wscript.CreateObject("Wscript.Shell")
SETNETTIME = "net time /DOMAIN:" & DOMAINNAME & "/set /y"
'wscript.echo("Syncing workstation time with server time!")
WSHELL.run(SETNETTIME)
wscript.echo("Time has been Set." & vbCrLf & "Other Scripts disabled.")
NTP setup for Windows Server 2003 (DC)
Synching to an External Time Source
Setting the Primary DC - Windows Server 2003 to sync with an external time server:Open the Registry Editor (regedt32.exe) make the following changes:
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\TypeThis registry entry determines which peers W32Time will accept synchronization from.
Change this REG_SZ value from NT5DS to NTP
This configures the PDC Emulator to synchronize from the list of reliable time servers specified in the NtpServer registry entry described below.
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlagsThis registry entry controls whether the local computer is marked as a reliable time server (which is only possible if the previous registry entry is set to NTP as described above).
Change this REG_DWORD value from 10 to 5 here.
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServerThis registry entry specifies a space-delimited list of NTP servers to synchronize with. The list may consist of one or more DNS names or IP addresses (if DNS names are used then append ,0x1 to the end of each DNS name). For example, to synchronize the PDC Emulator in your forest root domain with tock.usno.navy.mil, an open-access SNTP time server run by the United States Naval Observatory, change the value of the NtpServer registry entry from time.windows.com,0x1 to tock.usno.navy.mil,0x1 here. Alternatively, you can specify the IP address of this time server, which is 192.5.41.209 instead.
See this link for a list of NIST time servers to choose from: http://tf.nist.gov/tf-cgi/servers.cgi
Now stop and restart the Windows Time service using the following commands:
net stop w32time
net start w32time
It may take an hour or so for the PDC Emulator to fully synchronize with the external time server because of the nature of the polling method W32Time uses. Depending on the latency of your Internet connection, the accuracy of the CMOS clock on your forest root PDC Emulator should be within a second or two of UTC.
Alternatively, if you don’t want to wait for time convergence to occur between your server and the external NTP server, you can run this command on your PDC:
w32tm /resync /rediscover
Boot troubles - Dual-booted -- Ubuntu installed after WinXP
Here's how I fixed it...
- Booted to Ubuntu Linux 11.10 Desktop
- Opened a Terminal session
- Installed Boot-repair
- Ran same, and took the default one-click repair option...
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update sudo apt-get install -y boot-repair && boot-repair
Boot-Repair
- Easy-to-use (repair in 1 click ! )
- Free (GPL open-source license)
- Helpful (Boot-Info summary to get help by email or on your favorite forum)
- Safe (automatic backups)
- Can recover access to Windows (XP, Vista, Seven).
- Can recover access to Debian, Ubuntu, Linux Mint...
- Can recover access to any OS (Windows, MacOS, Linux..) if your PC contains Debian, Ubuntu or derivative.
- Can repair MBR-locked OEM computer boot if the original bootsector has been saved by Clean-Ubiquity
- Can repair the boot when you have the "GRUB Recovery" error message
- Options to reinstall GRUB2 bootloader easily (OS by default, purge, unhide, kernel options..)
- and much more ! (EFI, SATA, filesystem repair...)
Using Blockquote in Drupal to highlight text...
Nevertheless, we do want the block to be styled appropriately, and Garland in particular, is lacking this feature. The Blockquote module provides this styling, especially tailored to harmonise with Garland, but can be used with any theme. RTL support is included: Make sure you are using an RTL or BIDI aware theme.These blocks of text are intended for one or more verses or paragraphs that are quoted verbatim (word for word). Separating this text into a block shows that the whole block is quoted, therefore no punctuation marks are needed to indicate the beginning or end of the quotation.
Pull Quotes
I wanted to add some CSS to my Drupal sites to provide a cool quotations look for blog posts etc. This is the module that I found that I think does a very good job. Unfortunately, I also need an option to remove the original text from the post - so that ONLY the pull quote is viewable. But that doesn't appear to be available as an option with this module. For most of the time, I really want the quote to be INLINE in the text. Any thoughts on how that could be done would be welcomed - you can comment on it here if you like... What follows is the description of the module from the drupal website at http://drupal.org/project/pullquote
A pull-quote is a quotation or excerpt from an article that is typically placed in a larger or distinctive typeface on the same page, serving to entice readers into an article or to highlight a key topic.
Without the module, authors would need to duplicate the text excerpt.
Functionality
This module automates and simplifies the use of pull-quotes for Drupal, by:
- removing the need to duplicate excerpts;
- automatically adding opening and closing quotation marks to the pull quote;
- leaving the excerpt unchanged in the body text;
- formatting the pull-quote to match your site's design, using CSS.
To use, simply place intended text excerpt inside a span tag with a class of 'pullquote'. The module then duplicates the text, adds opening and closing quotation marks and formats with an eye-catching design.
Benefits
This has several advantages:
- the avoidance of duplicated text, makes your work better with screen-readers like RSS, as there is no out of context excerpt duplication;
- it is easier for less skilled authors to create pullquotes;
- pull-quotes can be put on the opposite side, simply by adding a different CSS class; and
- if you later want to change the design of your pull-quotes, you can do so with just one simple change.
Development roadmap
- custom CSS that does not get overwritten at module upgrade
- citations to show authors name, year, source document etc
- WYSIWYG support;
- out-of-the-box styles that match popular themes selected from options page by site admins
- simpler token-based markup, for example:
[pullquote]Lorem Ipsum[/pullquote]instead of<span class="pullquote">Lorem Ipsum</span>
Credits
Thanks to:
- css-tricks.com for their inspiration;
- Sun for his code critique during development;
- lliss and callison for their invaluable coding and co-maintainer contributions.
Twitter Module Breaks if you don't upgrade to OAuth 6.x-3.0
Resetting the TCP settings in Windows 7 (& probably Vista etc.)
netsh winsock reset catalog [resets winsock] netsh int ip reset reset.log hit [resets the TCP/IP stack]Run these two at the command line, REBOOT, and (at least for me) all of my issues with VPN connection failures were GONE !
Jax Beach Technology Services