check for yourself right here:
http://ark.intel.com/VTList.aspx
my other side: ivo.blogspot.com
Whenever you find .Scale(x) dimensions
TextBox1.ScaleTop TextBox1.ScaleLeft TextBox1.ScaleHeight TextBox1.ScaleWidth
simply change it into .ClientRectangle.(x) form
TextBox1.ClientRectangle.Top TextBox1.ClientRectangle.Left TextBox1.ClientRectangle.Height TextBox1.ClientRectangle.Width
Hope it helps.
my other side: ivo.blogspot.com
Option Explicit Private Type SYSTEMTIME '16 Bytes wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMilliseconds As Integer End Type Private Declare Sub GetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Usage:
Dim NowTime As SYSTEMTIME Dim sYear, sMonth, sDayOfWeek, sDay, sHour, sMinute, sSecond, sMilliseconds As String GetSystemTime NowTime sYear = Format(NowTime.wYear, "0000") sMonth = Format(NowTime.wMonth, "00") sDay = Format(NowTime.wDay, "00") sHour = Format(NowTime.wHour, "00") 'wHour - or + X depends local timezone sMinute = Format(NowTime.wMinute, "00") sSecond = Format(NowTime.wSecond, "00") sMilliseconds = Format(NowTime.wMilliseconds, "000")
my other side: ivo.blogspot.com
Torrent sharing site The Pirate Bay has been taken offline by its primary ISP – Black Internet.
According to a decision by the Stockholm District Court to the ISP Black Internet to stop supplying capacity to the Pirate Bay, or risk a penalty of 500,000 Swedish kronor (£43,000/$71,000).
“We received the decision on penalty just after lunch and turned the capacity just before three approximately. There are laws and rules in society and should be followed. What we like it here and how we act in the future, we have not decided yet, “says Black Internet’s CEO Victor Moller to DN.se.
Former spokesperson for the site Peter Sunde has been tweeting: “A Swedish court apparantly decided it is illegal to be an ISP”, following that up with “it’s a scandal as usual of course”.
black Internet is not the only company that sells capacity to Pirate Bay, but Victor Moller says that it is all that now threatened with the penalty. He assumes that Black Internet is the largest supplier to the Pirate Bay.
“They will be able to redirect and get the capacity from elsewhere, but of course it takes some time,” says Victor Moller.
update: it’s up again!
my other side: ivo.blogspot.com
The case of Sergey Aleynikov, the former Goldman Sachs programmer charged with stealing some of the top secret code to the investment bank’s high-frequency trading program, is going on the offensive.
UPDATE: Just got a copy of Goldman’s motion and it appears much of what Aleynikov wants are personnel records regarding ”performance reviews by peers and superiors, complaints, employee progress reports, training history records” etc.
Goldman says Aleynikov’s request should be denied because the “crux of the complaint is an allegation of theft, not an employment or wage dispute.”
UPDATE 2.0: Goldman smackdown, courtesy of Judge Crotty, who gave a pretty hard time to Goldman’s lawyer in court. Aleynikov got access to his personnel file, as requested, and Goldman got nothing. I guess Goldman doesn’t win all the time.
Read the full article on Reuters blog
Read more about What Sergey really do at Goldman
UPDATE:
Goldman Sachs strikes back.
Aleynikov was sentenced to eight years in federal prison.
Michael Lewis: Did Goldman Sachs Overstep in Criminally Charging Its Ex-Programmer?
my other side: ivo.blogspot.com
Jeff Moser wrote a very interesting blog post on how the HTTPS connection works.
Excerpts:
In the 220 milliseconds that flew by, a lot of interesting stuff happened to make Firefox change the address bar color and put a lock in the lower right corner. With the help of Wireshark, my favorite network tool, and a slightly modified debug build of Firefox, we can see exactly what’s going on.
By agreement of RFC 2818, Firefox knew that “https” meant it should connect to port 443 at Amazon.com:
Most people associate HTTPS with SSL (Secure Sockets Layer) which was created by Netscape in the mid 90’s. This is becoming less true over time. As Netscape lost market share, SSL’s maintenance moved to the Internet Engineering Task Force (IETF). The first post-Netscape version was re-branded as Transport Layer Security (TLS) 1.0 which was released in January 1999. It’s rare to see true “SSL” traffic given that TLS has been around for 10 years.
Here’s the link to the full article:
The First Few Milliseconds of an HTTPS Connection
my other side: ivo.blogspot.com
There were times when AfxMessageBox freezes my background process thread (socket communication, etc.) Here’s what I wrote as a quick and dirty solution. Put it in your StdAfx.h
You can refine it if you like.
//////////////////////////////////////////////////////////////////////////
// ivo setyadi [12/10/2008 Development]
// a simple (or semi) modeless AfxMessageBox using MFC thread
// usage:
// CMy my;
// my.ModelessBox("your message");
class CMy
{
public:
void ModelessBox( CString str)
{
char *buffer=new char[256];
lstrcpy(buffer,str);
AfxBeginThread(showMessage, (LPVOID *) buffer, THREAD_PRIORITY_NORMAL) ;
}
static UINT showMessage(LPVOID lParam)
{
if(lParam == NULL)
AfxEndThread(NULL);
char *pStr = (char *) lParam;
AfxMessageBox(pStr);
delete pStr; // don't forget
return TRUE;
}
};
There.
my other side: ivo.blogspot.com
How to catch an OnMouseLeave event? Using TrackMouseEvent.
Here’s what I did:
in the CNewsBar .h
class CNewsBar : public CToolbar
{
protected:
BOOL m_bTraceMouse;
afx_msg LRESULT OnMouseLeave(WPARAM wParam, LPARAM lParam);
};
in the CNewsBar .cpp
BEGIN_MESSAGE_MAP(CNewsBar , CToolBar)
ON_WM_MOUSEMOVE()
ON_MESSAGE(WM_MOUSELEAVE, OnMouseLeave)
END_MESSAGE_MAP()
CNewsBar ::CNewsBar ()
{
m_bTraceMouse = FALSE;
}
void CNewsBar ::OnMouseMove(UINT nFlags, CPoint point)
{
if (!m_bTraceMouse)
{
TRACKMOUSEEVENT tme;
tme.cbSize = sizeof(TRACKMOUSEEVENT);
tme.dwFlags = TME_LEAVE;
tme.hwndTrack = this->m_hWnd;
if (::_TrackMouseEvent(&tme))
{
m_bTraceMouse = TRUE;
}
}
CToolBar::OnMouseMove(nFlags, point);
}
LRESULT CNewsBar ::OnMouseLeave(WPARAM wParam, LPARAM lParam)
{
m_bTraceMouse = FALSE;
return TRUE;
}
my other side: ivo.blogspot.com
Some interesting C problems 🙂
It’s on Gowri Kumar’s page.
Here’s one of the problem:
The following C program segfaults of IA-64, but works fine on IA-32.
int main()
{
int* p;
p = (int*)malloc(sizeof(int));
*p = 10;
return 0;
}
Why does it happen so?
Check out the full article here:
http://www.gowrikumar.com/c/index.html
my other side: ivo.blogspot.com
Sun Makes Java a Free, Open-Source Platform
By Christopher Lawton and Don Clark
Word Count: 757 | Companies Featured in This Article: Sun Microsystems, Microsoft, International Business Machines, Hewlett-Packard
Sun Microsystems Inc. has decided to make its Java software available on an open-source basis, part of the company’s effort to keep current with a technology trend that has changed how programs are written and distributed. The computer maker, significantly, plans to use a licensing scheme that open-source proponents favor. The move by Sun, of Santa Clara, Calif., could make it easier for Java to be distributed along with the Linux operating system and other popular open-source products.
Java is a programming language widely used in electronics, including for smart cards and cellphones. But the software has been eclipsed for …
• THE FULL WSJ.com ARTICLE IS ONLY AVAILABLE TO SUBSCRIBERS.
• IF YOU ARE ALREADY A SUBSCRIBER, PLEASE LOG IN AT THE TOP RIGHT OF THE PAGE.
my other side: ivo.blogspot.com