Hi all,
I have an HP 2600n installed on a SBS2003 server. This printer works fine when I print from the server itself and also from my Windows 7 computer #1. From my Windows 7 #2, it doesn't work. I get the error message that I need to install the driver.
The error message is in french but here it the translation.
No drivers has been found
Windows is unable to find a driver for HP Color Laserjet 2600n on the network. To find a driver manually, click ok. If not, click on cancel and contact your sys adm.
I reinstalled from scratch the printer, deleted the driver... Still no luck
Any takers?
I am making a website where users can vote on which category a page is. They can vote that the page is category, for example: a, b, c, or d. Please don't ask what I am using this for, it is not important, I just want to know how to do it.
I need to find the most commonly occurring category in the mysql row out of all the votes.
Each time a user submits their vote, it submits the "category" that they voted for, and the "page_id".
I have this so far:
select page_id, category
from categories
group by page_id
You cannot simply use a "COUNT(*) where category = 'a'" then repeat it for each category because there is many more categories in the actual project.
I have a cpanel on my hosting and I have created a directory holding my new website.
Is it possible to set the main domain (where the webpages are normally stored in the root) to a subfolder?
I have done this with addon domains but im not sure how to do it with the main domain name.
Thanks for the help.
Ian
For example I have a big sentence:
"I like to eat pie and have fun around the house all day long!"
And I want it to appear like this:
"I like to eat pie and have
fun around the house all
day long!"
In this post: http://stackoverflow.com/questions/1673963/multi-line-list-items-on-winforms-listview-control Grammarian said that you only need to have WordWrap on but I cannot find that option.
Thanks for the help in advanced
I'm trying to get Thunderbird to be my default application to subscribe to feed that I visit in firefox.
I "choose application" and put in the path of Thunderbird executable
C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe
And it doesn't work, asks me to close Thunderbird
It's strange that Firefox has Outlook as a selectable option which works flawlessly but its own brother Thunderbird isn't even on the list of defaults.
PS: And when I have Thunderbird closed and then do the above, it starts the Thunderbird and puts the feed in whatever folder it likes without even asking me.
I need to create a user on linux with access rights only to one folder.
Background:
I have installed git on my virtual server (Debian). I also created a user for the repository. There is a lot of private data on the server. But all folders have read-access for others, because it's needed for the applications which run on the server. So the git-user can see all the data.
I would like to restrict the git user only to the folder where the repository is installed. I also tried ACL, but it didn't work.
Is there a better way to do this?
Thanks in advance!
Hello,
I want to create a ColumnSeries Bar Chart in WPF using C#.
I shall extract the data from the database and want to bind it to the bar chart.
The data extracted will contain two values. First is parameter name(string) and the other is its value(double).
Which type of collection shall i use? and how to do the binding?
Thanks in advance.
I have a legacy rails (version 1.2.3) app which runs without issue on a number of servers (not to mention my local environment). Deployed to its newest server, though, and I now get ActiveRecord::StatementInvalid: Mysql::Error: #23000Column 'video_id' cannot be null errors.
Below are the models/relationships, simplified:
class Video < ActiveRecord::Base
has_one(:user, :dependent => :destroy)
end
class User < ActiveRecord::Base
belongs_to(:video)
end
And below is a rails console transcript of the relationships failing:
>> video = Video.create(:title => 'New Video')
=> #<Video:0xb6d5e31c>...
>> video.id
=> 5
>> video.user = User.create(:name => 'Tester')
ActiveRecord::StatementInvalid: Mysql::Error: #23000Column 'video_id' cannot be null: INSERT INTO users (`name`, `video_id`) VALUES('Tester', NULL)
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/mysql_adapter.rb:253:in `insert'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1811:in `create_without_callbacks'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:254:in `create_without_timestamps'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/timestamp.rb:39:in `create'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1789:in `create_or_update_without_callbacks'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/callbacks.rb:242:in `create_or_update'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1545:in `save_without_validation'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/validations.rb:752:in `save_without_transactions'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in `save'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:95:in `transaction'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:121:in `transaction'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/transactions.rb:129:in `save'
from /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:451:in `create'
from (irb):3
from :0
Has anyone else come across ActiveRecord not sending an ID when it clearly knows it?
When opening an Adobe Acrobat PDF document on Mac OS X Lion to edit in Adobe Illustrator CS6, I got the message:
The font Helvetica-Narrow-Bold is missing. Affected text will be displayed using a substitute font.
The font QuickTypePi is missing. Affected text will be displayed using a substitute font.
How can I provide the missing fonts so that no substitution occurs and upon return to Adobe Acrobat Pro X the original fonts will remain after any edits in Illustrator?
Or, since the message talks about their display, will the font remain unchanged upon return to Adobe Acrobat?
I just installed SQL Server 2008 R2 and ColdFusion 9.0.1 on my Windows 7 machine for development use only.
I have ColdFusion running well and serving pages (that aren't connected to a database). I can view my databases in SQL Server Management Studio.
I successfully restored a few small databases and now I am trying to set up datasources for them through the ColdFusion Administrator. On my other machine, this was super easy. Not so much this time.
The database I just added is named "Test".
I am getting this error:
Connection verification failed for data source: Test
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: localhost:1433. Reason: Connection refused: connect
The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: localhost:1433. Reason: Connection refused: connect
It looks like the connection between ColdFusion and SQL Server is being refused. I know, brilliant observation, right?
On my other machine, I was able to create datasources with just the default settings, no server name, username, or password.
Any clue as to what might be the cause and how I might fix it?
Okay, I thought my head hurt with regular regex, but I can't seem to find what I'm looking for with regexp in mysql.
I'm trying to look for situations in news articles where a Textile-formatted url has not ended with a slash so:
"Catherine Zeta-Jones":/cr/catherinezeta-jones/ visited stack overflow is ok but
"Catherine Zeta-Jones":/cr/catherinezeta-jones visited stack overflow is not.
[just used Catherine as an example because I'm assuming an alpha search wouldn't catch the hyphen]
One of these days I'll have to do that goat sacrifice so I can gain the proper knowledge of regex.
Thanks everyone!
I have an Ubuntu 12 VPS and wanted to create a user account to upload and download my PHP code. So when logged in as root I created a user "chris" and then created a directory /var/www/chris
I want "chris" to be able to upload and run files to the /var/www/chris directory.
Permissions for the chris dir look like this:
drwxrwxr-x 2 root chris 4096 Aug 20 03:35 chris
As root I created a sample file called abc.php and put it in the chris dir.
It worked fine when I test it in a browser.
I logged in as chris and uploaded a file called 1234.php. That did not work. I just got a blank PHP page. The code was identical in both files. So it is not the code.
The permissions now look like this:
-rw-r--r-- 1 root chris 59 Aug 20 03:34 1234.php
-rw-r--r-- 1 root root 49 Aug 20 03:21 abc.php
How do I alow the "chris" user to upload files and get them to work?
Hi Experts,
I have the following Query which produces the output below;
SELECT
TBLUSERS.USERID,
TBLUSERS.ADusername,
TBLACCESSLEVELS.ACCESSLEVELID,
TBLACCESSLEVELS.AccessLevelName
FROM
TBLACCESSLEVELS INNER JOIN
TBLACCESSRIGHTS ON TBLACCESSLEVELS.ACCESSLEVELID = TBLACCESSRIGHTS.ACCESSLEVELID INNER JOIN
TBLUSERS ON TBLACCESSRIGHTS.USERID = TBLUSERS.USERID
The output is this;
29 administrator 1 AllUsers
29 administrator 2 JobQueue
29 administrator 3 Telephone Directory Admin
29 administrator 4 Jobqueueadmin
29 administrator 5 UserAdmin
29 administrator 6 Product System
27 alan 1 AllUsers
97 andy 1 AllUsers
26 barry 1 AllUsers
26 barry 2 JobQueue
26 barry 3 Telephone Directory Admin
26 barry 4 Jobqueueadmin
26 barry 5 UserAdmin
26 barry 6 Product System
26 barry 7 Newseditor
26 barry 8 GreetingBoard
What I would like to do is modify the query so I get all Access Levels regardless of weather there is an entry for that user. What I would also like to do is some sort of exist case so that I get output like the following;
29 administrator 1 AllUsers True
29 administrator 2 JobQueue True
29 administrator 3 Telephone Directory Admin True
29 administrator 4 Jobqueueadmin True
29 administrator 5 UserAdmin True
29 administrator 6 Product System True
29 administrator 7 Newseditor False
29 administrator 8 GreetingBoard False
27 alan 1 AllUsers True
27 alan 2 JobQueue False
27 alan 3 Telephone Directory Admin False
27 alan 4 Jobqueueadmin False
27 alan 5 UserAdmin False
27 alan 6 Product System False
27 alan 7 Newseditor False
27 alan 8 GreetingBoard False
97 andy 1 AllUsers True
97 andy 2 JobQueue False
97 andy 3 Telephone Directory Admin False
97 andy 4 Jobqueueadmin False
97 andy 5 UserAdmin False
97 andy 6 Product System False
97 andy 7 Newseditor False
97 andy 8 GreetingBoard False
26 Barry 1 AllUsers True
26 Barry 2 JobQueue True
26 Barry 3 Telephone Directory Admin True
26 Barry 4 Jobqueueadmin True
26 Barry 5 UserAdmin True
26 Barry 6 Product System True
26 Barry 7 Newseditor True
26 Barry 8 GreetingBoard True
.........................................
So the rules are ALWAYS show ALL Entries for ACCESSLEVELS and where EXISTS in ACCESSRIGHTS produce a true / false to show this.
I hope this makes sense and hopefully you dont need the table definitions as everything I need to work with is in the original Query. I just need a way of manipulating it slightly and getting the join in the right place.
Thank you.
Pace
I tried a lot to add shopping cart url in magento
please show me how to add shopping cart url under top links in magento through customer.xml
i did in this way.
<default>
<!-- Mage_Customer -->
<reference name="top.links">
<action method="addLink" translate="label title" module="checkout"><label>Shopping Cart</label><url helper="checkout/getShoppingCartUrl"/><title>Shopping Cart</title><prepare/><urlParams/><position>10</position></action>
</reference>
</default>
I have a function which generates xml for a list object:
public XDocument ToXML()
{
foreach (var row in this)
{
var xml = row.ToXml();
template.Root.Add(xml);
}
return template;
}
The template.ToString() reads: <RootElement xmlns="urn:testTools">
The xml reads: <Example><SubElement>testData</SubElement></Example>
After the add function has executed the template.ToString() reads: <RootElement xmlns="urn:testTools"><Example xmlns=""><SubElement>testData</SubElement></Example>
So for some reason there was an empty namespace added, how can i prevent it from doing so?
I was looking at System Monitor on Linux and noticed that Firefox is using 441 MB of memory, and several other applications are using 274, 257, 232, etc (adding up to over 3 GB of virtual memory). So I switch over to the Resources tab, and it says I'm using 462 MB of memory and not touching swap. I'm confused. What does the virtual memory amount mean then if the programs aren't actually using it. I was thinking maybe memory they've requested but aren't using, but how would the OS know that? I can't think of any "I might need this much memory in the future" function..
I have a Google Spreadsheet with 3 columns which are either blank or have a value. I want to get the count of the number of rows that has A and either B or C populated. If I were writing a SQL query it would be
select count(*)
from Table
where A is not null and (B is not null or C is not null)
But I can't for the life of me figure out how to get this in a Google Spreadsheet
Startup delayer is an application that is used to delay the execution of applications at startup.
And I want to take advantage of this function so that the regular applications that I am opening would be automated. How can I use the parameters function so that I could choose what operating system I want to boot when virtual box is included in the startup delayer.
What website I would want to be automatically opened with google chrome.
What specific project will be opened in visual studio. And others.
And please enlighten me if this is not the exact function the parameters has to perform.
Please do tell me of other application that can do the things mentioned above.
I have a repeater using a LinqDataSource as a data source. When a query string is entered, I'd like to filter the results, but ONLY when a query string is entered. If there is no query string, the results should not be filtered, all results should be returned.
I'm trying to add a WhereParameter to my LinqDataSource in the Selecting event of the LinqDataSource, but it's not working. Here's my code:
protected void ldsImages_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
if (Request.QueryString["id"] != null)
{
e.WhereParameters.Add("ImageTypeID", Request.QueryString["id"]);
}
}
I was following the Zabbix installation tutorial for Ubuntu and it requested that I added a file /etc/apache2/sites-enabled/000-default containing
Alias /zabbix /home/zabbix/public_html/
<Directory /home/zabbix/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
But I already have /etc/apache2/sites-enabled/railsapp
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
UseCanonicalName Off
Include /etc/apache2/conf/railsapp.conf
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/cert.pem
Include /etc/apache2/conf/railsapp.conf
RequestHeader set X_FORWARDED_PROTO 'https'
</VirtualHost>
and /etc/apache2/sites-enabled/mercurial
NameVirtualHost *:8080
<VirtualHost *:8080>
UseCanonicalName Off
ServerAdmin webmaster@localhost
AddHandler cgi-script .cgi
ScriptAliasMatch ^(.*) /usr/lib/cgi-bin/hgwebdir.cgi/$1
</VirtualHost>
I think that it is because of the already existing virtual hosts that my I can't access the zabbix page. How to circumvent this?
When using the task manager in Windows XP Pro, the amount of RAM that is listed as being used by the individual processes is not adding up to the total memory used (as listed by the total commit on the performance page).
The total sum of all the RAM being used the the processes:
195604 K
The amount in use as listed by performance page and the status bar:
280028 K
1) Why is this?
2) How do I reduce the amount of memory used?
Hi,
I have a table, and it is returning the data as -
Column1 Column2 Column3 Column4 Column5 Column6
-------------------------------------------------------------------
6 Joy Mycity NZ 123456 [email protected]
I need to disply it as -
SingleColumn
-----------------------
6
joy
mycity
NZ
123456
[email protected]
How do I do it?