New Treatment Stops Type II Diabetes

multicsfan writes Researchers have found that an injection of protein FGF1 stops weight induced diabetes in mice, with no apparent side effects. However, the cure only lasts 2 days at a time. Future research and human trials are needed to better understand and create a working drug. From the story: "The team found that sustained treatment with the protein doesn’t merely keep blood sugar under control, but also reverses insulin insensitivity, the underlying physiological cause of diabetes. Equally exciting, the newly developed treatment doesn’t result in side effects common to most current diabetes treatments."

Share on Google+

Read more of this story at Slashdot.





via Slashdot
New Treatment Stops Type II Diabetes

MIT Has a Free Photojournalism Course You Should Do

MIT Has a Free Photojournalism Course You Should Do

Lots of schools now offer free, online courses, but here’s a doozy from MIT: an introductory course about documentary photography and photojournalism that won’t cost you a cent to work through.

Published through MIT’s Open Courseware project, the course—Documentary Photography and Photojournalism: Still Images of a World in Motionwas originally taught by Prof. B. D. Colen. The class is pretty full-on: there are readings, and assignments you need to work through, plus an image gallery and course material to download, too. But it should provide you with a great understanding of the theory and practice of photojournalism. You can investigate it and download the course materials here. [MIT via Reddit via Peta Pixel]

via Gizmodo
MIT Has a Free Photojournalism Course You Should Do

Outgoing Apple board member Bill Campbell offers insight into company, Steve Jobs in interview

Following a Thursday announcement that Bill Campbell would retire as a member of Apple’s board of directors, Fortune published an interview in which the Intuit chairman describes his time in Cupertino, relationship with cofounder Steve Jobs and "coach" to silicon valley elite.




via AppleInsider – Frontpage News
Outgoing Apple board member Bill Campbell offers insight into company, Steve Jobs in interview

​Transform an Old Refrigerator Into a Food Dehydrator

​Transform an Old Refrigerator Into a Food Dehydrator

Food dehydrators are a great way to prepare tasty snacks, but they can be expensive. When the time comes to replace your old fridge, don’t immediately send it off to the dump—you can give it a new lease of life.

Instructables memberWillie Kruger’s dehydrator project can be used to product dried fruit, biltong ( a kind of beef jerky), and all sorts of other goodies Consumer dehydrators are available to buy, but they are not cheap and are usually quite small. Willie worked with a full-sized refrigerator, but the same could be done to a mini fridge.

After gutting the inside of the fridge, you can paint the exterior however you like, but dehydrators are usually black. Willie also sprayed the words Vleis Kas (Afrikaans for Meat Box) on the unit. He had to build a new door and added an inspection window. Heat in the dehydrator comes from light bulbs, and computer fans keep air moving around. Take care with the electrics, and keep in mind that you’ll need a 12V transformer for the fans.

You can hang meat from hooks attached to the shelves to create biltong, and Willie has other ideas for dried fruit on his website. Click the Instructables link below for full details.

Food Dehydrator | Instructables


via Lifehacker
​Transform an Old Refrigerator Into a Food Dehydrator

Q&A: Even More Deadly Mistakes of MySQL Development

