MTV:猪头哥哥

归类于我的日志 评论关闭

非常好听的网络歌曲

继续阅读

, , , ,

有没有人曾告诉你我很爱你

归类于我的日志 评论关闭

陈楚生:有没有人曾告诉你

献给所有喜欢陈楚生的朋友们

当火车开入这座陌生的城市,
那是从来就没有见过的霓虹。
我打开离别时你送我的信件,
忽然感到无比的思念!

继续阅读

, , , ,

Windows2003终端连接超出了最大连接的原因及解决办法

归类于我的日志 评论关闭

多人管理远程服务器的同行一定遇到过当自己的电脑通过远程登录连接到远程服务器时却提示“终端连接超出了最大连接”的情况。

最近我也遇到这样的情况, 开始以为有别人已经登录,所以想过一段时间再看看,没想到,凌晨1点,出现的提示还是这样,看样子问题的原因不是我开始所想象的。

原来这是因为Windows 2003中设置了最大允许连接数限制,并且默认的最大连接数是2,由于我每次连接后没有注销而是直接关闭,导致连接数超过了最大连接数。

继续阅读

, , , , , , ,

数据库连接字符串代码大全

归类于网络技术 5 条评论

SQL Server
ODBC
Standard Security:
"Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"
Trusted connection:
"Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;"
Prompt for username and password:
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Driver={SQL Server};Server=Aron1;DataBase=pubs;"
OLE DB, OleDbConnection (.NET)
Standard Security:

"Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"
Trusted Connection:
"Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"
(use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000)
Prompt for username and password:
oConn.Provider = "sqloledb"
oConn.Properties("Prompt") = adPromptAlways
oConn.Open "Data Source=Aron1;Initial Catalog=pubs;"
Connect via an IP address:
"Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog= pubs;UserID=sa;Password=asdasd;"
(DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))
SqlConnection (.NET)
Standard Security:
"Data Source=Aron1;Initial Catalog= pubs;UserId=sa;Password=asdasd;"
  – or –
"Server=Aron1;Database=pubs;UserID=sa;Password=asdasd;Trusted_Connection=False"
  (booth connection strings produces the same result)
Trusted Connection:
"Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"
  – or -< BR>"Server=Aron1;Database=pubs;Trusted_Connection=True;"
  (booth connection strings produces the same result)
(use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000)
Connect via an IP address:
"Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog= pubs;UserID=sa;Password=asdasd;"
(DBMSSOCN=TCP/IP instead of Named Pipes, at the end of the Data Source is the port to use (1433 is the default))
Declare the SqlConnection:
C#:
using System.Data.SqlClient;
SqlConnection oSQLConn = new SqlConnection();
oSQLConn.ConnectionString="my connectionstring";
oSQLConn.Open();
VB.NET:
Imports System.Data.SqlClient
Dim oSQLConn As SqlConnection = New SqlConnection()
oSQLConn.ConnectionString="my connectionstring"
oSQLConn.Open()
Data Shape
MS Data Shape

