Posts

java - Why can't I install Eclipse? -

i trying install eclipse. > desktop-file-install eclipse.desktop > error on file "eclipse.desktop": key file not start group >name=eclipse >type=application >exec=/opt/eclipse/eclipse >terminal=false >icon=/opt/eclipse/icon.xpm >comment=integrated development environment >nodisplay=false >categories=development;ide; >name[en]=eclipse what wrong? ubuntu version 10.04 not know if plays role here. you need add [desktop entry] to top of file--it's group name command looking for. see here more information desktop entries.

mysql - Update Row in Table on Database for Each New User WebMatrix -

i have table (about_user) in database (startersite) supposed work each seperate row each seperate user. however, no matter user signed in, have access same row (in other words new rows aren't being created each new user). have triple checked make sure in database set correctly. using startersite template registration page (edited question): // if information valid, create new account if (validation.isvalid()) { // insert new user database var db = database.open("startersite"); // check if user exists var user = db.querysingle("select email userprofile lower(email) = lower(@0)", email); if (user == null) { // insert email profile table db.execute("insert userprofile (email) values (@0)", email); // create , associate new entry in membership database. // if successful, continue processing request try { bool requireemailconfirmat...

android - How to set position of text in TextView/EditText -

for example, lets have for-loop , @ every iteration(let's textview t), t.settext(wordlist.get(i)). sets value of textview whatever last word in list is. want set words next each other. best way that? note: storing words in 1 big string not option you can use append method of textview. append string each iteration example: t.append(wordlist.get(i));

http - In Dart on server-side, how to set headers in HttpClient -

i trying use dart httpclient class (io library / server-side!) , can not think how equivalent of dart (client-side) call setrequestheader. specifically want set "content-type" "application/json" as per line (from client-side): request.setrequestheader("content-type", "application/json"); i'm using format: new httpclient().posturl(uri.parse(url)) .then((httpclientrequest request) => request.close()) .then((httpclientresponse response) => response.transform(new utf8decoder()).listen(_set_dbstats)); and when try insert: .then((httpclientrequest request) => request.head("content-type", "application/json")) i'm informed (in dart editor) head not method request... (although see in api?!) related being used post? thanks in advance! here snippet of working code evolved numerous tests , dealing issues outside scope of original question. guenter zoechbauer hero...

html - CSS vertical height justification -

please auto vertical height div or li elements via css. when table: <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td rowspan="5" height="600">img width=100% height=auto</td> <td>1</td> </tr> <tr> <td>2</td> </tr> <tr> <td>3</td> </tr> <tr> <td>4</td> </tr> <tr> <td>5</td> </tr> </table> as example , every cell in right column has 1/5 of left cell's height. how can without table , div or li elements? left cell's height not known; element responsive. <div style="width:100%;border:1px solid red;"> <div style="width:50%;height:100px;float:left;line-height:227px">test</div> <div style="width:49%;float:right;border:1px solid re...

c# - DirectoryNotFoundException error while copying the file -

i trying develop web application send file server (in case server local one). when try send file, gives: directorynotfoundexception: not find part of path. i have verified folder exists. , ensure, create directory before copying still error. please? here code: string filename = system.io.path.getfilename("c:\\test\\sample.txt"); string savelocation = httpcontext.current.server.mappath("uploadfile") + "\\"; if (system.io.directory.exists(savelocation)) { system.io.directory.createdirectory(savelocation); system.io.file.copy("c:\\test\\sample.txt", savelocation, true); } the value of savelocation is: c:\users\nerd\documents\visual studio 2012\projects\webapplication3\webapplication3\uploadfile\ the system.io.file.copy needs second argument path file , not path directory. adjust code include name want file saved. string filename = system.io.path.getfilename("c:\\test\\sample.txt"); string savel...

select - MySql how to count rows in 1 command -

hey got table workers , number of department work @ , need show amount of departments , there way in 1 select command? been trying use count , group manage show either total amount of workers or total amount of workers per department. p.s explain alittle better simple version , got table name / department john 5 jerry 4 josh 4 erik 1 in case need somehting : amount_of_departments 3 if use count( ) amount_of_departments ... group department 1 2 1 or if use count( ) amount_of_departments .... 4 if possible lacking basic sql knowledge since starter : x you looking count(distinct) : select count(distinct department) table t;