<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss">
<channel>
<title>Recent Questions - Question and Answer for Programmer @ Omkarmin</title>
<link>http://www.omkarmin.com/rss/recent</link>
<description>Recent Questions</description>
<item>
  <title>help  databound listpicker blank entries</title>
  <link>http://www.omkarmin.com/Java/help--databound-listpicker-blank-entries_7</link>
  <description>
    <![CDATA[have just started trying to build my first wp7 app and am learning c and xaml from scratch ive made good progress but am having trouble with the silverlight toolkit listpicker

i databound a list picker using the following template

        
        
            
                
            
        

bound to this list concunitsource  new list()

            concunitsourceadd(new units() { molar  pm factor  -12})
            concunitsourceadd(new units() { molar  nm factor  -9 grams  ng})
            concunitsourceadd(new units() { molar  m factor  -6 grams  g litres  l })
            concunitsourceadd(new units() { molar  mm factor  -3 grams  mg litres  ml })
            concunitsourceadd(new units() { molar  m factor  0 grams  g litres  l })


the listpicker binds but i get two small blank but selectable entries at the top (presumably space for pico and nano litres) i left these out as they would not get used by the user is there anyway to prevent this and just show the 3 that i want?

many thanks for your time<br><br>Asked By: <a href="http://www.omkarmin.com/member/1/andra_yanie">andra_yanie</a><br />on 04-02-2012<br>Category: Java<br>Views: 18 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>andra_yanie</author>
</item>
<item>
  <title>how to scaling sql server on amazon web services ?</title>
  <link>http://www.omkarmin.com/API/how-to-scaling-sql-server-on-amazon-web-services-?_6</link>
  <description>
    <![CDATA[i currently have a web application that i would like to scale out using amazon web services

my web application specs

c aspnet sql server

i have a file storage for my users and have a sql server database for all my data i want to scale on amazon web services using s3 i am not sure how to scale with sql server on amazon web services? the amazon relational database service doesnt look like its for sql server would i just run it on a windows instance? how would i scale
<br><br>Asked By: <a href="http://www.omkarmin.com/member/2/randy">randy</a><br />on 04-02-2012<br>Category: API<br>Views: 14 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>randy</author>
</item>
<item>
  <title>how to  aspnet jquery ajax autocomplete data</title>
  <link>http://www.omkarmin.com/ASPNET/how-to--aspnet-jquery-ajax-autocomplete-data_4</link>
  <description>
    <![CDATA[hey is it possible to change the data source- the autocomplete from this jquery code

(textbox)autocomplete(
autocompletephp
{
    delay 10
    minchars 2
    matchsubset 1
    matchcontains 1
    cachelength 10
    onitemselect selectitem
    onfindvalue findvalue
    formatitem formatitem
    autofill true
}
)


to get data from web service?? 

url searchserviceasmxsearch
            data {text  requestterm  }
            datatype json
            type post
            contenttype applicationjson charsetutf-8


i dont know how to change that autocomplete to a webservice

thanks
<br><br>Asked By: <a href="http://www.omkarmin.com/member/2/randy">randy</a><br />on 23-01-2012<br>Category: ASP.NET<br>Views: 19 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>randy</author>
</item>
<item>
  <title>how to fix propel orm wrong table prefix with external schema</title>
  <link>http://www.omkarmin.com/PHP/how-to-fix-propel-orm-wrong-table-prefix-with-external-schema_2</link>
  <description>
    <![CDATA[i am using propel orm as database abstraction layer i want to define different schemaxml files for diffenrent modules eg userxmlschema for handling users and roles or appschemaxml for the application model

my problem is i want to reference to the user table of the userschemaxml i can handle this by the tag but i want to use another table prefix for the user schema tables running propel-gen creates two sql files (one for the userschema and one for the appschema) but the problem is that the user-schema tables are generated twice first with correct table prefix of the user schema file and the others with the prefix of the app schema file the foreign key also references to the wrong tables (that from the table with the prefix of the appschemaxml)

i do not know any way to prevent this behavior any hints?
<br><br>Asked By: <a href="http://www.omkarmin.com/member/1/andra_yanie">andra_yanie</a><br />on 23-01-2012<br>Category: PHP<br>Views: 20 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>andra_yanie</author>
</item>
<item>
  <title>php script code to validate form if room number is not available in database</title>
  <link>http://www.omkarmin.com/PHP/php-script-code-to-validate-form-if-room-number-is-not-available-in-database_1</link>
  <description>
    <![CDATA[below i have a php code where it will check to see if the room number entered in a textbox is in the database or not


 ?php   

room_there  true

    while( room_there ){
    roomresult  mysql_query( select room from room where room    (int) _postroomchosen)
    if( mysql_num_rows( roomresult )  0 ) room_there  false
}

    ? 

room          


now what i want to know is how do i create a vlaidation for this my validation works in javascript and if it is met then it should display a message such as room number is invalid else display  which is nothing how can i validate if room number not in database is met?

below is an example of my validation if the room number textbox is empty to show how i display my validation messages

function validation() {

           var isdatavalid  true

        var roomtexto  documentgetelementbyid(room) 

    this retrieves an element from the textbox where user enters in a room number

        var errroommsgo  documentgetelementbyid(roomalert)

      this is where the alert message appears for validation



   if (roomtextovalue  ){
          errroommsgoinnerhtml  please enter in a room number
          isdatavalid  false
        }else if (trimmedroomtextlength){
          errroommsgoinnerhtml  please enter in a room number 
          isdatavalid  false      
    }else{
                errroommsgoinnerhtml   
        }

        }
<br><br>Asked By: <a href="http://www.omkarmin.com/member/1/andra_yanie">andra_yanie</a><br />on 23-01-2012<br>Category: PHP<br>Views: 28 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>andra_yanie</author>
</item>
</channel>
</rss> 
