I need to include an image within the <a> tag of an ActionLink. What is the best way to do this?
The final rendered link should look like this,
<a href="/Home/Test"><img src="test.jpg" />Test</a>
Okay I use this script here to make a backup of my database:
mysqldump -u root -h localhost -pPASSWORD forums | gzip -9 > backup-$(date +%Y-%m-%d).sql.gz
This is used in a cron daily.
But I need to download this remotely or through a ftp program every day as well so I have a physical copy of it on my home hard drive, is this possible? I know it is, can anyone tell me a quick way to do it?
Hello,
when we connect a machine to AD, user will be able to log into the machine with their AD user-name and password, at home they can do that ( when they are not on the work network) which fine and good
we need to have a program Auto-start when the user login BUT only when they are at work and in our network!
how can I achieve that? (I can build a checking program in c#)
but not sure where to start!
cheers
i found this in this file: http://www.boost.org/doc/libs/1_43_0/boost/spirit/home/phoenix/core/actor.hpp
What does this syntax means?
struct actor ... {
...
template <typename T0, typename T1>
typename result<actor(T0&,T1&)>::type // this line
thank you
in my site i want to set default page to open, using this script
if (!isset($_GET))
{
$_GET['id'] = "home";
}
but it doesn't work. can somebody explain why?
When generating specs with :
rails g controller Home index
A spec is generated with the older object.should syntax
require 'spec_helper'
describe HomeController do
describe "GET 'index'" do
it "returns http success" do
get 'index'
response.should be_success
end
end
end
Is it possible to configure the generator to use the expect syntax instead?
Desired output:
require 'spec_helper'
describe HomeController do
describe "GET 'index'" do
it "returns http success" do
get 'index'
expect(response).to be_success
end
end
end
in config/application.rb:
config.generators do |g|
g.test_framework :rspec, fixture: true
g.fixture_replacement :factory_girl, dir: 'spec/factories'
g.view_specs false
g.stylesheets = false
g.javascripts = false
end
I want to send
www.mydomain.com/approve/SomeFunkyVariable to
www.mydomain.com/home/index.php?option=com_content&task=view&id=574&Itemid=85&approve=someFunkyVariable
What is the rule for this?
Hey all, this is my first post. I recently upgraded a wordpress site, all things load but on the top of the page and bottom of the page I get this error.
Warning: session_start() [function.session-start]: open(/tmp/sess_6v2kul3t823ah9074g3cl2lrt6, O_RDWR) failed: Permission denied (13) in /home/admin_m3/incommunion.org/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121
How can I remove it from the page? I believe the server automatically upgraded the version of Wordpress.
Any idea?
Newbie A
I am looking for a "portal" for wrapping our large Subversion repositories similar to GitHub. Does anyone know of any options? Features we are looking for are; home page for projects that include wiki bug tracking etc. This would be for an internal deployment.
I would like to learn Computer Graphics and be good for
my career but the only thing i know is python programming.
where should i start and go next? Im also studying from home.
As far as I have read in the Internet and official documentation, it isn't possible to make a scrollable widget. Also all my tries failed. I even tried to subclass TextView to implement my own scroll method, but nothing worked.
Are there any ways to achieve that?
Btw.... there are solutions if you use for example htc sense or home desktop ++, but i want to make it available to other users which don't use this
I'm using a PHP framework which redirect all URL to the index.php file using the following rule:
RewriteRule ^(.*)$ /index.php/$1 [L]
However, I want to be able to use index.html IF ANY ONLY IF users hit the home page. For instance, if users hit http:// website.com it will render the index.html file. Any other URL will use index.php. Could someone help?
ThankS
Looking for a way to rename files that are uploaded by users through a filefield. For example, rename user profile photos using uniqid.
I found a good solution for D6 here:
http://www.wesjones.net/home/2011/03/drupal-6-how-to-change-filename-on-upload
but can't find anything for D7.
Another option is to use File (Field) Paths, but (1) the module causes warnings on my setup and (2) seems to be a bit of an overkill to install a general module for a very specific purpose.
I'm trying to use http://ls1.bigseapreview.com as a domain for a Rails project. The problem is it doesn't seem to be correctly mapping any routing apart from the home page.
I have added /about but you can see that you will just get a 404, but it works locally.
What do I have to do to fix this?
Hello,
Can anybody tell me how do i give absolute path of the img tag's src attribute?
The following doesn't work
<img alt="NO IMAGE" src="/home/administrator/tiger-info0[1].gif"/>
I am working On Ubuntu and i am very sure that image exists on this path.
Hi,
i am having a Group named Editor(JAclPlus) .- Previously i had set this editor group to edit all contents but now i am trying to disable the editing option for the front Home page content alone . how to do so??
Hi,
I need some advice from experts :)
I will develop a website using PHP and I will use also MySQL. I bought some server space from a Virtual private server including all the service needed.
How should I develop the site? Shall I develop it on my machine at home (using for example Wamp), and when ready transfer all the files to the server? If so what is the best method to transfer also the database?
Thanks in advance!!
Our exchange system here has been setup that any emails older and x weeks are automatically archived.
Once they are when you click on them they are loaded from the archive and then opened.
This makes backing older emails up onto say another drive impossible because when I open them from say home, I'm not connected to the exchange server and thus the email cannot be opened.
Is there a way I can back them up and still have them available?
How can i check (with SELinux) access to the file by process name?
For examle: we have 2 process:
* /usr/bin/foo1
* /usr/bin/foo2
They are run under account with username userA and
try to open for modify file:
/home/userA/test.txt
I want that if foo1 try to open file - it's ok. But if foo2 try to open
this file - i have message about this in /var/log
Problem is that both processes have the same user ID. And i cant use RBAC by username.
Hi,
I have installed "Damn Small Linux" on my home computer for doing C development in unix. But the distribution doesn't by default come with the C development environment and I am facing some issues when trying to install the gcc.
Is there any other small Linux distribution which by default has the required packages for the C development. And also I don't want additional software which takes up lot of space but still would like to have the graphical environment.
Thanks
After writing all the comments inside the code about the javadoc such as
/**
* This method compares the student's answer to the standard answer * @param ans The student's answer
* @return True for correct answer; False for incorrect answer
*/
boolean compareAnswer(int ans);
I guess it starts with :
javadoc [optionss] [packages|files]
I'm not sure what is the regular or default [option] and how can I say to produce it in my current home directory?
What is wrong with my role redirection,
protected void Login1_LoggedIn(object sender, EventArgs e)
{
{
if (Roles.IsUserInRole(Login1.UserName, "Aemy"))
Response.Redirect("~/Admin/Home.aspx");
else if (Roles.IsUserInRole(Login1.UserName, "User"))
Response.Redirect("~/Welcome/User1.aspx");
}
}
Error : The name 'Roles' does not exist in the current context
I am working on the Login module of my Struts2 app. I have created the Login Page, and a home Page(which is rendered by Login.action). Now i want to add another feature, forgot password which after performing its business must call the Login.action so that the user need not have to Login explicitly. what should i code and where so that as soon as the ForgotPassword.action finishes its work it passes control to Login.action.
I am considering upgrading my work computer to use windows 8 as the new file transferring feature seems very useful. Unfortunately after installing windows 8 on my home pc to test it out, the files are being transferred in separate dialogs as opposed to this image provided by microsoft.
As I am transferring files constantly a single transfer dialog would make things much less confusing. Does anyone know what settings to change to make file transfers appear in the same window?