I am creating a messaging system but the problem I face is that when users try and enter certain characters like ' into the message, the database doesnt want to allow it.
Any idea what this is?
In symfony project, I would like to use an underscore as a separator
for the parameter in routing.yml.
Url example:
/article/lorem-1111_45.html
In routing.yml
rule_sample:
url: /article/:info-:datePublished_:id.html
param: { module: cms, action: test }
options:
segment_separators: ['-', '/', '.', '_']
requirements:
info: ^([A-Za-z0-9\-]+)$
datePublished: \d+
id: \d+
This code doesnt work. I have the following error:
Unable to parse "/article/:info-:datePublished_:id.html" route near
":id.html".
Anybody knows how to implement this rule ?
I have a quote on a blank page in latex. I have managed to center it horizontally, however, when i try to center it vertically it gives me some problems. I have tried
\vspace{}
\begin{quote}
\centering
quote
\end{quote}
However it doesnt work.
I need to render a simple texture mapped model as the output of a directshow source filter. The 3d rendering doesnt need to come from Direct3D, but that would be nice. OpenGL or any other provider would be fine assuming I can fit it into the context of the DirectShow source filter.
visual studio 2008 c++
I am practising recursion and cant see why this method doesnt seem to work
any ideas?
public void fact()
{
fact(5);
}
public int fact(int n)
{
if(n == 1){
return 1;
}
return n * (fact(n-1));
}
}
Thanks
Hi,
This works :
alert(document.getElementById("Container").nodeName);
But this doesnt :
var CurParent = document.getElementById("Container");
alert(CurParent.nodeName);
I am using IE7.
Why ?
Hi, I have simple JSON object returned in form
{"d":"{\"Name\":\"DMX100\",\"Description\":\"blah blah\",\"ID\":\" 780\",\"Make\":\"2010\"}"}
How do I parse it in success.
success: function(msg)
{
$('#something').html(msg.d.Name);
}
Above code doesnt display Name but when I pass $('#something').html(msg.d);
it shows complete Json string. How do I reach to individual properties
Thanks
Hi,
I have a small problem. I use a Frame to show a website, unfortunateli some of my websites use flash, and seems to want to install a flash plugin - my frame doesnt seem to accept this behavior so it fails giving me a http 500 internal server error. Any one having any experiences in how to show the web site or install the flash plugin (its already installed in my regular IE - i can browse the site without problems)
Hi all,
I am building this iphone app for a client and they have a large set of flash video files that they need to play/stream to the iphone. I understand that the iphone doesnt natively support flv playback but isnt there anything I can do to get around this problem?
In case it helps, they are using the akamai flash player on their website to play these video files.
Thanks in advance.
I have a long string in javascript like
var string = 'abc234832748374asdf7943278934haskhjdasfhjkdfas83421def8923487234897234897';
I am trying to match like
abc234832748374 and def8923487234897 - that is - I have tried like
string.match(\abc[^abc]|\def[^def]|) but that doesnt get me both strings because I need numbers after them ?
Basically I need abc + 8 chars after and def the 8-11 chars after ? How can I do this ?
Hi
I am looking for a solution for facebook connect for Android.
Before I used an open source solution from codecarpet: http://code.google.com/p/fbconnect-android/
but now it doesnt work anymore.
Now the Official facebook connect for Android is out, but there are about 11 big time issues and it fails almost all the time, so its not a real solution.
http://github.com/facebook/facebook-android-sdk/
Any idea how to resolve this issue?
Thanks
Is it possible to search on Tags within SharePoint 2010? I know you can refine your search based on Tag (Search for a keyword, then filter by Tags) and you can use the "Tag Cloud", but that doesnt let you search by more then one Tag. How would I for instance, search for some documents that I have tagged as "Technical" and "Internal", and return all items tagged with both of those tags?
Id like to be able to create checkboxes for a list of objects. Then offer the user a number of actions to perform on the objects selected. I.e. delete, archive etc.
I know of ryan's screencasts but it doesnt explain how to create links to multiple actions for the selected objects. It just showed him create a form_tag with a url to one action and a submit button.
hi,
i'm sending a mail with attachment(1.pdf) but in mail it doesnt shows 1.pdf instead it shows some random file named "ATT008220.dat".
i'm using Rails 3.0
following is the code i'm using:
@file = File.read('c:/1.pdf')
@file.force_encoding('BINARY')
attachment "application/octet-stream" do |a|
a.body = @file
end
anybody knows why its happening? any idea?
Thanks & Regards,
Harsh Raval.
After an upgrade, our confluence installation doesnt show the "Help Tips" on wiki markup (a box on the right side of the edit pane which give basic informations on wiki markup). If I view the source, I see that the div is there, but with a display:none attribute. This lead me to think that there is an option somewhere to activate or deactivate this, but I cant find it.
Any idea ?
I want statistics on the products added to carts, but not checked out. I.e. if a user adds a product to his cart, but doesnt actual pay out, how can I see these products that were added? Or maybe even get notifications everytime a product is added?
Ive seen tutorials after tutorials but i still dont get how to connect a database to my xcode.. i already put it in my reference, put the sqlite framework but still it doesnt work.. i even tried copying the whole code the tutorial offers but still my iphone simulator turns up blank.. can you please help me understand why?
How can i add a link to my td tag from a table?
onclick doesnt work for me :S, or maybe a good example :P
my td tag:
$world .= ('<td background="images/world/Heli.jpg" border="1"></td>');
link:
<a href="?site=world&action=showvillage&id=' . getVillageID(($xm2), ($ym2)) . '"></a>
thnx :D
Hello!
Please visit http://domenadesign.com/istra-bike.com with Firefox browser!
After a few clicks on the links page go crazy but only in Firefox, what's the problem?
I tried to experiment with anything in css (position, float...) but it doesnt work properly..
Thank you for your answer!
hii every one
I m using Applets
i ve three classes ie three applets
and I need some members(variables) of one class into another class
when i m trying to access variables from one class to another class by creating of object of
called class in to calling class then it doesnt give wright output
it access those variables but gives null or zero values
Hey there everyone...
I was trying to run fitnesse on cyngwin using the command "run -p 8585" but it doesnt work at all...
I checked with the command echo $PATH and Cyngwin is recognising the OS variables...
Someone know what can be the problem ?
PS: The command does work on the windows prompt!
Thanks in advance
Hello all i have a custom image to replace the UISLider defult button image, all works fine image shows, it does not clip off. The problem is when i use the slider to move up and down the image dissapears and some how doesnt show up anymore only sometimes. could someone have a fix?
hi,
I'm attempting to add two charts to a gwt page using the visualization api, but for some strange and inexplicable reason, eclipse claims that the following two imports are colliding - which makes no sense to me.
In the methods where i am calling them, I have even tried using the fully qualified names, but that doesnt seem to help either. Any idea what may be going on ?
import com.google.gwt.visualization.client.visualizations.Table.Options;
import com.google.gwt.visualization.client.visualizations.LineChart.Options;
i have a div id=holder, and inside a coda slider. it works alright, but to avoid the flickering in certain browsers, i decided to make holder display:none, and then display:block on $(document).ready
The problem is that, for some reason, when the parent div is display:none, the coda slider doesnt have any effect.
any workarounds or ideas for this issue? thanks!
So I have a query, can someone let me know if it looks ok content wise?
"INSERT INTO ".TBL_MESSAGES." (NULL, 'Your ranking points have changed',
'Due to your recent activity, your ranking points have increased by $r', '2', '$u',
'0', '0', '0', '0', NULL, NULL, NULL, NULL, now())";
I can add further information if the query doesnt appear to have a problem?
Thanks