Posts

jsp - Apache tomcat setup -

i think first question here in stackoverflow. it's simple setting tomcat server. downloaded tomcat 7 yesterday, unzipped , run 'start'. strange reason, when try open "http://localhost:8080" redirecting me "glassfish enterprise server". i not sure when i've installed glassfish server (may did long ago). tried stop using commands necessary, url: http://thedata.org/book/start-and-stop-glassfish-server but doesn't stop. can please me in setting tomcat server ? thank much. a bit off topic : want server environment (at home) can practice server-scripting programming jsp, servlets , on, if can me in setting free server side 'eclipse' environment, great, appreciate it. thank you. glassfish part of java ee sdk download. downloaded , installed java ee sdk while being ignorant it's software bundle includes glassfish application server, netbeans ide (optionally) , several documentation/examples. likely installed glass...

c# - UI automation not tracking Telerik controls -

i creating application record application level , control events . using white recorder framework, able trace other controls not telerik based . want know why telerik controls not getting traced since derived system.windows.control class . is there way can use ui automation elements track telerik controls . how achieve this? afaik windows forms not support uia while silverlight , wpf does. here few links this: http://social.msdn.microsoft.com/forums/en/vsautotest/thread/016e46e3-f7cd-46fb-9e12-728f4c846304 http://blogs.msdn.com/b/lixiong/archive/2009/03/28/msaa-uia-brief-explanation.aspx

database - Every derived table must have its own alias error in MySQL -

i have following query: select sum( cost ) ( select s.cost sandwiches s s.name = "cheese steak" ) union ( select p.cost pizza p type = "plain" , size = "l" ) that gives me error of: #1248 - every derived table must have own alias you need alias temp tables select sum( cost ) ( ( select s.cost sandwiches s s.name = "cheese steak" ) t1 union ( select p.cost pizza p type = "plain" , size = "l" ) t2 ) t

Keep XMPP connection (using asmack) alive on Android -

i'm developing application receives push notifications via xmpp ( know c2dm, has limitations , can't use because of ), problem connection after time garbage collected , can't send push notification android device. i think need implement android service have no idea how implement service keep connection alive. me? i not sure if "garbage collected" right term here. more activity gets closed android, because create connection in activity. but right, in order keep stable connection need put xmpp connection service . make sure connection in thread, because service not process or thread. done, example handler . handlerthread thread = new handlerthread(service_thread_name); thread.start(); handlerthreadid = thread.getid(); servicelooper = thread.getlooper(); servicehandler = new servicehandler(servicelooper); then can communicate service thread via messages/intents. alternative binder interface. you have on how others this: beem , gtalksms both...

asp.net mvc 2 - System.MissingMethodException: No parameterless constructor defined for this object -

i have elmah controller factorym these steps using elmah makes dont have mark each method in controllers. file telling me dont have parameterless constructor while do pricelistcontroller public partial class pricelistcontroller : controller { public pricelistcontroller() { } [canonicalurlattribute("pricelist")] [compressionfilter(order = 1)] [cachefilter(duration = 120, order = 2)] public virtual actionresult index() { godscreationtaxidermyentities context = new godscreationtaxidermyentities(); var viewmodel = new pricelistviewmodel() { pricelistanimals = context.getanimallistforpricelist() }; return view(viewmodel); } [compressionfilter(order = 1)] [cachefilter(duration = 120, order = 2)] public virtual actionresult list(string animal) { godscreationtaxidermyentities context = new godscreationtaxidermyentities(); var viewmodel = new pricelistindexviewmodel() { animalpric...

jquery - animated images for navigation bar -

i trying build navigation bar shows animated gif on hover/click backdrop text. for example - want have navigation bar 3 links - home, catalogues , contact. when user scrolls on 1 of menus animated gif(?) or css/jquery animation occurs circle grows behind text , shrinks again when mouse scrolls different menu (and same effect occurs on one). has seen - , possible use animated gif rollover image - issue wouldnt able shrink circle again when hovered away link...... hope makes sense , can help!!! thanks jd you can use jquery create special effect using .hover() , .animate() . can find working example here: http://colorpowered.com/blend/ and second part of question. yes, can use animated gifs rollover image.

Android linear layout align center and right -

Image
this have: <?xml version="1.0" encoding="utf-8"?> <linearlayout android:id="@+id/linearlayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="#ffffff"> <linearlayout android:id="@+id/linearlayout01" android:layout_width="fill_parent" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:background="#e30000" android:layout_gravity="center_horizontal|center_vertical" android:gravity="center_horizontal|center_vertical"> <textview android:id="@+id/textview00" andro...