"Provider=MSDataShape;Data Provider=SQLOLEDB;Data Source=Aron1;Initial Catalog= pubs;UserID=sa;Password=asdasd;"
Want to learn data shaping? Check out 4GuyfFromRolla's great article about Data Shaping >>
Read more
How to define wich network protocol to use
Example:
"Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog= pubs;UserID=sa;Password=asdasd;"
Name Network library
dbnmpntw Win32 Named Pipes
dbmssocn Win32 Winsock TCP/IP
dbmsspxn Win32 SPX/IPX
dbmsvinn Win32 Banyan Vines
dbmsrpcn Win32 Multi-Protocol (Windows RPC)
Important note!
When connecting through the SQLOLEDB provider use the syntax Network Library=dbmssocn
and when connecting through MSDASQL provider use the syntax Network=dbmssocn
All SqlConnection connectionstring properties
This table shows all connectionstring properties for the ADO.NET SqlConnection object. Most of the properties are also used in ADO. All properties and descriptions is from msdn.
Name Default Description
Application Name   The name of the application, or '.Net SqlClient Data Provider' if no application name is provided.
AttachDBFilename
-or-
extended properties
-or-
Initial File Name   The name of the primary file, including the full path name, of an attachable database. The database name must be specified with the keyword 'database'.
Connect Timeout
-or-
Connection Timeout 15 The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.
Connection Lifetime 0 When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by connection lifetime. Useful in clustered configurations to force load balancing between a running server and a server just brought on-line.
Connection Reset 'true' Determines whether the database connection is reset when being removed from the pool. Setting to 'false' avoids making an additional server round-trip when obtaining a connection, but the programmer must be aware that the connection state is not being reset.
Current Language   The SQL Server Language record name.
Data Source
-or-
Server
-or-
Address
-or-
Addr
-or-
Network Address   The name or network address of the instance of SQL Server to which to connect.
Enlist 'true' When true, the pooler automatically enlists the connection in the creation thread's current transaction context.
Initial Catalog
-or-
Database   The name of the database.
Integrated Security
-or-
Trusted_Connection 'false' Whether the connection is to be a secure connection or not. Recognized values are 'true', 'false', and 'sspi', which is equivalent to 'true'.
Max Pool Size 100 The maximum number of connections allowed in the pool.
Min Pool Size 0 The minimum number of connections allowed in the pool.
Network Library
-or-
Net 'dbmssocn' The network library used to establish a connection to an instance of SQL Server. Supported values include dbnmpntw (Named Pipes), dbmsrpcn (Multiprotocol), dbmsadsn (Apple Talk), dbmsgnet (VIA), dbmsipcn (Shared Memory) and dbmsspxn (IPX/SPX), and dbmssocn (TCP/IP).
The corresponding network DLL must be installed on the system to which you connect. If you do not specify a network and you use a local server (for example, "." or "(local)"), shared memory is used.
Packet Size 8192 Size in bytes of the network packets used to communicate with an instance of SQL Server.
Password
-or-
Pwd   The password for the SQL Server account logging on.
Persist Security Info 'false' When set to 'false', security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state. Resetting the connection string resets all connection string values including the password.
Pooling 'true' When true, the SQLConnection object is drawn from the appropriate pool, or if necessary, is created and added to the appropriate pool.
User ID   The SQL Server login account.
Workstation ID the local computer name The name of the workstation connecting to SQL Server.
Note
Use ; to separate each property.
If a name occurs more than once, the value from the last one in the connectionstring will be used.
If you are building your connectionstring in your app using values from user input fields, make sure the user can't change the connectionstring by inserting an additional property with another value within the user value.
Access
ODBC

Standard Security:
"Driver={ Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;"
Workgroup:
"Driver={ Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;SystemDB=C:\mydatabase.mdw;"
Exclusive:
"Driver={ Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Exclusive=1;Uid=admin;Pwd="
OLE DB, OleDbConnection (.NET)
Standard security:
"Provider= Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User Id=admin;Password=;"
Workgroup (system database):
"Provider= Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:System Database=system.mdw;"
With password:
"Provider= Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"
Oracle
ODBC

New version:
"Driver={ Microsoft ODBC for oracle};Server=OracleServer.world;Uid=Username;Pwd=asdasd;"
Old version:
"Driver={ Microsoft ODBC Driver for oracle};ConnectString=OracleServer.world;Uid=myUsername;Pwd=myPassword;"
OLE DB, OleDbConnection (.NET)
Standard security:
"Provider=msdaora;Data Source= MyOracleDB;UserId=UserName;Password=asdasd;"
This one's from Microsoft, the following are from oracle
Standard Security:
"Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=Username;Password=asdasd;"
Trusted Connection:
"Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;OSAuthent=1;"
OracleConnection (.NET)
Standard:

"Data Source=Oracle8i;Integrated Security=yes";
This one works only with oracle 8i release 3 or later
Declare the oracleConnection:
C#:
using System.Data.OracleClient;
OracleConnection oOracleConn = new oracleConnection();
oOracleConn.ConnectionString = "my connectionstring";
oOracleConn.Open();
VB.NET:
Imports System.Data.OracleClient
Dim oOracleConn As oracleConnection = New oracleConnection()
oOracleConn.ConnectionString = "my connectionstring"
oOracleConn.Open()
Core Labs oraDirect (.NET)
Standard:
"User ID=scott; Password=tiger; Host=ora; Pooling=true; Min Pool Size=0;Max Pool Size=100; Connection Lifetime=0"
Read more at Core Lab and the product page.
Data Shape
MS Data Shape:

