Highslide - unwanted background appears when mousing over around outside
of expanded image
I'm having a problem with the expanded image in Highslide. For some
reason, I'm getting some white/gray (#EBF6FF to be exact) background
appearing when I bring the mouse close to the image around the outside.
Here's a link to a screenshot.
It also does it on the sides (a white box/background appears, jutting out
13 pixels on either side, beginning at the bottom edge of the area shown
in the image above), and the bottom, although for the bottom you need to
mouseover outside the caption area, along the lower right and left corners
of the image. The effected area is 13 pixels beyond the top and sides of
the image. I've gone through my CSS and can't find any 13 pixel padding,
and also can't find any references to #EBF6FF. Has anybody seen this
before?
I've used Highslide in the past with the glossy dark border, but I wanted
to switch to a borderless look. I'm not re-using any of the previous HS
code (with the glossy border). I started this one from scratch using the
latest version (4.1.13). Everything else is working fine, the only problem
is with this unwanted background appearing on mouseover. Unfortunately,
I'm still developing this on my localhost, so don't have it live to view
on the web. But I can provide any code that you may need.
Thanks in advance for any help/suggestions anybody can provide!
Sunday, 8 September 2013
access private VM from other computer over wifi
access private VM from other computer over wifi
I have a private network VM for developing on my mac. I'd like for my
android device to be able to communicate with the VM on my mac. Currently
i can visit the IP defined in my Vagrantfile, 10.10.10.10, on my mac and
access it just fine but i can't access it via my phone on the same wifi.
What do i need to do to make it available across my local network and
visible to my phone over wifi?
Here's my Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "10.10.10.10"
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--name", "PHPBoxWith54"]
end
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
config.vm.synced_folder "./", "/var/www", id: "vagrant-root" , :nfs =>
nfs_setting
config.vm.provision :shell, :inline =>
"if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo touch
/apt-get-run; fi"
config.vm.provision :shell, :inline => 'echo -e "mysql_root_password=root
controluser_password=awesome" > /etc/phpmyadmin.facts;'
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.options = ['--verbose']
end
end
I have a private network VM for developing on my mac. I'd like for my
android device to be able to communicate with the VM on my mac. Currently
i can visit the IP defined in my Vagrantfile, 10.10.10.10, on my mac and
access it just fine but i can't access it via my phone on the same wifi.
What do i need to do to make it available across my local network and
visible to my phone over wifi?
Here's my Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "10.10.10.10"
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--name", "PHPBoxWith54"]
end
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
config.vm.synced_folder "./", "/var/www", id: "vagrant-root" , :nfs =>
nfs_setting
config.vm.provision :shell, :inline =>
"if [[ ! -f /apt-get-run ]]; then sudo apt-get update && sudo touch
/apt-get-run; fi"
config.vm.provision :shell, :inline => 'echo -e "mysql_root_password=root
controluser_password=awesome" > /etc/phpmyadmin.facts;'
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.options = ['--verbose']
end
end
Crontab Absolute Path Auto Fill In
Crontab Absolute Path Auto Fill In
Hi there I have a shell command that I need to put into crontab to run
periodically.
I have test my script in the working directory, say my home directory, and
it works fine. Something similar like:
python myscript.py <input >/tmp/output
As you can see the myscript.py and input file are located in my home
directory and the output should go into the tmp folder.
I know I could use 'which' command to get the path of python and 'pwd'
command to get the working directory while I am done with my test.
However, I am wondering is there a tool or command to translate that into
the complete version easily. How could I easily replace every thing with
the full path so I could put that 'full path version' into crontab and it
could be recognized globally.
python myscript.py <input >/tmp/output
... magic ...
/usr/bin/python /home/myAccount/myscript.py </home/myAccount/input
>/tmp/output
Hi there I have a shell command that I need to put into crontab to run
periodically.
I have test my script in the working directory, say my home directory, and
it works fine. Something similar like:
python myscript.py <input >/tmp/output
As you can see the myscript.py and input file are located in my home
directory and the output should go into the tmp folder.
I know I could use 'which' command to get the path of python and 'pwd'
command to get the working directory while I am done with my test.
However, I am wondering is there a tool or command to translate that into
the complete version easily. How could I easily replace every thing with
the full path so I could put that 'full path version' into crontab and it
could be recognized globally.
python myscript.py <input >/tmp/output
... magic ...
/usr/bin/python /home/myAccount/myscript.py </home/myAccount/input
>/tmp/output
Distinct of List not workiong
Distinct of List not workiong
I have this class with comparer
public partial class CityCountryID :IEqualityComparer<CityCountryID>
{
public string City { get; set; }
public string CountryId { get; set; }
public bool Equals(CityCountryID left, CityCountryID right)
{
if ((object)left == null && (object)right == null)
{
return true;
}
if ((object)left == null || (object)right == null)
{
return false;
}
return left.City.Trim().TrimEnd('\r', '\n') ==
right.City.Trim().TrimEnd('\r', '\n')
&& left.CountryId == right.CountryId;
}
public int GetHashCode(CityCountryID obj)
{
return (obj.City + obj.CountryId).GetHashCode();
}
}
I Tried using Hashset and Distinct but neither one is working. i did not
want to do this in db as the list was too big and too for everrrrrrrr. why
is this not working in c#? i want to get a unique country, city list.
List<CityCountryID> CityList = LoadData("GetCityList").ToList();
//var unique = new HashSet<CityCountryID>(CityList);
Console.WriteLine("Loading Completed/ Checking Duplicates");
List<CityCountryID> unique = CityList.Distinct().ToList();
I have this class with comparer
public partial class CityCountryID :IEqualityComparer<CityCountryID>
{
public string City { get; set; }
public string CountryId { get; set; }
public bool Equals(CityCountryID left, CityCountryID right)
{
if ((object)left == null && (object)right == null)
{
return true;
}
if ((object)left == null || (object)right == null)
{
return false;
}
return left.City.Trim().TrimEnd('\r', '\n') ==
right.City.Trim().TrimEnd('\r', '\n')
&& left.CountryId == right.CountryId;
}
public int GetHashCode(CityCountryID obj)
{
return (obj.City + obj.CountryId).GetHashCode();
}
}
I Tried using Hashset and Distinct but neither one is working. i did not
want to do this in db as the list was too big and too for everrrrrrrr. why
is this not working in c#? i want to get a unique country, city list.
List<CityCountryID> CityList = LoadData("GetCityList").ToList();
//var unique = new HashSet<CityCountryID>(CityList);
Console.WriteLine("Loading Completed/ Checking Duplicates");
List<CityCountryID> unique = CityList.Distinct().ToList();
Wrap a contact form around background image
Wrap a contact form around background image
How do I wrap a contact form around a backgroud image (eg. a desktop
screen). For further clarification, please visit this link. Scroll down to
the bottom of the page and you'll see a mac screen background wraped
inside of a login page.
<div id="new_div_3">
<form class="contact_form" action="#" method="post"
name="contact_form">
<ul>
<li>
<h2>Contact Us</h2>
<span class="required_notification">* Denotes Required
Field</span>
</li>
<li>
<label for="name">Name:</label>
<input type="text" placeholder="John Doe" required />
</li>
<li>
<label for="email">Email:</label>
<input type="email" name="email"
placeholder="john_doe@example.com" required />
<span class="form_hint">Proper format
"name@something.com"</span>
</li>
<li>
<label for="website">Website:</label>
<input type="url" name="website"
placeholder="http://johndoe.com" required
pattern="(http|https)://.+"/>
<span class="form_hint">Proper format
"http://someaddress.com"</span>
</li>
<li>
<label for="message">Message:</label>
<textarea name="message" cols="40" rows="6" required
></textarea>
</li>
<li>
<button class="submit" type="submit">Submit Form</button>
</li>
</ul>
</form>
</div>
This is what i currently have in my new_div_3.
#new_div_3 {
margin:0 auto;
width: 500px;
background:#ECF0F1 url('img/email-screen.png') 0 0 no-repeat;
background-size: 1040px 878px;
padding: 38px 38px 267px;
}
Is there a way of making the background appear correctly, in the center of
the div with the addition of the contact form appearing in the center too?
How do I wrap a contact form around a backgroud image (eg. a desktop
screen). For further clarification, please visit this link. Scroll down to
the bottom of the page and you'll see a mac screen background wraped
inside of a login page.
<div id="new_div_3">
<form class="contact_form" action="#" method="post"
name="contact_form">
<ul>
<li>
<h2>Contact Us</h2>
<span class="required_notification">* Denotes Required
Field</span>
</li>
<li>
<label for="name">Name:</label>
<input type="text" placeholder="John Doe" required />
</li>
<li>
<label for="email">Email:</label>
<input type="email" name="email"
placeholder="john_doe@example.com" required />
<span class="form_hint">Proper format
"name@something.com"</span>
</li>
<li>
<label for="website">Website:</label>
<input type="url" name="website"
placeholder="http://johndoe.com" required
pattern="(http|https)://.+"/>
<span class="form_hint">Proper format
"http://someaddress.com"</span>
</li>
<li>
<label for="message">Message:</label>
<textarea name="message" cols="40" rows="6" required
></textarea>
</li>
<li>
<button class="submit" type="submit">Submit Form</button>
</li>
</ul>
</form>
</div>
This is what i currently have in my new_div_3.
#new_div_3 {
margin:0 auto;
width: 500px;
background:#ECF0F1 url('img/email-screen.png') 0 0 no-repeat;
background-size: 1040px 878px;
padding: 38px 38px 267px;
}
Is there a way of making the background appear correctly, in the center of
the div with the addition of the contact form appearing in the center too?
Javascript function navigator.getUserMedia is undefined in Safari 5?
Javascript function navigator.getUserMedia is undefined in Safari 5?
I'm using Safari v5.1.7 on Windows 7
I want to use the javascript function: navigator.getUserMedia; to use
media devices
such as a camera or microphone for audio,
The problem is that navigator.getUserMedia is always undefined
Here's my code:
navigator.getUserMedia (
{audio: true},
function(stream) {console.log('Stream: ' + e);},
function(error) {console.log('Error: ' + e);}
);
I also tried the following code, and it's also undefined:
navigator.getMedia = ( navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia );
navigator.getMedia (
{audio: true},
function(stream) {console.log('Stream: ' + e);},
function(error) {console.log('Error: ' + e);}
);
How to solve this ?
Or what is it's equivalent if this function isn't provided in Safari ?
I'm using Safari v5.1.7 on Windows 7
I want to use the javascript function: navigator.getUserMedia; to use
media devices
such as a camera or microphone for audio,
The problem is that navigator.getUserMedia is always undefined
Here's my code:
navigator.getUserMedia (
{audio: true},
function(stream) {console.log('Stream: ' + e);},
function(error) {console.log('Error: ' + e);}
);
I also tried the following code, and it's also undefined:
navigator.getMedia = ( navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia );
navigator.getMedia (
{audio: true},
function(stream) {console.log('Stream: ' + e);},
function(error) {console.log('Error: ' + e);}
);
How to solve this ?
Or what is it's equivalent if this function isn't provided in Safari ?
How to use lambda to erase empty vector cells?
How to use lambda to erase empty vector cells?
I have a vector:
std::vector<Edge> edges(num);
which contain empty cells at the end, which I would like to remove using
lambda but when I did:
edges.erase(std::remove_if(edges.begin(), edges.end(),
std::mem_fn(&std::Edge::empty), edges.end() );
I got this error:
error C2664: 'bool
main::<lambda_6f33349b59d49f69703a5fa6a8c5995a>::operator ()(const
std::vector<_Ty> &) const' : cannot convert parameter 1 from 'Edge' to
'const std::vector<_Ty> &'
What do I do now?
I have a vector:
std::vector<Edge> edges(num);
which contain empty cells at the end, which I would like to remove using
lambda but when I did:
edges.erase(std::remove_if(edges.begin(), edges.end(),
std::mem_fn(&std::Edge::empty), edges.end() );
I got this error:
error C2664: 'bool
main::<lambda_6f33349b59d49f69703a5fa6a8c5995a>::operator ()(const
std::vector<_Ty> &) const' : cannot convert parameter 1 from 'Edge' to
'const std::vector<_Ty> &'
What do I do now?
Subscribe to:
Posts (Atom)