Archives for : Technology

Could Eating Peppers Prevent Parkinson’s? Dietary Nicotine May Hold Protective Key

May 9, 2013 — New research reveals that Solanaceae — a flowering plant family with some species producing foods that are edible sources of nicotine — may provide a protective effect against Parkinson’s disease. The study appearing today inAnnals of Neurology, a journal of the American Neurological Association and Child Neurology Society, suggests that eating foods that contain even a small amount of nicotine, such as peppers and tomatoes, may reduce risk of developing Parkinson’s.

 Parkinson’s disease is a movement disorder caused by a loss of brain cells that produce dopamine. Symptoms include facial, hand, arm, and leg tremors, stiffness in the limbs, loss of balance, and slower overall movement. Nearly one million Americans have Parkinson’s, with 60,000 new cases diagnosed in the U.S. each year, and up to ten million individuals worldwide live with this disease according to the Parkinson’s Disease Foundation. Currently, there is no cure for Parkinson’s, but symptoms are treated with medications and procedures such as deep brain stimulation.

Previous studies have found that cigarette smoking and other forms of tobacco, also a Solanaceae plant, reduced relative risk of Parkinson’s disease. However, experts have not confirmed if nicotine or other components in tobacco provide a protective effect, or if people who develop Parkinson’s disease are simply less apt to use tobacco because of differences in the brain that occur early in the disease process, long before diagnosis.

For the present population-based study Dr. Susan Searles Nielsen and colleagues from the University of Washington in Seattle recruited 490 patients newly diagnosed with Parkinson’s disease at the university’s Neurology Clinic or a regional health maintenance organization, Group Health Cooperative. Another 644 unrelated individuals without neurological conditions were used as controls. Questionnaires were used to assess participants’ lifetime diets and tobacco use, which researchers defined as ever smoking more than 100 cigarettes or regularly using cigars, pipes or smokeless tobacco.

Vegetable consumption in general did not affect Parkinson’s disease risk, but as consumption of edible Solanaceae increased, Parkinson’s disease risk decreased, with peppers displaying the strongest association. Researchers noted that the apparent protection from Parkinson’s occurred mainly in men and women with little or no prior use of tobacco, which contains much more nicotine than the foods studied.

“Our study is the first to investigate dietary nicotine and risk of developing Parkinson’s disease,” said Dr. Searles Nielsen. “Similar to the many studies that indicate tobacco use might reduce risk of Parkinson’s, our findings also suggest a protective effect from nicotine, or perhaps a similar but less toxic chemical in peppers and tobacco.” The authors recommend further studies to confirm and extend their findings, which could lead to possible interventions that prevent Parkinson’s disease.

April 28, 2013

A symbol of Palestinian prisoners’ suffering

Death in custody prompts complaints about Israeli negligence and questions about Palestinian leadership.
Last modified: 6 Apr 2013 22:33

With three prison guards on his bedside, 64-year-old Maysara Abu Hamdeya died of cancer shackled to an Israeli hospital bed on Tuesday.

Abu Hamdeya’s health started to deteriorate in August last year, his lawyer, Rami al-Alami, said. He was suffering severe throat ache, accompanied by swelling in lymphatic and salivary glands.

“He went to the prison clinic and was given antibiotic medications without any tests,” Alami wrote in an affidavit upon visiting Abu Hamdeya on 12 March.

One of five Palestinians to die in or shortly after being released from Israeli jails this year, Abu Hamdeya’s death revived fears for the lives of sick Palestinian prisoners and anger over a perceived Israeli policy of medical negligence.

After months of pushing with the prison clinic, Abu Hamdeya got an approval from the Israeli authorities to go to the hospital in October 2012, but the visit was delayed several times.

When he made it to Soroka hospital in December 2012, he was told that he was brought due to eye problems.

Abu Hamdeya returned to prison without performing needed tests.

Tests were only performed on January 10; by then Abu Hamdeya’s health had deteriorated further.

He was suffering acute pain in his neck and all his body.

Israeli statement

According to an official Israeli statement, Abu Hamdeya was diagnosed with cancer in February.

On March 12, Abu Hamdeya told his lawyer that he was not given any treatment. “He has only been given painkillers,” the affidavit says.

The Israeli autopsy of Abu Hamdeya confirmed that he died of cancer. In a statement, the Israeli health ministry said they found a malignant tumour in the throat, which spread to his chest, lungs, liver, spine and some of his ribs.

Nevertheless, Palestinians performed a re-autopsy. More tests were needed to prove that the cancer had spread to Abu Hamdeya’s organs years – and not months ago, the Palestinian Minister of Prisoners’ Affairs said.

One of 25 diagnosed with cancer, Abu Hamdeya was among hundreds of sick prisoners, including 48 in Ramleh prison hospital. Their families and many Palestinians say Israel is killing them slowly through negligence.

It’s Israel’s fault, Abu Hamdeya’s son Hamza said. “The logical thing to do is to blame Israel,” he said.

However, Hamza said his family also has some complaints about the Palestinian government for not following up on his father’s case.

“Where have they been all that time? Why didn’t they ask about Maysara?” he said.

Hamza said his father was a general in the Palestinian Preventive Security force, so Palestinian officials had an extra duty to ask about him.

‘A national issue’

Abu Hamdeya was imprisoned several times, first in 1969. He was exiled to Jordan in 1978 and returned to the Palestinian Territories in 1998.

Since his last sentence in 2002, Abu Hamdeya was almost always banned from receiving family visits. Each of his four children barely saw him during the past 11 years.

With his illness and death in prison, Abu Hamdeya has become a symbol of the Palestinians’ suffering in Israeli jails. But his case is not merely something to sympathise with, his eldest son Tareq warned.

“Don’t you dare think that Maysara’s case is a humanitarian issue,” Tareq said in a recording before his father’s death. “Maysara is a national issue just like the Palestinian cause.”

