Current Date in SQL Server format yyyy-mm-dd
SELECT convert(varchar(30), cast(getdate() as date), 120)
2014-11-05
Wednesday, November 5, 2014
Wednesday, October 29, 2014
Eclipe Java was started but returned exit code=13
Eclipe Java was started but returned exit code=13
Please check the JDK_HOME path in environment variables java
and check in a console if the java path is correct
Instruction
java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
Regards,
Thursday, October 16, 2014
Values in R.string. returns int value in Android Java (Eclipse)
In Eclipse / Android, if you try to use a R.string.name_field and shows an int value, try with this:
- context.getString(R.string.name_field)
or
- this.getString(R.string.name_field)
or
- getResources().getString(R.string.name_field)
Regards,
Wednesday, October 1, 2014
Launch Failed. Binary not found. CDT on Eclipse Luna
If you try to run a C++ HelloWorld project and appers this message:
Launch Failed. Binary not found
Go to: Project -> Build Project
Or
Project -> Build Project -> Run As Local C/C++ Application
Launch Failed. Binary not found
Go to: Project -> Build Project
Or
Project -> Build Project -> Run As Local C/C++ Application
Saturday, September 20, 2014
Android Platform Version + API Level + VERSION_CODE
Android Platform Version + API Level + VERSION_CODE
Platform Version API Level VERSION_CODE
Android 4.4 19 KITKAT Platform
Android 4.3 18 JELLY_BEAN_MR2
Android 4.2, 4.2.2 17 JELLY_BEAN_MR1
Android 4.1, 4.1.1 16 JELLY_BEAN Platform
Android 4.0.3, 4.0.4 15 ICE_CREAM_SANDWICH_MR1
Android 4.0, 4.0.1, 4.0.2 14 ICE_CREAM_SANDWICH
Android 3.2 13 HONEYCOMB_MR2
Android 3.1.x 12 HONEYCOMB_MR1
Android 3.0.x 11 HONEYCOMB
Android 2.3.4
Android 2.3.3 10 GINGERBREAD_MR1
Android 2.3.2
Android 2.3.1
Android 2.3 9 GINGERBREAD
Android 2.2.x 8 FROYO
Android 2.1.x 7 ECLAIR_MR1
Android 2.0.1 6 ECLAIR_0_1
Android 2.0 5 ECLAIR
Android 1.6 4 DONUT
Android 1.5 3 CUPCAKE
Android 1.1 2 BASE_1_1
Android 1.0 1 BASE
Link:https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
Platform Version API Level VERSION_CODE
Android 4.4 19 KITKAT Platform
Android 4.3 18 JELLY_BEAN_MR2
Android 4.2, 4.2.2 17 JELLY_BEAN_MR1
Android 4.1, 4.1.1 16 JELLY_BEAN Platform
Android 4.0.3, 4.0.4 15 ICE_CREAM_SANDWICH_MR1
Android 4.0, 4.0.1, 4.0.2 14 ICE_CREAM_SANDWICH
Android 3.2 13 HONEYCOMB_MR2
Android 3.1.x 12 HONEYCOMB_MR1
Android 3.0.x 11 HONEYCOMB
Android 2.3.4
Android 2.3.3 10 GINGERBREAD_MR1
Android 2.3.2
Android 2.3.1
Android 2.3 9 GINGERBREAD
Android 2.2.x 8 FROYO
Android 2.1.x 7 ECLAIR_MR1
Android 2.0.1 6 ECLAIR_0_1
Android 2.0 5 ECLAIR
Android 1.6 4 DONUT
Android 1.5 3 CUPCAKE
Android 1.1 2 BASE_1_1
Android 1.0 1 BASE
Link:https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
Can't see the database with Eclipse Plugin Questoid SQLite Browser for Android
If you try to find and see the data for an Android SQLite database in Eclipse and you can't see it.
Please use the extension ".db" in lowercase, please don't try with these extensions .SLQLITE, .BD, .DB, .SQL, or similar or without extensions.
See more info in this wonderful site:
Sunday, September 7, 2014
Unable to resolve target 'android-18'
Unable to resolve target 'android-18'
Error:
[2014-09-07 13:08:21 - ProjectName] Unable to resolve target 'android-18'
Solution:
Download from Windows/Android SDK Manager/Android 4.3 (API 18):
- SDK Platform.
- ARM EABI v7a System Image
- Intel X86 Atom System Image
Restart Eclipse.
:)
Error:
[2014-09-07 13:08:21 - ProjectName] Unable to resolve target 'android-18'
Solution:
Download from Windows/Android SDK Manager/Android 4.3 (API 18):
- SDK Platform.
- ARM EABI v7a System Image
- Intel X86 Atom System Image
Restart Eclipse.
:)
Monday, September 1, 2014
res\drawable-xhdpi\IMAGE.png: Invalid file name: must contain only [a-z0-9_.]
if you have this error in Android: res\drawable-xhdpi\IMAGE.png: Invalid file name: must contain only [a-z0-9_.]
- Restart Eclipse
- Validate the filename without: ,- capital letters !"#$%&/()=?'¡¿*+]}[{:.;,
- Restart Eclipse
- Validate the filename without: ,- capital letters !"#$%&/()=?'¡¿*+]}[{:.;,
Tuesday, August 26, 2014
Eclipse Android: No genera archivo R.java
Si en Eclipse Android: No genera archivo R.java, intentar crear un nuevo proyecto desde cero un hola mundo simple con esto permite hacer una reconfiguración al ambiente y crear los archivos del proyecto que no encuentra ni genera la clase R.java
Causas: esto puede presentarse luego de haber actualizado la versión de Java, abrir el proyecto en un equipo que no tenga el mismo JDK, o por haber actualizado el Android SDK Manager (o haber actualizado y copiado los SDK Tools, SDK plataform, ARM y demás, anteriores en el nuevo SDK Manager)
Espero sea útil.
Saludos,
Causas: esto puede presentarse luego de haber actualizado la versión de Java, abrir el proyecto en un equipo que no tenga el mismo JDK, o por haber actualizado el Android SDK Manager (o haber actualizado y copiado los SDK Tools, SDK plataform, ARM y demás, anteriores en el nuevo SDK Manager)
Espero sea útil.
Saludos,
Mensaje en Eclipse para Android: create a new element at the top level in temp /Message in Eclipse for Android: create a new element at the top level in temp
Menús en Android
Al tratar de crear un menú en Android en el archivo XML de
la carpeta: res/menu y se presente el mensaje: "create a new element at the
top level in temp", el cual no presenta los elementos para crear las
opciones, intenta solucionarlo con los siguientes pasos:
En el menú superior de Eclipse opción Project/Clean.../Clean all projects, botón OK.
Recomiendo tener habilitada la opción Project/Build
Automatically.
Saludos,
Menus in Android
When trying to create a menu in Android XML file in the folder: res / menu and the message is this: "create a new element at the top level in temp" which does not have the elements to create the options, try solve it with the following steps:
In the top menu of Eclipse Project / Clean option ... / Clean all projects, OK button.
I recommend having enabled Project / Build Automatically option.
regards,
Friday, August 15, 2014
Palabras nuevas
Oblonga = Más largo que ancho.
Decimonónico = Perteneciente o relativo al siglo XIX.
Entusiástico = Entusiasmo.
Mecenazgo: Cualidad de mecenas (Persona que patrocina las letras o las artes), Protección dispensada por una persona a un escritor o artista.
Laudo: Decisión o fallo que dictan los árbitros o amigables componedores, contiene plazo y costo.
Oblonga = Más largo que ancho.
Decimonónico = Perteneciente o relativo al siglo XIX.
Entusiástico = Entusiasmo.
Mecenazgo: Cualidad de mecenas (Persona que patrocina las letras o las artes), Protección dispensada por una persona a un escritor o artista.
Laudo: Decisión o fallo que dictan los árbitros o amigables componedores, contiene plazo y costo.
SQL Server - The OLE provider "ADSDSOObject" for linked server "ADSI" reported an error
Si tienen el error en SQL Server 2008
The OLE DB provider "ADSDSOObject" for linked server "ADSI" reported an error. The provider indicates that the user did not have the permission to perform the operation.
Usen previo esta instrucción:
EXEC sp_addlinkedsrvlogin @rmtsrvname=N'ADSI',@useself=N'False',@locallogin=NULL,@rmtuser=N'DOMINIO\usuario',@rmtpassword=N'clave'
Con esto se soluciona el error.
Nota: El usuario debe tener suficiente permisos de ejecutación.
Saludos,
The OLE DB provider "ADSDSOObject" for linked server "ADSI" reported an error. The provider indicates that the user did not have the permission to perform the operation.
Usen previo esta instrucción:
EXEC sp_addlinkedsrvlogin @rmtsrvname=N'ADSI',@useself=N'False',@locallogin=NULL,@rmtuser=N'DOMINIO\usuario',@rmtpassword=N'clave'
Con esto se soluciona el error.
Nota: El usuario debe tener suficiente permisos de ejecutación.
Saludos,
Subscribe to:
Posts (Atom)