Saturday, August 10, 2013

Your Daily digest for Tech Geek`s Tools, Tips, Tricks and Tutorials

Tech Geek`s Tools, Tips, Tricks and Tutorials
Pipes Output 
Learn from successful entrepreneurs.

Pick up tips and advice from the noteworthy when you subscribe to Startup Frontier! Read interviews on how they launched and built their businesses.
From our sponsors
How to Peep the Perseid's Peak
Aug 10th 2013, 23:48

The Christian Science Monitor has a short piece with some tips on watching the Perseid meteor showers, which will peak over the next few evenings. MSNBC also has a good suggestion if you'd like to watch the show but can't because of weather: watch online, courtesy of NASA and the Slooh space telescope. I hope the skies will cooperate so I can see them from darkest Maine.

Share on Google+

Read more of this story at Slashdot.




Cory Doctorow On Privacy and Oversharing
Aug 10th 2013, 22:32

slash-sa writes with a link to an opinion piece from Cory Doctorow that begins: "The European Parliament is currently involved in a wrangle over the new General Data Protection Regulation. At stake are the future rules for online privacy, data mining, big data, governmental spying (by proxy), to name a few. Hundreds of amendments and proposals are on the table, including some that speak of relaxing the rules on sharing data that has been "anonymised" (had identifying information removed) or "pseudonymised" (had identifiers replaced with pseudonyms). This is, however, a very difficult business, with researchers showing how relatively simple techniques can be used to re-identify the data in large anonymised data sets, by picking out the elements of each record that make them unique."

Share on Google+

Read more of this story at Slashdot.




DEF CON Hackers Unveil a New Way of Visualizing Web Vulnerabilities
Aug 10th 2013, 21:33

punk2176 writes "Hacker and security researcher Alejandro Caceres (developer of the PunkSPIDER project) and 3D UI developer Teal Rogers unveiled a new free and open source tool at DEF CON 21 that could change the way that users view the web and its vulnerabilities. The project is a visualization system that combines the principles of offensive security, 3D data visualization, and 'big data' to allow users to understand the complex interconnections between websites. Using a highly distributed HBase back-end and a Hadoop-based vulnerability scanner and web crawler the project is meant to improve the average user's understanding of the unseen and potentially vulnerable underbelly of web applications that they own or use. The makers are calling this new method of visualization web 3.0. A free demo can be found here, where users can play with and navigate an early version of the tool via a web interface. More details can be found here and interested users can opt-in to the mailing list and eventually the closed beta here."

Share on Google+

Read more of this story at Slashdot.




Google Posts Images, Binaries For New Nexus 7
Aug 10th 2013, 20:32

In the wake of AOSP maintainer Jean-Baptiste Quéru's resignation, there was speculation that there would be no factory images or binary drivers released for Google's new Nexus 7 tablet. Happily, that's not the case — whatever other open source gaps there are in the Android world, Ars reports that those images and binaries have been released for the Nexus 7.

Share on Google+

Read more of this story at Slashdot.




Bacteria Behaviour Can Shed Light On How Financial Markets Work
Aug 10th 2013, 19:22

notscientific writes "Bacteria invest in proteins in an attempt to reduce stress or increase energy intake, while humans invest in cash. In both cases, better tradeoffs pay off. The similarities in tradeoffs faced by both bacteria and humans during investment are actually quite similar. Now, using synthetic biology, a group of scientists has shown that the outcomes of investment decisions in bacteria can be precisely defined, alluding to the idea that human investment activities, such as financial markets, can be thoroughly understood as well, and even modelled."

Share on Google+

Read more of this story at Slashdot.




Samsung Infringed On Apple Patents, Says ITC
Aug 10th 2013, 18:24