"Provider=MSDataShape.1;Persist Security Info=False;Data Provider=MSDAORA;Data Source= orac;userid=username;password=mypw"
Want to learn data shaping? Check out 4GuyfFromRolla's great article about Data Shaping >>
MySQL
ODBC

Local database:
"Driver={mySQL};Server=mySrvName;Option=16834;Database=mydatabase;"
Remote database:
"Driver={mySQL};Server=data.domain.com;Port=3306;Option=131072;Stmt=;Database=my-database;Uid=username;Pwd=password;"
OLE DB, OleDbConnection (.NET)
Standard:
"Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd;"
MySqlConnection (.NET)
eInfoDesigns.dbProvider:

"DataSource=server;Database= mydb;UserID=username;Password=pwd;Command Logging=false"
This one is used with eInfoDesigns dbProvider, an add-on to .NET
Declare the MySqlConnection:
C#:
using eInfoDesigns.dbProvider.MySqlClient;
MySqlConnection oMySqlConn = new MySqlConnection();
oMySqlConn.ConnectionString = "my connectionstring";
oMySqlConn.Open();
VB.NET:
Imports eInfoDesigns.dbProvider.MySqlClient
Dim oMySqlConn As MySqlConnection = New MySqlConnection()
oMySqlConn.ConnectionString = "my connectionstring"
oMySqlConn.Open()
SevenObjects MySqlClient (.NET)
Standard:
"Host=server; UserName= myusername;Password=mypassword;Database=mydb;"
This is a freeware ADO.Net data provider from SevenObjects
Core Labs MySQLDirect (.NET)
Standard:
"User ID=root; Password=pwd; Host=localhost; Port= 3306;Database=test;Direct=true; Protocol=TCP; Compress=false; Pooling=true; Min Pool Size=0;Max Pool Size=100; Connection Lifetime=0"
Read more at Core Lab and the product page.
Interbase
ODBC, Easysoft
Local computer:

"Driver={Easysoft IB6 ODBC};Server=localhost;Database=localhost:C:\mydatabase.gdb;Uid=username;Pwd=password"
Remote Computer:
< DIV> "Driver={EasysoftIB6ODBC};Server=ComputerName;Database=ComputerName:C:\mydatabase.gdb;Uid=username;Pwd=password"
Read more about this driver: Easysoft ODBC-Interbase driver >>
ODBC, Intersolv
Local computer:

"Driver={INTERSOLV InterBase ODBC Driver (*.gdb)};Server=localhost;Database=localhost:C:\mydatabase.gdb;Uid=username;Pwd=password"
Remote Computer:
"Driver= {INTERSOLV InterBaseODBCDriver(*.gdb)};Server=ComputerName;Database=ComputerName:C:\mydatabase.gdb;Uid=username;Pwd=password"
This driver are provided by DataDirect Technologies >> (formerly Intersolv)
OLE DB, SIBPROvider
Standard:

"provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey"
Specifying character set:
"provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;user id=SYSDBA;password=masterkey;character set=ISO8859_1"
Specifying role:
"provider=sibprovider;location=localhost:;data source=c:\databases\gdbs\mygdb.gdb;userid=SYSDBA;password=masterkey;role=DIGITADORES"
Read more about SIBPROvider >>
Read more about connecting to Interbase in this Borland Developer Network article http://community.borland.com/article/0,1410,27152,00.html">http://community.borland.com/article/0,1410,27152,00.html
IBM DB2
OLE DB, OleDbConnection (.NET) from ms
TCP/IP:
"Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=XXX.XXX.XXX.XXX;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema;User I
D=MyUser;Password=MyPW"
APPC:
"Provider=DB2OLEDB;APPC Local LU Alias=MyAlias;APPC Remote LU Alias=MyRemote;Initial Catalog=MyCtlg;Package Collection=MyPkgCol;Default Schema=Schema;User ID=MyUser;Password=MyPW"
Sybase
ODBC
Standard Sybase System 12 (or 12.5) Enterprise Open Client:

