Here's a list of online business tips to assist you on improving website ranking and search engine optimization. This is not an exact science and I cannot guarantee that working on these areas will put you on the first page of Google, increase page rank and your website traffic. But, it will without doubt increase your chances of better results.
Is there a way to write style rules that will only influence text fields. Suppose I have the following:
<div id="helloDiv">
<input type="text" name="something" /><br />
<input type="checkbox" name="somethingElse" /><br />
<input type="submit" name="go" />
</div>
div#helloDiv input {
border: 1px solid red;
}
The problem with the above CSS rule is that it will affect ALL input fields not just input text but also radio buttons, submit buttons, etc.
So is there a cross browser solution to affect just one type of input field within a div or other page element (without resorting to assigning the input fields styles individually).
I am working on an app that beeps every second. When I hit the home button I want it to close the program and stop beeping. Right now it closes the program but continues to beep.
What am I doing wrong?
if ((keyCode == KeyEvent.KEYCODE_HOME)) {
isdone = true;
mp.release();
counter.cancel();
finish();
}
I am making a C# project in which I am using ScintillaNet, and it says:
The referenced assembly "ScintillaNet" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.
I tried adding a reference to System.Design, but it doesn't exist in my list. Do I need to download it somewhere? I have MS Visual Studio 10.
I'm using GlassFish v3. The following field is declared in a class:
@Resource
private javax.sql.DataSource _data_source;
The following is declare in web.xml:
<data-source
<namejava:app/env/data</name
<class-namecom.mysql.jdbc.Driver</class-name
<server-namelocalhost</server-name
<port-number3306</port-number
<usermyUser</user
<passwordmyPass</password
</data-source
At run-time _data_source is empty. What am I doing wrong?
More than a question, per se, this is an attempt to compare notes
with other people. I wrote a generic History class that emulates
the functionality of a browser's history. I am trying to wrap my
head around how far to go when writing unit tests for it. I am
using NUnit. Please share your testing approaches below.
The full code for the History class is here (http://pastebin.com/ZGKK2V84).
Suppose I have a numpy array x = [5, 2, 3, 1, 4, 5], y = ['f', 'o', 'o', 'b', 'a', 'r']. I want to select the elements in y corresponding to elements in x that are greater than 1 and less than 5.
I tried
x = array([5, 2, 3, 1, 4, 5])
y = array(['f','o','o','b','a','r'])
output = y[x > 1 & x < 5] # desired output is ['o','o','b','a']
but this doesn't work. How would I do this?
Hello,
I am relatively new to WCF. However, I need to create a service that exposes data to both Silverlight and AJAX client applications. In an attempt to accomplish this, I have created the following service to serve as a proof of concept:
[ServiceContract(Namespace="urn:MyCompany.MyProject.Services")]
public interface IJsonService
{
[OperationContract]
[WebInvoke(Method = "GET",
RequestFormat=WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json)]
List<String> JsonFindNames();
}
[ServiceContract(Namespace="urn:MyCompany.MyProject.Services")]
public interface IWsService
{
[OperationContract(Name="FindNames")]
List<String> WsFindNames();
}
[ServiceBehavior(Name="myService", Namespace="urn:MyCompany.MyProject.Services")]
public class myService : IJsonService, IWsService
{
public List<String> JsonFindNames()
{ return FindNames(); }
public List<String> WsFindNames()
{ return FindNames(name); }
public List<string> FindNames()
{
List<string> names = List<string>();
names.Add("Alan");
names.Add("Bill");
return results;
}
}
When I try to access this service, I receive the following error:
The contract name 'myService' could not be found in the list of contracts implemented by the service 'myService'.
What is the cause of this? How do I fix this?
Thank you
I'm looking to see if there is a way to change the color of a textblock in silverlight on mouse over. I have tried a trigger which I read now doesn't work. I would like to avoid having to do it in the codebehind if at all possible.
This is a recent problem... MySQL was working and a couple of days ago I must have done something. I deleted MySQL and tried reinstalling using the .dmg file. The mysql.sock file never gets created and I get the following error messages:
Hristo$ mysql
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
I also tried stopping Apache and installing but Apache gave me an error... I don't know if this is good or bad:
Hristo$ sudo apachectl stop
launchctl: Error unloading: org.apache.httpd
I tried the MacPorts installation as well but the socket file still didn't get created. I don't really know what to do and I don't want to reinstall Snow Leopard and start from scratch :/
I also tried installing the 32-bit version and same deal. No luck.
Finally... I tried doing the source installation but when I get to the configuration step, I get the following error:
-bash: ./configure: No such file or directory
The file is "mysql-5.1.47-osx10.6-x86_64.tar.gz" so I think it is the proper file for source installation and yes I have a 64 bit system. I don't know what to do anymore.
Any ideas?
Thanks,
Hristo
6.1.4 Describe an algorithm based on breadth-first search for finding a shortest
odd cycle in a graph.
6.3.5 Describe an algorithm based on directed breadth-first search for finding a
shortest directed odd cycle in a digraph.
what is most importent is that it must be a directed graph not necessary bfs but must be the shortest directed odd cycle!!!
Question was taken from "Graph Theory" by J.A. Bondy and U.S.R. Murty
thanks in advance!!!
I know only one low-level way of blocking websites - hosts file. However, it is obvious that main stream programs has some other way of achieving this.
I have an idea for new model of this kind of program, but without possibility of blocking sites it is useless :(
I want to do something very simple, but it seems the way of doing this simple task is impossible. I need to pull my twitter home timeline. NOT all my recent tweets, but the tweets of the people I follow. I'm hoping this can be done with PHP, but I have no idea. Any help is appreciated, and please, talk to me like I'm a noob - be thorough lol.
I have a webpage I want to use with YQL. But I need the xpath of a specific item. I can see it in the debug tools area for google chrome but I don't see a way to copy that xpath.
Is there a way to copy a full xpath or an extension to do it?
Thanks,
G-Man
I have a new HP Laptop running Win 7 Home Premium with an Atheros Wireless card. I have a Negear WPN824 V2 Rangemax Router. The router works with a wired connection. Wirelessly it can see the network but it cannot connect. I have searched the web and the WPN824 seems to work for some people, but I cannot get it to connect. I have tried disabling Bonjour Service and a few other things but it continues not to connect. Am I probably correct to assume that the WPN824 is somehow incompatible with Wiondows 7? or am I missing some simple change I should make?
What are some tools that the professionals use? I want to make some professional looking designs for myself, but don't know where to start. I have 4 years of programing experience and about 5 years of web design experience, but I'm just not good with designing a layout.
I'm trying to get Rails running on a IIS 6 webserver using IronRuby, but without success. I have followed this webcast and got it running on IIS 7, but can't make it work on a IIS 6 server. I need some help to get this to work. Any ideas?
public class Test {
public static void main(String[] args){
if (5.0 5) // (5.0<5) for both case it is going to else
System.out.println("5.0 is greater than 5");
else
System.out.println("else part always comes here");
/another sample/
if (5.0 == 5)
System.out.println("equals");
else
System.out.println("not equal");
}
}
can any one explain the first "if statement" why it always come to else part
Currently my employer deploys a web application over 3 servers.
DB - No public route
Web Service DAL - No public route
Web Server - Public route
The reason for this is the theory that if the web server is compromised, they don't arrive at the DB directly, but instead arrive at the DAL box.
To my mind, as the DAL box and Web Sever box - both run windows/IIS - if the public box has been compromised, the same exploit would likely work on the DAL box - therefore I do not see this as a real security benefit.
I would like to propose we remove the middle machine and allow the web server to connect directly to the database.
Is this middle box really a benefit?
Hi,
I've a div in a absolute position with a default "top" value set to "-200px".
When i click on the div the "top" value is updated to "0". In this way I see the entire Div.
This is the js:
$(document).ready(function(){
$("#search_bar").click(function () {
$(this).css("top","0");
});
});
Is there a way to achieve this result but with an animation? For example, a slide down effect?
Also, when i click another time to the div I'd like that the "top" value will be restored to "-200px".
Hello, I'm making an application, in which I need to run a code that will tell system events to keystroke a certain phrase. Like in an AppleScript, I would do:
Tell Application "System Events" to keystroke "This is a test"
I don't know how to do this from Xcode, and I would really appreciate any help. Thank you!
I'm thinking of making a little web tool for analyzing the search engine optimization and web accessiblity of a whole website.
First of all, this is just a private tool for now. Crawling a whole website takes up alot of resources and time. I've found out that wget is the best option for downloading the markup for a whole site.
I plan on using PHP/MySQL (maybe even CodeIgniter), but I'm not quite sure if that's the right way to do it. There's always someone who recommends Python, Ruby or Perl. I only know PHP and a little bit Rails.
I've also found a great HTML DOM parser class in PHP on SourceForge.
But, the thing is, I need some feedback on what I should and should not do. Everything from how I should make the crawl process to what I should be checking for in regards to SEO and WCAG.
So, what comes to your mind when you hear this?