Posts

java - @OneToOne Relationship on Spring mcv -

i'm tired of trying things , don't have results. user has 1 country , country has many user. problem when make new user. don't have idea problem. i have user bean: @entity @table(name="usuarios") public class usuario { @id @generatedvalue @column(name="id") private integer id; @column(name="nombre", nullable=false) private string nombre; @onetoone @joincolumn(name = "id_pais") private pais pais; /* getters & setters */ .... } the country bean: @entity @table(name="paises") public class pais { @id @generatedvalue(strategy = generationtype.auto) @column(name="id") private integer id; @column(name="nombre") private string nombre; @onetomany(mappedby="pais") private set<usuario> usuarios; /* getters & setters */ } the controller: @controller @requestmapping(value = "/usuario...

how to install a R package from github manually or offline -

i try download tsdyn package github (it not yet updated on cran) proxy prevents me connect github. library(devtools) install_github("matthieustigler/tsdyn", ref="dev94", subdir="tsdyn") downloading github repo matthieustigler/tsdyn@dev94 erreur dans function (type, msg, aserror = true) : failed connect api.github.com port 443: connection refused then downloaded .zip , tried install package .zip , got error : erreur dans read.dcf(file.path(pkgname, "description"), c("package", "type")) : impossible d'ouvrir la connexion de plus : message d'avis : in read.dcf(file.path(pkgname, "description"), c("package", "type")) : impossible d'ouvrir le fichier compressé 'tsdyn-master/description', cause probable : 'no such file or directory' i don't understand since can find description file in repository. think trying connect internet not allowed profession...

How to create a text file using a bamboo task -

i started on old project using maven, , move bamboo ci. executing tests, needs local configuration file. moment, these files stored in our git not optimal. know if there tasks creating text file in local build repository. content of text file must editable in task configuration panel. as workaround, use script task, not optimal... so if understand correctly, you're trying inject runtime values needed testing within bamboo plan configuration. if you're trying do, why not pass needed runtime values bamboo variables , access them usual environment variable. hope helps,

C++ assembly function call pushes base pointer twice -

using visual studio, have made simple class in c++ called watertank, has member function: double watertank::getcapacity() const{ return capacity; } when run code: watertank wt = watertank(100); double capacity = wt.getcapacity(); the double capacity = wt.getcapacity(); generates following assembly: push ebp mov ebp, esp mov ecx, 0f2e320h call watertank::getcapacity(0f21073h) fstp qword ptr ds:[0f2e330h] cmp ebp,esp call _rtc_checkesp (0f250b0h) pop ebp ret and assembly generated double watertank::getcapacity() const body is: push ebp mov ebp,esp push ecx mov dword ptr [this],0cccccccch mov dword ptr [this],ecx mov eax,dword ptr [this] fld qword ptr [eax] mov esp,ebp pop ebp ret now, see it, when calling wt.getcapacity() function, base pointer pushed onto stack , base pointer updated current stack p...

git - View a repository on every commit -

i want view repository first commit , kinda on press of button or may command ,transit next commit (the whole repo).i run code @ of commits . there tool or group of command so. i couldnt phrase question enough please comment. i run programs @ specific commit. this m doing understand design procedure of developer.(eg .how whole project put ?). i share readme of project based on idea . a code reader leverages power of github's commit feature animate process of code writing.it works tutor making each commit level reach , @ 100 % complete clone of given repo. in tutor mode can see next step , understand write code. new programmers learn how develop large applications , think in such pragmatic way. program , m more thinking of desktop application try make web app. that git filter-branch able do: --tree-filter <command> this filter rewriting tree , contents --index-filter <command> this filter rewriting index. similar tree filter not che...

mmenu: How to select correct submenu on page load/refresh -

i have website mmenu. there submenu. entering submenu displays entries. select submenu , content loads in #content. (jquery/ajax browser history api). but if hit refresh or enter url manually, i'm starting on main menu , need re-enter submenu. have seen on http://mmenu.frebsite.nl/tutorial/ there way enter submenus automatically on page load. how work? there function can call? the last li tag submenu must have following class: .mm-selected should working.

mono - Monodeveloper run current project -

how can make mono developer run ( ctrl+f5 ) current project i'm on, in solution more 1. in solutions startup options can choose run specific project or multiple @ same time. there option run "current selection" in visual studio ? in solution window can right click project , select either run item or start debugging item . run item run without debugger, whilst start debugging item run debugger.