Change Photo
Shad Moen

Questions by Shad Moen

How to disable XDebug?

I think that my server became slow since I installed XDebug. So, in order to test my hypothesis I want to disable XD...

Why is my image distorted when decoding as FlateDecode using iTextSharp??

When decoding an image within a PDF as FlateDecode via iTextSharp the image is distorted and I can't seem to figure ...

How to set the font size of a Canvas' text item??

I have the following code: canvas.create_text(x, y, font="Purisa", text= k) How do I set the font size with a var...

SAPUI5 sap.m.DatePicker: How to change the focus of Datepicker calendar to today's date?

I'm facing an issue regarding sap.m.DatePicker. I want to see Today's Date in the calendar, when I click on the cale...

Full Screen overlay without back/home/menu button?

I have this function to show a fullscreen black overlay on my activity. To mimic screen off behaviour. private void...

Ternary operation in CoffeeScript?

I need to set value to a that depends on a condition. What is the shortest way to do this with CoffeeScript? E.g. ...

Compiler error: memset was not declared in this scope?

I am trying to compile my C program in Ubuntu 9.10 (gcc 4.4.1). I am getting this error: Rect.cpp:344: error: ‘m...

Create an empty data.frame?

I'm trying to initialize a data.frame without any rows. Basically, I want to specify the data types for each column ...

Group By ranges in Linq?

Thanks all, I am sorry but I am very beginner. Let me explain it in details: I have a table "theTable" and has two c...

Generic TryParse?

I am trying to create a generic extension that uses 'TryParse' to check if a string is a given type: public static ...

Mongoose: Cast to date failed for value when updating a document?

I use Mongoose in my project and in one of the schemas I use Date field, like this: reservationDay: { type:...

Что такое $_SERVER['REQUEST_URI'], Почему там полный адрес сторонних сайтов??

Начал собирать простенькую статистику на сайте. Решил в том чис...

Python 'utf-8' codec can't decode byte 0xe0?

import re dictionary = dict() for line in open('Group14.csv', encoding="utf8"): line = line.strip() date ...

how to set a default prompt when nothing selected for “select” using css?

Is it possible to set a default prompt when nothing is selected for select box using css? or is there an elegant way...

How to change only a specific letter at a specific index in a string to uppercase/lowercase?

Here is the code: def upper_every_nth (s, n): i = 0 while len (s) > (i * (0 + n)) : character = ...