Posts

c# - asp.net login control with internet explorer -

c# - asp.net login control with internet explorer - i have asp.net login command in web application. while run application in net explorer , type password displayed question marks. is able solve problem? useful project. normally means font it's trying utilize not contain character specified. did set specific character or non-default font? (the default symbol should asterisk, * - not sure font.) also, check character set pages. c# asp.net internet-explorer login-control

postgresql - postgres default timezone -

postgresql - postgres default timezone - i installed postgresql 9 , time showing 1 hr behind server time. running select now() shows: 2011-07-12 11:51:50.453842+00 the server date shows: tue jul 12 12:51:40 bst 2011 it 1 hr behind timezone shown in phppgadmin is: timezone etc/gmt0 i have tried going postgresql.conf , setting timezone = gmt running restart no change. any ideas thought have used server timezone not?! solution!: did set gmt before , hr behind..after searching around turns out needed set europe/london. takes business relationship +1 hr in british summer time, gmt not! the time zone session parameter. so, can alter timezone current session. see the doc. set timezone 'gmt'; or, more closely next sql standard, utilize set time zone command. notice 2 words "time zone" code above uses single word "timezone". set time zone 'utc'; the doc explains difference: set time zone extends syntax ...

Android Path collision problems/solutions -

Android Path collision problems/solutions - i have drawing application in android allows user draw finger, , stores resulting shapes android path s. allow user delete individual path s have drawn, have implemented this solution uses bounding rect each path , , uses inner multi-dimensional binary array represent pixels within bounding rect . populate array taking path's command points , track along using mathematical equation quadratic bezier curve, setting each element in array have pixel underneath 1. using above setup, when in erasing mode, first check collision between users finger , bounding rect , , if collides, check see if pixel beingness touched user set 1 in array. now, when user loads note, load of shapes arraylist of 'stroke' objects can display them , can loop through them checking collision when in erase mode. store rect , binary array strokes in custom object. working expected, memory footprint of storing of data, binary array each path's bo...

Can't locate git-cvsimport? -

Can't locate git-cvsimport? - is git-cvsimport part of standard git installation? have 2 servers git versions 1.7.3.1 , 1.7.4, none of them seem have git-cvsimport . part of later version? please help. thanks. the command "git cvsimport". it's subcommand of git, not separate binary/shell script (and should part of standard installation, if compile yourself. ubuntu or other linux packages might have separate bundle that). git

sql - How to simplify embedded mysql query into a JOIN? -

sql - How to simplify embedded mysql query into a JOIN? - i read performance problems embedded mysql queries, wanted know how alter next "join" (supposedly improve performance?). i have 2 tables: create table if not exists `blog_categories` ( `category_id` int(11) not null auto_increment, `category_name` varchar(300) collate utf8_unicode_ci not null, `category_name_url` varchar(300) collate utf8_unicode_ci not null, `category_status` enum('online','offline') collate utf8_unicode_ci not null default 'offline' ) engine=myisam default charset=utf8 collate=utf8_unicode_ci auto_increment=8 ; create table if not exists `blog_articles` ( `article_id` int(11) not null auto_increment, `article_title` tinytext collate utf8_unicode_ci not null, `category_name` varchar(100) collate utf8_unicode_ci not null ) engine=myisam default charset=utf8 collate=utf8_unicode_ci auto_increment=26 ; the logic select categories have articles ass...

Magento - get the "not formatted" prices -

Magento - get the "not formatted" prices - how can not formatted prices (without currency , without separator of thousands) ? thanks help. if have product instance can do $product->getprice(); and format want magento

c# - Can Automapper be used in a console application? -

c# - Can Automapper be used in a console application? - is possible utilize automapper in console application? its getting started page suggests bootstrapper class called application start up, there no farther details class add together , phone call main() . how go using in simple console app? you can initialize automapper in console startup, there's no limitations; application_start startup place web programme in .net/iis, ie code called once. configuration must phone call @ start of web project goes in method. edit comment: if don't want create mappings on fly, rather have place initialize mappings, create function called initializeautomapper , create mapper.configure<x, y> calls in here. in main() method, phone call function. there lots of ways handle configuration, simpler way handle it. code sample class programme { static void main(string[] args) { // app starting here initializeautomapp...