"Driver={SYBASE ASE ODBC Driver};Srvr=Aron1;Uid=username;Pwd=password"
Standard Sybase System 11:
"Driver= {SYBASESYSTEM11};Srvr=Aron1;Uid=username;Pwd=password;"
Do you know a userguide for Sybase System 11, 12, 12.5? E-mail the URL to connectionstrings.com now!! >>
Intersolv 3.10:
"Driver={INTERSOLV 3.10 32-BIT Sybase};Srvr=Aron1;Uid=username;Pwd=password;"
Sybase SQL Anywhere (former Watcom SQL ODBC driver):
"ODBC; Driver= SybaseSQLAnywhere5.0;DefaultDir=c:\dbfolder\;Dbf=c:\mydatabase.db;Uid=username;Pwd=password;Dsn="""""
Note! The two double quota following the DSN parameter at the end are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax. The empty DSN parameter is indeed critical as not including it will result in error 7778.
Read more in the Sybase SQL Anywhere User Guide >>
OLE DB
Adaptive Server Anywhere (ASA):
"Provider=ASAProv;Data source=myASA"
Read more in the ASA User Guide >>
Adaptive Server Enterprise (ASE) with Data Source .IDS file:
"Provider=Sybase ASE OLE DB Provider; Data source=myASE"
Note that you must create a Data Source .IDS file using the Sybase Data Administrator. These .IDS files resemble ODBC DSNs.
Adaptive Server Enterprise (ASE):
< DIV>"Provider=Sybase.ASEOLEDBProvider;Srvr=myASEserver,5000;Catalog= myDBname;UserId=username;Password=password"
  – some reports on problem using the above one, try the following as an alternative -
"Provider=Sybase.ASEOLEDBProvider;Server Name=myASEserver,5000;Initial Catalog= myDBname;UserId=username;Password=password"
This one works only from Open Client 12.5 where the server port number feature works,燼llowing fully qualified connection strings to be used without defining燼ny .IDS Data Source files.
Informix
ODBC
Informix 3.30:

"Dsn='';Driver={INFORMIX 3.30 32 BIT};Host=hostname;Server=myserver;Service=service-name;Protocol=olsoctcp;Database=mydb;UID=username;PWD=myPwd
Informix-CLI 2.5:
"Driver={Informix-CLI 2.5 (32 Bit)};Server=myserver;Database=mydb;Uid=username;Pwd=myPwd"
OLE DB
IBM Informix OLE DB Provider:

"Provider=Ifxoledbc.2;password=myPw;User ID=myUser;Data Source=dbName@serverName;Persist Security Info=true"
Mimer SQL
ODBC

Standard Security:
"Driver={MIMER};Database=mydb;Uid=myuser;Pwd=mypw;"
Prompt for username and password:
"Driver={MIMER};Database=mydb;"
PostgreSQL
Core Labs PostgreSQLDirect (.NET)
Standard:

"User ID=root; Password=pwd; Host=localhost; Port= 5432;Database=testdb;Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0"
Read more at Core Lab and the product page.
DSN
ODBC
DSN:

"DSN=myDsn;Uid=username;Pwd=;"
File DSN:
"FILEDSN=c:\myData.dsn;Uid=username;Pwd=;"
Excel
ODBC
Standard:

"Driver={ Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=C:\MyExcel.xls;DefaultDir=c:\mypath;"
OLE DB
Standard:

"Provider= Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
"HDR=Yes;" indicates that the first row contains columnnames, not data
"IMEX=1;" tells the driver to always read "intermixed" data columns as text
TIP! SQL syntax: "Select * FROM [sheet1$]" – i.e. worksheet name followed by a "$" and wrapped in "[" "]" brackets.
Text
ODBC
Standard:

"Driver={ Microsoft Text Driver (*.txt; *.csv)};Dbq=c:\txtFilesFolder\;Extensions=asc,csv,tab,txt;"
OLE DB
Standard:

< DIV> "Provider= Microsoft.Jet.OLEDB.4.0;Data Source=c:\txtFilesFolder\;ExtendedProperties=""text;HDR=Yes;FMT=Delimited"""
"HDR=Yes;" indicates that the first row contains columnnames, not data
DBF / FoxPro
ODBC
standard:

