Wednesday, November 14, 2012

Mobile web - image width

If you have very wide images, they are treated differently by Android and iPhone. Android will make the text full width and will have the image sticking out past the text. iPhone, on the other hand, will scale everything to the width of the widest image.

To make your text take up all available space, add the following to your mobile css file:
img {max-width:100%;height:auto !important;}
You need to enforce height in case the image has height set, which will cause it to loose aspect ratio.

Monday, November 5, 2012

Voter Fraud contact info

Voting machines across the country are changing votes from Romney to Obama and Obama to Romney depending on who's listed first. First checkbox is overlapping the top of the second checkbox. If you're voting against Obama, even if you're not voting for Romney, first make sure that your voting machine is operating correctly. If it's not, take a picture or video with your phone and call 1-800-253-3931 and/or email voting.section@usdoj.gov and/or submit a complaint form http://www.justice.gov/crt/spec_topics/election2012/index.php.

Cases of voter fraud in Brooklyn, NY:

  1. Upon inquiry about how to work the new voting machine, the voting booth attendant has repeatedly tried to trick my father and I to vote for Obama/Biden. The blind woman in front of us has unsuspectingly voted for Obama/Biden due to the same attendant's help.
  2. my co-worker told me that her mother was voting in coney island and was told by the person near the scanner that she ruined the paper and she has to choose "here" (obama) and when she said "no, it's ok, i made my choice", she was told the scanner won't take it.

Wednesday, October 31, 2012

Hurricane Sandy - Don't get left in the dark

Hurricane Sandy left some people homeless and a lot of people without power.  According to Con Ed, it will take four days to restore power to lower Manhattan and others can be without power for at least a week.

Stocking up on candles and regular batteries is both expensive and may not be enough as neither is a renewable resource. Also, neither will help you with having a working cell phone and access to the internet.

Hand Crank Radios
Get a hand crank radio. All of these can be charged by hand or using sunlight. All of them have an LED flashlight and also a USB port for charging your cell phone. Unlike batteries, once the charge on your radio runs down, wind it several times and you again have access to the news and light.

USB Pocket Chargers
While these will not provide you with a continuous charge and have to be charged beforehand, they're compact and will fit in your pocket or purse. These are also useful for when you want to use your phone for watching movies or playing games but will not have access to continuous power to charge your device.

UPS
An uninterruptible power supply or UPS is heavy, bulky and not cheap so why should you have one? Depending on output of the UPS and power requirements of your computer, they can keep your computer running for at least 15 minutes. They can be set up to turn your computer off safely in case of power loss. Unlike surge protectors, they will protect your equipment from spikes. In case of prolonged blackouts, once your computer is off, they can be used to charge your cell phone.

Fire and Flood restoration
If you did get flooded, get a professional. Nicole of Home Clean Home (HCH) will make sure your home is dry and mold free. HCH services most of NY, up to Albany, and will bring their own generators if your power has not been restored.

Saturday, August 18, 2012

Метро 2033 - Правила Игры

Make Custom Gifts at CafePress

Фракции
Арбатская конфедерация Полис 6 Карта заданий
Бандиты Защита армии +1 +2 патрона
Бауманский альянс Атака героя +1 Карта снаряжения
Конфедерация 1905 года Голосование +3 +2 гриба
Красная линия Победа 9 +2 свиньи
Четвертый рейх Атака армии +1 Армия 3

Героии
Анна 3/3 Переходы 0
Артём 3/2 Атака нейтральной, выбор угроз
Мельник 3/2 +1 снаряжение
Саша 3/2 +1 ресурс на ГАНЗЕ или станцие фракции
Хан 3/3 Снаряжения, задания, ресурсы на станцие фракции
Хантер 3/3 Не пропускает фазу

Боевая колода
Манёвры +1
Марш-бросок Атака +2
Контратака Защита +2
Вылазка раведчиков Атака +1 +3 против защит
Засада в туннелях Защита +1 +3 против атак
Осада Атака +0 +4 оритув защит
Глухая оборона Защита +0 +4 против атак

Фаза 1 - События
Угроза из туннелей
Начаная с первого, выбрать станцию и метод отражения.
Первый открывает угрозу.

