Posts tagged Windows

VB.Net How To: Changing the formatting og RichtTextBox content

Code example for changing font size of the first 10 characters to 16 and at the same time changing it to Bold and Italic:

RichTextBox2.Select(0, (Nachname_TextBox.Text & ” ” & Vorname_TextBox.Text).Length)
Dim BoldUnderlined As FontStyle = FontStyle.Bold + FontStyle.Underline
RichTextBox2.SelectionFont = New Font(RichTextBox2.SelectionFont.FontFamily.ToString(), 16, BoldUnderlined)

RichTextBox1.Select(0, 10-1)

Dim BoldItalic As FontStyle = FontStyle.Bold + FontStyle.Italic

RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont.FontFamily.ToString(), 16, BoldItalic)

Note: Line breaks also count as a character.

VB.NET How To: copy Text from RichtTextBox to Clipboard

Code:

My.Computer.Clipboard.SetText(RichTextBox1.Rtf(), TextDataFormat.Rtf)

with this code you will also keep the RTF formatting (bold, italic, font size, font colour, and so on).

Explained: Garbage Collection

Garbage Collection is the concept of collecting useless “dereferenced” memory, and freeing it for re-use by the system. De-referenced resources are those objects that are no longer in use by the program but are still allocated for use by it.

Languages like C/C++ could allow programmers to directly interact and play with memory, a responsibility that is often so abused that it does more harm than good… Problems arise when people recklessly allocate large system resources and the due to some mis-management the allocated memory is never freed. This leaves large chunks of unreacheable memory locations that ultimately cause “Memory Leaks”. In comes the invention by John McCarthy, which shoulders the responsibility of memory management by de-allocating memory that is not in use by the program anymore. While the concept was initially developed for LISP only, now it has spread to a variety of High Level Languages, including updated versions of C\C++ themselves.
C++/CLI (Common Language Infrastructure), which is Microsoft’s language specification has provision for both manual and automated memory management.

Garbage collector is the term used to represent automatic memory management by the system. Garbage collector scans the runtime environment for objects that are accessible directly or indirectly via references. Then it proceeds to discard all remaining objects. Typically, an object’s memory is reclaimed when the number of references to it reaches zero. These scans are done in cycles, which are started automatically by the Garbage collector or when explicit calls are made to it.

Garbage collection does not guarantee immunity from memory leaks, and obviously requires a considerable percentage of system resources to run, but definitely helps programmers who have to deal with a lot of memory in their projects. Garbage collection is not commonly used in embedded projects due to their already small resource size but are available on certain platforms like .NET Micro Framework and Java-ME.

Windows Intune – PC management in the Cloud!

Windows Intune, in a nutshell, is a Web-based console where IT administrators can manage the deployment of Microsoft updates and service packs to all PCs, keep track of hardware and software inventory, fix PC issues remotely, manage protection from malware threats and set security policies. Windows Intune can be accessed anywhere an Internet connection is available.

Microsoft is aiming the cloud-based Windows Intune squarely at companies with 25 to 500 PCs, as businesses of this size typically don’t have the resources to manage and configure servers in an on-premise desktop management environment.

For $11 per PC per month users will get the Windows Intune service plus integrated anti-malware (anti-virus and anti-spyware) and Windows 7 Enterprise upgrade rights. Volume discounts will also be available for purchases of 250 licenses or greater.

Windows Intune will be sold like other cloud services from Microsoft — through Microsoft partners and the Microsoft Online Services Web site.

You can find more in depth information in the PDF below or just visit windowsintune.com.

WPC 2010 Virtual Pressroom: Video Gallery

Demo: The Personal Cloud

Corporate Vice President Brad Brooks shows off how Windows 7, Bing, Windows Live and other services connect to create a connected “personal cloud.”

[Video]

Have you made your decision to be a Mac or a PC?

This is a video review of Mac versus Windows which shows both – the good and the bad – sides of PCs and Macs:

<video>

Personally I made my decision to be a PC because I love to have control over every little part of the OS (using OpenBSD, Ubuntu Netbook Edition and various Windows).

What are you? (Mac, PC or both?) Please comment!

Update: Should colleges start giving Apple’s iPad to students?

This morning I wrote about all the discussions to the question Should colleges start giving Apple’s iPad to students? 

But since this time there were many important news-releases surrounding the Apple iPad.

For example data now points that the iPad has become (or always was, given its short life thus far) so popular that it is on the right track to outsell the venerable Mac, Apple’s regular computing line. According to an analyst Apple is selling some 200,000 iPads a week, versus a mere 110,000 Macs in the same time frame.

The iPad is of course a new product, and slower sales are to be expected once the full global roll out has been completed and enough time has passed to fill initial demand. That will take weeks, if not months. At 200,000 a week, Apple will have moved at least another million iPads.

