Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!



Microsoft Redesigns chkdsk For Windows 8, Improves NTFS Health Model

denshao2 Online (219 comments)

I'm glad that this does not mean over the internet.

more than 2 years ago

Nigerian Scam Artists Taken For $33,000

denshao2 This means (229 comments)

Some of those offers to send me money could be real?

more than 2 years ago

Webhosting For A Large Art Project?

denshao2 If it's only for your class (137 comments)

I would host it at home. If it's only for a professor to see, you should not be getting a lot of traffic. Just keep it on a machine that is separate from anything important.

more than 2 years ago

Ask Slashdot: Parallel Cluster In a Box?

denshao2 I suggest (205 comments)

Amazon EC2.

more than 2 years ago

The Science of Humor

denshao2 Illusions (344 comments)

Why aren't illusions hilarious?

more than 2 years ago

Fee Increase Attempt Inspires 'Dump Your Bank Day'

denshao2 I'm probably not the only one (667 comments)

I had heard of credit unions before, but I didn't know what they were and I didn't have sufficient interest to find out. I only researched it after this Bank of America incident. Now that I know, it's obvious to me that a credit union is better.

more than 2 years ago

'Invisible Glass' Solves Screen Reflection Problems

denshao2 Re:Cool, how durable is it? (216 comments)

I'm not sure about the ones that they are using, but very durable anti-reflective coatings have been available for years. They are used in UV filters for cameras.

more than 2 years ago

Extension To Chrome Brings Remote Desktop Abilities

denshao2 In other words (189 comments)

A new security vulnerability has been introduced that will be marketed as a useful feature that rarely gets used for its intended purpose.

more than 2 years ago

Security By Obscurity — a New Theory

denshao2 This is new? (265 comments)

I thought it was obvious.

more than 2 years ago

Ask Slashdot: Best Programs To Learn From?

denshao2 Re:Write a large project yourself (329 comments)

I definitely agree with this. I have learned far more by creating my own projects than I have from taking classes, reading books, or reading other people's code.

about 3 years ago

NYT Working On 'Magic Mirror' For Bathroom Surfing

denshao2 Invconvenient position (138 comments)

How many of us have a mirror positioned to watch us use the toilet?

about 3 years ago

Swiss Researchers Try to Make it Rain With Lasers

denshao2 Energy Cost? (139 comments)

If the total energy/financial cost of causing rain is more than the cost of transporting water via conventional means, then it's not really practical.

about 3 years ago

Moon Younger Than Previously Thought

denshao2 Uniform composition? (212 comments)

It is my understanding that the surface is composed of meteorites that hit long after the core formed. Dating the surface should not give you the age of the moon as a whole unless it's uniform in composition. If you do the same to date the Earth, then creationists will have plenty more fuel to support their story.

about 3 years ago

Making Graphics In Games '100,000 Times' Better?

denshao2 Investments? (291 comments)

"It's not clear what exactly is getting multiplied"

more than 3 years ago

Japanese Military Invents Tumbling, Flying Sphere

denshao2 Quidditch (156 comments)

It just has to be miniaturized a bit.

more than 3 years ago

IT Night Shift Workers: Fat and Undersexed

denshao2 In contrast (203 comments)

Daytime IT workers are not overweight and have plenty of sex?

more than 3 years ago

Massive LinkedIn IPO Raises Dotcom Bubble Concerns

denshao2 I have an account (169 comments)

And I never use it. I don't even know what it's for. It's like a limited purpose version of facebook.

more than 3 years ago

Robotic "Tongue" Lets You French Kiss Over The Internet

denshao2 Feels nothing like a kiss (136 comments)

A rotating straw does not feel anything like a kiss. I assume that nobody involved in this project has ever really kissed before.

more than 3 years ago



Facebook's Haystack

denshao2 denshao2 writes  |  more than 5 years ago

denshao2 writes "Facebook launches its new Haystack photo storage system. This theoretical should reduce costs by reducing dependency on proprietary hardware which handles an average of 500GB of new photo uploads every day. Niall Kennedy presents the technical details of how Haystack works."
Link to Original Source



Seeing Ads Again

denshao2 denshao2 writes  |  more than 5 years ago I have been developing a new social blogging site for the past three months. I am now at the point of focusing on advertising. I started with Google Ads, but that only earns an average of 30 to 40 cents per click and most people just ignore it.

After extensively researching alternatives, I enrolled in Commission Junction and Linksynergy. I have not yet determined the final form of how I will incorporate them into my site. For now, I have them in a sponsors page which I doubt anyone will even look at.

Constructing this page required unblocking many domains that I had previously blocked to prevent seeing ads. In becoming "one of them" I have also forced myself to see advertising. I could block them again after I finish development, but I prefer to be able to monitor my site to see that everything is working.


Appending Text To DIVs

denshao2 denshao2 writes  |  more than 5 years ago

This is actually about Javascript, but I see that Slashdot does not have a category for that.

I'm designing an AJAX chat system for my site and everything seemed fine until I decided to test embedding of a video. The problem is that the video resets every time a new line of text is added to the chat. I have been using the following method to insert new text into the DIV that holds the chat text:


The += technique seems to cause a rewrite of the contents of the DIV instead of merely appending at the end. I have only tested in Firefox 3.0.9 and don't know if it works in other browsers, but it doesn't really matter. If it doesn't work in this browser, then I can't use it.

An alternative method for appending text is to create a text node and to append it. The problem with that is text nodes don't allow HTML. Everything in the text node is displayed as plain text with the HTML code visible. I can append elements to get the formatting that I want for the user name and time, but the situation gets complicated if I want to allow users to insert their own HTML within the chat. The only solution I see to make this technique work is to do some complicated lexical analysis which seems like too much work just to let people watch videos inside of chat.

Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>