On Wednesday I gave a presentation on “How to Avoid Even More Common (but Deadly) MySQL Development Mistakes” for Percona MySQL Webinars.  If you missed it, you can still register to view the recording and my slides.Thanks to everyone who attended, and especially to folks who asked the great questions.  I answered as many as we had time for  during the session, but here are all the questions with my complete answers:Q: Disk bandwidth also not infinite Indeed, you’re right!We discussed in the webinar the impact on network bandwidth from using column wildcards in queries like SELECT *, but it’s also possible that using SELECT * can impact disk operations. Varchar, Blob, or Text columns can be stored on extra pages in the database, and if you include those columns in your query needlessly, it can cause the storage engine to do a lot of seeks and page reads unnecessarily.For more details on string storage in InnoDB, see Peter Zaitsev’s blog on Blob Storage in Innodb.Q: How many tables can be joined in a single query? What is the optimal number of joins?MySQL has a limit of 63 table references in a given query. This limits how many JOIN operations you can do, and also limits the number of UNIONs. Actually you can go over this limit if your JOIN or UNION don’t reference any tables, that is, create a derived table of one row of expressions.If you do join a lot of tables (or even self-join the same table many times), you’re likely to hit a practical scaling limit long before you reach 63 table references. The practical limit in your case depends on many factors, including the length of the tables, the data types, the type of join expressions in your queries, and your physical server’s capabilities. It’s not a fixed limit I can cite for you.If you think you need dozens of table references in a single query, you should probably step back and reconsider your database design or your query design.I often see this type of question (“what is the limit on the number of joins?”) when people try to use key/value tables, also called Entity-Attribute-Value, and they’re trying to pivot attributes from rows into columns, as if the table were stored in a conventional way with one column per attribute. This is a broken design for many reasons, and the scalability of many-way joins is just one problem with it.Q: How many indexes can be created in a single table? Any limitation? What is the optimal number of indexes?All MySQL storage engines support at least 16 indexes per table.As far as the optimal number of indexes, I don’t pay attention to the number of indexes (as long as it remains lower than the max of 16). I try to make sure I have the right indexes for my queries. If you put an arbitrary cap of for example 8 or 10 indexes on a given table, then you might be running queries that lack a needed index, and the unnecessary extra cost of running that query is probably greater than the cost of maintaining the one extra index it needs.That said, there are cases where you have such variation in query types that there’s no way to have optimal indexes to cover every possible case. Given that you can have multi-column indexes, and multi-column indexes with columns in different orders, there are n-factorial possible indexes on a table with n columns.Q: There is a table with 3 columns: id(int), user_id(int), day(date). There is a high chance same user_id will ‘exist’ for every day. I read data by “where user_id = some_id” (very high throuhput) and delete all entries once a day by cron using “where sent_date = ’2014-01-01′ “. Have approx 6M rows per day deletion is pretty painfull. Will partitioning by column ‘day’ help me deleting those bulks faster? If yes – how much faster? How much will it slow down SELECTs? – not all entries are deleted, but only entries for some specific old day, e.g. ‘ WHERE day = ’1 week ago’Range partitioning by date would give you the opportunity to ALTER TABLE…DROP PARTITION, so you could remove all data for a given date very quickly, much faster than deleting millions of rows. The performance of DROP PARTITION is like that of DROP TABLE, because each partition is physically stored like a separate table.Searching for “where user_id = ?” would not be able to take advantage of partition pruning, but it would still be able to use an index on user_id. And if you drop old partitions, the benefit of searching a smaller table could be a good tradeoff.Q: Regarding 20% selectivity as a threshold for the optimizer preferring a table-scan to an index lookup – is that a tunable?No, it’s not tunable, it’s a fixed behavior of the query optimizer. If you search for a value and the optimizer estimates that > 20% of rows contain the value you search for, it will bypass the index and just do a table-scan.For the same reason that the index of a book doesn’t contain very common words, because the list of pages that word appears on would be too long, and flipping back and forth from the back of the book to each listed page would actually be more work than just reading the book.Also keep in mind my figure of 20% is approximate. Your results may vary. This is not a magic threshold in the source code, it’s just a tendency I have observed.Q: Regarding generating synthetic test data, it sounds like a pretty easy perl script to write.Yes, it might be easy to do that for one given table. But every table is different, and you might have hundreds of tables in dozens of applications to generate test data for. You might also want to vary the distribution of data values from one test to another.Writing a test-data generator for one particular case is easy, so you might reasonably do it as a one-off task. Writing a general-purpose test-data generator that you can use for many cases is more work.Q: Would love to have the set of URLs cited in the presentation without having to go back and mine them out of the presentation.Open source message queues:Redis (Resque)OpenMQActiveMQRabbitMQGearmanBeanstalkKafkaKestrelMySQL Performance Blog articles:Exploring Message BrokersKiss Kiss Kiss (keep it simple)Why you don’t want to shardOpen source test-data generator:Databene BeneratorLoad-testing tools for web applications:JMeterSiegeLoad-testing tools to replay query logs:Percona Playbackpt-log-playerFurther reading for implementing business rules:Real-World Rules EnginesThe Enterprise Rules Engine (a warning)Drools, the business logic integration platformQ: How to best use mysql query cache?Any cache is best used if you read from it many times for each time you write to it. So we’d like to estimate the average ratio of query cache reads to writes, to estimate how much leverage it’s giving us.mysql> SHOW GLOBAL STATUS LIKE ‘Qcache%’; Check the values for QCache_hits (which are cases when a query result was read from the query cache) over QCache_inserts (which are cases when the desired query result was not in the cache, and had to be run and then the result stored in the cache). I like to see a ratio of 1000% or more (i.e. 10:1 hits to inserts).If you have a poor ratio, for example less than 1:1 or less than 100%, then consider disabling the query cache, because it may be costing more to maintain it than the performance benefit it’s giving you.Keep in mind that this is only a guideline, because the calculation I described is only an average. It could be that the queries served by the query cache are very expensive, so using the cached result is a great benefit even if it accounts for a small number of hits. The only way to be certain is to load-test your application under your load, and compare overall performance results with the query cache enabled or disabled, and at different sizes.Q: How to detect when too much indexes start to affect performance?Some people are reluctant to create indexes because they have been warned that indexes require synchronous updates when you INSERT, UPDATE, or DELETE rows. Some people also make the generalization that indexes harm writes but benefit reads. Bot of these are not true.Your DML operations aren’t really updating indexes in real time. InnoDB includes a feature called change buffering, which defers index updates. The change buffer is gradually merged into the index over time. That way, InnoDB can handle a big spike in traffic without it hurting throughput as much. You can monitor how much content in the change buffer remains to be merged: mysql> SHOW GLOBAL STATUS LIKE ‘Innodb_ibuf_size’; It’s also not accurate that indexes hurt writes. UPDATE and DELETE statements usually have a WHERE clause, to apply the changes to particular rows. These conditions use indexes to reduce the examined rows, just like in SELECT statements. But in UPDATE and DELETE statements, it’s even more important to use indexes, because otherwise the statement has to lock a lot of rows to ensure it locks the rows you’re changing.So I generally say, don’t avoid indexes based only on the number of indexes you have, just make sure your indexes are being employed by the queries you run, and drop indexes that aren’t used. Here are a couple of past blog posts that show how to do this:Find unused indexesQuickly finding unused indexes (and estimating their size)Thanks again for attending my webinar!  Here are some more tips:Check out upcoming Percona Training classes in North America and Europe.Join Percona and the MySQL community at our Percona Live.Watch more webinars from Percona in the future!The post Q&A: Even More Deadly Mistakes of MySQL Development appeared first on MySQL Performance Blog.
via Planet MySQL
Q&A: Even More Deadly Mistakes of MySQL Development