The U.S. International Trade Commission has ruled that certain models of Samsung phone violate Apple patents, and are likely to be blocked from import to the U.S. From the article: "The patents in question are U.S. Patent No. 7,479,949, which relates to a touch screen and user interface and U.S. Patent No. 7,912,501 which deals with detecting when a headset is connected. The ITC said Samsung didn’t infringe on the other two patents. In a statement on the matter, the ITC said the decision is final and the investigation has been closed. ... As was the case with the previous ruling that saw Apple devices banned, the ban on Samsung devices won’t go into effect until 60 days but can be blocked by a favorable ruling following a presidential review. That seems unlikely as such a block has only been issued once since 1987 – last’s week’s ruling in favor of Apple."

Share on Google+

Read more of this story at Slashdot.




Bad Connections Dog Google's Mountain View Wi-Fi Network
Aug 10th 2013, 17:17

itwbennett writes "Google launched its Mountain View, CA public public Wi-Fi network in August 2006. It was one of the first public wireless Internet services in the U.S. and was intended to provide free service across the city. But in 2012, one year after Google signed a 5-year agreement to continue the service, it started a slow decline to the point of being unusable. 'We started noticing it in very large files, things like operating system updates, but now it's on files as small as 500 kilobytes,' said Rajiv Bhushan, chief scientist of pharmaceutical startup Livionex and a long-time user of the network. A recent test by IDG News Service resulted in a total failure to get a working Internet connection at a dozen sites around Mountain View, including in the city's main downtown area and directly in front of Google's headquarters." I've had disappointing results trying to connect to several other public wireless nets around the U.S., both privately sponsored and municipal. Do you know of any that work especially well?

Share on Google+

Read more of this story at Slashdot.




Ask Slashdot: Recommendations For Non-US Based Email Providers?
Aug 10th 2013, 16:19

First time accepted submitter jlnance writes "I don't particularly like the NSA looking over my shoulder. As the scope of its various data gathering programs comes to light, it is apparent to me that the only way to avoid being watched is to use servers based in countries which are unlikely to respond to US requests for information. I realize I am trading surveillance by the NSA for surveillance by the KGB or equivalent, but I'm less troubled by that. I searched briefly for services similar to ymail or gmail which are not hosted in the US. I didn't come up with much. Surely they exist? What are your experiences with this?"

Share on Google+

Read more of this story at Slashdot.


Ask Slashdot: Recommendations For For Non-US Based Email Providers?
Aug 10th 2013, 16:19

First time accepted submitter jlnance writes "I don't particularly like the NSA looking over my shoulder. As the scope of its various data gathering programs comes to light, it is apparent to me that the only way to avoid being watched is to use servers based in countries which are unlikely to respond to US requests for information. I realize I am trading surveillance by the NSA for surveillance by the KGB or equivalent, but I'm less troubled by that. I searched briefly for services similar to ymail or gmail which are not hosted in the US. I didn't come up with much. Surely they exist? What are your experiences with this?"

Share on Google+

Read more of this story at Slashdot.




The Pirate Bay Launches Browser To Evade ISP Blockades
Aug 10th 2013, 15:21

hypnosec writes "The Pirate Bay, on its 10th anniversary, has released 'Pirate Browser,' which it claims would allow people to access The Pirate Bay and other such blocked sites. The 'Pirate Browser' is a fully functional browser that currently works with Windows. ... According to the Pirate Browser website, the browser is basically a bundled package consisting of the Tor client and Firefox Portable browser. The package also includes some tools meant for evading censorship in countries like UK, Finland, Denmark, and Iran among others."

Share on Google+

Read more of this story at Slashdot.




There Is a Fly In My Tweet: Tracking Food-Borne Illness the Crowd-Sourced Way
Aug 10th 2013, 14:24

First time accepted submitter kraken9 writes "New research shows that online chatter can help you avoid food poisoning. Leveraging a statistical language model of Twitter users' online communication, nEmesis finds individuals who are likely suffering from a foodborne illness. People's visits to restaurants are modeled by matching GPS data embedded in the messages with restaurant addresses. As a result, each venue is assigned a health score based on the proportion of customers that fell ill shortly after visiting it. The paper shows that this score correlates with the official inspection data from the Department of Health, and argues that 'nEmesis offers an inexpensive way to enhance current methods to monitor food safety (e.g., adaptive inspections) and identify potentially problematic venues in near-real time.' Similar techniques have been used before to predict the spread of flu from GPS-tagged social data."

