I have the following code:
<?php
$date = new DateTime($uh->updated_at);
echo $date->format('d/M/Y');
?>
I need to generate the date, based on the value of a variable. And that this is generated in Spanish. I tried the foll...
As the title of the post says if you send me a url I want to redirect to that url . How would you do it completely?
if (isset($_GET["URL"])) {
header("Location: public_area.php?url=$actual_link");
}
I try to launch a command in Linux with Java with sudo and I can not find the way. I tried the following, but ... even though from the terminal it works, since the execution of my program it does not.
public Boolean activarServicio(){...
I am trying to get an app to start automatically when the device is turned on as long as the user wants. To do this, I save the value of a variable using SharedPreference . The problem is that for this I use Read and Save methods, that bei...
I'm analyzing a code and I found the class Constantes , which, as its name suggests, has this structure:
public final class Constantes {
public static final String PREFIJO = "prefijo_";
}
In another class I saw this import :...
I have the following code:
import os, glob
from obspy.core import read
for fname in glob.glob('BC.*'):
arch=fname.split('.')
print "<==== ", fname
# Quita la extension (.msd), si existe
if(len(arch) > 7):
del arc...
I tried to do a git cherry-pick , but it failed with a conflict:
$ git cherry-pick master
error: could not apply 456190d... Mejoro el post
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' o...
Greetings,
I appreciate help with the next issue that is already killing my head.
Using AspNet vNext (1.0.0-rc1-update1) I have had problems accessing session data from a controller for WebApi.
Randomly (sometimes, sometimes not), this e...
I have a list of objects and each has a date type calendar . I want to create a filter given two dates that I search for all objects between those dates.
I would also like to create a method that calculates me given today's date which i...