dickersonka 104 Veteran Poster

Hmm. Something is starting ie on startup that shouldn't be. If active desktop is off, and no 'visible' programs are launching it. Maybe an antivirus client, who knows. Check out the event log to see any errors.

dickersonka 104 Veteran Poster

add reference to scrrun.dll

dickersonka 104 Veteran Poster

I have used this in the past to query the domains. To get users, you will use the same concept of directory searcher, I think objectCategory=User. Make sure you have rights to query when using the directory searcher.

ArrayList domains = new ArrayList();

DirectoryEntry dirEntry = new DirectoryEntry("LDAP://");

DirectorySearcher dirSearcher = new DirectorySearcher("objectCategory=Domain");
SearchResultCollection coll = srch.FindAll();

foreach (SearchResult sr in coll)
{
	ResultPropertyCollection resultPropColl = sr.Properties;
	foreach( object domain in resultPropColl["name"])
	{
		domains.Add(domain.ToString());
	}
}
dickersonka 104 Veteran Poster

Sounds like a homework question to me. Why don't you start off with what you have, and what you really have questions, not just our answers.

dickersonka 104 Veteran Poster

nice catch, got in a hurry and have been used to c# for a bit

you do need to add a reference to scrrun.dll

If Not (oFile.FileExists(basePath & filename + ext)) Then
filename = "mypic" + ext
End If
dickersonka 104 Veteran Poster

What are you having trouble with?

The network isn't really a problem, just make sure you properly configure sql to accept tcp ip connections and there shouldn't be much of a change than you have now, as long as there no concurrency issues within your application.

dickersonka 104 Veteran Poster
Dim basePath as String
Dim filename as String
Dim ext as String
ext = ".jpg"

basePath = "C:\Images\"
filename = Text3.Text
filename = filename & ext

 Dim oFile As New Scripting.FileSystemObject
    FileExists = oFile.FileExists(basePath & filename + ext)

If(!FileExists)
filename = "mypic" + ext
End If

Image1.Picture = LoadPicture(basepath & filename)
dickersonka 104 Veteran Poster

what distro of linux are you running?

If ubuntu, many packages are available through synaptic

dickersonka 104 Veteran Poster

i didn't test this, might be a syntax error, but this is what you need to do

select 
	dv.clientid, c.lastname 
	-- put the rest of your columns here
from 
(select clientid, sum(amount) from payments where creditorid = 1015 or creditorid = 1014 
group by clientid) as dv
inner join clients c on 
dv.clientid = c.clientid
dickersonka 104 Veteran Poster

Assuming you are using apache, here's a guide to setting up a virtual directory in apache

http://forums.htmlcenter.com/servers/2879-creating-virtual-directory-apache.html

I would recommend to set up possibly inside the uploads directory, you just want to be sure that permissions on this images directory aren't able to access your other directories, because you are allowing users to write to them.

dickersonka 104 Veteran Poster

First part.
You are going the right route by storing files on the server and paths in the database. You should create a main image directory and possiblty have your images table have a subpath off of that. I'm sure each row will have an 'owner' or client column, so each client can have its own subfolder for images. Then each client, will have a house id lets say. So you can use something like this
/images/clientid/houseid/imagename.jpg

Second part.
This will work a little different. You will only want to load content, and not necessarily the entire webpage from the database.

If you can be a little more clear from the second part feel free.

dickersonka 104 Veteran Poster

any column you are querying against you will want to use an index
assuming you are querying a lot against the title and description, you might want to separate them out to a separate table, and have bigint field inside of the stiri table that is a foreign key to that table
query the smaller table that has the description on title, get the id
then query the larget table with your ids, much quicker to search based upon an int value, and search a smaller when searching for text

dickersonka 104 Veteran Poster

maybe at least enter the first letter of the county, lol hope they won't mess that up

dickersonka 104 Veteran Poster

[a-zA-Z]*

dickersonka 104 Veteran Poster
dickersonka 104 Veteran Poster

Depending upon the document, you can check for paragraph separator character

0x2029

Otherwise, you might need to check for multiple carriage returns, line feeds, depending upon how your document is saved.

dickersonka 104 Veteran Poster

I def agree with alex on this. Some people start on programming ends and learn the web integration, some the opposite.

I started off on the programming side and consider web harder that just the programming aspect. Many people will say differently.