"Driver={ Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\mydbpath;"
OLE DB, OleDbConnection (.NET)
standard:

"Provider= Microsoft.Jet.OLEDB.4.0;Data Source=c:\folder;Extended Properties=dBASE IV;User ID=Admin;Password="
Visual FoxPro
OLE DB, OleDbConnection (.NET)
Database container (.DBC):

"Provider=vfpoledb.1;Data Source=C:\MyDbFolder\MyDbContainer.dbc;Password=MyPassWord;Collating Sequence=machine"
Free table directory:
"Provider=vfpoledb.1;Data Source=C:\MyDataDirectory\;Password=MyPassWord;Collating Sequence=general"
Read more ( Microsoft msdn) >>
ODBC
Database container (.DBC):
"Driver={ Microsoft Visual FoxPro Driver};SourceType=DBC;SourceDB=c:\myvfpdb.dbc;Exclusive=No;Collate=Machine;"
Free Table directory:
"Driver= { MicrosoftVisualFoxProDriver};SourceType=DBF;SourceDB=c:\myvfpdbfolder;Exclusive=No;Collate=Machine;"
"Collate=Machine" is the default setting, for other settings check the list of supported collating sequences >>
Microsoft Visual Foxpro site: http://msdn.microsoft.com/vfoxpro">http://msdn.microsoft.com/vfoxpro
Pervasive
ODBC
Standard:

>"Driver= {Pervasive ODBC ClientInterface};ServerName=srvname;dbq=@dbname"
Pervasive ODBC info >>
OLE DB
Standard:

"Provider=PervasiveOLEDB;Data Source=C:\path"
Pervasive OLE DB info >>
UDL
UDL
UDL:
"File Name=c:\myDataLink.udl;"

]]>

, , , , ,

数据库导入导出命令

归类于网络技术 评论关闭

1、Mysql数据库导出导入命令:
zxwdb数据库名,zxwdb.sql语句

运行>cmd
c:\>cd mysql/bin/
导出:C:\mysql\bin>mysqldump -u root -p -h 192.168.15.22 zxwdb> d:\zxwdb.sql
导入:C:\mysql\bin>mysql -u root -p -h 192.168.15.22 zxwdb < d:\zxwdb.sql

2、Oracle数据库导入导出命令:
导出:D:\oracle\product\10.1.0\Db_1\BIN>exp cpa/cpa@cpa owner=方案名 file=d:\a.dmp  log=d:\a.log


导入:D:\oracle\product\10.1.0\Db_1\BIN>imp cpa/cpa@cpa file=d:\zxwdb.sql log=d:\a.log
 full=y

]]>

, , , , ,

职业生涯十二个最致命的想法