With bitterness, Tareq voiced frustration with the Palestinian leadership that didn’t intervene to free one of its captive officers, he said.

In the five-minute recording, Tareq blamed the Palestinian Authority for being helpless when it came to core issues, accused it of corruption and said it failed his father.

In the street, Abu Hamdeya’s death ignited anger in various places across the West Bank. A general strike halted life in the streets of East Jerusalem, Nablus and Hebron on Wednesday.

The usual group of committed Palestinians took  tothe streets to demonstrate against Abu Hamdeya’s death in Hebron, Nablus, Tulkarem and Ramallah.

Two Palestinian teenagers were killed in clashes north of Tulkarem, both by live fire.

After their funeral there were reports of Palestinian security units trying to stop protesters from reaching tension points.

Mourning orders

Abu Hamdeya’s funeral on Thursday was followed by the funerals of the other Palestinians killed in Tulkarem.

On the way to Hebron, masked Palestinians were asking store keepers in Bethlehem to shut down for mourning.

A similar scene took place a day earlier in Ramallah.

In Palestinian Territories in 2013, there seems to be a need to impose solidarity.

Israel accused Abu Hamdeya in 2002 of attempted murder, illegally possessing a weapon and belonging to Hamas. But Fatah activists said that the man was one of their own. It wasn’t until recently that he moved to the Hamas section of the prison, a senior Fatah activist said.

In Gaza, Hamas declared Abu Hamdeya one of its martyrs. In a statement, the group said he was a top commander of its West Bank military wing.

But those who knew Abu Hamdeya said he was “old-school” Palestinian - for resistance and Palestine.

At the end of the day, he was not wrapped in a yellow or a green flag: it was the black, white, red and green Palestinian flag that accompanied him to the grave.

A symbol of Palestinian prisoners’ suffering

 

A symbol of Palestinian prisoners’ suffering

Death in custody prompts complaints about Israeli negligence and questions about Palestinian leadership.
Last modified: 6 Apr 2013 22:33

With three prison guards on his bedside, 64-year-old Maysara Abu Hamdeya died of cancer shackled to an Israeli hospital bed on Tuesday.

Abu Hamdeya’s health started to deteriorate in August last year, his lawyer, Rami al-Alami, said. He was suffering severe throat ache, accompanied by swelling in lymphatic and salivary glands.

“He went to the prison clinic and was given antibiotic medications without any tests,” Alami wrote in an affidavit upon visiting Abu Hamdeya on 12 March.

One of five Palestinians to die in or shortly after being released from Israeli jails this year, Abu Hamdeya’s death revived fears for the lives of sick Palestinian prisoners and anger over a perceived Israeli policy of medical negligence.

After months of pushing with the prison clinic, Abu Hamdeya got an approval from the Israeli authorities to go to the hospital in October 2012, but the visit was delayed several times.

When he made it to Soroka hospital in December 2012, he was told that he was brought due to eye problems.

Abu Hamdeya returned to prison without performing needed tests.

Tests were only performed on January 10; by then Abu Hamdeya’s health had deteriorated further.

He was suffering acute pain in his neck and all his body.

Israeli statement

According to an official Israeli statement, Abu Hamdeya was diagnosed with cancer in February.

On March 12, Abu Hamdeya told his lawyer that he was not given any treatment. “He has only been given painkillers,” the affidavit says.

The Israeli autopsy of Abu Hamdeya confirmed that he died of cancer. In a statement, the Israeli health ministry said they found a malignant tumour in the throat, which spread to his chest, lungs, liver, spine and some of his ribs.

Nevertheless, Palestinians performed a re-autopsy. More tests were needed to prove that the cancer had spread to Abu Hamdeya’s organs years – and not months ago, the Palestinian Minister of Prisoners’ Affairs said.

One of 25 diagnosed with cancer, Abu Hamdeya was among hundreds of sick prisoners, including 48 in Ramleh prison hospital. Their families and many Palestinians say Israel is killing them slowly through negligence.

It’s Israel’s fault, Abu Hamdeya’s son Hamza said. “The logical thing to do is to blame Israel,” he said.

However, Hamza said his family also has some complaints about the Palestinian government for not following up on his father’s case.

“Where have they been all that time? Why didn’t they ask about Maysara?” he said.

Hamza said his father was a general in the Palestinian Preventive Security force, so Palestinian officials had an extra duty to ask about him.

‘A national issue’

Abu Hamdeya was imprisoned several times, first in 1969. He was exiled to Jordan in 1978 and returned to the Palestinian Territories in 1998.

Since his last sentence in 2002, Abu Hamdeya was almost always banned from receiving family visits. Each of his four children barely saw him during the past 11 years.

With his illness and death in prison, Abu Hamdeya has become a symbol of the Palestinians’ suffering in Israeli jails. But his case is not merely something to sympathise with, his eldest son Tareq warned.

“Don’t you dare think that Maysara’s case is a humanitarian issue,” Tareq said in a recording before his father’s death. “Maysara is a national issue just like the Palestinian cause.”

With bitterness, Tareq voiced frustration with the Palestinian leadership that didn’t intervene to free one of its captive officers, he said.

In the five-minute recording, Tareq blamed the Palestinian Authority for being helpless when it came to core issues, accused it of corruption and said it failed his father.

In the street, Abu Hamdeya’s death ignited anger in various places across the West Bank. A general strike halted life in the streets of East Jerusalem, Nablus and Hebron on Wednesday.

The usual group of committed Palestinians took  tothe streets to demonstrate against Abu Hamdeya’s death in Hebron, Nablus, Tulkarem and Ramallah.

Two Palestinian teenagers were killed in clashes north of Tulkarem, both by live fire.

After their funeral there were reports of Palestinian security units trying to stop protesters from reaching tension points.

Mourning orders

Abu Hamdeya’s funeral on Thursday was followed by the funerals of the other Palestinians killed in Tulkarem.

