What programming languages are used to create sites for online video convertion and mp3 extraction from youtube, like this one: http://getvideo.bg ? I guess it's not written in php ...
how can i control access to webpages in firefox. i'm going to develope a new addon for this but colud you tell me what should i do?
can firefox extension programming allows this.
or should i develop a desktop application to control access.
thx in advance.
We are going to develop a simple chatroom in flex using Red5.
Should we store UserList in a Remote Shared Object or Server Side List?
Are there any example exit on Red5 or FMS , which uses Server Side programming and Remote Shared Objects? Red5 examples are not documented at all.
NSString *myxml=@"<students>
<student><name>Raju</name><age>25</age><address>abcd</address>
</student></students>";
in iPhone programming how to parse this XML by each node. ....
Yes I know its usually a bad idea to parse HTML using RegEx, but that aside can someone explain the fault here:
string outputString = Regex.Replace(inputString, @"<?(?i:script|embed|object|frameset|frame|iframe|metalink|style|html|img|layer|ilayer|meta|applet)(.|\n)*?>", "");
if (outputString != inputString)
{
Console.WriteLine("unwanted tags detected");
}
It certainly detects the intended tags like: <script> and <html>, but it also rejects strings I want to allow such as
<B>Description</B>
and
<A href="http://www.mylink.com/index.html">A Link containing 'HTML'</A>
I'm new to django and I'm trying to get display a list of buildings and sort them alphabetically, then load it into an html document. Is there something that I am not doing correctly?
below is models.py
class Class(models.Model):
building = models.CharField(max_length=20)
class Meta:
db_table = u'class'
def __unicode__(self):
return self.building
below is views.py
views.py
def index(request):
buildinglist = Class.objects.all().order_by('building')
c = {'buildinglist': buildinglist}
t = loader.get_template('index.html')
return HttpResponse(t.render(c))
below is index.html
index.html
{% block content%}
<h3>Buildings:</h3>
<ul>
{% for building in buildinglist %}
<li>
<a href='www.{% building %}.com'>
# ex. www.searstower.com
</li>
{% endfor %}
</ul>
{% endblock %}
Can you guys point me in the right direction?
Thank you in advance guys! I appreciate your help very much.
Hi,
what is programmer job or tasks?
is it only programming, or it includes software testing,windows installer, network management, helpdesk, documentation???
AS I am a graduate developer, I feel like I am doing everything, from upgrading hardware, installing antivirus, ...everything....
and of course coding...
thanks
Hello,
I am a beginner in Silverlight and C# programming and i´m creating a Bing Map application.
I try to add pushpins with coordinates and information from a SQL Server, but I can't figure out how to succeed.
Mike
How effective is naive Bayesian filtering for filtering spam?
I heard that spammers easily bypass them by stuffing extra non-spam-related words. What programming techniques can you use with Bayesian filters to prevent that?
Hi there.
I need to write a simple program that records all the input from parallel port into a file. Data flows from industrial machine, setup is fairly simple, but I can't find any good open source examples on parallel port reading for Windows.
Do you know a software that does this (and lets me learn how to do it myself), or is there any guideline for parallel port programming on XP?
Thanks.
I'm relatively new to programming so excuse me if I get some terms wrong (I've learned the concepts, I just haven't actually used most of them).
Trouble: I currently have a class I'll call Bob its parent class is Cody, Cody has method call Foo(). I want Bob to have the Foo() method as well, except with a few extra lines of code. I've attempted to do Foo() : base(), however that doesn't seem to work like. Is there some simple solution to this?
Hi everyone.
I'm using blogger.com to host some texts on programming, and I'd like to use prettify (same as stackoverflow) to nicely colour the code samples.
How do I install the prettify scripts into the blog domain?
Would it be better (if indeed its possible) to link to a shared copy somewhere?
I have webspace on a different domain. Would that help?
Many thanks.
When programming against a fluent API, I've seen the style mostly like this:
var obj = objectFactory.CreateObject()
.SetObjectParameter(paramName, value)
.SetObjectParameter(paramName, value)
.DoSomeTransformation();
What is the reasoning behind putting the dot at the beginning of the line instead of the end of the line like this:
var obj = objectFactory.CreateObject().
SetObjectParameter(paramName, value).
SetObjectParameter(paramName, value).
DoSomeTransformation();
Or, is it merely a style thing that a team makes a consensus on?
I'm working on my first real Django project after years of PHP programming, and I am running into a problem with my models. First, I noticed that I was copying and pasting code between the models, and being a diligent OO programmer I decided to make a parent class that the other models could inherit from:
class Common(model.Model):
self.name = models.CharField(max_length=255)
date_created = models.DateTimeField(auto_now_add=True)
date_modified = models.DateTimeField(auto_now=True)
def __unicode__(self):
return self.name
class Meta:
abstract=True
So far so good. Now all my other models extend "Common" and have names and dates like I want. However, I have a class for "Categories" were the name has to be unique. I assume there should be a relatively simple way for me to access the name attribute from Common and make it unique. However, the different methods I have tried to use have all failed. For example:
class Category(Common):
def __init__(self, *args, **kwargs):
self.name.unique=True
Spits up the error "Caught an exception while rendering: 'Category' object has no attribute 'name'
Can someone point me in the right direction?
I am very new to programming and would like to know what is the best way to go about creating a notification icon badge similar to the ones on the iPhone apps. This would be basically for creating a badge for the notifications that end up in the notification bar.
I have a site up that has a form on it. The form POSTs to a php script which then inserts the data into my database. The page has a charset=UTF-8 attribute in the <meta> tag, and the database is setup to use UTF-8. However, when I copy and paste characters from MS Word into the field, the output is messed up.
For example, the quotes in
I am using "Microsoft Word" ''''
become
I am using “Microsoft Word†????
in the database.
Anyone have any idea why this might occur?
Hi
Im programming webserver (C), which should send big files. My question is:
What are the main differneces in two syscalls: write and sendfile. Does sendfile depends on size of socket system buffer ? I noticed that write often writes less then i requested.
For example, if got many requests for one file: should i open it, copy into memory and use 'write', or maybe i can do 'sendfile' for each client ?
thx in advance for all answers
I'm looking for a practical application to use a genetic algorithm for. Some things that have thought of are:
Website interface optimization
Vehicle optimization with a physics simulator
Genetic programming
Automatic test case generation
But none have really popped out at me. So if you had some free time (a few months) to spend on a genetic algorithms project, what would you choose to tackle?
Something I've always wondered, especially since it inspired me to start programming when I was a kid, was how video game bots work? I'm sure there are a lot of different methods, but what about automation for MMORPGs? Or even FPS-type bots?
On a regular basis I have to work with people using numerous different languages and no matter who I work with or in which language performance is always an issue.
Does anyone know of a general performance programming guide that is not language specific?
If I derive my class from QObject (or a subclass), the Qt documentation says that I have to put the Q_OBJECT macro into my class declaration.
It also ways I need to "run the meta-object compiler" for my class.
I have no idea how to do this. Is this something I need to add to the .pro file? Do I need to edit the makefile? This seems overly complicated for a simple derived class.
I'm using Qt Creator.
Hi Nick et al,
I've been having some fun looking at to source code of JRuby-Rack and Rubygems to try to figure out how to solve a
org.jruby.rack.RackInitializationException: no such file to load -- compass
in my rackup script cased by require 'compass'. I'm passing in a custom 'gem.path' as a servlet init parameter and it is being correctly picked up by jruby-rack as far as I can tell by debugging in my rackup script:
ENV['GEM_PATH'] => '/foo/lib/.jruby/gems' (expected)
but rubygems seems to be broken:
Gem.path => file:/foo/lib/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8
I'm not sure why rubygems has not adjusted it's gem_path nor the LOAD_PATH, thus breaking require?
Thanks again, I'm still a newbie at ruby, jruby, rack and sinatra. Any pointers in the right direction appreciated!
Ben
Hi!
I am new to .NET, and don't have much experience in programming.
What is the standard way of handling user authentication in .NET in the following situation?
In Process A, User inputs ID/Password
Process A sends the ID/Password to Process B over a nonsecure public channel.
Process B authenticates the user with the recieved ID/Password
what are some of the standard cryptographic algorithms I can use in above model?
thank you for your time!
I was exploring possibilities of Rich Internet applications using Python. The most awesome possibility I found was of programming in IronPython and running it as a Silverlight. Is there something similar available for Adobe AIR? I.e. programing in Python and run in Adobe AIR (Flash, that is).
Let's say I have column A and Column B. Cells in Column A contain either "Y" or "N". How can I set the value of the cell in the corresponding row in Column B with a formula that detects if the cell's value = "N"?
Not new to programming logic but to Excel formulas, thanks for your help.
-Ryan