归类于经典阅读 评论关闭

    1、总觉得自己不够好


  这种人虽然聪明、有历练,但是一旦被提拔,反而毫无自信,觉得自己不胜任。此外,他没有往上爬的野心,总觉得自己的职位已经太高,或许低一两级可能还比较适合。


  这种自我破坏与自我限制的行为,有时候是无意识的。


  但是,身为企业中、高级主管,这种无意识的行为却会让企业付出很大的代价。


    2、非黑即白看世界


  这种人眼中的世界非黑即白。他们相信,一切事物都应该像有标准答案的考试一样,客观地评定优劣。他们总是觉得自己在捍卫信念、坚持原则。但是,这些原则,别人可能完全不以为意。结果,这种人总是孤军奋战,常打败仗。


    3、无止境地追求卓越


  这种人要求自己是英雄,也严格要求别人达到他的水准。在工作上,他们要求自己与部属“更多、更快、更好”。结果,部属被拖得精疲力竭,纷纷“跳船求生”,留下来的人则更累。结果离职率节节升高,造成企业的负担。


  这种人适合独立工作,如果当主管,必须雇用一位专门人员,当他对部属要求太多时,大胆不讳地提醒他。


    4、无条件地回避冲突


  这种人一般会不惜一切代价,避免冲突。其实,不同意见与冲突,反而可以激发活力与创造力。一位本来应当为部属据理力争的主管,为了回避冲突,可能被部属或其他部门看扁。为了维持和平,他们压抑感情,结果,他们严重缺乏面对冲突、解决冲突的能力。到最后,这种解决冲突的无能,蔓延到婚姻、亲子、手足与友谊关系。


    5、强横压制反对者


  他们言行强硬,毫不留情,就像一部推土机,凡阻挡去路者,一律铲平,因为横冲直撞,攻击性过强,不懂得绕道的技巧,结果可能伤害到自己的事业生涯。


    6、天生喜欢引人侧目


  这种人为了某种理想,奋斗不懈。在稳定的社会或企业中,他们总是很快表明立场,觉得妥协就是屈辱,如果没有人注意他,他们会变本加厉,直到有人注意为止。  
    7、过度自信,急于成功


  这种人过度自信,急于成功。他们不切实际,找工作时,不是龙头企业则免谈,否则就自立门户。进入大企业工作,他们大多自告奋勇,要求负责超过自己能力的工作。结果任务未达成,仍不会停止挥棒,反而想用更高的功绩来弥补之前的承诺,结果成了常败将军。


  这种人大多是心理上缺乏肯定,必须找出心理根源,才能停止不断想挥棒的行为。除此之外,也必须强制自己“不作为,不行动”。


    8、被困难“绳捆索绑”


  他们是典型的悲观论者,喜欢杞人忧天。采取行动之前,他会想像一切负面的结果,感到焦虑不安。这种人担任主管,会遇事拖延,按兵不动。因为太在意羞愧感,甚至担心部属会出状况,让他难堪。


  这种人必须训练自己,在考虑任何事情时,必须控制心中的恐惧,让自己变得更有行动力。职场中最有效地生存法!


    9、疏于换位思考


  这种人完全不了解人性,很难了解恐惧、爱、愤怒、贪婪及怜悯等情绪。他们在通电话时,通常连招呼都不打,直接切入正题,缺乏将心比心的能力,他们想把情绪因素排除在决策过程之外。


  这种人必须为自己做一次“情绪稽查”,了解自己对哪些感觉较敏感;问朋友或同事,是否发现你忽略别人的感受,搜集自己行为模式的实际案例,重新演练整个情境,改变行为。


    10、不懂装懂


  工作中那种不懂装懂的人,喜欢说:“这些工作真无聊。”但他们内心的真正感觉是:“我做不好任何工作。”他们希望年纪轻轻就功成名就,但是他们又不喜欢学习、求助或征询意见,因为这样会被人以为他们“不胜任”,所以他们只好装懂。而且,他们要求完美却又严重拖延,导致工作严重瘫痪。


    11、管不住嘴巴


  有的人往往不知道,有些话题可以公开交谈,而有些内容是只能私下说。这些人通常都是好人,没有心机,但在讲究组织层级的企业,这种管不住嘴巴的人,只会断送事业生涯。


  他们必须随时为自己竖立警告标示,提醒自己什么可以说,什么不能说。什么样的MM最好找工作。


    12.我的路到底对不对?


  这种人总是觉得自己失去了职业生涯的方向。“我走的路到底对不对?”他们总是这样怀疑。他们觉得自己的角色可有可无,跟不上别人,也没有归属感。

]]>

, , ,

AJAX多级联动菜单完整源代码

归类于网络技术 评论关闭

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html><head><title>AJAX多级联动菜单</title>
<meta name=”GENERATOR” content=”<a href=”http://www.microsoft.com/china/homepage/ms.htm” target=”_blank”><img src=”http://www.zuoxinwu.com/images/keywords/microsoft.gif” border=”0″ alt=”" /> Microsoft</a> FrontPage 4.0″>
<meta name=”ProgId” content=”FrontPage.Editor.Document”>
<meta name=”Originator” content=”<a href=”http://www.microsoft.com/china/homepage/ms.htm” target=”_blank”><img src=”http://www.zuoxinwu.com/images/keywords/microsoft.gif” border=”0″ alt=”" /> Microsoft</a> Visual Studio .NET 7.1″>

继续阅读