Master the “Six U’s” to Perfectly Pitch an Idea

Master the "Six U's" to Perfectly Pitch an Idea

Delivering an elevator pitch or even telling your boss about an idea can be nerve-wracking. Entrepreneur James Altucher has crafted "the six U’s of persuasion" to make sure your idea gets heard.

In case you don’t know Altucher, he’s also an investor, a hedge fund manager, an author, and has participated in our How I Work series. In a post on persuading anyone about anything, he expands on the traditional "four U’s" formula to add two more:

Urgency

Why the problem you solve is URGENT to your demographic. For example: "I can never get a cab when it rains!"

Unique

Why is your solution unique: "We aggregate 100s of car services into one simple app. Nobody else does this."

Useful

Why is your solution useful to the lives of the people you plan on selling to or deliver your message to: "We get you there on time."

Ultra-Specific

This shows there is no fluff: "Our app knows where you are. Your credit card is pre-loaded. You hit a button and a car shows up in 4-5 minutes." Of course the example I give is for Uber but you can throw in any other example you want.

User-friendly

In other words, make it as easy as possible for someone to say "yes". Like a money back guarantee, for instance. Or a giveaway. Or higher equity. Or testimonials from people you both know. Etc.

Unquestionable Proof

This can be in the form of profits. Or some measurable statistic. Or testimonials. Or a good wing-man. Whatever it takes.