Find out what you are more comfortable with and makes sense to you, then move on to either the web side or the programming side.

dickersonka 104 Veteran Poster

There should be a box to check to turn that off, but i've seen it not work.

Do the edits manually

Take a look at the folowing registry keys, this is the same as you see in the startup programs in msconfig:

HKLM\Software\Microsoft\WindowsCurrentVersion\Run
HKLM\Software\Microsoft\WindowsCurrentVersion\RunOnce

HKCU\Software\Microsoft\WindowsCurrentVersion\Run
HKCU\Software\Microsoft\WindowsCurrentVersion\RunOnce

dickersonka 104 Veteran Poster

also run msconfig
and take a look at the startup programs, clear out anything you don't recognize

dickersonka 104 Veteran Poster

Here's a thought, are you using active desktop? If so turn that off

dickersonka 104 Veteran Poster

Its all a matter of what you perceive. Some prefere php, asp.net, jsp and the list goes on.

Focus on plain html first, then move on to a programming language to incorporate with it once you feel comfortable.

dickersonka 104 Veteran Poster

Well what way do you have it now?

Also be sure to optimize your code as well ie use stringbuffer instead string +, you know the usuals. When you are comparing characters, you might be running into speed and performance issues when you get into the larger documents.

Post the code and lets take a look.

dickersonka 104 Veteran Poster

See if you can disable script debugging

dickersonka 104 Veteran Poster

1. The database is already built for transactional processing to handle multiple users. You will most likely have a single 'user account' that you will use to communicate with the database.

2. There are a couple of ways to do this. Normally you can put the connection string in the web.config and encrypt it. Also remember the pages are compiled, so they won't have direct access to your .net code.

Here's a link on how to do it.
http://aspnet.4guysfromrolla.com/articles/021506-1.aspx

dickersonka 104 Veteran Poster

Create mainmenu as a separate class NON STATIC

from main call this

Mainmenu mainmenu = new Mainmenu(playername);

mainmenu.run();


// in the mainmenu class
private String playerName;
public void mainmenu (String playername) {
this.playerName = playername;
}

public void run(){
while (makerestart <= 200000);
//... continue on with your original mainmenu code
}
dickersonka 104 Veteran Poster

might try [ShopCode] if your error is in that line

also use columns instead of star

dickersonka 104 Veteran Poster

also before adding the items, make sure you call

this.comboBox1.Items.Clear();
dickersonka 104 Veteran Poster

You can do it two ways.
If you just need a basic excel sheet, just save it out as a csv format with xls extension.

If you need more advanced, then take a look using office pia's. They are DOM for office for all versions.

Here's a link on msdn that should be a very good start
http://support.microsoft.com/kb/302084

dickersonka 104 Veteran Poster

once again you need to group by using the outer query

from ships where classes.class=ships.class)
-- note the end parenthese
-- now put your group by and total
group by name, classmatch, borematch, displacementmatch, countrymatch, launchedmatch, typematch, numgunsmatch
where total>=4
dickersonka 104 Veteran Poster

hmmm, try it with the + then, make sure you use sum(a + b + c....)

works for me just using columns

dickersonka 104 Veteran Poster

ahhh ok, i just read the one that reset was dependent, go ahead and try the installation now then

dickersonka 104 Veteran Poster

maybe try the salvage even though its not bad, you never know sometimes

do you want try that route

dickersonka 104 Veteran Poster

lol i don't have all the answers

first try it with whatever configuration you have right now

if that doesn't work, uninstall, run reset, run verify, then try the install

dickersonka 104 Veteran Poster

haven't tested this but this is closer to what you need

select name, classmatch, borematch, displacementmatch, countrymatch, launchedmatch, typematch, numgunsmatch, 
Sum(classmatch ,countrymatch , launchedmatch , typematch , displacementmatch , borematch , numgunsmatch) as total
 from
-- subquery
(select name,
	(case when class = 'Kongo' then 1 else 0 end) as classmatch,
	(case when country = 'USA' then 1 else 0 end) as countrymatch,
	(case when launched = '1915' then 1 else 0 end) as launchedmatch,
	(case when type = 'bb' then 1 else 0 end) as typematch,
	(case when bore = '15' then 1 else 0 end) as borematch,
	(case when numguns = '8' then 1 else 0 end) as numgunsmatch,
	(case when displacement = '32000' then 1 else 0 end) as displacementmatch
from ships
-- you need to do your joins on the tables here to pull class, country ... etc) 
group by name, classmatch, borematch, displacementmatch, countrymatch, launchedmatch, typematch, numgunsmatch
where total>=4
dickersonka 104 Veteran Poster

