Posts

amazon web services - Connecting to AWS EC2 Win8 Instance from Ubuntu with Remmina -

i'm real beginner in subject. job wants me connect our server on aws - have created win8 server there. i have dns, username , password - thats all. understand easy if have win machine (like of workers here) i'm running ubuntu 12.04. how on earth connect instance? dns have is: ec2-<server>.eu-west-1.compute.amazonaws.com do need remmina or can terminal? i'd connect server, , see gui version of server's desktop. if linux server it'd enough me connect console, windows figure need gui... when try putting dns,username,password in remmina message: unable connect rdp server <server>.eu-west-1.compute.amazonaws.com do need know else server? need .pem key? - i've read posts , written check/delete in ~/.freerdp/certs file - file doesn't exist on computer, when ls in ~/.freerdp/ directory -> empty. please don't know how connet remote server, , sadly couldn't find info on connection ubuntu win8 on aws. bonus help: how ins...

javascript - upload form file with ajax -

this question has answer here: is possible use ajax file upload? 7 answers i want upload file , save on server jquery ajax. i've tried didn't work. doesn't want process it. do: html code <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="submit_file" id="submit_file" required > <input type="text" name="submit_message" id="submit_message"> </form> <a href="javascript:upload();" ><img src="img/join_btn.png" /></a> validation , ajax <script type="text/javascript"> function upload() { var $submit_file = $("#submit_file").val(); var $submit_message = $("#submit_message").val(); ...

symfony - Symfony2, Trailing slash -

i'm facing issue don't know how solve. have route: www.mysite.com/news/{news} on local machine, don't have problem accessing it, on live-server trailing slash gets added, , ofc route doesn't exist = error. why slash added? how prevent it? other routes work fine, no "/" added there. happens in app.php ... app_dev.php works fine. i've tried remove trailing slash via mod_rewrite, route doesn't work. ( fosuserbundle /register 1 ....). does know, why there's trailing slash on live-server, not on local machine? same .htacces , 000-default.conf . , stated above app_dev.php works fine well. regards

c# - How to place one form just above another in winforms? -

im creating winforms application notified every , of messages or occurrences. notification style i'm expecting of gtalk, if user sends message shows notification on bottom right of screen, , if there message user @ same time new notification window shown above previous one. new window wont overlap or eclipse older one. so far have achieved few things getting window on bottom right of screen wasnt big task using code in constructor rectangle workingarea = screen.getworkingarea(this); this.location = new point(workingarea.right - size.width, workingarea.bottom - size.height); but once form named "notify" opened @ bottom right of screen. when new notification comes overlaps previous form. there can that. missing obvious? this parent form button, creates new notification forms: public partial class parent_form : form { public static list<form> activenotifications = new list<form>(); public parent_form() { initial...

c# - REST - Good design practice -

i new in windows phone development , trying write app retrieves data server , displays them user. have several resources on server, lets user, quest , activity. use restsharp lib retrieve data server. example of user: public void get(string id, lifehunt.mainpage.userready userready) { var client = new restclient(deployd.rest_url); var request = new restrequest(resource + "/{id}", method.get); request.addurlsegment("id", id); client.executeasync<user>(request, response => { if (response.statuscode == system.net.httpstatuscode.ok) { userready(callback.data); } }); } once user retrieved, call userready method passed callback , user mainpage display it. now, have repeat whole process crud (insert, get, getall, update, delete) functions users, quest , activity. means need 15 different callback methods, think not software design. the other way 1 callback method , check type of parameter passed in callb...

sql server - playframework 2.X JPA to MSSQL Unable to build Hibernate SessionFactory -

i want using jpa connect mssql,using sample computer-database-jpa can access h2 sql ,but when change mssql ,it's put error message "persistenceexception: [persistenceunit: defaultpersistenceunit] unable build hibernate sessionfactory" can me thanks! my application.conf # database configuration # ~~~~~ # can declare many datasources want. # convention, default datasource named `default` db.default.driver=net.sourceforge.jtds.jdbc.driver db.default.url="jdbc:jtds:sqlserver://127.0.0.1:1433;databasename=tcgw;selectmethod=cursor:sendstringasunicode=true" db.default.user=qqqq db.default.password=qqqq #db.default.driver=org.h2.driver #db.default.url="jdbc:h2:mem:play" db.default.jndiname=defaultds applyevolutions.default=true hibernate.use_sql_comments=true my persistence.xml <persistence-unit name="defaultpersistenceunit" > <provider>org.hibernate.ejb.hibernatepersistence</provider> <non-jta-data-source...

php - How to set application version for Symfony WebProfiler? -

according this commit can set own application name , version webprofiler. i'm asking myself (and ^^) what's intended way this? /** * constructor. * * @param string $name name of application using web profiler * @param string $version version of application using web profiler */ public function __construct($name = null, $version = null) { $this->name = $name; $this->version = $version; } the collector defined in configdatacollector of httpkernel component , constructor has 2 parameters defaulting null . service configured in collectors.xml of frameworkbundle , there's no way set parameters. i've overriden collector class setting data_collector.config.class in app/config/config.yml , injecting application's version way... totally feels wrong. do miss something? the commit message says (emphasis mine): [webprofiler] added possibility override application name/version in wdt i presume way way did it, is, use ...