Blogger Widgets

Thursday, December 19, 2013

Resize Windows with Apple Script

If you are looking for something more simple, without the extra bells and whistles, a little AppleScript should do the trick.
Just open the AppleScript editor and copy-paste the script below. You can change the app name (theApp) from “Google Chrome” to iTunes or any other window that you wish to resize. The script resizes the window to 1920×1080 and moves it to the center. You can set a different default height and width through the appHeight and appWidth variables.
Now you can press Cmd + R to run the script. Alternatively, you may export the script as an application (.app) and run it anytime with a double-click.
There are some Safari (Resize Me) and Chrome extensions as well that will you resize the windows to any specified size on your Mac but they will obviously work with the browser window only.
  1. (*
  2.  
  3. This Apple script will resize any program window to an exact size and the window is then moved to the center of your screen.
  4. Specify the program name, height and width below and run the script.
  5.  
  6. Written by Amit Agarwal on December 10, 2013
  7.  
  8. *)
  9.  
  10. set theApp to "Google Chrome"
  11. set appHeight to 1080
  12. set appWidth to 1920
  13.  
  14. tell application "Finder"
  15. set screenResolution to bounds of window of desktop
  16. end tell
  17.  
  18. set screenWidth to item 3 of screenResolution
  19. set screenHeight to item 4 of screenResolution
  20.  
  21. tell application theApp
  22. activate
  23. reopen
  24. set yAxis to (screenHeight - appHeight) / 2 as integer
  25. set xAxis to (screenWidth - appWidth) / 2 as integer
  26. set the bounds of the first window to {xAxis, yAxis, appWidth + xAxis, appHeight + yAxis}
  27. end tell
  28.  

Made for iPhone Hearing Aids to be Avalible in Early 2014


Apple announced Made for iPhone Hearing Aids along side iOS 6 now the first Made for iPhone Hearing Aids are set for release. Apple's partnership with GN ReSound helped to create the LiNX hearing aid. The LiNX connects directly to the iPhone using a special wireless technology. Unlike other hearing aids the LiNX does not use an intermediary device to communicate with the iPhone. Apple says the following about Made for iPhone Hearing Aids on their accessibility webpage.
"Apple is working with top manufacturers to introduce hearing aids designed specifically for iPhone. They’ll deliver a power-efficient, high-quality digital audio experience, and will allow you to manage your hearing aid right from your iPhone. Just look for the Made for iPhone label. Explore the FCC's hearing-aid compatibility (HAC) ratings of iPhone."
A companion app allows users to change settings directly from their iPhone. The LiNX will cost $3,000 and will be available in 2014.

Tuesday, December 10, 2013

Apple wins patent for curved touch-screen design

Will a future iPhone adopt a curved display?
Will a future iPhone adopt a curved display?
(Credit: Apple)
Apple seems to have its eye on the curved display market, at least as evidenced by a newly awarded patent.
Granted Tuesday by the US Patent and Trademark Office, a patent dubbed simply "Curved touch sensor" outlines a technical process to achieve higher-quality curved displays. Current sensor displays are typically very thin, so thin that their components can sometimes be damaged during the fabrication process. Apple has a way around that.
The patent suggests placing a thin film over a flexible substrate while the substrate is flat. This new pattern is then joined to a flexible substrate. A high level of heat is applied, allowing the substrate to be manipulated into a curved state without warping or other defects.
The resulting sensor display can be thinner than the traditional flat-substrate design and offer a higher degree of sensitivity. The technology would fit most naturally into a smartphone, but Apple also sees its use in touchpads, mice, and other devices.
(Credit: Apple/USPTO)
Here's a technical description of the display manufacturing from Apple's patent:
A method of forming a curved touch surface is disclosed. The method can include depositing and patterning a conductive thin film on a flexible substrate to form at least one touch sensor pattern, while the flexible substrate is in a flat state. According to certain embodiments, the method can include supporting the flexible substrate in the flat state on at least one curved forming substrate having a predetermined curvature; and performing an anneal process, or an anneal-like high-heat process, on the conductive thin film, wherein the anneal process can cause the flexible substrate to conform to the predetermined curvature of the at least one curved forming substrate. According to an embodiment, the curved forming substrate can include a first forming substrate having a first predetermined curvature and a second forming substrate having a second predetermined curvature complementing the first predetermined curvature.
Samsung and LG have both already dipped their toes into the market for phones with curved displays. Samsung's Galaxy Round bows horizontally, while the LG G Flex is curved vertically and includes a self-healing feature that reportedly can fix scratches in mere seconds

