30
Sep
Posted in www by carlosap |
### UNAM 132.248.10.2 132.248.204.1 132.248.64.250 132.248.237.250
### PRODIGY 200.33.146.193 200.33.146.201 200.33.146.209 200.33.146.217
### AVANTEL 148.240.241.9 148.240.241.41
###ZONEEDIT 209.126.159.80 216.122.4.160
### REDIRIS 130.206.1.39 130.206.1.2 130.206.1.3
26
Sep
Posted in MacOSX by carlosap |
Command + Shift + 3 Completa
Command + Shift + 4 Partes
Command + Shift + 4 + Space Bar Camera
The other day, one of my coworkers called me up with this question, so I thought I would share it here. She wanted
to know if there was a Mac function similar to the Print Screen button on Windoze. In PeeCee land, for those of
you who don’t know, the Print Screen button on the keyboard copies the content of the current screen, so that it can be
pasted into a document or program for editing, printing, etc. In Mac, there is an easy key combination to achieve
the same effects and more. Simply hit the Command key (the Apple key next to the space bar), the Shift key, and
the number 3 key simultaneously. This takes a screen shot of the current screen and saves it to the Desktop as a
pdf file.
Now, if you only want to copy a segment of the screen, hit Command + Shift + 4, and the mouse cursor will change from
an arrow into cross hairs. Simply click and drag the cross hairs over the area of the screen of which you want to
take a picture. When you release the mouse button, you will hear a clicking sound reminiscent of a camera shutter
and a new file will appear on your desktop in pdf format. Most Macs these days come with a free copy of
GraphicConverter, which you can use to convert the resulting pdf
file into JPEG, GIF, PNG, or whatever image format you like the best. Have fun!
UPDATE: Dave notes in the comments: “For even MORE fun, once you use cmd + shift + 4, press the
space bar and the cursor turns into a camera. Move over any window and you can take a snapshot of JUST that window. :)”
Thanks, Dave!
’NOTHER UPDATE: DF adds, “If you add the control key to any of the OS X screenshot keyboard shortcuts, the
screenshot is copied to the clipboard instead of being saved to a file; you can then paste it into any graphics
application — such as OS X’s Preview — and save it in any format you prefer.” Thanks, DF!
26
Sep
Posted in MacOSX by carlosap |
PATH=”$PATH:/Library/Application Support/VMware Fusion”
ex 4: vmware-vdiskmanager -x 36Gb myDisk.vmdk
22
Sep
Posted in SQL Server by carlosap |
http://www.microsoft.com/sql/howtobuy/default.mspx
Note: The retail price for Microsoft SQL Server 2005 Developer Edition is $49.95. Microsoft SQL Server 2005 Developer Edition may be installed and used by one user to design, develop, test, and demonstrate your programs.
22
Sep
Posted in Blog Personal by carlosap |
Limpiando mi cuarto me encontré con este nintendo DS de los 80’s por supuesto la diversión era la misma ehh

22
Sep
Posted in Blog Personal by carlosap |
No hay Extintor ->
Después de todos los cursos de seguridad e higiene, se le ocurrió a algún alumno del tec hacer esta observación

22
Sep
Posted in SQL Server by carlosap |
While browsing the SQL Server newsgroups, every once in a while, I see a request for a script that can search all the columns of all the tables in a given database for a specific keyword. I never took such posts seriously. But then recently, one of my network administrators was troubleshooting a problem with Microsoft Operations Manager (MOM). MOM uses SQL Server for storing all the computer, alert and performance related information. He narrowed the problem down to something specific, and needed a script that can search all the MOM tables for a specific string. I had no such script handy at that time, so we ended up searching manually.
That’s when I really felt the need for such a script and came up with this stored procedure “SearchAllTables”. It accepts a search string as input parameter, goes and searches all char, varchar, nchar, nvarchar columns of all tables (only user created tables. System tables are excluded), owned by all users in the current database. Feel free to extend this procedure to search other datatypes.
The output of this stored procedure contains two columns:
- 1) The table name and column name in which the search string was found
- 2) The actual content/value of the column (Only the first 3630 characters are displayed)
Here’s a word of caution, before you go ahead and run this procedure. Though this procedure is quite quick on smaller databases, it could take hours to complete, on a large database with too many character columns and a huge number of rows. So, if you are trying to run it on a large database, be prepared to wait (I did use the locking hint NOLOCK to reduce any locking). It is efficient to use Full-Text search feature for free text searching, but it doesn’t make sense for this type of ad-hoc requirements.
Create this procedure in the required database and here is how you run it:
–To search all columns of all tables in Pubs database for the keyword “Computer”
EXEC SearchAllTables 'Computer'
GO
Here is the complete stored procedure code:
Download: searchtables.sql (1 KB)
CREATE PROC SearchAllTables
(
@SearchStr nvarchar(100)
)
AS
BEGIN
– Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.
– Purpose: To search all columns of all tables for a given search string
– Written by: Narayana Vyas Kondreddi
– Site: http://vyaskn.tripod.com
– Tested on: SQL Server 7.0 and SQL Server 2000
– Date modified: 28th July 2002 22:50 GMT
CREATE TABLE #Results (ColumnName nvarchar(370), ColumnValue nvarchar(3630))
SET NOCOUNT ON
DECLARE @TableName nvarchar(256), @ColumnName nvarchar(128), @SearchStr2 nvarchar(110)
SET @TableName = ”
SET @SearchStr2 = QUOTENAME(’%’ + @SearchStr + ‘%’,””)
WHILE @TableName IS NOT NULL
BEGIN
SET @ColumnName = ”
SET @TableName =
(
SELECT MIN(QUOTENAME(TABLE_SCHEMA) + ‘.’ + QUOTENAME(TABLE_NAME))
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = ‘BASE TABLE’
AND QUOTENAME(TABLE_SCHEMA) + ‘.’ + QUOTENAME(TABLE_NAME) > @TableName
AND OBJECTPROPERTY(
OBJECT_ID(
QUOTENAME(TABLE_SCHEMA) + ‘.’ + QUOTENAME(TABLE_NAME)
), ‘IsMSShipped’
) = 0
)
WHILE (@TableName IS NOT NULL) AND (@ColumnName IS NOT NULL)
BEGIN
SET @ColumnName =
(
SELECT MIN(QUOTENAME(COLUMN_NAME))
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = PARSENAME(@TableName, 2)
AND TABLE_NAME = PARSENAME(@TableName, 1)
AND DATA_TYPE IN (’char’, ‘varchar’, ‘nchar’, ‘nvarchar’)
AND QUOTENAME(COLUMN_NAME) > @ColumnName
)
IF @ColumnName IS NOT NULL
BEGIN
INSERT INTO #Results
EXEC
(
‘SELECT ”’ + @TableName + ‘.’ + @ColumnName + ”’, LEFT(’ + @ColumnName + ‘, 3630)
FROM ‘ + @TableName + ‘ (NOLOCK) ‘ +
‘ WHERE ‘ + @ColumnName + ‘ LIKE ‘ + @SearchStr2
)
END
END
END
SELECT ColumnName, ColumnValue FROM #Results
END
22
Sep
Posted in SQL Server by carlosap |
SQL Server es una aplicación Winsock que se comunica a través de TCP/IP utilizando la biblioteca de red de sockets. SQL Server escucha las conexiones entrantes en un puerto concreto; el puerto predeterminado para SQL Server es 1433. El puerto no tiene por qué ser el 1433, pero 1433 es el número de socket oficial de Internet Assigned Number Authority (IANA) para SQL Server.