Share on Google+

Read more of this story at Slashdot.




Xerox Confirms To David Kriesel Number Mangling Occuring On Factory Settings
Aug 10th 2013, 13:23

An anonymous reader writes with a followup to last week's report that certain Xerox scanners and copiers could alter numbers as they scanned documents: "In the second Xerox press statement, Rick Dastin, Vice President at Xerox Corporation, stated: 'You will not see a character substitution issue when scanning with the factory default settings.' In contrast, David Kriesel, who brought up the issue in the first place, was able to replicate the issue with the very same factory settings. This might be a serious problem now. Not only does the problem occur using default settings and everyone may be affected, additionally, their press statements may have misled customers. Xerox replicated the issue by following Kriesel's instructions, later confirming it to Kriesel. Whole image segments seem to be copied around the scanned data. There is also a new Xerox statement out now." Swapping numbers while copying may seem like bizarre behavior for a copier, but In comments on the previous posting, several readers pointed out that Xerox was aware of the problem, and acknowledged it in the machine's documentation; the software updates promised should be welcome news to anyone who expects a copier to faithfully reproduce important numbers.

Share on Google+

Read more of this story at Slashdot.




"Piracy Filter" Blocks TorrentFreak for 4 Million Sky Customers
Aug 10th 2013, 12:28

An anonymous reader writes "Website blocking has become a hot topic in the UK in recent weeks. Opponents of both voluntary and court-ordered blockades have warned about the potential collateral damage these blocking systems may cause, and they have now been proven right. As it turns out blocked sites can easily exploit the system and add new IP-addresses to Sky's blocklist. As a result TorrentFreak has been rendered inaccessible to the ISP's four million customers."

Share on Google+

Read more of this story at Slashdot.




Finland's Upper Secondary School Exams Going All-Linux
Aug 10th 2013, 10:03

First time accepted submitter jovius writes "The Matriculation Examination Board of Finland has just opened an international hacking contest to find flaws and exploits in Digabi Live — the Live Debian based operating system to be used in the all-digital final exams by the year 2016. The contest ends on 1st of September, and the winners are about to scoop hefty hardware prizes, also available as cash."

Share on Google+

Read more of this story at Slashdot.




Absolute Horizontal And Vertical Centering In CSS
Aug 10th 2013, 07:21, by Stephen Shaw


  

We’ve all seen margin: 0 auto; for horizontal centering, but margin: auto; has refused to work for vertical centering… until now! But actually (spoiler alert!) absolute centering only requires a declared (variable) height and these styles:

.Absolute-Center {    margin: auto;    position: absolute;    top: 0; left: 0; bottom: 0; right: 0;  }

I’m not the pioneer of this method (yet I have dared to name it Absolute Centering), and it may even be a common technique, however, most vertical centering articles never mention it and I had never seen it until I dug through the comments section of a particular article.

There, Simon linked to this jsFiddle that blew every other method out of the water (the same method was also mentioned by Priit in the comments). Researching further, I had to use very specific keywords to find some other sources for this method.

Having never used this technique before, I put it to the test and discovered how incredible Absolute Centering really is.

Advantages:

  • Cross-browser (including IE8-10 without hacks!)
  • No special markup, minimal styles
  • Responsive with percentages and min-/max-
  • Centered regardless of padding (without box-sizing!)
  • Works great on images

Caveats:

  • Height must be declared (see Variable Height)
  • Recommend setting overflow: auto to prevent content spillover (see Overflow)
  • Doesn’t work on Windows Phone

Browser Compatibility:

Absolute Centering was tested and works flawlessly in the latest versions of Chrome, Firefox, Safari, Mobile Safari, and even IE8-10. One user reported that the content is not vertically centered in Windows Phone’s browser, but otherwise this technique works as expected.

If you find any additional features or issues, please leave a comment on CodePen.