iPhone 5S and 5C come to Walmart's no-contract plans


Apple's iPhone 5S comes in space gray, silver, and gold.
(Credit: Josh Lowensohn/CNET)
Walmart is looking to please those customers that just won't do contracts. The big box retailer announced Monday that it's bringing Apple's iPhone 5S and 5C to its contract-free Straight Talk Wireless and Net10 Wireless networks.
The plans start at $45 a month for Straight Talk and $50 a month for Net10 -- they are slated to begin on Friday, December 13.
"Our growing lineup of premium smartphones with the addition of iPhone 5s and iPhone 5c reflects our dedication to providing consumers with affordable plans on the top phones on the nation's fastest and most reliable 4G LTE networks," TracFone Wireless CEO F.J. Pollak said in a statement. TracFone Wireless owns Straight Talk and Net10.
Walmart has sold both iPhones since the launch of the devices in September, but they were only available with a two-year contract. The iPhone 5S is Apple's newest high-end smartphone and the 5C is a lower-cost device that has a plastic case and comes in several colors.

Straight Talk is offering a $45 per month no-contract 30-day plan with unlimited nationwide talk, text, and data. For $50 a month, Net10 is offering a friends and family line and $40 more for each additional line. For $60 per month on Straight Talk or $65 per month on Net10, users can talk to more than 1,000 destinations in several countries, such as Mexico, Canada, and India.
Under the new plans, the iPhone 5S 16GB comes in space gray, silver, and gold and will sell for $649; and the iPhone 5C 16GB comes in white, blue, green, pink, and yellow and costs $549.
Walmart offered a similar promotion a few months after the launch of Apple's iPhone 5 last year. Several retailers, including Apple stores, major mobile carriers, Best Buy, and Target also sell the smartphones, but they typically don't offer no-contract plans.

Thursday, December 5, 2013

Oracle adds DTrace debugger to its Linux distribution

IDG News Service - Oracle has fully integrated the long-awaited Linux DTrace debugging tool into the latest release of its Linux distribution, potentially allowing administrators and developers to pinpoint the cause of thorny performance issues with more accuracy.
Oracle Linux 6.5 also includes an updated kernel and support for Linux Containers, allowing a single kernel to power multiple Linux virtual machines on a server.
Much like the CentOS distribution, Oracle Linux is largely a copy of Red Hat Enterprise Linux (RHEL), version 6.5 of which Red Hat released last month. Oracle does include in the package its own kernel -- the core of an OS -- customized for security enhancements, as well as some additional administrative tools. Both the Oracle and Red Hat editions are targeted to enterprise use. (The volunteer-driven CentOS 6.5 distribution was also recently released.)
For the first time, Oracle's customized kernel, Unbreakable Enterprise Kernel Release 3, is installed as the default kernel for the distribution -- the stock RHEL kernel is also included in the package as an alternative. As a result, Oracle Linux now supports the DTrace dynamic tracing framework out of the box, though it still needs to be downloaded separately. Oracle Linux 6.4 offered users a way to download and install DTrace, though it required changes to the kernel.
Originally developed by Sun Microsystems, which was acquired by Oracle in 2010, DTrace can help developers debug, or trace, problems that occur on a system. Known for its thoroughness in documenting system behavior, the software was originally designed for Sun's Solaris Unix distribution, and administrators have long agitated for a version to run on Linux as well.
DTrace allows administrators and developers "to get insight into the operating system and understand what is consuming resources," said Markus Flierl, Oracle's Solaris vice president of engineering. The software can not only investigate problems with the OS, but also identify potential problems with applications and the networking stack as well.
"If your customer is complaining that something is running slow, you can go in and see if there is a problem that is happening in your operating system, or if it is in your I/O stack. You will get a full top-to-bottom view, a single pane of glass to see what is happening," Flierl said. Having DTrace on board a server will also allow other Oracle debugging tools, such as those found in the Oracle 12c database, to use the DTrace instrumentations as well, he said.
With the introduction of Linux Containers in Linux Oracle 6.5, users now have another option for virtualizing workloads. In this approach, the server's kernel can drive any number of virtual Linux machines, with each one completely isolated from the others. The Linux Control Groups management software assures that each container is allotted a select amount of memory, CPU and disk I/O resources. Oracle also provides templates for quickly setting up containers.
Other updates in the Oracle Linux package support the latest technologies in InfiniBand networking, file systems, processors and solid state disks.

Core wars redux: Intel to ship 15-core Ivytown chip