As Altucher writes, executing these six steps in your pitch will address most of the instinctive objections people have. He also recommends some body language tricks and other tips, so you should read his full post linked below.

How to Persuade Anyone of Anything in Ten Seconds | The Altucher Confidential

Photo by africaniscool.


via Lifehacker
Master the “Six U’s” to Perfectly Pitch an Idea

Access OS X’s Secret Terminal Hidden in the Login Screen

Access OS X's Secret Terminal Hidden in the Login Screen

If you ever need to enter console commands without logging all the way into the desktop, Macworld has an old tip that shows you how to get access to the Terminal without going through the whole login process.

All you need to do is type >console into the username field of the login screen, and you’ll get dumped into a Terminal screen. Here, you can run pretty much any commands you need without logging all the way into the desktop. You still need a login and password to do anything, but it’s a nice way to get quick access to your computer. This should work in pretty much all modern versions of OS X.

Enter console mode from login screen | Macworld via Jacob Salmela


via Lifehacker
Access OS X’s Secret Terminal Hidden in the Login Screen

Most Popular Online Glasses Store: Warby Parker

Most Popular Online Glasses Store: Warby Parker

These days, you can have the perfect pair of glasses come to you, instead of going to the mall or eye store to deal with salespeople selling subpar frames. Last week we asked you for your favorite online retailers, then looked at the five best online glasses stores. Now we’re back to highlight the crowd favorite.

Most Popular Online Glasses Store: Warby Parker

Internet startup, fashion forward, and charity focused Warby Parker took the top spot with over 43% of the overall vote. They may not be the oldest, the cheapest, or offer the broadest selection in the bunch, but they certainly have significant mindshare and a great try-at-home service that lets you find the perfect frames for you before you spend a ton of money.

Second place went to the always affordable Zenni Optical, which offers tons of frames in a wide variety of styles (and qualities, ranging from cheap plastic you won’t feel bad about sitting on to higher-end designer materials) at consistently low prices. Zenni pulled in 27% of the overall vote. Third place went to Coastal with over 12% of the vote, thanks to its massive stock of designer frames. Fourth place went to Eye Buy Direct with close to 12% of the votes cast, and Goggles 4 U brought up the rear in fifth with 5% of the overall vote.

For more on each of these and the honorable mentions not listed here, head back to our full Hive Five feature to read more.

The Hive Five is based on reader nominations. As with most Hive Five posts, if your favorite was left out, it didn’t get the nominations required in the call for contenders post to make the top five. We understand it’s a bit of a popularity contest. Have a suggestion for the Hive Five? Send us an email at tips+hivefive@lifehacker.com!


via Lifehacker
Most Popular Online Glasses Store: Warby Parker

iTerm 2 Updates with a Toolbelt, Trigger Support, and More

iTerm 2 Updates with a Toolbelt, Trigger Support, and More

Mac: iTerm 2, our favorite terminal emulator for Mac, updated today with a ton of handy new features. These include support for triggers, a toolbelt feature, and more.

The new toolbelt gives you a place to take notes, shows your paste history, and shows all your running jobs. The new trigger features makes it so you can set it up so errors are highlighted in red, a dock icon bounces, or so that prompts are responded to automatically. Finally, there’s also a bunch of new customization options, automatic profile changes, and a bunch more other improvements.

iTerm 2 (Free)


via Lifehacker
iTerm 2 Updates with a Toolbelt, Trigger Support, and More