Within Container

Place your content block inside of a position: relative container to perfectly center your content within the container!

.Absolute-Center {    width: 50%;    height: 50%;    overflow: auto;    margin: auto;    position: absolute;    top: 0; left: 0; bottom: 0; right: 0;  }

Absolute Center,
Within Container.

This box is absolutely centered, horizontally and vertically, within its container using
position: relative

Within Viewport

Set your content block to position: fixed and give it a z-index to keep it centered in the viewport.

  • Mobile Safari: The content block will be centered vertically in the whole document, not the viewport, if it is not within a position: relative container.

.Absolute-Center.is-Fixed {    width: 50%;    height: 50%;    overflow: auto;    margin: auto;    position: fixed;    top: 0; left: 0; bottom: 0; right: 0;    z-index: 999;  }

See the Modal Demo page.

Responsive

Perhaps the best benefit of Absolute Centering is that percentage-based width/heights work perfectly! Even min-width/max-width and min-height/max-height styles behave as expected for responsive boxes.

Go ahead, add padding to the element; Absolute Centering doesn’t mind!

  .Absolute-Center.is-Responsive {    width: 60%;     height: 60%;    min-width: 400px;    max-width: 500px;    padding: 40px;    overflow: auto;    margin: auto;    position: absolute;    top: 0; left: 0; bottom: 0; right: 0;  }  

Absolute Center,
Percentage Based.

This box is absolutely centered, horizontally and vertically, even with percentage based widths & height, min-/max-, and padding!

Offsets

If you have a fixed header or need to add other offsets, simply add it in your content block's styles like top: 70px;. As long as margin: auto; is declared, the content block will be vertically centered within the bounds you declare with top left bottom and right.

You can also stick your content block to the right or left while keeping it vertically centered, using right: 0; left: auto; to stick to the right or left: 0; right: auto; to stick to the left.

.Absolute-Center.is-Right {    width: 50%;    height: 50%;    margin: auto;    overflow: auto;    position: absolute;    top: 0; left: auto; bottom: 0; right: 20px;    text-align: right;  }

Vertical Center,
Align Right.

This box is absolutely centered vertically within its container, but stuck to the right with right: 0; left: auto;

Overflow

Content taller than the block or container (viewport or a position: relative container) will overflow and may spill outside the content block and container or even be cut off. Simply adding overflow: auto will allow the content to scroll within the block as long as the content block itself isn't taller than its container (perhaps by adding max-height: 100%; if you don't have any padding on the content block itself).

.Absolute-Center.is-Overflow {    width: 50%;    height: 300px;    max-height: 100%;    margin: auto;    overflow: auto;    position: absolute;    top: 0; left: 0; bottom: 0; right: 0;  }

Absolute Center,
With Overflow.

This box is absolutely centered within its container, with content set to overflow.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent bibendum, lorem vel tincidunt imperdiet, nibh elit laoreet felis, a bibendum nisl tortor non orci. Donec pretium fermentum felis, quis aliquet est rutrum ut. Integer quis massa ut lacus viverra pharetra in eu lacus. Aliquam tempus odio adipiscing diam pellentesque rhoncus. Curabitur a bibendum est. Mauris vehicula cursus risus id luctus. Curabitur accumsan venenatis nibh, non egestas ipsum vulputate ac. Vivamus consectetur dolor sit amet enim aliquet eu scelerisque ipsum hendrerit. Donec lobortis suscipit vestibulum. Nullam luctus pellentesque risus in ullamcorper. Nam neque nunc, mattis vitae ornare ut, feugiat a erat. Ut tempus iaculis augue vel pellentesque.

Vestibulum nunc massa, gravida quis porta nec, feugiat id metus. Nunc ac arcu dolor, quis vestibulum leo. Cras viverra mollis ipsum, non rhoncus lectus aliquam et. Morbi faucibus purus sit amet lacus aliquet elementum. Donec sit amet posuere enim. Cras in eros id tortor fringilla ultricies. Mauris faucibus ullamcorper velit, pulvinar varius odio eleifend eu. Quisque id odio metus. Morbi adipiscing ultricies posuere. Pellentesque elementum porttitor eros in molestie. Maecenas ut leo quis nisi tempor tincidunt.