The shocking statistic that has the tech world in an uproar is that some 20% (1 in 5) Americans is either “likely” or “somewhat likely” to purchase an iPad. The population of the United States is roughly 300 million, 20% of that number works out to some 60 million. If Apple sold that many iPads at the lowest price point possible, $500, it would bring in some 30 billion USD in revenue.

Seeing those data, people start to think, if maybe the Apple iPad is going to get a mainstream device and draw in a huge amount of PC users not using apple products yet. For sure other manufacturers will be really unhappy with Apple and since they don’t want to loose all of their clients to the Mac or iPhone/iPad, they have to adopt Apple’s new standards and also be sort of nice to them…

I guess this will end in a really huge showdown between Microsoft and Apple. But then there is another question: What about all the other big technology companies like Google, HP/Dell, HTC, and so on. For sure these companies all have their reasons to like neither Apple nor Microsoft but they will have to decide very soon! Or maybe it will go bad for both Microsoft and Apple as you see Google working on their ChromeOS and HP hugging WebOS.

No matter what happens, it is going to “take a bloody end”. I just hope that customers won’t have to suffer too much.

 

PS: take a look at how I tagged this post..

Should colleges start giving Apple’s iPad to students?

The iPad has landed. But should campuses be throwing it a welcome party? A online search for “free iPad at college” shows that many are doing this now! Hundreds of educational institutions announced in the last weeks that they would be giving Apple’s new computing tablet to each new full-time student when they arrive on campus in the fall for free. For Example George Fox University, a Christian institution in Oregon, will expand its annual laptop giveaway to first-year students to offer students a choice between a Macbook and an iPad. The year after that, there will be no more choice: Everybody will get iPads. Interesting is also that even small ones (for example Eugene Bible College) are giving their students iPads ”to make learning [...] more interactive”.

The e-learning giant Blackboard, meanwhile, announced that it launched an app for the iPad that allows students to access their courses from the new device.

:: (Summary of the last month in mailinglist listserv.educause.edu)

But the arrival of the long-awaited device has also prompted questions. On Educause’s CIO listserv last week, higher-ed technologists wondered aloud about the costs and benefits of the efforts of some campuses the try to seed their student bodies with the gadget du jour.

Theresa Rowe, the CIO at Oakland University, noted the “pattern” of colleges announcing high-visibility technology giveaways of laptops, iPods, iPhones, and now the iPad — each time prompting peer institutions to wonder whether following suit would be strategically wise. “Our presidents or leaders ask ‘Why not us?’ ” Rowe wrote. “And then we scramble to put together a budget and support picture.” (Rowe was one of several CIOs to authorize Inside Higher Ed to quote from her contributions to the usually private forum.)  

This time, Rowe decided to crowdsource the question to her counterparts on the listserv. What she got back was a mix of curiosity, enthusiasm, light number crunching, and some pointed skepticism. (See here)

Greg Smith, the CIO at George Fox, responded, saying that universities should not worry about justifying iPad giveaways with precise cost-versus-value analyses. The shifts that are happening in higher-ed technology — particularly from bound textbooks and research materials to electronic versions — are “bigger than the iPad,” said Smith. Universities know this change is coming, he said, so they should do what they can to enable it. “The iPad appears to be the perfect device for information at your fingertips which places it in the role to ignite the change,” Smith said.

But Robert Paterson, CIO at Molloy College, was not ready to anoint the tablet as a harbinger of institutional transformation. “Apple has done it again … created a proprietary hardware with no particular purpose, except it may be cool and then sell, sell, sell,” Paterson wrote. “… And these initiatives for students … without any experience in how it might be used, without faculty being able to experiment or to plan how to use them in the teaching/learning process… I apologize but it seems sort of gimmicky.”

Without a firm agenda in place for how the new technology is meant to be used, 5% of students at most might figure out a novel use of the iPad for learning, he said — “too few to justify a campus-wide giveaway”. By the time a substantial proportion of students start following the examples of the early innovators, Paterson said, “multiple iterations, improvement, enhancements to the tool have occurred… So you throw away the one first adopted in favor of better and cheaper versions.”

Stephen Landry, CIO at Seton Hall University (not to be confused with Seton Hill, which is the one doing an iPad giveaway), said that while he is more confident about students’ ability to adapt new devices into their learning processes, “it is wise to have concrete learning objectives that we hope to achieve by deploying that technology” nonetheless. “We should be able to discuss this with the students and parents who may want to know why tuition is going up and with our faculty who may want to know why we aren’t hiring more instructors,” Landry wrote. For example, he said, when Seton Hall first started giving out laptops in 1998, it did so as part of an effort to redesign its first-year English and math curriculums in order to improve learning outcomes through better use of technology.

So how much would an iPad giveaway actually cost for a typical campus? As it turned out, it was Rowe, the Oakland CIO who originally queried the listserv, who did some number crunching and estimated that to purchase and distribute the devices to a 3,000-student campus would cost about $2.2 million.

 

Other considerations