, , , , , ,

使用PHP维护文件系统的核心代码

归类于网络技术 评论关闭

PHP有很多与文件系统相关的函数,不仅可以帮助你打开文件,还可以显示目录内容、移动文件等。很多人甚至使用PHP写出了基于Web的文件管理器。


首先需要提醒一些关于文件路径的东西:在Windows你可以在文件路径中使用斜线“/”或反斜线“\”,而其他操作系统仅使用”/”。出于兼容性考虑,以下实例使用“/”的表示方法:


下面的简单脚本显示了一个基本的目录列表。注释在代码中并解释了每一步:
<? /* 在变量 $dir_name中给出希望访问的目录完整路径*/


$dir_name = "/usr/local/apache/htdocs/";


/* 创建句柄,打开给定目录的结果*/


$dir = opendir($dir_name);


/* 启动一段文本添加到将要放置列表元素(文件名)的地方 */


$file_list = "<ul>";


/* 使用while语句,读取所打开目录的所有元素。如果文件名既非“.”及“..”则在列表中输出文件名*/


while ($file_name = readdir($dir)) {


if (($file_name != ".") && ($file_name != "..")) {


$file_list .= "<li>$file_name";


}


}


/* 终结列表 */


$file_list .= "</ul>";


/* 关闭打开的目录句柄并结束PHP代码段*/
closedir($dir);
?>


<!– Start your HTML –>


<HTML>


<HEAD>


<TITLE>Directory Listing</TITLE>


</HEAD>


<BODY>


<!– Use PHP to print the name of the directory you read –>


<P>Files in: <? echo "$dir_name"; ?></p>


<!– Use PHP to print the directory listing –>


<? echo "$file_list"; ?>


</BODY>


</HTML>


<? /* 将需要复制的文件路径放入变量$original,复制的目标路径放入变量$copied */


$original = "/usr/local/apache/htdocs/css/default.css";


$copied = "/usr/local/apache/htdocs/test.css";


/* 使用函数copy() 复制源文件至目的地,或以输出错误信息结束*/


@copy($original, $copied) or die("Couldn't copy file.");


?>

]]>

, , , , ,

周末踢球记

归类于我的日志 评论关闭

今天下午和公司的同事一起去踢足球,烈日曝晒,汗流不止,但非常舒服。好久没有踢足球了,大学毕业三年了,踢足球的条件几乎可以说没有,而且,也没有什么朋友可以一起踢球。

在新的公司,终于发现原来有这么多喜欢踢足球的朋友。今天是我第一次参加应该说已经组建很长时间的拓思足球队的比赛了。

今天我没有进球,但是我想那应该是迟早的事情,为了保持良好的工作状态,保证工作效率,业余时间的锻炼是非常必要的,也不要放弃自己一直以来的爱好。多一些有共同爱好的朋友,也非常不错。

踢完球之后竟然还有大餐吃,真好!

以后踢球要更卖力一点,当然,水平和状态也要抓紧恢复并提升。既能锻炼自己,也能交到一些朋友,何乐而不为呢?

, , , ,

美工设计工作经验

归类于网站优化 评论关闭

1.提案。


一个有经验的设计师,在给客户交稿时,至少会准备三种设计供他选择。
第一:100%自已喜欢的风格,把自我发挥到极至。
第二:50%自己喜欢,50%客户喜欢的风格,各让一半,互相妥协。
第三:0%自己喜欢,完全从客户的要求出发,放弃自己的风格。


有上述三种准备,交稿时,你往往过的会很从容。 没有经验的新手,只给客户一个提案。
你很喜欢,客户不喜欢,观点不同谈不拢,怎么办?找第三者来评价,他通常会顺着客户的方向说,也否定你,这样,2比1,老板说你做的东西不好,打回去重做,当时间紧时,不好的就硬上了,但是老板并不高兴(用了不喜欢的东西),你也不高兴(虽然你用了我做的,但是你仍然不认可它。)双方都很痛苦。
2.坚持。


这个性格是做美编最不需要的特质,但你需要去努力争取,当你努力与客户,与老板沟通后。人家仍然不喜欢时,就应立刻放弃已有的创意,从头再来,坚持是没有用的,因为你不是奥美的名设计师,不是大师,你坚持是没有用的。


