-
Forms Authentication problems
Date: 09/24/05
(C Sharp) Keywords: database, asp, web
Hey all,
I've been running into a seriously weird problem of late... I have a Virtual Directory set up on my dev machine, on which I've developed my personal website. I have forms authentication and it's working fine. I come to deploy it under my pre-prod server (which is now a Website rather than a V. Dir.) and forms authentication gives me grief: once authenticated, it displays a blank page (correct address, but blank).
On the same machine, I stop the website and create a virtual directory, specifying the same location. Not a single file or permission changed. Bingo, lets me in. Anyone have any info on this?
Config: ASP.NET v 1.1, Forms Authentication done by a user control. No database, just DataSets running from .config files (I really don't foresee much traffic... Me, a couple of friends. I'm lucky if I get one hit a week outside of my own usage). Using a templating scheme as suggested by Joe Agster on devx here. My authentication code in a nutshell:
if (Authenticate(UserTextBox.Text, PassTextBox.Text))
{
FormsAuthentication.SetAuthCookie(UserTextBox.Text, PersistentCheck.Checked);
Response.Redirect(Request.ApplicationPath + "/default.aspx");
}
else
{
CommentLabel.Text = "Wrong credentials, please try again.";
CommentLabel.Visible = true;
}
Any idears?
Thanks in advance!
Source: http://www.livejournal.com/community/csharp/36027.html
-
PDF -> HTML
Date: 09/24/05
(WebDesign) Keywords: html, web
I have a client who sent me a bunch of PDF files that they want "live" on their website. Can anyone recommend a good PDF to HTML converter that preserves the layout of the document? That, or I'm open to other suggestions on how to post PDF data on a website without the visitor having to download the actual file.
Thanks in advance!
Source: http://www.livejournal.com/community/webdesign/985782.html
-
Birthdays problem
Date: 09/24/05
(PHP Community) Keywords: php, mysql, database, sql, web
I'm doing a web application with PHP and MySQL where members can enter their birthday on their profile. I've done a nice monthly calendar view, and I want to populate the calendar with members' birthdays.
Can anyone advise me the best way of doing this? Obviously I don't want to do a database request for each day: "Does anybody have a birthday on this day?" - I think we can all guess that 30 database requests would be rather excessive for one page!!
What I'd like to do is one database request to get all the birthdays for the month and then write it to a 2-dimensional array. Each row in the array will have the user's name, their userid (to link to their profile) and the day of the month which is their birthday. Then all I need do is ask the array if there's any birthdays when I'm writing out the days.
The trouble is, I'm very unfamiliar with arrays and I'm not sure the best way to do this. Can anyone help?
Update
I've found a very useful function which is helping a lot:
$birthdayquery = "SELECT ID, RealName, DOBDay from Users where DOBMonth = '$month'";
$birthdays = mysql_query($birthdayquery);
$arrayindex = 0;
while ( $birthdayarray[$arrayindex++] = mysql_fetch_assoc($birthdays) );
You can then do
$arrayindex = 0;
foreach ($birthdayarray as $value) {
if ($birthdayarray[$arrayindex]["DOBDay"] == $day) {
echo $birthdayarray[$arrayindex]["RealName"];
echo "'s birthday";
}
$arrayindex++;
}
I think this is going to work!
Source: http://www.livejournal.com/community/php/346726.html
-
Host for beta test site.
Date: 09/24/05
(Web Development) Keywords: php, mysql, sql, web, apache
I'm looking for a cheap host which offers the following:
- MySQL 4 with InnoDB support
- PHP 4 with GD/Image manipulation module
- Apache mod_rewrite support
I'm looking to set up a beta test website for an open source myspace/friendster clone that I'm working on called Appleseed (http://appleseed.sourceforge.net).
Let me know if you have any suggestions.
Update: I need SSH access, too.
Source: http://www.livejournal.com/community/webdev/246550.html
-
help!!
Date: 09/25/05
(HTML Help) Keywords: web
could someone please tell me how to get the "info" "website" thing back?
thanks in advance!
Source: http://www.livejournal.com/community/htmlhelp/2152673.html
-
XML part deux
Date: 09/26/05
(C Sharp) Keywords: xml, web
Sorry to post another XML question so soon, but I promise this one's fundamentally different enough from the last one to merit a new post...
So I am creating an XML string in a class that gets bundled inside another XML string by another class before being sent to a WebService, where the reverse occurs (class members are populated by the XML string; a sort of deserialization, but not using the framework).
Let me first say that it works. One of the XML nodes contains an image encoded with base64, which is how I've been testing whether the XML is successfully built, parsed, transmitted, etc. I have a small client application that builds the XML and tests it by deserializing the image and displaying it; the server receives the XML, deserializes the image, and saves the image to the filesystem, where I can verify that it saves properly, displays properly, and all that jazz. So everything is working fine.
The trouble is that I've built into my WebService a functionality by which any string larger than a certain amount of bytes (currently 16k, but it can be changed) gets broken into chunks and sent one chunk at a time. The WebService reassembles the chunks, calculates the MD5 of the entire string, compares it to an MD5 of the string calculated by the client that the client sent prior to sending all these chunks, and if they match, commits the transaction into the session.
Let me also say that the above "chunking" process works on XML streams other than the one containing the image. For example, I tested it with a 1.7MB XML string that simply contained a bunch of ASCII nodes. The MD5s matched, I manually verified that the XML strings were identical on client and server, etc. So the source code is sound.
However, when I combine the above two particular processes -- the XML string containing an image in base64 and the "chunking" process -- a strange thing occurs. The MD5s no longer match after "chunking." Additionally, the lengths of the strings according to the client and the server after the string has been transmitted to the server differ by about 4k (the client says it's around 358k; the server says it's 354k). But when I ask the client and server each to write a text file of the XML, they both write out identical files that compare (using fc from the command prompt) with no differences found.
I'm officially stumped. Is it something having to do with base64? Is the base64 encoding getting conserved on the client side, but .NET's serialization is flattening it to ASCII for the server-side? Clearly such flattening doesn't matter, because the server can still put the image together without any errors. So if this is the problem, is there any way I can force this flattening to occur on the client-side prior to calculating an MD5 of the transmission?
I've tried forcing the XML through System.Text.Encoding.ASCII.GetBytes() and GetString() for kicks, but it didn't change the size nor the above problems.
If my theory is incorrect, please help me understand the problem and maybe what I could do to solve it given the above requirements.
Any help is appreciated!
Source: http://www.livejournal.com/community/csharp/36564.html
-
sendfile in PHP
Date: 09/26/05
(PHP Community) Keywords: php, web, apache
Howdy folks.
The Apache webserver has the ability to use the sendfile()
syscall to efficiently send static files. This feature copies from the file to the socket at the kernel level and is thus very efficient. I'm currently writing an app in PHP which will need to efficiently send a large file to the user without clients being able to request the file directly.
My question is whether there's any way to get at this from PHP land. I see the virtual()
function which causes Apache to perform a subrequest, but I'm hoping there's a way to do it without incurring the subrequest overhead. I've also seen PHP's readfile()
function and its friends, but I suspect (please correct me if I'm wrong) that the copying between file and socket will then happen in PHP land.
Alternative approaches are welcome too. :)
Source: http://www.livejournal.com/community/php/347342.html
-
Internet ad revenue climbs 26 percent
Date: 09/26/05
(Web Technology) Keywords: web
Spending was led by ads linked to Web search results. Other strong segments: banner ads and classified listings.
Source: http://news.zdnet.com/Internet+ad+revenue+climbs+26+percent/2100-9588_22-5882670.html?part=rss&tag=feed&subj=zdnn
-
css help!
Date: 09/27/05
(WebDesign) Keywords: css, web
http://www.ubs.iastate.edu/newdesign/3collayout.htm
http://www.ubs.iastate.edu/newdesign/1.css
My h2 on the right column isnt doing all the way to the very right edge of the website. I tried messing with my padding or margins but i cant get it to do what i want!
also...my container div border isnt showing up in firefox....
Any help is greatly appreciated.
Source: http://www.livejournal.com/community/webdesign/987326.html
-
STUCK PIXEL GHAAA (the pain)
Date: 09/27/05
(Computer Geeks) Keywords: web

Oh damn. I hate this. Of ALL the people who bought a Viewsonic VA702b
from newegg (and left a review,) I'm the only one who gets a stuck
pixel. It's on yellow, and is, of course, RIGHT IN THE MIDDLE OF THE
F**KING SCREEN. It's no problem when I'm surfing the web or something
text-based, but movies or games will not be fun. I can't return the
monitor because it's only warranted through viewsonic, and they wont do
a damn because it has to be 8 or more pixel anomalies.
I've tried the psp pixel fixer movie that's been around for a while, and left it on ALL night, but to no avail.
Anyone have suggestions on how I can fix this??? Thank you so much in advance.
Source: http://www.livejournal.com/community/computergeeks/783476.html
-
Question for those wiser than me...
Date: 09/27/05
(WebDesign) Keywords: web, hosting
when you design a website for a new client and they do not yet have a domain name, how do you go about registering that client?
- do you have them give you their credit card number?
- do you register YOUR e-mail with the hosting service you choose or your client's?
- do you take it out of their deposit for the work?
- essentially, do you set things up under their name or yours?
I was going to use Dreamhost... and I want to put myself as a referral... help?
Source: http://www.livejournal.com/community/webdesign/987445.html
-
semi-transparent background
Date: 09/28/05
(HTML Help) Keywords: web
Can anyone help tell me how to do semi-transparency for a table image on my web page?
I'm trying to make this image semi-transparent so the bottom part of my banner image will show through this.
Thanks for any tips you have.
Source: http://www.livejournal.com/community/htmlhelp/2154900.html
-
trojan horse Dropper.Generic.AGX
Date: 09/28/05
(Computer Geeks) Keywords: virus, web, yahoo, google
My AVG has a scheduled scan to run at 8am every morning, it did that today and ding'ed to let me know that I had a virus. There was a trojan horse Dropper.Generic.AGX in C:/Program Files/AIM/backup/uninstall.exe
—i deleted the .exe (I can just re-dl AIM again if I need the uninstaller) and just wanted to know if a.) i definately got rid of the infection and b) if anyone knew of what the virus is. ive googled, came up dry, and this is rather odd since I never get virus'. not since the sasser when I installed back in June.
any help is appreciated.
eta; ive noticed notepad.exe is running slow, when that program never does. its too small to run slow. in any case, ive noticed that for two days and figured it'd stop once i stopped downloading a torrent. never did stop lagging. dont know if that has anything to do with it.
eta ii;
Logfile of HijackThis v1.99.1
Scan saved at 3:45:21 PM, on 9/28/2005
Platform: Windows XP SP1 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106)
Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\Program Files\Sygate\SPF\smc.exe
C:\WINDOWS\system32\spoolsv.exe
C:\PROGRA~1\Grisoft\AVG7\avgamsvr.exe
C:\PROGRA~1\Grisoft\AVG7\avgupsvc.exe
C:\PROGRA~1\Grisoft\AVG7\avgcc.exe
C:\PROGRA~1\Grisoft\AVG7\avgemc.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\explorer.exe
C:\Program Files\Yahoo!\Messenger\YPager.exe
C:\Program Files\MSN Messenger\msnmsgr.exe
C:\WINDOWS\System32\wbem\wmiapsrv.exe
C:\WINDOWS\system32\notepad.exe
C:\Program Files\AIM\aim.exe
C:\Program Files\Mozilla Firefox\firefox.exe
C:\Program Files\Adobe\Photoshop CS\Photoshop.exe
C:\Documents and Settings\holla\Desktop\HijackThis.exe
O2 - BHO: (no name) - {53707962-6F74-2D53-2644-206D7942484F} - C:\PROGRA~1\SPYBOT~1\SDHelper.dll
O3 - Toolbar: &Radio - {8E718888-423F-11D2-876E-00A0C9082467} - C:\WINDOWS\System32\msdxm.ocx
O4 - HKLM\..\Run: [SmcService] C:\PROGRA~1\Sygate\SPF\smc.exe -startgui
O4 - HKLM\..\Run: [AVG7_CC] C:\PROGRA~1\Grisoft\AVG7\avgcc.exe /STARTUP
O4 - HKLM\..\Run: [AVG7_EMC] C:\PROGRA~1\Grisoft\AVG7\avgemc.exe
O4 - Global Startup: Adobe Gamma Loader.lnk = C:\Program Files\Common Files\Adobe\Calibration\Adobe Gamma Loader.exe
O9 - Extra button: AIM - {AC9E2541-2814-11d5-BC6D-00B0D0A1DE45} - C:\Program Files\AIM\aim.exe
O9 - Extra button: Related - {c95fe080-8f5d-11d2-a20b-00aa003c157a} - C:\WINDOWS\web\related.htm
O9 - Extra 'Tools' menuitem: Show &Related Links - {c95fe080-8f5d-11d2-a20b-00aa003c157a} - C:\WINDOWS\web\related.htm
O9 - Extra button: Yahoo! Messenger - {E5D12C4E-7B4F-11D3-B5C9-0050045C3C96} - C:\PROGRA~1\Yahoo!\MESSEN~1\YPager.exe
O9 - Extra 'Tools' menuitem: Yahoo! Messenger - {E5D12C4E-7B4F-11D3-B5C9-0050045C3C96} - C:\PROGRA~1\Yahoo!\MESSEN~1\YPager.exe
O16 - DPF: {04E214E5-63AF-4236-83C6-A7ADCBF9BD02} (HouseCall Control) - http://housecall60.trendmicro.com/housecall/xscan60.cab
O16 - DPF: {B38870E4-7ECB-40DA-8C6A-595F0A5519FF} (MsnMessengerSetupDownloadControl Class) - http://messenger.msn.com/download/MsnMessengerSetupDownloader.cab
O18 - Protocol: msnim - {828030A1-22C1-4009-854F-8E305202313F} - "C:\PROGRA~1\MSNMES~1\msgrapp.dll" (file missing)
O23 - Service: Adobe LM Service - Unknown owner - C:\Program Files\Common Files\Adobe Systems Shared\Service\Adobelmsvc.exe
O23 - Service: AVG7 Alert Manager Server (Avg7Alrt) - GRISOFT, s.r.o. - C:\PROGRA~1\Grisoft\AVG7\avgamsvr.exe
O23 - Service: AVG7 Update Service (Avg7UpdSvc) - GRISOFT, s.r.o. - C:\PROGRA~1\Grisoft\AVG7\avgupsvc.exe
O23 - Service: Sygate Personal Firewall (SmcService) - Sygate Technologies, Inc. - C:\Program Files\Sygate\SPF\smc.exe
O23 - Service: VPNonDemand - Unknown owner - C:\WINDOWS\VPN.exe (file missing)
Source: http://www.livejournal.com/community/computergeeks/783983.html
-
Mail getting downloaded twice, very aggravating.
Date: 09/29/05
(Mozilla) Keywords: web
When I got home from work today, I turned on my computer and downloaded about 70 messages quite normally. A few hours later, I woke the computer back up to check email again, and noticed, to my extreme chagrin, that TB was trying to download over 1000 messages--I have TB set to leave mail on the server for a month, and it was trying to redownload the lot! I managed to stop it and delete the duplicate messages, and I deleted some of the backlog of messages using my webmail client, but what should I do to keep it from doing this again the next time I open TB? I like to keep a fair number of messages on the server because I use webmail at work for a big chunk of the day and it's annoying not to be able to find things. Could this be a TB problem or do I have something else to blame?
Source: http://www.livejournal.com/community/mozilla/323573.html
-
this sucks
Date: 09/29/05
(WebDesign) Keywords: css, web
Well this sucks. A website I was making for a client just got cancelled. It was for a band, and their manager told them to hold off on the new site due to "image" reasons. As in, their image will be changing soon, and thus their site must then be all re-done to reflect this new image. I really liked how the new site was looking too :(
Flint Face (only the homepage and the 'about' page is done.)
Anyway, I wanted to post what I had so far for a reason. I've been trying to spend my free time learning more about CSS. I'm starting getting the hang of it. I didn't use any CSS layout stuff in this site though, because I haven't learned enough yet. As you will see, its all tables and IFRAMES and spacer gifs. This is all I know.
My big request is for help making a site similar to this one, with no tables or frames. I haven't found anything online yet regarding how to make image-heavy layouts (like I used for the flint face site) without tables. Also, I would love to learn how to make a simple top navigation which loads in content underneath, but without re-loading the menu (like the flint face site), WITHOUT frames.
Anyway, I always get help here, so I have high hopes.
Thanks again.
Source: http://www.livejournal.com/community/webdesign/987990.html
-
Microsoft loses in Eolas patent ruling
Date: 09/29/05
(Web Technology) Keywords: technology, web
U.S. Patent Office reaffirms key Web-browsing patent held by University of California and Eolas Technology.
Source: http://news.zdnet.com/Microsoft+loses+in+Eolas+patent+ruling/2100-9588_22-5885657.html?part=rss&tag=feed&subj=zdnn
-
Flash developer
Date: 09/30/05
(WebDesign) Keywords: web, yahoo
Is there an experienced Flash developer who knows their shit when it comes to Action Script in this community? I need to prepare a quote and proposal for a potential client for a Flash-based web site. The Flash piece will include an object that will need to be able to be rotated around, flipped over, etc., by the user. It will incorporate some other interactivity that I can describe if you hit me up at longrangeswish@yahoo.com.
Also, if anyone knows of a good Flash community on LJ and you could clue me in that would be great. I wasn't able to find one. I can move this post over there if necessary.
Thanks.
Source: http://www.livejournal.com/community/webdesign/988880.html
-
So how does this effect us?
Date: 09/30/05
(Mozilla) Keywords: html, web, microsoft
Two years ago a jury awarded little Eolas $500,000,000 in damages for patent infringement by Microsoft. Microsoft danced the usual dance, first appealing to a higher court and then exhorting web-standards organization W3C to join them in asking the US patent office for a reconsideration of Eolas patent.Yesterday, the patent office ruled the patent valid. Microsoft is at the end of their games. Now, they have to pay Eolas and alter IE to avoid the Eolas patent.
So, why is the 'duck posting this to the Mozilla community?
Well, let's just say that the patent is fairly wide-ranging. Eolas' patent covers technologies such as ActiveX, but equally covers Mozilla plug-ins, the HTML Embed and Object tags, embedded object pop-up controls, and XBL (Mozilla's binding language). Microsoft has a half-billion to pay-up, what does the Mozilla Foundation have? For sure not enough money!
Maybe Eolas will license the Mozilla Foundation the patent in some way shape or form? If they do not; might not that effect Mozilla's third licensing option: the GPL, thereby preventing any further distribution of Firefox? could the patent possibly be expanded to include Firefox Extensions, one of our few advantages over IE?
I'm not thinking on the possible troubles too much. Until something bad happens, nothing real has happened and for all I know the owner of Eolas is a firefox user and wouldn't dream of hurting us... stranger things have happened.
Qvacks.
Source: http://www.livejournal.com/community/mozilla/324524.html
-
Livejournal and Firefox Compatibility
Date: 09/30/05
(Mozilla) Keywords: blogging, browser, web
Question:
In regards to the announcement that Blogger/Blogspot, one of the Big 3 Blogging services (alongside both Xanga and our own Livejournal), was created by its developers using Mozilla Firefox, and that Firefox is recommended by the same for viewing the content on all pages within the Blogger domain, I have wondered about Livejournal's place in all this.
Frankly, while Livejournal hasn't given me much of any problems as a Firefox user, I'm worried about how Livejournal was built, and if the content on here is all totally compatible with this increasingly-present web browser.
I mean, yes, the code for Livejournal is filed under one of those GNU-GPLs we keep hearing about. However, even if that's the case, the slightest notion of Livejournal's hypothetical Firefox incompatibility will have alot of us LJers wondering about our future here.
Hopefully, such isn't the case. Hopefully, its not a matter of one browser getting better treatment over, or at the expense of, another browser.
Source: http://www.livejournal.com/community/mozilla/324800.html
-
DirectX 9.0
Date: 10/01/05
(Computer Help) Keywords: web
Hi! Okay so, i bought this game about 11 months ago, it's "The Sims 2" and it worked fine, then my computer got a worm, and it wouldn't work. Well i got rid of the worm and the game still won't play, i've gone to websites to download the latest DirectX 9.0 and the game says i don't have the latest version. I dunno what's happening, if somethings blocking DirectX from coming through, but i've only really played this game for like two months it total cause my computer messed up, and it was a $60 game, so if anyone knows why it's doing this and could help me out, thanks.
Source: http://www.livejournal.com/community/computer_help/497322.html