In an interview with Inside Higher Ed, Smith, the George Fox CIO, said that, more than getting students to use the iPad toward educational ends, campuses that choose to make it standard hardware could face pushback from professors, many of whom are used to using Microsoft Office’s suite of tools — Word, Power Point, Excel, etc. — to assign and receive student work (the iPad, unlike Apple’s Macbook laptop, does not run Microsoft Office and will not in the feature).

((By the way: Students can get office 2007 - for windows - for 59.95$ at http://www.microsoft.com/student/discounts/theultimatesteal-us/default.aspx and additionally to that they can upgrade to office 2010 for free as soon as it is released) )

He said that having to adjust to new technologies — regardless of whether students are likely to want them — gives professors everywhere jitters. “The biggest fear starting to grip [professors] is that … e-textbooks might actually become reality,” Smith said — acknowledging that there are exceptions, but they are the minority. “If you know higher ed, you know that the biggest fear of a professor is having to change how they deliver their course.”

And then there’s the observation made by a number of reviewers that the iPad is much better for consuming content than creating it — and content creation — of papers, presentations, video projects, etc. — is a big part of being a college student.

But Smith is not worried. One of the reason George Fox is phasing out its laptop program by way of the iPad giveaway is because most students there already have laptops — or at least have access to computers more oriented to creation. Besides, if you set up an iPad with its docking station and external keyboard — both of which George Fox will be providing to students — it is basically a desktop computer, he said.

In my opinion, trusting the iPad in Colleges as the only way for students to read and write their stuff is a really bad idea since this is just plain ignorance of any previous standardization and makes the school totally dependent on Apple. Previously students and also professors always had the freedom of choice in what hardware they buy (for example: a laptop or netbook or desktop from Dell or HP or Acer,..; and if they want to use Microsoft Windows, any Linux Distribution, *BSD or Apple Mac OS,…; and if they use Microsoft Office or OpenOffice,..). This freedom of choice created a market where people were able to get expensive products or even sometimes for free! If someone didn’t like a special product, then they were able to just change to another one; and so on…

But with just making the iPad a must use and relying on these devices, students don’t have a freedom of choice between what hardware, operating system, Office suite and other software they use.

But the fact that many institutions are still doing this, shows how good Apple’s marketing is. If you compare an iPad with a laptop; then the laptop clearly wins (for example because it has additional ports like USB, Bluetooth, sound in/out, CD/DVD drives,……. which the iPad doesn’t have!!). Also Apple’s decisions like banning flash from it’s devices aren’t what everyone wants – but this is the power of non-open systems with good marketing!

I hope that here in the USA they will soon release laws prohibiting public institutions to use/depend on products from just one company without allowing freedom of choice. Many countries worldwide already made that step!

PS: I am still waiting for all the open source and/or freedom supporters to jump up and do something against this (bad) change in today’s world!

Update: also see my next post Update: Should colleges start giving Apple’s iPad to students?

New Hotmail design and impressive upgrades!

It’s official! Microsoft have just announced that Hotmail is getting a new design and some impressive upgrades!

www.hotmailpreview.com

Wow! Go to the preview website, and also read the announcement, this is good stuff. Hurry up and launch the new Hotmail please! Best of all, Hotmail will now be fully integrated with SkyDrive! This will be really useful. Every time I send or download an attachment in a Hotmail email, I feel there should be a SkyDrive button to go with it.

SkyDrive is rapidly becoming by far the most useful online storage facility, thanks to the new Hotmail, the new Office Live, and of course Office 2010 — all of which are integrated with SkyDrive and able to use this as their file storage system. SkyDrive is becoming my new hard drive – it has everything! (MS’s domination of the market with MS Office gives them an advantage that Google can only dream of. Google are planning to integrate their web-based office apps with their web-based storage, but they have taken too long, and besides the number of people using Google’s desktop publishing apps is negligible compared to MS Office and Windows.)

Here’s my wish-list of the features I want added to SkyDrive… If MS can give us these features, it would make SkyDrive absolutely perfect!

  • The ability to upload bigger files (up to 5 GB would be nice)
  • The ability to link directly to files on SkyDrive (by providing a permanent URL for a file on SkyDrive)
  • A public API for SkyDrive (in fact, there already is an API, but we need it to be made public please!)

The Black Box Recorder

Every developer wishes there was a way that an end-users could quickly and simply record a repro for the problem that they’re running into that is unique to their machine.

Here a little tool from Windows 7 comes to the rescue!

psr-exe

The in-built diagnostic tool ”Problem Steps Recorder” provides a simple screen capture tool that enables you to record a series of actions. Once you hit “record”, it tracks your mouse and keyboard and captures screenshots with any comments you choose to associate alongside them. Once you stop recording, it saves the whole thing to a ZIP file, containing an HTML-based “slide show” of the steps.

It’s a really neat little tool and I can’t wait for it to become ubiquitous on every desktop! The program is called psr.exe; you can also search for it from Control Panel or the Start-Menu search under “Record steps to reproduce a problem”.