hey guys
im using a form in php to submit some information into my database
so i used two function to do this
but how to show the result in th same page that has the form
im trying to check if a given list is a subsequence of another list:
here are example of lists which gives true:
subseq "" "w"
subseq "w" "w"
subseq "ab" "cab"
subseq "cb" "cab"
subseq "aa" "xaxa"
not (subseq "aa" "xax")
not (subseq "ab" "ba")
i just come to this but in some cases it gives a wrong result
subseq :: Eq a => [a] -> [a] -> Bool
subseq [] [] = True
subseq [] ys = True
subseq xs [] = False
subseq (x:xs) (y:ys) = x == y || subseq xs ( 1 `drop` ys )
How can i create a vanity url in codeigniter. Im having real trouble doing this in the framework. And there doesnt seem to be any good answers out there.
Im trying to fill a dropdownlist based on an other one:
Departments and SubDepartments.
i followed this link: http://www.sharepoint-tips.com/2007/01/infopath-form-services-implementing.html
when i try to fill in a form it gives me an error:
Request Failed (-- securityException) on this line:
q.FileLocation = q.FileLocation + "&FilterField1=Department&FilterValue1=" + GetDepartmentValue();
and the second dropdownlist (subdepartments) is not filtered.
Any idea what might be the problem?
I've a model called broadcastinfo, It has fields viz.. info,userid...userid is excluded. when i add an new info, my broadcastinfo table should get the records of all userid from user table and the given message. Im trying this via signal.Any idea is highly appreciated.
Thanks
Hi,
i have this code:
if(sfContext::getInstance()->get('form_signin')){
//...
}
but im getting this error:
The "form_signin" object does not
exist in the current context.
Any right way to check if a variable saved in sfContext is set or not ?
Regards
Javi
Hey guys
how can i query my mysql database and fetch rows which are posted in earlier 3 days
i know how to fetch todays's rows but not 3 days ago
time will save in my table like this :
2010-01-20 19:17:49
and this is what i know :
SELECT id FROM pages WHERE date=now()
but i need to show posts in 3days
and im looking for a simple and straight solution ,because i know how to do so in long php codes
How can I check if a user exists?
Im doing an installer for a mysql database, and I need to check if a user exits, if not create user, if yes delete user and create it again.
this so i can execute the script without worries.
thanks.
My Scenario is...
I want to find out whether the table has an identity column or not.Table is unknown to me.I have not done the structure of the table.using Query?
Im using Sql Compact.
I'd like to have a page that communicates directly to some IM service that I will generally be able to be logged into.
E.g. I am on gtalk all the time, I'd like people to be able to get in touch with me via the website. (the specific protocol isn't that important, of course)
What would be the simplest set of technologies to implement that?
hi! :)
anyone know if is possible to reproduce this effect
background-image: -moz-linear-gradient(top, #666666, #000000);
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #000000),color-stop(1, #666666));
also on ff < 3.6?
im tryin' to generate a gradient background without images!
thanks a lot in advance for any advice.
I have implemented ajax on paging but my problem is when i navigate on paging and go to page 1 then on page 2 after that if i press backspace it went to the last page from where it comes instead of going to page 1. I want to know how should i implement paging like stackoverflow have. Further i have noticed that my url doesnt change on paging it remains like Home/Index when im on 1st page or 2nd page or any other page?
I have a big problem. I want get information with an webservice in one URL.
But I'mm getting this error:
XMLHttpRequest cannot load ht*p://external_url_that_i_trid_to_get.
Origin ht*p://localhost:8888 is not allowed by Access-Control-Allow-Origin.
Im using this:
$.get(url_parsed,date_get,function(data) {
if (data.result == 'sucess') {
alert(data.data["title"]);
}
},"json");
How I can resolve this? Regards
Im using updatepanel in my screen..
i have 2 pages
when i click submit button in page1 then it ill be redirect to page2 ....in page2 i have one back button..i wrote click event onclick="history.go(-1)"
when i click back it just redirect to page 1 but records already showned in page1 not displayed .how can i sove this problem?
cai i use any scriptmanager?
Im using c# windows form application. I have a database with many tables. Each table has several columns. I need to populate the combo box with the column names for a selected table.
I'm working with some legacy code that has an import like so:
#import "C:\Program Files\Common Files\System\ado\msado15.dll" rename("EOF", "EndOfFile")
The problem is, on a x64 machine the path for this import is in the 'Program Files (x86)' directory. Is there a preprocessor macro I can wrap around this to make it work on either?
Edit: I think I found it. _M_X64, but im not 100% sure if this is correct.
I am using OSX 10.6 and it has cron built in. How can I write a cron job that will block my internet from 7pm to 7am every day?
Im sure this must be simple but I could only find one example online and it didn't work. It said to:
set /etc/hosts.allow flie to
be empty
set hosts.deny file to
ALL : ALL
I did this and google still came up.
Basically what Im trying to make is a data structure where it has the users name, id, and datejoined. Then i want a "sub-structure" where it has the users "text" and the date it was modified. and the user will have multiple instances of this text.
class User(db.Model):
ID = db.IntegerProperty()
name = db.StringProperty()
datejoined = db.DateTimeProperty(auto_now_add=True)
class Content(db.Model):
text = db.StringProperty()
datemod= db.DateTimeProperty(auto_now_add = True)
Is the code set up correctly?
I have a practical exam in web technologies so html, css, javascript and (possibly) php. I'm still learning and just wondered if you guys had any advice. HTML im fine with, css sometimes takes me time to get right and javascript and php get a bit messy! It's open book, so what would you suggest taking with me?
hi, im using jquery in asp.net, if i try to use $.ajax functionality, i got this
if i use it in a separate page it works..
when i put it in an ascx and put the ascx out of <form runat="server" >... tags it works
if i put it between <form> tags , jquery works but it doesnt fire $.ajax event
i need to download page from source code..for example
Cellini's Italian Restaurant
i want to download the "/len/aaproximat...php"..i didnt find the suitable regex for it..and i need to download that page..can anyone help?
im using vb.net
im using netbeans to code a web application with symfony.
it seems that netbeans doesnt support symfony in auto completion.
could one fix this problem.
cause i want to be able to click on symfony's functions and get to the source, eg helper function and model methods and classes.