i have this code to fetch emails from gmail using imap with the zend framework. i go back 2 days in my search (as i do not want all messages) all works well but it takes forever to load the messages and i need to do this for 5+ users, it seems like the search goes through the entire gmail message archive in getting the newest ones.
my code looks like this:
$dato = date('j-F-Y', strtotime($Date. ' - 2 days'));
$dato = "SINCE ".$dato;
$messageids = $imap->search(array($dato));
any ideas on how to make zend work faster?
I'm developing a web application and am looking for a great inexpensive CDN to host my images/css/js.
Does anyone know of a great INEXPENSIVE CDN which offers either rsynch or origin/push services?
Where can I find good templates for svn commit emails?
Google led me to this. Even though it was much better than the default post-commit, I didn’t find it very useful.
Help much appreciated.
I have a forum whereby links to a thread looks like
http://www.website.com/comments.php?topic_id=1
How can I make it look like this
http://www.website.com/1046302/some-link-desc#12154109
so that when such links are given out, the user is taken directly to that particular comment.
I'm particular about the #12154109 . The other part of the URL /1046302/some-link-desc is achieved through .htaccess configuration.
I'm curious if there is an efficient way to wait for the front page of a site to load, and then pre-load CSS and script files that I know will likely be needed for the other pages on the site.
I want the front page of the site to be as fast as possible (lean and mean). It's likely that the user will not immediately click on a link. Since there will likely be some idle time, this seems like an opportune time to pre-load some of the external assets. Pre-loading should cause them to become cached. When the user does click on another page, the only request needed will be for the content and possibly some images, etc.
Has anyone done this?
Is it a bad idea?
Is there an elegant way to implement it?
I have a div with display:block in my css. This div block uses the align = "absmiddle" . It displays all the elements in 1 line in Chrome. However, in firefox, the elements are displyed on to the next line as well. How do I get them to display in 1 single line in firefox.
P.S: I have already tried display: inline but it does not bring it in 1 line.
<div class="one"><input name="elementone" value="1" align="absmiddle" class="subone" /></div>
Css is
div.one,div.subone{
display:block;
width:16px;
height:100%;
background-position:0 0px;
border:0
}
I have a page with many out-of-bounds contents and since I set body{overflow:hidden}, they are not outside the viewport. So I want to attach a function to a button which would move the PoV of the browser so that the out-of-bounds contents would come into the viewport.
What I can think of now is to set body{position:relative} and use jQuery to animate() the body instead. But in terms of performance, is there a better way to achieve that?
I have the following mark up.
<ul>
<li><a><span>link-1</span></a></li>
<li><a><span>link-2</span></a></li>
<li><a><span>link-3</span></a></li>
</ul>
When user hover on the first 'a' then the next a tag in LI , we remove the backgorund-image.
I hope you are clear what I want to do with this.
I have layout that has wider background picture than the content area. I have made 970ppx wrapper where the content is. And in body I have backgroud image but I need to have anothen background image above of tht body background image so I have made class bgimg. So basically the markup is like this:
But the bgimg is about 1050px wide and thus it gives scrolls when users browser is 1024x768. Is there way of getting rid the scrolls? I mean I want to have have scrollbars if users browrser is narrower thant the 970x wrapper of course. So can I put something like overflow hidden for bgimg class?
Hopefully you did understannd what I mean.
When you win a badge in this page a bar with information appears on top. I think is jquery but anybody knows all the code and the implementation? Thank.
I have an input text box with some text in it , onclick event I want to run a javascript function to select (highlight) all text that is in this box , how I can do that with jquery?
I thought I remembered reading somewhere that IE9 would not be supporting them, but now after searching I can't find any indication that this is true.
Is anyone aware of a definitive statement, either way, about whether Microsoft will be supporting conditional comments in IE9?
I have an arrow on my site that I'd like if onclick, it hides one element, and shows another. Hitting it again, will hide the element that was shown and show the element that was hidden.
Is that possible to do without jQuery?
For example, I have
<div id="arrow"><a href="#">?</a></div>
<div id="ad"></div>
<div id="description">Hidden</div>
<div id="nav">Also Hidden</div>
So at first, the ad is showing, and then one you've clicked the arrow, I'd like the ad to hide, and then unhide the description and nav.
Given multiple anchor tags:
<a class="myclass" href="...">My Text</a>
How do I select the anchors matching the class and with some specific text. eg Select all anchors with the class:'myclass' and text:'My Text'
In the app I'm currently writing I'd like to populate the message body of an e-mail with a combination of text and images. It took me forever to find out that in order to get an embedded image, you had to have bold tags in the message body (...uhhh, yeah), otherwise the image just shows up as an attachment. But now I have the problem that all of the images just go to the end of the body, and I can't programmatically put text after or in between any of the attachments.
So far I've tried:
Adding images as part of the body string using tags and a base64 string. This would have worked, but most e-mail clients reject images embedded in this manner.
Using normal tags with a references to the attached files, using the assigned filenames. Didn't work at all.
Attaching images normally, but also attaching blocks of text to the e-mail. The text is not embedded in the same manner as the images. Turns out to be an attached txt file on the receiving end.
Apple has restricted their MFMailComposieViewController class to the point of ridiculousness, but I know there has to be a way to do this, because they add in their stupid "Sent from my *apple device name here*" message at the end of every e-mail.
So does anyone have any ideas?
I have the following text for which I would like to add a <br> tag between every paragraph. And also remove all the line breaks. How would I do this in PHP? Thanks.
So this -
This is some text
for which I would
like to remove
the line breaks.
And I would also
like to place
a b> tag after
every paragraph.
Here is one more
paragraph.
Would become this -
This is some text for which I would like to remove the line breaks.<br/> And I would also like to place a br tag after every paragraph. <br> Here is one more paragraph.
NOTE: Ignore the highlighting of any letters.
Hello,
I have created a drop down with JQuery that can be seen here by clicking the Preview button on top:
http://jsbin.com/ubire3/edit
It works fine except for one problem. When i hover over the main hover links (blue ones) quickly eg going horizontally quickly hovering each top menu, the some submenus don't close. How do i make it so that even if i hover fast over them all other submenus are closed?
Thanks.
I have this small JavaScript code which I need some help with:
function doFocus(text) {
if (text.value == "Enter Name") {
text.value = "Student Name -";
}
}
All I need here is when someone clicks on my textbox, the text "Student Name -" should change its color, and should text-align = left. I am looking for the appropriate syntax for something like text.color and text.align.
Hi,
I have a page, and I just added pagination to it, but there's a prob in IE 7 & 8.
When I add pagination code
echo "<div class='pagination'>";
echo $pagination->GetPageLinks();
echo "</div>";
it breaks somehow layout in IE, I have looked all over it and I couldn't find what's wrong there.
oh, and its css
div.pagination {
text-align : center;
}
div.pagination a, div.pagination span {
padding : 5px;
display : inline-block;
}
page url - adelija.puslapiai.lt, it's on index page, if you could take a look, that'd be great.
Hello,
I tried to display a image when a mouseover on text occurs. It works fine. And the alignment of the image should be shown such that the end of the image should be at the container. It works fine with the code shown below, Only in IE7. In everything, it gets chopped off.. What is wrong here?
<td valign="middle" class="table_td td" style="width: 347px">
<span class="feature_text" style="cursor:pointer"
onmouseover="ShowPicture('Style16',1)"
onmouseout="ShowPicture('Style16',0)" id="a16">
Storefront Window Decal</span>
<div id="Style16" style="position:relative;height:0px;left:50%;bottom:700%;
visibility:hidden; border:solid 0px #CCC; padding:5px">
<img src="images/window-decal-image.gif"></div>
<script language="javascript" type="text/javascript">
function ShowPicture(id,Source)
{
var vis, elem;
if (1 == Source)
{
vis = "visible";
}
else if (0 == Source)
{
vis = "hidden";
}
else
{
throw new RangeError("Unknown Flag");
}
if (elem = document.getElementById(id))
{
elem.style.visibility = vis;
}
else
{
throw new TypeError("Element with id '"+id+"' does not exist.");
}
return vis;
}
</script>
Can someone help me out. Thanks in advance!!
Hello.. i want to make a textarea that contains already "Please describe why", and then when you click on the textarea and wants to write in it, it disappears..
I have a table and there is a TreeView in a cell. Here is my code:
<style>
#leftPanel
{
width:60px;
height:'100%';
border:1px solid red;
background:yellow;
}
<style>
<table>
<tr>
<td>
<div id="leftPanel">
<asp:PlaceHolder runat="server" ID="TreeView" />
<%-- Here is a TreeView --%>
</div>
</td>
</tr>
<%-- other code --%>
<table>
$(function () {
$('#leftPanel').resizable(
{
handles: 'e, w'
});
});
I can't reduce the size of my div less then the size of my TreeView.
What code need I write to allow leftPanel to be less than the size of TreeView ? It is necessary if TreeView node's text too long.
I have unordered list navigation like this. When anchor is hovered navigation list moves 1px left.
How to fix that ?
Here is my code
<ul id="nav">
<li><a href="#">First</a></li>
<li><a href="#">Second</a></li>
<li><a href="#">Third</a></li>
</li>
Here is my css:
ul#nav li {
float: left;
margin: 0; padding: 0;
}
ul#nav li a:hover {
-moz-border-radius:3px;
border: 1px solid #ccc;
}
I'm looking for a very basic slideshow which displays images of various sizes. For example, the first image could be a standard 800x600 but the next might be a taller portrait image and so on. The slideshow doesn't need to have any controls. The specification just states that the page will be black and in the centre there'll be the area where images will display. As far as I know, it will be very simple like this - www.jeffcutter.net. I'm limited on time here so I'm not able to look into writing a custom one or anything like that. I just need to get some images displaying like in the example.
Thanks in advance, it's much appreciated.
Have a great weekend!
Regards.