3.美工or设计师。


是做一个拼图的美工,还是一个美术设计师。两者差异很大,一个是工人,用手(体力劳动者),一个是智者,用脑创造(脑力劳动者)。
二流的美工只会堆效果,而好的设计师,通常只用最简单的手法。


4.一个有经验的美编,在接活时,通常要问几个问题。


第一:做什么用(海报,易拉宝,书籍)
第二:以什么为主题,要突出什么重点,更多了解产品信息(什么年龄的人消费,在同类产品中的地位,以什么为传播媒介)
第三:要明确,客户可以提供什么资料(比如logo,等必要因素),要明确要自己额外找哪些素材,可以适合产品的背景。
第三:什么交稿(这是最重要的问题)
在做之前的准备工作,比上机动手要重要很多,就像走错了方向,走的再远也是白费。


5.老板要求你三天交稿时。


通常老板要求你三天交稿时,你可以只给他70分的作品。如果你说,老板,我三天做不完,要四天做完。那么第四天,老板要看到的是85分的作品。


6.你的特长是什么?(当老板问美编)


当老板这样问你时,你怎么回答?我说网页。
老板笑了说,这就好比我问你爱吃什么?你答,食物。
我又问什么食物?你答,中国菜。我还是不知道你爱吃什么。
你如果直说,爱吃辣的,水煮鱼,麻婆豆腐……那我就一下子知道你爱吃什么了。
回到原题,特长是风格的问题。
你可以说,我擅长做卡通的风格,现代的风格,传统的风格……


7.聪明的面试者。


曾有一个人来面试美编,他准备了把他的作品分成了两类,他喜欢的(代表了他的风格);他做过的(代表了他的水平) ,美编是个很主观的工作,说好就好,说不好就不好,对于作品,没有衡量的标准。


8.做了半年的美编,我烦了,想转行。


在学校时曾经很喜欢这行,梦想就是做在办公室里,每天设计东西,每天都是不一样的。
可是自己从工作以后,越来越烦了,甚至一坐到电脑前,心就开始烦。 老板说,知道为什么吗?因为上学时没人骂你,到公司以后,人家都说你做的东西不行,没有认同,缺乏成就感,所以你烦了。
我说,我怕做这行做到一定时候会有瓶颈,没有大发展。
老板说,做每一行都会遇到瓶颈,只是别的行你还没做过,还没发现,所以你就觉得美编是最痛苦的职业了。
我说,我不喜欢每天只是做在电脑前面。一天不动。
老板说,谁让你一天做在哪里?是你自己,你可以在做之前画个草稿,拿着草稿跟你的老板,客户去沟通,不要急着在电脑上定稿,这就是一个互动的过程!


9.一个美编的职业道路。


a:毕业后先进专业性的大广告公司,开拓眼界,积累经验,找个高人(可能带你的人),或可以向重多的优秀同事学习。
b:然后到非专业的公司,做专业性的工作或部门经理。
c:最后自己跳出来,独立门户,自己接活。(客源是个问题,开始自己带来一些客源,专心设计,客户满意,后来为了多挣些钱,把生产跟印刷都包下来了,分散了太多的精力,导致设计水平下降了,客户不满意,把客户做死,没活了……)
d:最后没办法,只好再从公司做起,现在就可以做到大公司的创意总监。


10.人的一生,需要一个导师。


这个人需要具备两个条件。
A:年龄一定要比你大。
B:事业上一定要有所成就。
(有了上述这两点时,是不是同一个领域的,就都无所谓了。)
当你把你工作上的难题向你的同学倾诉时,他们通常会说(老板都一样的,没事,走,晚上一起唱歌去吧。)对你不会有任何的帮助。
而一个好老师需要好学生,好学生需要问好的问题。
我问你想要什么?怎么得到……这样答案都是自己给的。


11.对未知的事物或人,不要忙着拒绝。


摘自:http://bbs.blueidea.com/thread-2709382-1-1.html">http://bbs.blueidea.com/thread-2709382-1-1.html

]]>

, , , , , , ,

顶部