you need to use Sum around the fields you are adding

Sum(classmatch,countrymatch, launchmatch......etc) as total

you also need to use the group by because sum is an aggregate

group by
name, classmatch, borematch, displacementmatch, countrymatch, launchedmatch, typematch, numgunsmatch

follow the example and take it from there, your cases are correct, are you sure you need

i'll post your example

dickersonka 104 Veteran Poster

Static is meant to be thought of as that it doesn't apply to a specific instance of the object or class. As java addict's example, you can printMyName at any time without creating an instance.

dickersonka 104 Veteran Poster

you need an actual method named main when starting the application and it does need to be static

It looks like you need to change Opening method to be main

dickersonka 104 Veteran Poster

try
winmgmt /resetrepository

if that fails see if you can send me your bootstrap logs, i doubt you can post them, but you can send me a pm if it won't let you send them to me

dickersonka 104 Veteran Poster

Unfortunately starting to be at a loss as well. So you can't install sql express 2005 at all, or just can't get it working with the accounting?

dickersonka 104 Veteran Poster

you ran mofcomp?

did you see anything named sqlmgmprovider or sqlmgmproviderxpsp2up ?

dickersonka 104 Veteran Poster

Lol ok homes, I was just giving an example.

You could possibly tell them their account is inactive, and go through some sort of steps to reactivate and set their active flag back to '1' so their data won't be lost.

There is really no right answer on how long to keep the information. A lot of times I would never delete unless it became an issue of database size or critical information.

Also, assuming you have some sort of houses table with a user_id owning the house. If you physically delete the user row, then you will have to delete house row as well as long as constraints are in place. Therefore I would say its not normally that important to delete the data, but it can be under the right circumstances.

dickersonka 104 Veteran Poster

joins meaning left outer, inner joins

i mean to pull back the active column from the user table

for example lets says a user places orders

table orders
order_id
user_id
order_number

then in the query you can do something like this

select o.order_id, o.order_number, o.user_id from orders o
inner join 
users u
on o.user_id = u.user_id
where u.active = 1

like for example if you let a user to see orders without logging in, you would want to join on the user table to make sure that they are still active before showing the results

dickersonka 104 Veteran Poster

Yes, same sort of update query as normal if you want to delete. This way also allows you to keep your database in tact and not worry about fk constraints on deletes, or a good way to recover data if it was 'deleted' (just set inactive).

Just remember if you are doing any joins on the user table or based upon a used_id to always add the active column to the query as above.

dickersonka 104 Veteran Poster

not necessarily any different from the php side except the queries, more from the mysql side

$query  = "SELECT username, password FROM users where active=1";

mysql table
users
username
password
active

dickersonka 104 Veteran Poster
dickersonka 104 Veteran Poster

you could also use something like this

select person_id, hairmatch, colormatch, eyematch, sum(hairmatch, colormatch, eyematch) as total from
(select person_id, 
   (case when Hair = 'Tall' then 1 else 0 end) as hairmatch,
(case when HairColor = 'brown' then 1 else 0 end) as colormatch,
(case when EyeColor = 'blue' then 1 else 0 end) as eyematch
from
person)
group by person_id, hairmatch,colormatch,eyematch

-- add this to filter totals
where total >= 2
dickersonka 104 Veteran Poster

Add something like an active flag to the user. And in all queries when pulling users add where active_flag = 1 for active users, and the '0' user will not be pulled back. So this allows you to maintain the user still in the db, but not returned from queries to display in the website.

dickersonka 104 Veteran Poster

Lol seems to be pretty hard.

Here's another
http://blogs.msdn.com/echarran/archive/2006/01/03/509061.aspx

After doing that make sure your wmi repository is still good.

dickersonka 104 Veteran Poster
dickersonka 104 Veteran Poster

first do the select on payments where creditor.id = 1014 or creditor.id = 1015 and group by clientid with the sum

then create the outer select doing the inner join on client id