All Questions

3
answers

How to implement the default presented in C # with EntityFramework?

I'm thinking of a way to apply the pattern ( multi-tenant ), raised on this issue ( Standard that has contributed to the reliability of software that needs to meet complex models such as multi-business models ) EntityFramework . As th...
asked on 17.09.2014 / 15:22
2
answers

Project Maven + Spring MVC + JSP, how to share view files?

I'm trying to fit a file structure to get a big project, an ERP to be more accurate. Today, there is a good deal of it made in PHP in a messy way. Let's take Java Web (Maven + Spring MVC + JSP + Hibernate) to create the next modules and in the f...
asked on 03.07.2014 / 18:37
4
answers

Close Mozilla tab, IE, Chrome

I'm trying to close a tab on my site, I've tried using the following commands: window.open('','_self',''); window.close(); window.close() self.close() var win = window.open("","_self"); win.close(); wi...
asked on 28.05.2014 / 16:08
1
answer

Object-oriented PHP tunneling

I have two models User and Post . When editing a post , I want to know if the user is the post author (the post has a user_id authorize editing. If I have a method inside the Post class that receives a User...
asked on 29.08.2018 / 17:31
1
answer

Analyze whether a number is even or odd

The program should do: Digite um Número: 12345 1 e ímpar 2 e par 3 e ímpar 4 e pra 5 e ímpar So far I've made the following code: void parImpar (int num) { int resto; while (num > 0) { resto = num%10;...
asked on 31.08.2018 / 05:03
2
answers

Download direct FTP file

How do I download a file directly from FTP without having to temporarily download to the PHP server? Code:<?php//....$fcon=ftp_connect($ftp_host);$conecta=ftp_login($fcon,$ftp_username,$ftp_senha);ftp_pasv($fcon,true);ftp_chdir($fcon,$ftp...
asked on 26.04.2018 / 15:50
2
answers

How to generate the alphabet with white space between the letters?

In Haskell I can generate the alphabet as follows: alfabeto = ['a'..'z'] To display it simply: alfabeto "abcdefghijklmnopqrstuvwxyz" However, I'd like to know how I can put a space between the letters, like this: "a b c d e f g h .....
asked on 17.07.2018 / 16:35
1
answer

Use missing ids

After viewing this question I remembered of a problem that I have come across many times: Let's suppose that the following table exists: Fruta ----------- 1 | Maça 2 | Banana 3 | Pêra If I delete Banana and add Pêssego an...
asked on 20.04.2018 / 16:08
3
answers

About fixed footer position only at bottom of page

I have a layout with a fixed menu on the left, the content of the page occupying the rest of the space and a footer also fixed: * { margin: 0; padding: 0; text-align: center; } nav { z-index: 2; width: 25%; height: 10...
asked on 28.09.2018 / 18:35
1
answer

Problem with include causing unwanted space

I'm creating a page with some includes ( top and footer ) and where I put these includes appears a huge space with a strange code (% code) (the code does not appear on the page, only in the browser element inspector): Look at the im...
asked on 02.08.2018 / 01:26