Images

Images work too! Apply the class/style to the image itself and set height: auto; like you would with a responsively-sized image to let it resize with the container.

Note that height: auto; works for images, but causes a regular content block to stretch to fill the container unless you use the variable height technique. It's likely that browsers have to calculate the height for the rendered image, so margin: auto; ends up working as if you'd declared the height, in all tested browsers.

.Absolute-Center.is-Image {    width: 50%;    height: auto;    margin: auto;    position: absolute;    top: 0; left: 0; bottom: 0; right: 0;  }

Variable Height

Absolute Centering does require a declared height, however the height can be percentage-based and controlled by max-height. This makes it ideal for responsive scenarios, just make sure you set an appropriate overflow.

One way around the declared height is adding display: table, centering the content block regardless of content length.

Caveats:

This will break cross-browser compatibility. You may want to consider the Table-Cell method in this case.

  • Firefox/IE8: Using display: table aligns the content block to the top, but is still centered horizontally.
  • IE9/10: Using display: table aligns the content block to the top left.
  • Mobile Safari: The content block is centered vertically, but becomes slightly off-center horizontally when using percentage based widths.

  .Absolute-Center.is-Variable {    display: table;    width: 50%;    overflow: auto;    margin: auto;    position: absolute;    top: 0; left: 0; bottom: 0; right: 0;  }  

Absolute Center,
Variable Height.

This box is absolutely centered vertically within its container, regardless of content height.

Other Techniques

Absolute Centering works really well for many cases, but there are other methods that may fit more specific needs. The most commonly recommended methods are Negative Margins, Transforms, Table-Cell, and now Flexbox. These techniques are covered more in depth in other articles, so I'll only go over the basics here.

Negative Margins

Perhaps the most common technique. If exact dimensions are known, setting a negative margin equal to half the width/height (plus padding, if not using box-sizing: border-box) along with top: 50%; left: 50%; will center the block within a container.

.is-Negative {          width: 300px;          height: 200px;          padding: 20px;          position: absolute;          top: 50%; left: 50%;          margin-left: -170px; /* (width + padding)/2 */          margin-top: -120px; /* (height + padding)/2 */  }        

Advantages:

  • Works well cross-browser
  • Requires minimal code

Caveats:

  • Not responsive. Doesn't work for percentage based dimensions and can't set min-/max-
  • Content can overflow the container
  • Have to compensate for padding or use box-sizing: border-box

Absolute Center,
Negative Margins.

This box is absolutely centered vertically within its container using negative margins.

Transforms

One of the simplest techniques with about the same benefits as Absolute Centering, but supports variable height. Give the content block transform: translate(-50%,-50%) with the required vendor prefixes along with top: 50%; left: 50%; to get it centered.

.is-Transformed {   	width: 50%;  	margin: auto;  	position: absolute;  	top: 50%; left: 50%;  	-webkit-transform: translate(-50%,-50%);      -ms-transform: translate(-50%,-50%);          transform: translate(-50%,-50%);  }        

Advantages:

  • Variable height content
  • Requires minimal code

Caveats:

  • Won't work in IE8
  • Need vendor prefixes
  • Can interfere with other transform effects
  • Results in blurry rendering of edges and text in some cases

Futher Resources

Read more about Transform Centering in Chris Coyier's article "Centering Percentage Width/Height Elements" on CSS-Tricks.

Absolute Center,
Translate(-50%,-50%).

This box is absolutely centered vertically within its container using translate(-50%,-50%).

Table-Cell

This may be the best technique overall, simply because the height can vary with the content and browser support is great. The main disadvantage is the extra markup, requiring a total of three elements to get the final one centered.

Markup:

  <div class="Pos-Container is-Table">    <div class="Table-Cell">      <div class="Center-Block">      &lt!-- CONTENT -->      </div>    </div>  </div>        