On the way to Hebron, masked Palestinians were asking store keepers in Bethlehem to shut down for mourning.

A similar scene took place a day earlier in Ramallah.

In Palestinian Territories in 2013, there seems to be a need to impose solidarity.

Israel accused Abu Hamdeya in 2002 of attempted murder, illegally possessing a weapon and belonging to Hamas. But Fatah activists said that the man was one of their own. It wasn’t until recently that he moved to the Hamas section of the prison, a senior Fatah activist said.

In Gaza, Hamas declared Abu Hamdeya one of its martyrs. In a statement, the group said he was a top commander of its West Bank military wing.

But those who knew Abu Hamdeya said he was “old-school” Palestinian - for resistance and Palestine.

At the end of the day, he was not wrapped in a yellow or a green flag: it was the black, white, red and green Palestinian flag that accompanied him to the grave.

Gujarat development a myth?

Gujarat development under Narendra Modi is glass full of gas and no water: Cong

Gujarat Congress accuses Narendra Modi of winning elections in the state by ‘having communalised’ politics. (PTI)

In the midst of Nitish Kumar raising the pitch against Narendra Modi, the Congress today accused the Gujarat chief minister of “communalising” politics and debunked his development model.

“Gujarat’s economic development under the present Chief Minister is a glass full of gas and no water. It’s a myth, a hype. There are many other states like Odisha and Bihar, which are doing much better,” Gujarat CLP leader Shankersinh Vaghela told reporters here.

Vaghela, in his first interaction in the national capital after Gujarat Assembly elections that saw Modi making a hat-trick, accused him of winning elections in the state by “having communalised” the politics. He also rejected as “double-facedness” the chief minister’s Sadbhavna fast and other overtures to reach out to all communities.

Vaghela, however, deflected a query whether he is raking up the issue of communal politics in Gujarat at a time when Modi is speculated to be the BJP’s Prime Ministerial candidate.

He described Nitish Kumar as a “good friend” and said that the Bihar Chief Minister must be deciding his strategy according to political requirements in his state.

“But he is part and parcel of NDA,” was his cautious response when asked whether he welcomes Kumar standing up against Modi’s PM candidature within the NDA.

Vaghela also rejected media queries about the political contest in 2014 being Rahul Gandhi versus Modi saying it may be “versus UPA and NDA, versus Congress and BJP but not Rahul versus Modi” as India does not have a Presidential system of election like the US.

He described such contentions are “insult to voters” as in a Parliamentary democracy, the voters elect MLAs and MPs, who choose the Chief Minister and the Prime Minister.

Vaghela presented figures quoting various government documents to hammer the point that Modi’s development claims is “fiction and creative writing” and that the “drinking water crisis” in the state is the “stark reality of Gujarat model”.

AutoCAD with .NET 2

Lesson 2: Getting to Know your Development Environment

In
the previous lesson, you saw how you can increase productivity in
AutoCAD by implementing a plug-in built from a small amount of Visual
Basic .NET code.

.NET (or
the .NET Framework) is a technology created by Microsoft that enables
programmers to create and extend software applications. A programmer may
use the ,NET Framework to create a new software application from
scratch, to implement communication or interoperability between two
software applications, or to extend a software application by
implementing a plug-in for it (as you are doing here for AutoCAD). If
you are interested in learning more, you will find information in the Additional Topics section.

You will now look more closely at what happened when you built and executed the code in the previous lesson.

What does it mean to “build” code?

The code you typed into Visual Basic Express in Lesson 1 was a set of human-readable instructions (source
code) that needed to be converted into code that could be understood
and executed by the computer. The “build” you performed did just that:
it packaged up the resulting executable code into a DLL (Dynamic-Link Library) that can be loaded into AutoCAD.

The
following screenshot shows the output in DLL form along with the
associated program debug database (which provides additional information
when troubleshooting the DLL) that you built using Visual Basic Express
in Lesson 1. The path to where the DLL gets compiled is specified in
the Visual Basic Express project settings and is set, by default, to the
bin\Release or bin\Debug sub-folder of the Visual Basic Express project
folder (depending if you’re building a Release or Debug version of your
DLL – we’ll talk about that later).

Choosing a Programming Language and Development Tool

