|
-
problems after getting new ISP
Date: 05/05/05
(Computer Help) Keywords: software, web, google
I'm so glad I found this community =)
Last Friday, I finally received the modem from my new ISP (Bell Sympatico DSL, if there are any Canadians out there familiar with it). I installed the modem on my laptop first, since we didn't have a long enough phone cord to reach to my boyfriend's desktop. Everything worked really well, the service was fast and there were no problems.
Then I installed the modem on my boyfriend's desktop, and hooked up a wireless router. Since then certain websites like Google, Gmail, Hotmail won't load for us at all. He's not having any problems sending or receiving email through Outlook Express, but I can only receive. I've checked all of my email settings, and they're all fine. Some sites are loading very quickly (livejournal is doing well, but a forum and my local newspaper are annoyingly slow)
Any idea what might be up? Mostly why certain wesbites won't load, others are really slow, and some are fine. I never had problems at all before I got Sympatico. I checked out their website to see if there was any information, but most of the stuff is decently useless. As is the "Net Assistant" that came with the software. I'd love to avoid calling customer support, becuase I'm moderately tech-savvy and I really hate being treated like a complete idiot over the phone.
Thanks in advance =)
Source: http://www.livejournal.com/community/computer_help/390345.html
-
CD Madness!!!
Date: 05/04/05
(Computer Help) Keywords: web
Lately I've taken an interest in making mix CDs. I go to this website where you can download free songs. I right-click on the link, go to Save Target As, and save the song(s) in my directory. I put a blank CD-R in my E Drive. I copy and paste the songs to the E Drive window. I click, "Write these files to CD". It goes through a wizard and the songs copy.
The CD works just fine...on my computer. It doesn't work on my CD player.
I remember reading that CD-Rs work on computer AND CD player, while CD-RWs only work on the computer. So is there a reason why this isn't working on my player?
I've tried other ways of copying, like the Windows Media Player, but it doesn'y copy at all.
What to do?
Source: http://www.livejournal.com/community/computer_help/389476.html
-
help please!!
Date: 05/09/05
(Javascript Community) Keywords: web
I've been trying to figure out how to do this project for my Web class since yesterday and I'm so confused. Anyone what to try and help? Here's the assignment:
Create a script that calculates the square feet of carpet required to a carpet room. Include three text boxes. Create one text box for the width of the room in linear feet and another for the length of the room in linear feet. Also create a text box for the cost per square foot of carpeting. When you calculate the cost, add 25% to the total number of square feet to account for closets and other features of the room. Display the total cost in an alert dialog box.
This is probably the simplest thing in the world but for some reason I just can't figure it out.
Thanks!
Source: http://www.livejournal.com/community/javascript/65370.html
-
Code for Fetching LJ Community Contents through RSS
Date: 05/09/05
(PHP Community) Keywords: rss, xml, web
[Error: Irreparable invalid markup ('') in entry. Owner must fix manually. Raw contents below.]
I wrote a code for Fetching LJ content of a community. Am using RSS here. I wrote one XML Parser, It displays the entries in proper format (User can modify the code for his/her choicable format). It also displays the user name and userpic of the person who posted the entry in the community, also it counts the number of comments for that post and displays the comment count. Also it displays the current music, current mood and the mood icon used for that entry. This code will be helpful when someone is designing a website for a community and wants to fetch the LJ contents in the site... I've not yet tested the code for all types of design. If anyone can test the code and find the errors and fix them, it'll be helpful for everyone... // +----------------------------------------------------------------------+ // | CommunityLJcatch version 1.1 | // +----------------------------------------------------------------------+ // | This program is free software; you can redistribute it and/or | // | modify it under the terms of the GNU General Public License | // | as published by the Free Software Foundation; either version 2 | // | of the License, or (at your option) any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, write to the Free Software | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | // | 02111-1307, USA. | // | | // +----------------------------------------------------------------------+ // | Author: Sutanu Mandal from SPHINX | // | Website: http://www.wearesphinx.net | // +----------------------------------------------------------------------+ // | File: fetch.php | // | Description: Contains php code and XML parser to fetch | // | Livejournal Entries from Community LJ Page | // | Last Update: 22/04/2005 | // +----------------------------------------------------------------------+
// Basic Requirements $community="wearesphinx"; // Mention your community name here $backend = "http://www.livejournal.com/community/".$community."/data/rss/";
// End
// variables needed later $insideitem = false; $tag = ""; $title = ""; $description = ""; $link = "";
$mood = ""; $music = ""; $comment = ""; $datetime = ""; // end
function startElement($parser, $tagName, $attrs) {
// The function used when an element is encountered
global $insideitem, $tag;
if ($insideitem) {
$tag = $tagName;
} elseif ($tagName == "ITEM") {
$insideitem = true; }
}
function characterData($parser, $data) {
// The function used to parse all other data than tags
global $insideitem, $tag, $title, $description, $link, $mood, $music, $comment, $datetime;
if ($insideitem) {
switch ($tag) { case "TITLE": $title .= $data; break; case "DESCRIPTION": $description .= $data; break; case "LINK": $link .= $data; break; case "COMMENTS": $comment .= $data; break; case "LJ:MUSIC": $music .= $data; break; case "LJ:MOOD": $mood .= $data; break; case "PUBDATE": $datetime .= $data; break; }
}
}
function endElement($parser, $tagName) {
// This function is used when an end-tag is encountered.
global $insideitem, $tag, $title, $description, $link, $mood, $music, $comment, $datetime, $community;
if ($tagName == "ITEM") {
/*Code for finding the entry ID*/ $linkid=preg_split('[/]',trim($link)); $entryfile=$linkid[count($linkid)-1]; list($entryname,$dummy)=split('[\.]',$entryfile);
// Find the Date and time of Post $datearray=preg_split('[ ]',$datetime); if(empty($title)) { $title="Nothing to say Baby"; } printf("", // make our title into an actual link htmlspecialchars(trim($title))); // remove html characters from the title
//-------------------------------------------------------------------- // Find out the user who made the post
print ""; $ljfile="http://www.livejournal.com/community/".$community."/".$entryname.".html"; $content=file_get_contents($ljfile); chop($content); $val=strstr($content," $str1=strstr($val," $pos1=strpos($str1,'>'); print ""; for($index=0;$index<=$pos1;$index++) print($str1{$index}); echo " | $datearray[1] $datearray[2] $datearray[3] $datearray[4] $datearray[5]"; echo " "; $pos1=false; $str1=false; $str1=strstr($val,"http://www.livejournal.com/userinfo.bml?user="); $pos1=strpos($str1,'>'); $pos2=0; $username=trim(substr($str1,45,$pos1-46)); print(" $username
| \n"); $pos1=false; $pos2=false; $str1=false; $str1=strstr($content,"Current mood:"); $pos1=strpos($str1," $pos2=strpos($str1," | "); if($pos1<$pos2) { $str1=strstr($str1," $pos1=strpos($str1,">"); $moodpic=trim(substr($str1,0,$pos1)); } else $moodpic="";
// Find out number of comments in that post $commentcount=count(explode("talk-comment",$content))-1;
#fclose($LJ); $val=false;
//------------------------------------------------------------------------- // Continue with the formatting of the entry
if(!empty($mood)) print("Current Mood: $mood $moodpic "); if(!empty($music)) print("Current Music: $music ");
printf("%s ",$description); // Print out the live journal entry # Original
/* Code for display number of comments, Link to comment page, Edit Entry, Add Memory*/ if($commentcount>0) { if($commentcount>1) printf("$commentcount Comments",trim($link)); else printf("$commentcount Comment",trim($link)); } else printf("Permanent Link",trim($link)); $comment=trim($comment); if(!empty($comment)) print(", Leave Comments, ");
print(" ");
print (" src=\"http://stat.livejournal.com/img/btn_memories.gif\" />");
printf (" \n"); // Make a line inbetween entries. $title = $description = $link = $insideitem = $mood = $music = $comment = false; }
}
// Now to the parsing itself. Starts by creating it:
$xml_parser = xml_parser_create();
// Then setup the handlers:
xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData");
// Open the actual datafile:
$fp = fopen($backend, "r");
// Run through it line by line and parse:
while ($data = fread($fp, 4096)) { xml_parse($xml_parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); }
// Close the datafile
fclose($fp);
// Free any memmory used
xml_parser_free($xml_parser);
?>
But in this code the problem is that it doesn't recognise LJ-cut and doesn't do caching.
If anyone modifies the code and make it efficient then it'll be helpful :)
Source: http://www.livejournal.com/community/php/296862.html
-
XML?
Date: 05/09/05
(Computer Geeks) Keywords: rss, xml, web
What's the best - and free - way to add XML syndication feeds to a website?
I'm working on my own site right now (unfortunately, I can't make the whole thing live until the DNS changes to my GoDaddy domain go through), and my goal is to have three separate blogs through Blogger.com...and I want to display a feed from the two secondary blogs on my front page (like have a section for a secondary blog, containing links and the first few lines from each article in that blog...). I know I can use FeedBurner to convert my Atom XML feeds to RSS, but either way, how do I make my site display the XML information?
Thanks in advance!
Source: http://www.livejournal.com/community/computergeeks/680022.html
-
CSS Compatibility Chart
Date: 05/09/05
(Web Development) Keywords: php, browser, css, web
Hey web-dev,
Saw this on digg this morning, thought it would be useful to anyone working on a stylesheet and want to know how it will work on different browsers.
http://www.corecss.com/properties/full-chart.php
-DG
Source: http://www.livejournal.com/community/webdev/196533.html
-
HTML Image tooltip
Date: 05/09/05
(Web Development) Keywords: browser, web
OK< I think this should be really easy to do, but I can't for the life of me figure out how to do it. I have a bunch of icons, and I want the web browser (firefox) to pop up the alt tag of the images as a tooltip. Is there some magic I need to do to make that work.
Source: http://www.livejournal.com/community/webdev/196253.html
-
Hey
Date: 05/10/05
(Javascript Community) Keywords: php, html, web
Hello, hello, great community, don't know why I never found it before, but alas.. here I be..
I am a web developer and have my hands in just about everything these days.. working with someone to update a WordPress Blog.. they are wishing to add the following js script to their content..
but notta.. can't get it to work.. any ideas on why I'm having so much troubles with this thing??
I have mentioned this matter previously in this community..
php
Here http://www.livejournal.com/community/php/290136.html
Source: http://www.livejournal.com/community/javascript/65921.html
-
the pain of others
Date: 05/10/05
(MySQL Communtiy) Keywords: mysql, database, sql, web
I inherited a site with a mysql back-end. It was rather painful to get a understanding of what the heck the previous person was doing (it was not pretty). So adding to the db was ok, and making a slight modification here and there was ok. Now the pain came. The client wants to be able to search the database via part numbers (and then return the page it is on). I think to my self, hey no problem right? bzzt wrong. I have PartNumber, partnumber, quarter_partnumber and half_partnumber; also each product category is its own table in the database (for a total of ~45 tables). I have done some reading up on this and I believe a join could help. now, should I bother with a huge join, try to search each table by its self (time wise very costly), or ? let alone once I find the correct partnumber I have to then find a way to attach the webpages (a second db or a new field in each record).
my brain hurts with the stupid
Source: http://www.livejournal.com/community/mysql/56150.html
-
Web Accessibility
Date: 05/10/05
(WebDesign) Keywords: web
I noticed the issue of web accessibility come up in the comments to a recent post and got the impression that some people here aren't aware (or perhaps not fully aware) of the problems that disabled people face and the subsequent need for a good designer to take in to account designing for said disabled users.
Now before you flame me, let me say that there are obviously times when it doesn't make sense to design for disabled users: blind users and an art portfolio site, for instance.
A few months back, Jakob Nielsen's useit.com was brought up, but the high-handed tone and irrelevancy of Nielsen's Top Ten Mistakes in Web Design and the fact that the site looks absolutely horrible repulses people that don't already feel accessibility to be an important issue.
So I dug through my bookmarks and got together a nice little primer on why accessibility is important, the first several links are flash applications that simulate what it's like to use a web site while hindered by some form of disability:
With those out of the way, here's a bigger read: Mark Pilgrim's Dive Into Accessibility. I highly suggest reading at least the first five "days", which describe five different hypothetical users and the difficulties they face. It's even well-written.
Source: http://www.livejournal.com/community/webdesign/872791.html
-
Google Web Accelerator closed … for good?
Date: 05/09/05
(Java Web) Keywords: web, google
Discussion on the current coma of Google Web Accelerator...
Source: http://blog.taragana.com/index.php/archive/google-web-accelerator-closed-for-good/
-
new - a request.
Date: 05/10/05
(WebDesign) Keywords: web
i have a domain which i've had for ageees now, www.threesimplewords.com.
i've never used it, mainly because i have no idea how. i was wondering if anyone would be interested in making me a really small cute website for free, all i want is a main page & a gallery. in return i'd be willing to offer as much of my web space as i have spare, cause i'm not gonna be using it.
if anyone is interested let me and that'd be great.
Source: http://www.livejournal.com/community/webdesign/873291.html
-
How do you do that?
Date: 05/10/05
(Web Development) Keywords: web
I've been requested to build a website where a user can choose to view the site either with a light background and dark text, or a dark background with light text. I know it can be done, because I've seen it done here (www.valleycon.com). I was wondering as to *how* it can be done, what tools I would need to pull it off, and hope to be pointed in the general direction of various books or tutorials. Thanks.
Source: http://www.livejournal.com/community/webdev/197232.html
-
FAQ: Hard facts about Google's Web Accelerator
Date: 05/10/05
(Web Technology) Keywords: software, web
The downloadable software speeds the delivery of Web pages but has its critics. What is it, and how does it work?
Source: http://news.zdnet.com/FAQ%3A+Hard+facts+about+Google%27s+Web+Accelerator/2100-9588_22-5700776.html?part=rss&tag=feed&subj=zdnn
-
terrible logo = terrible web site?
Date: 05/10/05
(WebDesign) Keywords: web
I'm a fairly new web designer and this problem has been coming up quite a bit: The company I will have to design a site for will have the ugliest logo ever -and I have to design the site incorporating this terrible logo. What to do? If I just use colors from the logo and design as normal, then the logo looks super out of place. If I design with the logo in mind, then the site looks as ugly as the logo itself. Has anyone else been in this situation? What did you do?
Thanks.
-Lydia
PS- The companies in question will not go for a logo redesign, either. ugh.
Source: http://www.livejournal.com/community/webdesign/873951.html
-
Yahoo to launch new flagship music service
Date: 05/10/05
(Web Technology) Keywords: web
Community, music-sharing are key in Web giant's new subscription plan, due this week, sources say.
Source: http://news.zdnet.com/Yahoo+to+launch+new+flagship+music+service/2100-9588_22-5701661.html?part=rss&tag=feed&subj=zdnn
-
stupid php 4
Date: 05/11/05
(PHP Community) Keywords: web
it does not have str_split, which I would love to be able to use. why? I have a form, people will be searching for part numbers to go to a webpage. I just need the first 5 characters of the submit field since all of the same type of thing is on the same page (ie b-gcp100 and b-gcp913 go to the same page). hints or hacks?
Source: http://www.livejournal.com/community/php/298185.html
-
Shameless plug NO CRITIQUE PLZ.
Date: 05/10/05
(WebDesign) Keywords: web
Hellos! I just joined here. I'm not special or anything, but I have a website. ^-^ http://taiyoken.net and one upcoming, slowchemical.nu! I design furry and anime related fanlistings. I also have a talented hostee who can be seen at Firecatgraphics.
Edit: DO NOT give me critique about my website. I am not looking for help on it, I'm not looking for fancy critique. I'm just someone who joined who is plugging her domain. Okay? THX. PS, don't tell me what I can and cannot do. =) I wanna see other peoples sites for fun, not to criqtique.
Source: http://www.livejournal.com/community/webdesign/872653.html
-
MySQL Tree Structure Question
Date: 05/11/05
(MySQL Communtiy) Keywords: php, mysql, sql, web
I've got a typical weblog system setup, which allows users to comment upon posts.
The comments are located in their own table which has a structure similar to this (actually it stores thinks like IP address, etc too):
CREATE TABLE comments (
id int(11) NOT NULL default '0',
article int(11) NOT NULL default '0',
parent int(11) NOT NULL default '0',
title varchar(65) default NULL,
author varchar(25) NOT NULL default '',
body text,
PRIMARY KEY (id,article)
);
This is pretty standard stuff - the comments are associated with a particler "article", and they may also be replies to other comments - in which case the "parent" will point to the parent comment id.
This structure allows there to be a nice nested tree of comments, in which some are "top level" because they have no parent set, and others are nested.
One problem I'm having is that with this structure is that the naive implementation for showing the comments is using recursion - and this is slowing down significantly as the size of the comments grows.
The pseudocode looks something like this:
# $article is the article these comments are associated with
# $parent is the parent of the children we want to see
# $level is increased when we go deeper into the tree,
# used to display a nice indented tree
sub display_children($article, $parent, $level)
{
# retrieve all children of $parent
$result = mysql_query('SELECT * FROM comments WHERE article=$article AND parent= $parent') ;
# display each child
while ($row = mysql_fetch_array($result))
{
# indent and display the title of this child
echo str_repeat(' ',$level).$row['title']."\n";
# call this function again to display this
# child's children
display_children($article,$row['id'], $level+1);
}
}
# Display comments for article 40:
display_children( 40, 0, 0 );
(This is a pretty faithful representation in PHP, but the actual code is Perl, using DBI).
So now onto the question:
How can I speed this up, and avoid the recursion?
I've looked at CPAN for DBI::Tree, and other obvious candidates but I see nothing suitable.
I think I probably need to change the structure into something more efficient to display, but I admit my SQL-fu is weak.
Any suggestions appreciated.
Source: http://www.livejournal.com/community/mysql/56692.html
-
W3C launches mobile push
Date: 05/11/05
(Web Technology) Keywords: web
Calling the mobile device a "first-class citizen of the Web," W3C pledges to advance mobile standards.
Source: http://news.zdnet.com/W3C+launches+mobile+push/2100-9588_22-5703115.html?part=rss&tag=feed&subj=zdnn
|