Фаза 3 - Действия Армий
Атака станции
Соседние станции, через переход, перегон или не больше одного перегона по ГАНЗЕ.
Атака героя
Только на своей или соседней станцие.
Покупка снаряжения
Поменять карты, 1 патрон.
Задание
Взять 2, выбрать 1.

Этап 2
6 очков. До 3 снаряжения. Взять 2, выбрать 1.
Захват станции
Нейтральная - 1 гриб, 1 свинья
Чужая - 1 гриб

Задания
Не выполненое, сбросить и использовать свойство.
Выполненое, 1 патрон.

Бой
Атака
Проигрыш армии, -1
Проигрыш героя против нейтральной, ранение.
Проигрыш героя против бражеской, ранение и потеря снаряжения.
Проигрыш героя против героя, ренение и победитель заберает снаряжение.

Thursday, July 19, 2012

Undocumented features in ColdFusion 10

  1. If you're using url rewrite, your cgi.path_info will be empty.
  2. cffile and fileupload are now not supporting wildcards for mime type.  image/* will now throw an error , The MIME type or the Extension of the uploaded file image/jpeg was not accepted by the server, if a jpeg is uploaded.
  3. cfimage info will now throw an error if you try to use it with https.

Sunday, June 17, 2012

Drug testing of Florida's welfare recipients

Isn't it fun arguing with Liberals?  Refute them with facts and watch their heads explode, spewing out Communist/Socialist propaganda.

I've recently re-posted on Facebook a picture of the following text:
Thank you Florida, Kentucky, and Missouri, which are the first States that will require drug test when applying for welfare.  Some people are crying and calling this unconstitutional.  How is this unconstitutional??? It's OK to drug test people who work for their money, but not for those who don't?... Re-post this if you'd like to see this done in all 50 states.  If you can afford to buy drugs and extra illegal things then you can afford your own groceries.


The above was then re-posted by a friend and what follows is an exchange between one of his liberal friends and me.

lib: The stats on welfare recipients who test positive show it is very, very few. In FL, 7% of the general public uses (http://oas.samhsa.gov/2k7State/Ch2.htm#Fig2-1) but only 2% of tested welfare recipients. The cost/benefit analysis doesn't support this practice - which, let's be honest, is just a scapegoat. With this logic, every citizen who benefits from tax money should be tested - anyone who uses a public road, city park, attends a school, uses tap water, etc.


me: Where do you see that 2% of welfare recipients tested positive?


lib: The state lost tens of thousands of dollars testing. Ironic that the force behind wanting these tests are people who claim they want less govt waste. I'm not a fan of drug use. I'm a fan of pragmatism. http://www.miamiherald.com/2012/04/20/2758871/floridas-welfare-drug-tests-cost.html


me: 108 of the 4,086 people who took a drug test failed.
Florida had 87,632 welfare recipients in 2008 and 74,994 in 2007.
http://www.nytimes.com/interactive/2009/01/25/us/20090126-welfare-table.html

lib: I don't care of 100% of those who took a drug test failed. Everyone benefits from taxes spent and if there's moralizing to be done, apply the test to everyone and then take away their access to roads, libraries, clean water, plumbing, education, swingsets, etc. Sounds like a farce to me but people need their scapegoats, I guess. Personally, I think there are far more pressing issues and waste to tackle.

The pathetic thing is that if you google welfare and Florida, google is flooded with news posts about these 4,086.  Now anyone with a brain would find that number to be extremely strange considering Florida's population and the recent collapse of Florida's real estate and construction industry.  Unless you're a liberal that is, then only the percent matters, not the sample size.  A few sources did indicate that several thousand people chose to drop out rather than be tested.  Now the real question is what would happen if all the 90+ thousand people were tested instead of a small sample and without allowing people to refuse.

The real entertaining part was her last comment.  Now while I'm for legalizing marijuana, I'm for having it taxed same as alcohol and cigarettes and having it raise money for the government.  What I'm not for is higher taxes due to fraud and unchecked spending.  Everyone benefits from taxes spent?  How about not burning hard working people's money and instead lowering taxes?  Apply the test to everyone? It already is applied to a lot of government employees.  Take away access to roads?  Already being done.  Though the point liberals/communists/socialist don't seem to get is the difference between using your own money to buy drugs and using someone else's money.  And it's not only the tax payers' money they're misusing.  They're taking money away from people who are on welfare because of need and they're taking money away from other government programs.

Sunday, May 13, 2012

Limmud FSU 2012

This weekend we went to Limmud FSU which was held at Princeton Marriott at Forrestal.
My initial reason for going, I'm a cheap Jew and this event was kosher, Friday to Sunday, $140 per person, kids under 10 free and there was a children's program.  Now, while apparently not all Marriotts are created equal and this one had no free internet and a lousy phone reception, there was all you can eat Benny's meat and all you can eat sushi and it don't get better than that.  Though the hotel had this cute rustic feel to it.

Some of the lectures I liked, some I didn't and the half assed scheduling was definitely a problem.  Mincha was not on the schedule at all, Saturday Shacharit was 1 hour, wtf, on the schedule and Sunday was also 1 hour.  And with eating, praying and lecture being at the same time, I missed a few I really wanted to go to.  Another damn annoying "feature" was eating in 2 groups, hour each, and getting put, with kids, into second group.

Academy Awards Acting Workshop with Hanoch Gutfreund, which I unfortunately mostly missed because of the Saturday Shacharit and breakfast was actually about meditation and self hypnosis and was very interesting.

Judaism and Homosexuality: Myths and Facts with Jay Michaelson, I almost fell asleep at.  I kept waiting for the guy to get to the Judaism part but he kept saying nothing relevant for 40 minutes and seemed to be more knowledgeable in the New Testament than Judaism.  And of course used the typical Gay/Liberal agenda of talking only about key points which may support his claim and ignoring everything else.  Also had to steal from Shmuley Boteach.

Image of Russian and Russian emigrants in USA with Anna Sergeeva & Lilia Zakirova was seriously a joke.  I felt kinda bad for the girls actually as they were up the creek without a paddle, had no idea what they were doing and why and their whole mission seems to be ridiculous and pointless.  How to present Russia in a better light to American businessmen.  Well, you can't because you can't actually vote out Putin and unlike China, Russia is not stable and not very interested in American money.  And they kept trying to imply that America's view of Russia impacts badly on Americans' view of Russian immigrants.

Jewish Eating Habits/Traditions, are they Healthy with Yakov Aidlin.  Very animated and funny speaker who presented many interesting points about people's eating habits and obesity.  Had a lot of fun listening to this guy.

Kosher Sex with Shmuley Boteach.  I don't think anything needs to be said about this lecture.  Room was packed like no other lecture and the guy is ROFLMAO every 5 minutes hilarious.

Limmud Gala, featuring Mira Stroika and Iryna Rosenfeld.  Well, Iryna's music is not really my type and Mira's only liked one of the songs.  Organizers thanked sponsors, talked about Einstein and showed previous of 2 movies.  One, looked funny and something I might be interested in watching, depending on the ending.  The other's about holocaust and I don't watch tragic movies.  The Gala was following by wine tasting and free wine is free wine.

Sunday I tried to make it to the Martial Arts with Alexandr Rosenfeld, which I missed on Saturday because of the shacharit plus breakfast.  I managed to only come for the last half hour and was then called in the middle by the mother of one of Shlomo's classmates about a playdate.  Did I mention Princeton Marriott has awful reception?  In the half hour or less for which I was present, I, ironically, saw application of Upper Block and Outside Middle Block from Tora Dojo used against knife attacks to disarm the opponent.

The last lecture I managed to get to was Head-on! Sculpture Workshop with Grigory Gurevich.  Loved it, loved it, loved it!  My head, picture included, may have looked like some kind of alien and the workshop should really have been 2 hours instead of a rushed 1 hour, but it was fun.  Now I have this 2lb, lopsided clay head which can be used to bludgeon somebody to death.

Leah went to a couple of history lectures which she loved.

Did I enjoy Limmud FSU 2012? Absolutely!  Though I hope next time they schedule things better and actually get the presenter's input on how much time and how much space are needed.

And to the Rabbi who woke up early Sunday morning, davened, took all of the siddurim and ran off leaving us without a minyan or siddurim for the scheduled 8am shacharit, you suck.