IDG News Service - The core wars between x86 chip makers hit a lull a couple of years ago as processors were deemed to deliver enough performance, but Intel's plans to release a 15-core processor could change that.
Intel confirmed Thursday that it will release a 15-core server chip code-named Ivytown, which will be based on the Ivy Bridge architecture. Intel until now had topped off at 12 cores with the Xeon E5 v2 chips that shipped in the third quarter of this year.
The 15-core chip is destined for high-end servers. It will likely go into four- to eight-socket servers, which typically handle high-end computing for databases and enterprise resource planning systems.
Adding CPU cores is a power-efficient way to increase processing power. Chip makers started adding cores as an alternative to cranking up the clock speed of CPUs, which caused chips to draw more power.
One of the first multicore chips was released by IBM in 2001 and based on the Power4 architecture, but adding cores caught on when Advanced Micro Devices showed the first dual-core x86 chip in 2004.
The 15-core chip brings Intel close to AMD, which has plugged 16 cores into its latest Opteron 6300 chips. AMD shipped its first 16-core Opteron chips code-named Interlagos in 2011 and has not added cores to chips since. AMD next year plans to release new x86 server chips that will also have up to 16 cores.
Intel's Ivytown is already being manufactured using the 22-nanometer process, but a company spokesman did not provide a specific release date. It will be part of a Xeon E7-v2 server chip line, which is code-named Ivy Bridge-EX.
The server market is the new battleground as applications demand more computing power and multicore programming challenges are overcome, said Dean McCarron, principal analyst at Mercury Research.
Dual-core chips dominate laptops, while desktops are largely at quad-core. But faster processors are needed in servers handling tasks ranging from basic cloud transactions to supercomputing, which is why more cores are being added to chips, McCarron said.
The 15-core chip will provide incremental performance benefits to the 12-core Intel chip, McCarron said.
Many new supercomputers are also equipped with co-processors -- also called accelerators -- like graphics processors that aid CPUs to speed up computing. Nvidia in November released the Tesla K40 graphics chip, which has 2,880 processing cores. Intel in 2015 plans to release a new Xeon Phi chip, Knights Corner, which could have in excess of 60 cores and also be a primary CPU. However, unlike Xeon server CPUs, the Phi chips could draw more power and be inefficient in processing basic OS tasks and scheduling.
The challenge of writing applications to work with multicore chips is less of a challenge now, with programs and server chips designed to handle multiple threads, McCarron said.

Thursday, November 28, 2013

Why mobile app developers need lessons in security?

When it comes to security, the tech industry has a short memory. Lessons learned during the PC era are quickly forgotten when they stand in the way of making money in the post-PC world of mobile devices.
Forgotten security
For years, Microsoft added new features to Windows and Office without much thought given to security. When the Internet started taking off in the 1990s, all the vulnerabilities that had been ignored were suddenly accessible through the global network, leaving Microsoft scrambling for the next decade plugging holes and adding technology to combat malware.
Now that we're in the mobile era, history is repeating itself.
Hewlett-Packard analyzed 2,100 iOS apps from more than 600 Forbes Global 2000 companies and found that nine in 10 had vulnerabilities. The most common were unencrypted data storage on the device, the use of insecure protocols for transmitting data and failing to take simple steps during the development process to prevent reverse engineering. The latter is what hackers use to find vulnerabilities or to create counterfeit copies of popular apps.
While HP studied only iOS apps, the company said its findings also apply to Android.
Why security is weak
The consensus among experts I talked to is that weak security is the result of developers being more interested in getting apps out to customers. There's also a general ignorance when it comes to good security practices that won't be addressed as long as speed is the priority.
Developers can get away with sloppy security because there has never been a widespread malware infection on mobile devices. Just like the days before the Internet forced Microsoft to rethink security, PC software makers didn't worry about hackers as long as infection rates were low.
The problem goes beyond just app developers. Ad networks that developers integrate into apps also introduce vulnerabilities. InMobi, which is used in many Android applications, was recently found to open a potential backdoor in a mobile device. Exploiting the flaw could enable a hacker to make phone calls, send text messages to premium rate numbers and post on social networks.
The HP study shows that developers are building product that could one day provide an open door to the underlying operating system or the Web server that the app communicates with to send and receive data.
This doesn't mean every vulnerability can be exploited. Google and Apple have built safeguards in their platforms that will stymie a lot of attacks.
But those protections can only go so far. Hackers only need to find one exploitable vulnerability to break into a smartphone and steal sensitive data, such as website credentials or contact lists.
The time to make security a fundamental in the application development process is before cybercriminals develop effective hacking tools for smartphones and tablets. I'm sure if Microsoft had it to do over again, Windows would have been secure by design from day one.