Just
as humans use different languages to communicate, you have various
language options available to you when creating an AutoCAD plug-in:  for
the purposes of this guide we have chosen Visual Basic .NET, a strong
general-purpose programming language. Visual Basic .NET is particularly
popular with people learning to program, because the language syntax is
more easily readable than many other languages (such as C# or C++).

There
are a number of tools available for developing Visual Basic .NET code.
They range from open source tools such as SharpDevelop and MonoDevelop
to Microsoft’s flagship, professional development environment, Visual
Studio. This tutorial assumes you’re using Visual Basic Express, a free
version of Visual Studio for building Visual Basic .NET applications.

Visual Basic Express is an Integrated Development Environment (IDE) because it is composed of various tools, menus and toolbars which ease the creation and management of your code.

The project system in Visual Basic Express comprises Solution and Project files as well as Project Items,
the individual files belonging to projects. A solution is a container
for one or more projects. Each project can in turn be considered a
container for project items – such as source files, icons, etc. – most
of which get compiled into the resultant executable file (EXE or DLL).
Visual Basic Express provides a Solution Explorer that organizes and
displays the contents of the loaded solution in a tree-view format:

The
Visual Basic Express interface also contains a text editor and
interface designer. These are displayed in the main window depending on
the type of file being edited. The text editor is where you will enter
the Visual Basic .NET code for your AutoCAD plug-in. This editor
provides advanced features such as IntelliSense and collapsible code
sections along with the more classic text-editing features such as
bookmarks and the display of line numbers.

IntelliSense
is an extremely valuable feature of the Visual Studio family that
greatly improves programmer productivity: it automatically provides
suggestions for the code being written based on the objects available
and the letters that are being typed. You will have already seen IntelliSense at work if you typed in the code in Lesson 1. That is one reason we suggested you didn’t copy and paste.

Clearly
one of the key features of Visual Basic Express is its ability to build
Visual Basic .NET code into an executable file. During the build
process, the language compiler performs various checks and analyses on
the code. One such check is to ensure the code conforms to the
syntactical rules of the Visual Basic .NET language. The compiler also
performs various other checks, such as whether a variable has been
appropriately defined or not. Detected errors are reported via the Error
List window, typically found at the bottom of the main window. If you
made a mistake typing in the code in lesson 1, you may already have seen
this when you tried to build your plug-in.

Reviewing your use of Visual Basic Express

In
this section, you will review the steps performed using Visual Basic
Express from the previous lesson. However, we will put them in the
context of what you have just learned about programming in general and
building your code.

  1. In the first step, you simply launched Visual Basic Express.

  2. You then created a new Visual Basic .NET project of type AutoCAD plug-in. This project template was added when you installed the AutoCAD .NET Wizards.

    Since
    the development language used for this guide is Visual Basic .NET, you
    are working with Visual Basic Express, and therefore you see Visual Basic under the Installed Templates portion of the New Project dialog. The AutoCAD plug-in template is essentially a Class Library template, but with some additional settings.

    In
    the middle section of this dialog, you saw various types of
    applications that can be created; you select the template according to
    the type of application you wish to create.

    The name you entered at the bottom of the dialog is used to identify the project within the solution.

  3. Your
    blank project was created, containing a few standard project references
    to core .NET components along with references to the two files that
    define the AutoCAD API (AcMgd.dll and AcDbMgd.dll). The project also
    includes two Visual Basic .NET class files (MyCommands.vb and MyPlugin.vb – you may have optionally deleted the MyPlugin.vb
    file from the project because it’s not needed for this tutorial). These
    files contained some simple boilerplate code. Clicking on one of those
    files in Solution Explorer displays the code it contains in the text
    editor window.
  4. You looked at the References section of the ‘My Project’ project settings and checked that AcDbMgd.dll and AcMgd.dll were correctly referenced (and AcCoreMdg.dll for AutoCAD 2013 and higher).
  5. Saving
    the solution created physical files representing the contents of your
    project on the computer’s hard drive, allowing you to open and edit it
    at another time in the future. You closed and reopened the project to
    ensure Visual Basic Express had correctly parsed the project files.
  6. AcMgd.dll and AcDbMgd.dll
    contain definitions of the AutoCAD APIs you will most commonly use in
    your plug-ins. You will always reference these two files in your AutoCAD
    plug-in projects. You will sometimes reference others too.
    • AcMgd.dll contains the APIs for controlling the AutoCAD application itself – defining custom commands
      opening and closing documents, plotting, etc.
    • AcDbMgd.dll contains the APIs for creating, editing or querying the contents of a DWG file.
    • From
      AutoCAD 2013, the APIs in AcMdg.dll were split between AcMgd.dll and
      AcCoreMgd.dll. AcCoreMgd.dll contains APIs related to the AutoCAD
      application login (such as selections set, comamnds and keywords), and
      AcMgd.dll contains ‘User Interface’ related APIs (such as dialogs).

    When
    you created your AutoCAD plug-in project, the AutoCAD .NET Wizard
    Configurator dialog had these selected by default (you can’t unselect
    them). There were options to include other API definition files that we
    ignored.

  7. Next you added Visual Basic .NET code using the
    AutoCAD API into your project. In other words providing AutoCAD with
    instructions on how to modify how a block attribute behaves when it is
    rotated.

While developing code, it’s a good idea to build
the solution from time to time, to check whether errors have been
introduced in the code. The code does not necessarily have to be
complete or functional when building the solution. This approach can
help avoid potentially lengthy troubleshooting once the code is
complete, and has the side benefit of automatically saving any edited
source files before the build starts.

To build a solution inside Visual Basic Express, select Build Solution from the Debug pull-down menu.

If the build process was successful, you would see a Build Succeeded
status in the bottom left corner of the Visual Basic Express
application frame. If there was an error in your code, Visual Basic
Express will display an error list explaining the errors it has found.
It will also underline the error in your code in blue.  Here’s an
example where we deliberately added a mistake to the code you typed in
lesson one:

In
this lesson you took a brief look at what happens when you build a
project, as well as some background information on Visual Basic .NET and
Visual Basic Express. You reviewed the steps you had taken in the
previous lesson to build your basic AutoCAD plug-in, putting it in the
context of what you have learned about programming.

Additional Topics

Visual Basic Express vs. Visual Studio Professional

In
this guide, you are using Visual Basic Express. This is a free version
of Visual Studio and so it’s a great tool to start learning with.
Microsoft has targeted the Express editions of Visual Studio at
students, hobbyists and other part-time programmers. While it provides
most of the features of Visual Studio Professional, such as
IntelliSense, it does have certain limitations. For instance, it
contains fewer project templates and has limited options for debugging
and troubleshooting your code. If you are serious about plug-in
development beyond this introductory guide – and particularly if you
want to start developing commercial plug-ins – we recommend investing in
one of the more fully-featured members of the Visual Studio product
family.

*There are several ‘professional’ versions of Visual Studio. Visit the Microsoft Visual Studio website for more information.

What is .NET?

The
remainder of this lesson includes quite a bit of technical jargon.
Don’t worry if you don’t completely understand it all when you first
read it. It will make more sense once you’ve become more familiar with
.NET after writing a few of your own plug-ins.

The
.NET Framework is a software framework that sits on top of the
Microsoft® Windows® operating system* and provides the underlying
platform, libraries and services for all .NET applications. The services
include memory management, garbage collection, common type system,
class libraries, etc.

* Subsets of .NET are also available on
other operating systems, whether via the open source Mono project or via
Microsoft® Silverlight®, but these are not topics for this guide. You
will focus solely on using.NET on Microsoft Windows.

What does the .NET Framework Contain?

The framework contains two main components:

  1. Common Language Runtime (CLR)This
    is the agent (or execution engine) in the .NET Framework responsible
    for managing the execution of code. Which is why code written to target
    this runtime is also known as managed code. All managed code runs under
    the supervision of the CLR, but what does this mean? The CLR manages
    code by providing core services such as memory management (which
    includes automatically releasing the computer’s memory for reuse on
    other tasks when it is no longer needed), error (or exception) handling,
    managing the use of multiple threads of execution and ensuring rules
    around the use of different types of object are adhered to. The CLR is
    really the foundation of the .NET Framework.

  2. .NET Framework Class LibraryAs
    the name suggests, this is a library or collection of object types that
    can be used from your own code when developing .NET applications. These
    .NET applications are targeted for Windows (whether command-prompt
    based or with a graphical user interface), the web or mobile devices.
    This library is available to all languages using the .NET Framework.

As
mentioned above, the CLR improves code robustness by making sure the
executing code conforms to a common type system (CTS). The CTS ensures
that all .NET (or managed) code – irrespective of the language – uses a
similar set of object types and can work together in the same
environment. It is this feature that makes it possible for you to write
applications in the development language of your choice and yet make use
of components/code written by programmers using other .NET languages.

Building Executables

When
you built your code into an EXE, it was compiled into Common
Intermediate Language (CIL – also known as MSIL) code using the
language-specific compiler. CIL is a CPU-independent set of instruction
that can be executed by the CLR on Windows operating systems. CIL is
typically portable across 32- and 64-bit systems and even – to some
extent – to non-Windows operating systems. The CIL code generated from
your VB source code was then packaged into a .NET assembly. Such an
assembly is a library of CIL code stored in Portable Executable (PE)
format (which contains both the CIL and its associated metadata).
Assemblies can either be process assemblies (EXEs) or library assemblies
(DLLs).

During the course of this
guide, you will focus on developing a particular type of AutoCAD
plug-in: a process assembly (EXE) which communicates with AutoCAD.
Because of the overhead associated with developing them, you will not
spend time looking at AutoCAD AddIns, which are usually library
assemblies (DLLs) that get loaded into and executed within the memory
space of AutoCAD. One reason that implementing an EXE to work with
AutoCAD is simpler than developing an AddIn is related to its user
interface: Executables do not need to integrate seamlessly with the
AutoCAD user interface by adding ribbon buttons (for instance).

Running Executables

During
execution of a .NET assembly, CIL (residing in the assembly) is passed
through the CLR’s just-in-time (JIT) compiler to generate native (or
machine) code. JIT compilation of the CIL to native code occurs when the
application is executed. As not all of the code is required during
execution, the JIT compiler only converts the CIL when it is needed,
thus saving time and memory. It also stores any generated code in
memory, making it available for subsequent use without the need to
recompile.

In the last step of this process, the native code gets executed by the computer’s processor.

If you would like more details on the process of building .NET applications, please refer to the MSDN Library

Red Meat Consumption Increases Risk of Early Death

ShareShare  ShareEmail  PrintPrint


cut of steak

Steak image courtesy of iStockphoto/Kativ

Over the years, eating too many burgers, steaks pork chops or other red meat products has been linked to heart disease, diabetes and some cancers. In particular, processed red meat, such as bacon, hot dogs or bologna, has especially strong links to chronic diseases.

But the latest research brings even more dire news for hardcore carnivores. In addition to increasing the odds people will get sick, red meat—whether it is processed or not—can actually increase the risk of premature death overall, according to a study that was published online March 12 in Archives of Internal Medicine.

Researchers, led by An Pan of the Harvard School of Public Health, analyzed health and diet information from more than 121,000 U.S. men and women participating in two long-term health studies. Everyone in the group the researchers assessed had been free of both heart disease and cancer at the outset of the studies.

Over long-term follow-up, as long as 28 years in some cases, more than 13,900 people died—about 9,460 from cancer and almost 6,000 from cardiovascular disease. After adjusting for other factors, the researchers found each daily serving of red meat (beef, pork, lamb or a processed meat, such as bacon, bologna, hot dog, salami or sausage), increased the risk of a premature death by about 12 percent. Processed meat consumption in particular increased these odds even more than did unprocessed meats. And hot dogs and bacon seemed to be the most likely to lead to an early death.

If everyone in the study had limited themselves to 42 grams or less of red meat a day (considered to be about half a standard serving), more than 9,860 early diet-related deaths could have been prevented in the study alone, the researchers estimated.

So if that lamb and ham are off the table, along with all the all-too familiar beef, many people worry that they might not get enough protein with each meal. Fear not, say many health experts, there are plenty of other ways to put protein on your plate that don’t come with such high risks of chronic diseases. Chicken breasts actually have more grams of protein by weight than a piece of beef, and fish isn’t too far behind. The researchers also found that beans, nuts, low-fat dairy and whole grains made for healthful replacements for a red meat meal portion.

And for folks worried about getting enough iron, excess iron from diet has actually been linked to heart attacks and fatal heart disease as well as possibly to cancer, the researchers noted.

Getting to a healthful level of red meat consumption in the U.S. might be an uphill battle. Only about 9.6 percent of the women and 22.8 percent of the men in the studies fell in the low-risk category (of a half-serving-or-less per day) for red-meat consumption.

But contrary to popular thinking, a good diet is as much about what you put in to your mouth as what you omit.

The study found that trading out a serving of red meat for fish or poultry didn’t just negate the red meat risk; rather, it actually improved people’s odds of living longer. Replacing a serving of red meat each day with fish reduced premature mortality risk by 7 percent; for poultry, the reduction was twice that: 14 percent.

Veggies are even better. “Plant-based foods are rich in phytochemicals, bioflavonoids and other substances that are protective,” wrote whole-food diet advocate Dean Ornish in a related essay also published online Monday in Archives of Internal Medicine. “So substituting healthier foods for red meat provides a double benefit to our health.”

Ornish noted that the focus for a healthful diet should be on high-quality over high-quantity: “smaller portions of good foods are more satisfying than larger portions of junk foods.” In addition, he highlights current research-based suggestions for the healthiest diet:

  • Little to no red meat; instead obtain protein from poultry, fish, legumes, nuts or other products
  • Plenty of good, whole-food carbohydrates, such as whole grains, beans, fruits and vegetables
  • Little processed or refined carbohydrates, such as white flower, sugar or corn syrup
  • Some good fats, such as omega three fatty acids that are in flax and fish oils
  • Little bad fats, such as hydrogenated, saturated or trans fats

Another benefit to cutting red meat consumption: dialing back out-of-control medical costs, Ornish noted. Avoiding chronic diseases linked to excess red meat consumption could decrease medical spending by billions of dollars.

Katherine HarmonAbout the Author: Katherine Harmon is an associate editor for Scientific American covering health, medicine and life sciences. Follow on Twitter @katherineharmon.

The views expressed are those of the author and are not necessarily those of Scientific American.

Al-Jazari: The Mechanical Genius

Al-Jazari: The Mechanical Genius

Five Creepy Ways Video Games Are Trying to Get You Addicted

Five Creepy Ways Video Games Are Trying to Get You Addicted

By David Wong Mar 08, 2010 2,505,604 views
article image

So, the headlines say somebody else has died due to video game addiction. Yes, it’s Korea again.

What the hell? Look, I’m not saying video games are heroin. I totally get that the victims had other shit going on in their lives. But, half of you reading this know a World of Warcraft addict and experts say video game addiction is a thing. So here’s the big question: Are some games intentionally designed to keep you compulsively playing, even when you’re not enjoying it?

Oh, hell yes. And their methods are downright creepy.

#5.
Putting You in a Skinner Box

If you’ve ever been addicted to a game or known someone who was, this article is really freaking disturbing. It’s written by a games researcher at Microsoft on how to make video games that hook players, whether they like it or not. He has a doctorate in behavioral and brain sciences. Quote:

“Each contingency is an arrangement of time, activity, and reward, and there are an infinite number of ways these elements can be combined to produce the pattern of activity you want from your players.”

Notice his article does not contain the words “fun” or “enjoyment.” That’s not his field. Instead it’s “the pattern of activity you want.”


“…at this point, younger gamers will raise their arms above their head, leaving them vulnerable.”

His theories are based around the work of BF Skinner, who discovered you could control behavior by training subjects with simple stimulus and reward. He invented the “Skinner Box,” a cage containing a small animal that, for instance, presses a lever to get food pellets. Now, I’m not saying this guy at Microsoft sees gamers as a bunch of rats in a Skinner box. I’m just saying that he illustrates his theory of game design using pictures of rats in a Skinner box.

This sort of thing caused games researcher Nick Yee to once call Everquest a “Virtual Skinner Box.”

So What’s The Problem?

Gaming has changed. It used to be that once they sold us a $50 game, they didn’t particularly care how long we played. The big thing was making sure we liked it enough to buy the next one. But the industry is moving toward subscription-based games like MMO’s that need the subject to keep playing–and paying–until the sun goes supernova.

Now, there’s no way they can create enough exploration or story to keep you playing for thousands of hours, so they had to change the mechanics of the game, so players would instead keep doing the same actions over and over and over, whether they liked it or not. So game developers turned to Skinner’s techniques.

This is a big source of controversy in the world of game design right now. Braid creator Jonathan Blow said Skinnerian game mechanics are a form of “exploitation.” It’s not that these games can’t be fun. But they’re designed to keep gamers subscribing during the periods when it’s not fun, locking them into a repetitive slog using Skinner’s manipulative system of carefully scheduled rewards.

Why would this work, when the “rewards” are just digital objects that don’t actually exist? Well…

#4.
Creating Virtual Food Pellets For You To Eat

Most addiction-based game elements are based on this fact:

Your brain treats items and goods in the video game world as if they are real. Because they are.

People scoff at this idea all the time (“You spent all that time working for a sword that doesn’t even exist?”) and those people are stupid. If it takes time, effort and skill to obtain an item, that item has value, whether it’s made of diamonds, binary code or beef jerky.


I have easily 500 hours in Zelda bottles.

That’s why the highest court in South Korea ruled that virtual goods are to be legally treated the same as real goods. And virtual goods are now a $5 billion industry worldwide.

There’s nothing crazy about it. After all, people pay thousands of dollars for diamonds, even though diamonds do nothing but look pretty. A video game suit of armor looks pretty and protects you from video game orcs. In both cases you’re paying for an idea.


Happy anniversary, honey.

So What’s The Problem?

Of course, virtually every game of the last 25 years has included items you can collect in the course of defeating the game–there’s nothing new or evil about that. But because gamers regard in-game items as real and valuable on their own, addiction-based games send you running around endlessly collecting them even if they have nothing to do with the game’s objective.

It is very much intentional on the developers’ part, an appeal to our natural hoarding and gathering instincts, collecting for the sake of collecting. It works, too, just ask the guy who kept collecting items even while naked boobies sat just feet away. Boobies.

As the article from the Microsoft guy proves, developers know they’re using these objects as pellets in a Skinner box. At that point it’s all about…

#3.
Making You Press the Lever

So picture the rat in his box. Or, since I’m one of these gamers and don’t like to think of myself as a rat, picture an adorable hamster. Maybe he can talk, and is voiced by Chris Rock.

If you want to make him press the lever as fast as possible, how would you do it? Not by giving him a pellet with every press–he’ll soon relax, knowing the pellets are there when he needs them. No, the best way is to set up the machine so that it drops the pellets at random intervals of lever pressing. He’ll soon start pumping that thing as fast as he can. Experiments prove it.


See? Proof.

They call these “Variable Ratio Rewards” in Skinner land and this is the reason many enemies “drop” valuable items totally at random in WoW. This is addictive in exactly the same way a slot machine is addictive. You can’t quit now because the very next one could be a winner. Or the next. Or the next.


“Holy shit! We almost won.”

The Chinese MMO ZT Online has the most devious implementation of this I’ve ever seen. The game is full of these treasure chests that may or may not contain a random item and to open them, you need a key. How do you get the keys? Why, you buy them with real-world money, of course. Like coins in a slot machine.

Wait, that’s not the best part. ZT Online does something even the casinos never dreamed up: They award a special item at the end of the day to the player who opens the most chests.


And that’s hardly the most ridiculous aspect of the game.

Now, in addition to the gambling element, you have thousands of players in competition with each other, to see who can be the most obsessive about opening the chests. One woman tells of how she spent her entire evening opening chests–over a thousand–to try to win the daily prize.

She didn’t. There was always someone else more obsessed.

So What’s The Problem?

Are you picturing her sitting there, watching her little character in front of the chest, clicking dialogue boxes over and over, watching the same animation over and over, for hour after hour?

If you didn’t know any better, you’d think she had a crippling mental illness. How could she possibly get from her rational self to that Rain Man-esque compulsion?

BF Skinner knew. He called that training process “shaping.” Little rewards, step by step, like links in a chain. In WoW you decide you want the super cool Tier 10 armor. You need five separate pieces. To get the full set, you need more than 400 Frost Emblems, which are earned a couple at a time, from certain enemies. Then you need to upgrade each piece of armor with Marks of Sanctification. Then again with Heroic Marks of Sanctification. To get all that you must re-run repetitive missions and sit, clicking your mouse, for days and days and days. Boobies be damned.

Once it gets to that point, can you even call that activity a “game” anymore? It’s more like scratching a rash. And it gets worse…

Read more: http://www.cracked.com/article_18461_5-creepy-ways-video-games-are-trying-to-get-you-addicted_p1.html#ixzz0yZP6X5BF

Top 10 USB Thumb Drive Tricks


Top 10 USB Thumb Drive Tricks

Top 10 USB Thumb Drive TricksWhat can you do with a few gigabytes and a USB port? Quite a lot, with the right software. Learn how to encrypt your work, run whole systems, rescue Windows, and customize your thumb drive with these USB-geared tricks.

Photo by Debs (ò?ó)?.

Note: Gina previously rounded up 10 thumb drive tricks in April 2007, and we’ve borrowed a few of those ideas here. But many of the apps have updated, some have been replaced with better offerings, and a few totally new cool things (Chrome OS! XBMC!) have made their way into this mix.

10. Give Your Drive a Custom Icon

Top 10 USB Thumb Drive TricksAn “oldie” but goodie. If you use multiple USB drives, or just want to make your USB drive more recognizable at a glance, you can give it a custom icon. The root of the trick is keeping a .ico file on the drive—you can create one from any image with any number of tools, including the ConvertIconwebapp. Now when you plug in your USB drive, you’ll know which one you’re looking at on your desktop and explorer windows.

9. Try Out Chrome OS Now

Top 10 USB Thumb Drive TricksGoogle’s fast and light netbook operating system, Chrome OS, isn’t due out until late fall, but thumb drive owners can jump into an open-source build of the code so far. As explained by Gina, you can run a custom build of Chrome OS from Hexxeh from your thumb drive and try out Chrome as it stands today. Isn’t open source development cool? (Original post)

8. Browse and Work Securely with DemocraKey

Top 10 USB Thumb Drive TricksIf you’re on vacation, or working somewhere else where the security, tracking, and privacy conditions are unknown, you’ll be glad you have theDemocraKey bundle. It’s a set of Windows-based apps—including a browser, image editor, email client, and encryption suite—that makes browsing and working much more anonymous and secure. (Original post)

7. Run an XBMC Media Center From It

Top 10 USB Thumb Drive TricksXBMC Live, a version of the awesome XBMC media center software built for thumb drives, is great for showing off XBMC to your friends and relatives on their own gear, but also loading onto your netbook or laptop when it primarily pulls other duty with a standard operating system. It’s also how Adam starts off the process of building a silent, cheap media center, providing a peek at how well things will run when XBMC is going full-force.

6. Save Your Windows System

Top 10 USB Thumb Drive TricksIf you’ve chosen to put an Ubuntu system on your thumb drive, you’ve already got everything you need to fix a Windows system that just isn’t working. From an Ubuntu thumb drive, you can scan and fix viruses, recover files, analyze and clean up disk space, fix partitions, and recover lost Windows passwords. All that is covered in ourcomplete guide to saving your Windows system with a thumb drive.

5. Prevent Leaving Your Drive Behind

Top 10 USB Thumb Drive TricksUSB drives are small, light, and look like any other peripheral—so, yeah, a good share get lost and left behind. If you’re trading your drive between Windows systems, Flash Drive Reminder can pop up a window when you’re starting to log off or shut down, reminding you that you’ve got a drive plugged in and, hey, won’t you yank it out while you’re thinking of it? (Original post)

4. Install a Portable Windows App Suite

Top 10 USB Thumb Drive TricksIf you’re short on space for Windows, or you just like to keep certain apps with you or contained on a separate disk, your USB drive can function as a full-fledged launcher. PortableAppsoffers no-install-needed versions of Firefox, Chrome, Pidgin, GIMP, Notepad++, and many other favorite bits of open source software. There areother suites out there—some accused of playing fast and loose with licenses and software property—but PortableApps remains the most consistent and up-to-date collection of free, go-anywhere Windows software. (Original post)

3. Encrypt and Set Your Drive to Self-Destruct in Emergencies

Top 10 USB Thumb Drive TricksNot physically self-destruct, as cool as that would be. But with USB Safeguard, you can make it so that either your entire drive requires an encryption drive, or just select files do. In more unique fashion, USB Safeguard can be set to wipe your files entirely if someone tries to access them without your password too many times. Losing a cheap thumb drive is much better than losing the keys to your checking account. (Original post)

2. Sync the Files You Need

Top 10 USB Thumb Drive TricksRather than manually copy the files you need back and forth between USB and hard drive, why not automatically sync what you need? It’s the least you can do to help your thumb drive keep up with Dropbox. Tools like SyncBack Freeware or Microsoft’s own SyncToy give you the option to automatically copy, or delete, the files that stick out on either side.

1. Keep a Portable Linux OS Handy

Top 10 USB Thumb Drive TricksLinux systems have long been handy on a USB drive—they’re fast, free, and very customizable. We rounded up the major thumb drive systems, and found thatPuppy Linux and the various Ubuntu flavors (including the lightweight Xubuntu) found the most favor among readers (and editors, too, for that matter). As for making the drives, we recommend the uSbuntu or Unetbootin tools on Windows for making read-only systems, and Universal USB Installer for making a persistent system of any Linux OS on any drive. (Original posts: Universal USB, Unetbootin, class="Apple-converted-space"> uSbuntu)


What’s the most valuable player on your own USB drive? What tools make your thumb drive fit into your workflow? We’re all ears in the comments.

Send an email to Kevin Purdy, the author of this post, at kevin@lifehacker.com.

Circumcision dramatically reduces the risk of HIV infection

Mounting evidence shows that male circumcision dramatically reduces the risk of HIV infection, at least for heterosexual males.

According to researchers writing in a 2009 issue of AIDS Patient Care and STDs, the prophylactic effect of male circumcision is owed to the following physical facts:

There are high densities of HIV target cells in the inner mucosal surface of the human foreskin … These HIV target cells lie beneath a protective layer of keratin, which is absent on the inner surface of the prepuce. By removing all or part of the foreskin, circumcision reduces both the number and susceptibility of target cells to HIV infection.

Since 2007, several randomized clinical trials have established that male circumcision could lower the risk of HIV acquisition in heterosexual men by as much as 62 percent. Sixty-two percent! So far, these studies have been limited to African populations that have been particularly hard-hit by AIDS-related casualties. In South Africa, a third of reproductive-aged women are infected. If you’re a 15-year-old living in that country today, there’s a 59 percent chance that you’ll die before reaching your 60th birthday; just 10 years ago, these odds were only 29 percent.

Here’s how the clinical trials basically worked. Thousands of adult, HIV-negative, sexually active, uncircumcised men in Kenya, Uganda and South Africa agreed to be randomly assigned to a circumcision group or a no-circumcision group. Those randomly assigned to the circumcision group had their foreskins removed by medical professionals, were told to abstain from intercourse until their wounds healed (about three weeks—there may actually be a greater risk of HIV infection during this period, so this is vital), and then were instructed to return to the clinic at six-month intervals to test for the virus. The results were unequivocal: two years later, the circumcised males were significantly less likely than their uncircumcised peers to have contracted HIV. In fact, the researchers decided to end these clinical trials early for ethical reasons: with data so clearly showing the advantages of circumcision in an environment rife with the virus, it’s hard to justify a further wait-and-see approach for those men that had been randomly assigned to the no-circumcision group.

For the Ugandan study, 22 of 2,387 circumcised men acquired HIV over the two-year period compared to 45 of 2,430 uncircumcised men who were infected during this time span. Extensive interview methods confirmed that the two groups did not differ in terms of their actual sexual behaviors, enabling the authors to conclude that the results were owed directly to the circumcision intervention. (For those data heads among you, P < 0.00001.) These numbers may not sound massive, but note that they refer to only a 24-month period; over a lifetime, they would become dramatic.

In fact, using the results from the South African study, one group of computer modellerscrunched these numbers to find out how many lives mass neonatal male circumcision could potentially save in this region over a 10-year period. They concluded that male circumcision could save the lives of 300,000 people in Southern Africa alone. Move forward 20 years, they pointed out, and 2 to 7 million deaths could be averted.

It’s presently unknown whether homosexual males would also benefit from circumcision. The studies simply haven’t been done. But Beijing STD specialist Yuhua Ruan and colleagues suspect that circumcision would protect insertive partners (“tops”) against HIV much more than it would receptive partners (“bottoms”). This is because the anal mucosa is highly susceptible to trauma and so the risk of HIV infection through receptive anal sex is very high. The lesser benefit served by being on the receiving end might also apply to heterosexual couples, however. A study published in The Lancet last year found that circumcision in HIV-infected men from Uganda appeared to offer no protection against the virus to their female partners. Thus, although it’s too soon to tell, the real benefits of circumcision may be reserved primarily for heterosexual men or insertive gay men. But that’s still a lot of people whose foreskins may be compromising their health.

In a 2007 report in The Lancet, UCLA infectious disease specialist Sharif Sawires and his colleagues put it bluntly:

In regions where high HIV prevalence exposes the population to risks that have a devastating effect on entire societies, the risks associated with male circumcision could be outweighed by the potential lives saved …

We encourage multicultural, bilateral, and government agencies, along with non-governmental organizations to make this life-saving strategy affordable and safely available to relevant populations bearing the heaviest burden.

These authors certainly aren’t alone in endorsing male circumcision on HIV-preventative grounds. It is now being recommended as a crucial, relatively simple tool against the threat of AIDS by the World Health Organization and UNAIDS. Importantly, of course, these experts also hastily point out that circumcision is just one effective strategy and must be used in conjunction with other preventative measures such as condoms and education.