Styles:

.Pos-Container.is-Table { display: table; }  .is-Table .Table-Cell {    display: table-cell;    vertical-align: middle;  }  .is-Table .Center-Block {    width: 50%;    margin: 0 auto;  }        

Advantages:

  • Variable height content
  • Content overflows appropriately
  • Works well cross-browser

Caveats:

  • Requires extra markup

Futher Resources

Read more about Table-Cell Centering in Roger Johansson's article "Flexible height vertical centering with CSS, beyond IE7" on 456bereastreet.

Absolute Center,
Table/Table-Cell.

This box is absolutely centered vertically within its display: table-cell parent, which is within a display: table container.

Flexbox

The future of layout in CSS, Flexbox is the latest CSS spec designed to solve common layout problems such as vertical centering. Smashing Magazine already has an article on Centering Elements with Flexbox that you should read for a more complete overview. Keep in mind that Flexbox is more than just a way to center, it can be used for columns and all sorts of crazy layout problems.

.Pos-Container.is-Flexbox {    display: -webkit-box;    display: -moz-box;    display: -ms-flexbox;    display: -webkit-flex;    display: flex;    -webkit-box-align: center;       -moz-box-align: center;       -ms-flex-align: center;    -webkit-align-items: center;            align-items: center;    -webkit-box-pack: center;       -moz-box-pack: center;       -ms-flex-pack: center;    -webkit-justify-content: center;            justify-content: center;  }        

Advantages:

  • Content can be any width or height, even overflows gracefully
  • Can be used for more advanced layout techniques.

Caveats:

Futher Resources

Read more about Flexbox Centering in David Storey's article "Designing CSS Layouts With Flexbox Is As Easy As Pie" on Smashing Magazine.

Absolute Center,
Flexbox.

This Flexbox box is absolutely centered vertically within its container.

Summary

Each technique has its advantages and disadvantages. Which one you choose mainly boils down to which browsers you support and what your existing structure looks like.

Absolute Centering works great as a simple drop-in solution with no-fuss. Anywhere you used Negative Margins before, use Absolute Centering instead. You won't have to deal with pesky math for the margins or extra markup, and you'll be able to size your boxes responsively.

If you need variable height content cross-browser, try out the Table-Cell or Flexbox techniques to see what works best for your site.

(vf)


© Stephen Shaw for Smashing Magazine, 2013.

Ask Slashdot: How Do I Request Someone To Send Me a Public Key?
Aug 10th 2013, 07:06

First time accepted submitter extraqwert writes "An organization wants me to send them my personal data by email. I certainly do trust them. However, I would like to politely ask them to send me their public key for encryption. The secretary probably does not know what it is. But they do have a pretty good IT department, so they can figure out. My question is, what is the proper wording for such a request? What is the right terminology to use? Should I say ``please send me your RSA key''? ``Public key''? ``PGP key''? Is there a standard and reasonable wording for such a request? (On my end, I am using GNU PGP: http://www.gnupg.org/ ) Any suggestions on how to be polite in this case?"

Share on Google+

Read more of this story at Slashdot.




Nvidia CEO: We Are Working On Next Generation Surface
Aug 10th 2013, 04:12

UnknowingFool writes "CEO Jen-Hsun Huang has told CNET that Nvidia is working with Microsoft on the next generation of Surface tablets. While sales of the first generation have been poor, Huang believes the second generation will be more successful with the inclusion of Outlook."

Share on Google+

Read more of this story at Slashdot.




Crunching the Numbers On Shared Cellphone Contracts
Aug 10th 2013, 01:21

itwbennett writes "The Wall Street Journal has a handy online calculator to help you sort out which phone plan is best for you. But one thing you'll notice is that shared or 'family' plans rarely offer any real savings, or benefits beyond the convenience of having a single bill, says blogger Kevin Purdy, who is bracing himself to propose a phone plan separation with his wife."

Share on Google+

Read more of this story at Slashdot.




You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions