Hello everyone, I am working on a C# app that uses the YouTube .NET API but have come up with an issue, and I'm not sure if its the .NET Wrapper or just something I'm Doing. Ok heres the problem, I request the list of videos the logged in user has and I get it back as a IEnumerable<video>, now from everywhere I read, IEnumerable is supposed to be better then List<T> and what not. One site showed an example of 1,000,000 Entries in IEnumerable<int> could be iterated in just over 1 second. My problem is that i have 458 …

Member Avatar
Member Avatar
+0 forum 7

Hello everyone, Im trying to get my server setup for a small web hosting type system (for friends). everything is working except subdomains ive used vhost_alias for ever when i was just hosting my site to do wildcard subdomains. But I can'e seem to get it working on more then my domain, even though they all have the same configuration. here are my vhost files site1.com (main site, working wildcard subdomains) [CODE] <VirtualHost *:80> DocumentRoot "/home/www/site1_com/public_html" ServerName site1.com ServerAlias www.site1.com </VirtualHost> <VirtualHost *:80> DocumentRoot "/home/www/site1_com/subdomain" ServerName everything.site1.com </VirtualHost> <VirtualHost *:80> ServerAlias *.site1.com UseCanonicalName Off LogFormat "%V %h %l %u %t …

Member Avatar
+0 forum 0

Hello everyone I have an issue here that I couldn't find much info about, I saw a lot about it when people where selecting a lot of data but not on an insert. Heres some background. I have an application that adds items from our in house order/inventory manager to our online store, everything was working great on the local dev server, but now when testing on the live server, I'm getting "Connection unexpectedly terminated" errors randomly through the main loop. Heres the error: [CODE] 03/12/10 17:02 E Error: Connection unexpectedly terminated 03/12/10 17:02 E at MySql.Data.MySqlClient.PacketReader.ReadHeader() at MySql.Data.MySqlClient.PacketReader.OpenPacket() at …

Member Avatar
Member Avatar
+0 forum 1

Hello, Got a question for you all. I have a mass email script that sends emails out in a round robin using 15 unchecked email address (GoDaddy only allows something like 250 emails a day per address). The problem I have is if an email bounces back it goes to the inbox of the sending email address. I have put in the Reply-To: header to goto our order email and the email headers for the from address are also set to the orders email. Preferably I would like to have bounce backs come to my email rather then hear the …

Member Avatar
Member Avatar
+0 forum 3

Sorry if this is in the wrong section but there really is no category that matches what i need to ask, I only posted here because it seems a lot of Delphi people use DBISAM. Basically, I read the manual and see where I can read the current auto_inc value of a table using LASTAUTOINC('tablename') but for some reason its not working. here is the SQL I am trying to run [CODE=SQL]INSERT INTO ChannelListings (ChannelNo, ChannelAccountNo, ProductNo, SKU, Price, IsUseCurrentRetailPrice, IsOnSale, IsActive, IsRemove, IsDelete, IsGiftwrapAvailable, IsGiftMessageAvailable, IsUseProductNoAsSKU, CategoryNo) VALUES (4, 2, '080689000270', LASTAUTOINC('ChannelListings'), 1.6, True, False, True, False, False, False, …

Member Avatar
+0 forum 0

Hello everyone. I have a question here, that to me seems there must be a way to do what I want in the way I want :) I have a thing that updates a Zen Cart DB and adds products to it. Ok everything works the way it is now, but It close the connection to the DB after each item, is there a way to prevent this? Little background and code I originally tried to just null out my command but afte the first one I would get "There is already an open DataReader associated with this Connection which …

Member Avatar
Member Avatar
-1 forum 1

Hello, I am witting some software to interact with a mail order manager. Issue is they use a strange date/time format that they store as text in the DB, from what i guessed its YYYYMMDDHHMMSSNNN right now im using this function to get it into C# as a standard date. [CODE] private static DateTime ProcessMwTime(string mwTime) { //Mailware Date Format //YYYY/MM/DD HH:MM:SS.NNN //20090916114135766 //2009/09/16 11:41:35.766 DateTime thisDate = new DateTime(int.Parse(mwTime.Substring(0, 4)), int.Parse(mwTime.Substring(4, 2)), int.Parse(mwTime.Substring(6, 2)), int.Parse(mwTime.Substring(8, 2)), int.Parse(mwTime.Substring(10, 2)), int.Parse(mwTime.Substring(12, 2)) ); return thisDate; }[/CODE] Now the question, is there a better way to do this. to me it looks …

Member Avatar
Member Avatar
+0 forum 6

Hello, I am having the hardest time getting my strings to format right I want it to only show the first 14 chars of the string. sounds simple, but I think ive been looking at the code to long to see where im messing up :). here's the code I have [CODE] int fCount = mwReader.FieldCount; for ( int i = 0; i < fCount; i ++ ) { Console.Write("{0,-15}", mwReader.GetName(i)); Console.Write(" "); } Console.WriteLine("".PadLeft(80, '-')); while (mwReader.Read()) { string description = mwReader.GetString(0); if (description.Length > 14) description.Substring(0, 14); Console.WriteLine("{0,-15} {1,-15} {2,-12:C} {3,-12} {4,-12:C}", description, mwReader.GetString(1), mwReader.GetValue(2), mwReader.GetBoolean(3), mwReader.GetValue(4) ); …

Member Avatar
Member Avatar
+1 forum 11

Hello, I was wonder if it is possible to change the DirectoryIndex based on the incoming IP address. Heres a senerio. We are working on a new site for our company and are doing redirection to pass users to a temp site in a sub folder. but for us internally, we can goto /index.php and see the new site. The issue is, is the new site has SEO friendly URLs and wont work if we actually have index.php in the URL, it needs to be just the domain name so we want to have something like this [icode]if (%{REMOTE_HOST} 71\.211\.XX\.XX) …

Member Avatar
Member Avatar
+0 forum 2

Hello, I'm having an issue getting my redirect working and I think its just because Ive been looking at it too long. Ok here it goes, I have 2 redirects going on because of the amount of domain names and old links coming to the different sites. First heres the folder layout in the root, we have the main site, then in a sub folder "/churchinstrumentalist.com" we host a separate site but it used to be just in "/churchinstrumentalist" so in the root folder the .htaccess is [code]RewriteEngine On RewriteRule churchinstrumentalist/?(.*) http://www.churchinstrumentalist.com/$1 [R,NC][/code] *http://www.churchinstrumentalist.com/ is the new, main, domain that …

Member Avatar
+0 forum 0

The End.