Hi guys:
I would like to seek your suggestion for the tool faciliate the multiple-browser testing of web site.
PS: ASP.NET is my current working environment.
I am trying to design a Blackberry Application and I am wondering if there are any resources on how to create custom user interface elements, skin existing ones and what other possibilities are there?
I have developed a few iPhone applications with custom UI and stuff, so not sure what BB world offers in terms of UI development.
Any tips, suggestions or ideas would be great.
Has anyone used TortoiseSVN to merge .NET resource files (.resx) from branch to trunk?
From my experience, WinMerge fails to merge files that contain Unicode.
SO I am trying to create a way to structure my database to be able customize forms.
I looked into EAV pattern and here is my db structure:
Table form
- form_id
- form_name
- form_added_on
- form_modified_at
Table: form_fields
- field_id
- form_id
- field_type (TEXT, RADIO etc..)
- field_default_value
- field_required
Table: form_data
- data_id
- field_id
- form_id
- field_value
so now I can store any custom form into the database and if I want to get the values for an individual form I can simply join it by "form_id" ..
the problem:
I want to be able to search through all the forms for a specific field value.
How can I do that with EAV model?
Also, I thought about just storing the custom data as a serialized (JSON) object but then I am not sure how can I query that data.
Please note that I am using Codeigniter with MYSQL. So if conversation can use Codeigniter libraries if needed.
Hi,
I Installed the font into my system/font folder. But font is not showing. Font is showing in the word document but will not showing in the flash. Will you plz give me solutions. I am waiting for your response.
Thanks & regards,
Basant..
Hey,
my question is for Perl lang.
i'm looking for a way to do this:
$a = "60"; $b = "< 80";
if ( $a $b ) { then .... }
while $b holds the operator.....
can i do that ?
maby with some other way ?
10x
So this question isn't about integrating an existing payment gateway into my site. This is more of a architectural question.
I want to build a system similar to Paypal. Now I understand that Paypal offers a lot of features under the roof and I can't implement all of them at once. I want to implement the core functionality of Paypal and other such services.
So my question is (rather discussion is) around how would one go about building such a system. Some points to discuss:
Handle payments through existing banks. I am guessing that I would need access to local bank protocols to get this.
Allow users to securely store and process their payments
How does Paypal handle the transactions?
Thoughts?
http://itunes.apple.com/us/app/angry-birds/id343200656?mt=8&ign-mpt=uo%3D6
So I am getting started with this all game dev thing on iphone and I decided that I will start playing with Cocos2d as my starting engine.
Now just so i have a goal in mind, I picked angry birds as my initial target of what sort of game play would I like to learn to build. This is not going to be a market release game. This is totally going to be learning purposes only.
So to start off my question is:
Would something like this be achievable using Cocos2d?
How would I go about building the physics for this?
How can one do a screen scroll like the way they do in cocos2d? (any example code would be great)
This is just to start off. If you have any particular questions please do add to this question.
Hi,
All I have a Span in side the Form view. I wanted to Call a Jquery Fucntion when the from load how can i do this?
Thanks
Waiting for your reply
here is my code
<asp:FormView ID="FormView1" runat="server" OnItemCommand="FormView1_ItemCommand">
<ItemTemplate>
<asp:HiddenField ID="hidProductID" Value='<%#Eval("ProductID") %>' runat="server" />
<asp:HiddenField ID="hidCustomerID" Value='<%#Eval("CustomerID") %>' runat="server" />
<a href='<%=WinToSave.SettingsConstants.SiteURL%>WintoSave/AuctionProduct.aspx?id=<%#Eval("ProductID") %>'>
<%#Eval("ProductName")%>
</a>
<br />
<img src='<%#Eval("ImagePath")%>' alt="Image No available" />
<br />
<asp:Label ID="lblTime" runat="server" Text='<%#Convert.ToDateTime(Eval("ModifiedOn")).ToString("hh:mm:ss") %>'></asp:Label>
<span id='Countdown_<%#Eval("ProductID") %>' onload="GetTimeOnLoad('<%#Eval("ModifiedOn")%>','Countdown_<%#Eval("ProductID") %>');"></span>
<br />
<asp:Label ID="lblFinalPrice" runat="server" Text='<%#Convert.ToDouble(Eval("FinalPrice")).ToString("#.00")%>'></asp:Label>
<br />
<asp:Label ID="lblFullName" runat="server" Text='<%#Eval("FullName") %>'></asp:Label>
<br />
<asp:Button ID="btnAddbid" Text="Bid" CommandName="AddBid" CommandArgument='<%#Eval("ID")%>'
runat="server" />
</ItemTemplate>
</asp:FormView>
and following is my jquery code
function GetTimeOnLoad(shortly,DivID)
{
var dt = new Date(shortly);
alert(dt);
alert(shortly);
alert(DivID);
var ProductDivID = "#" +DivID;
alert(ProductDivID);
$(ProductDivID).countdown({
until: dt, onExpiry: liftOff, onTick: watchCountdown,
format: 'HMS', layout: '{hnn}{sep}{mnn}{sep}{snn}'
});
}
function liftOff(){};
function watchCountdown(){};
In above code I Used
' onload="GetTimeOnLoad('<%#Eval("ModifiedOn")%','Countdown_<%#Eval("ProductID") %');"
but is not working
hii i have set up virtual host in apache and and added relevent information in windows host file. it works fine for desktop browsers but i am not able to access this from android simulator's browser. as a example a i created a virtual host "testweb" i added this information in widows hosts file also
so in desktop browser it works fine with the url http://testweb/ but in android simulator browser it displays error tht page has been moved .... so plz give me solution what i shud do to work it and where i am getting wrong...plz help me
Just as the title says, if you know any resource, answer here.
Personally I'm more0interested in screencasts more than podcasts, because english is not my mother tonge, so visual clues help a lot:
NetBeans TV Screencasts
DimeCasts.NET
Apple Developer Connection (iTunes)
--- Suggested by the community
.NET Rocks
dnrTV
Channel9
MSDN Events and WebCasts
Software Engineering
DeepFries
RailCasts
Learnivore!
HanselMinutes
ThinkCode
I'm using python 2.7.2 on mac os 10.7.3
I'm doing a recursive algorithm in python with more than 50 000 recursion levels.
I tried to increase the maximum recursion level to 1 000 000 but my python shell still exit after 18 000 recursion levels.
I tried to increase the resources available :
import resource
resource.setrlimit(resource.RLIMIT_STACK, (2**29,-1))
sys.setrecursionlimit(10**6)
and I get this error :
Traceback (most recent call last):
File "<pyshell#58>", line 1, in <module>
resource.setrlimit(resource.RLIMIT_STACK,(2**29,-1))
ValueError: not allowed to raise maximum limit
I don't know why I cannot raise the maximum limit ?
thanks for your suggestions .
If I have the following plain string, how do I divide it into an array of three elements?
{["a","English"],["b","US"],["c","Chinese"]}
["a","English"],["b","US"],["c","Chinese"]
This problem is related to JSON string parsing, so I wonder if there is any API to facilitate the conversion.
I have a function that calls itself to increment and decrement a stack.
I need to call it a number of times, and I'd like it to work the same way in subsequent calls
but, as expected, it doesn't re-use the default value.
I've read that this is a newbie trap and I've seen suggested solutions, but I haven't been able
to make any solution work.
It would be nice to be able to "fun.reset"
def a(x, stack = [None]):
print x,' ', stack
if x > 5:
temp = stack.pop()
if x <=5:
stack.append(1)
if stack == []:
return
a(x + 1)
print a(0)
print a(2) #second call
print a(3) #third call
I expected this to work, but it doesn't.
print a(0, [None])
print a(2, [None]) #second call
print a(3, [None]) #third call
Can I reset the function to it's initial state?
Any help would be appreciated.
I ask because I quite enjoy it! I'm talking about design documentation and implementation notes (NOT user manuals), which are non-existent in most of the codebases I've been handed. I can understand why a developer wouldn't want to write requirements (that's the analyst's job) or the user documentation (that's a technical writer's job) but I don't get why developers hate writing design docs.
I don't think I would feel as if I'd finished the job if I only wrote the code and walked away -- mainly because when I've been introduced to code-only situations I've seen how hard it is to figure out what's been done and what the software does. I would hate for people to suffer the same situation when inheriting my code.
What makes you loath writing supporting documentation for your code?
Hello guys, I have a generic IRepository that has 2 constructors, one have none parameters, other has the datacontext as parameter.
I want to define to structuremap to aways in this case use the parameterless constructor.
I want a way to create a parameterless contructor, other solutions that I have seen, they create a new Datacontext and pass it to the constructor that has parameters.
I've got a reporting services report which display data in a matrix.
The matrix rows are ordered by the report on a specific field's value.
Trouble is I want a particular value to always appear last in the matrix even though it won't naturally be ordered there. Is there a way I can do this using an expression?
Thanks.
Hello,
Really getting in to javascript and looking around at some patterns. One I have come accross is the module pattern. Its seems like a nice way to think of chucks of functionality so I went ahead and tried to implement it with jQuery. I ran in to a snag though. Consider the following code
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>index</title>
<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
var TestClass2 = (function(){
var someDiv;
return {
thisTest: function ()
{
someDiv = document.createElement("div");
$(someDiv).append("#index");
$(someDiv).html("hello");
$(someDiv).addClass("test_class");
}
}
})();
TestClass2.thisTest();
});
</script>
</head>
<body id="index" onload="">
<div id="name">
this is content
</div>
</body>
</html>
The above code alerts the html content of the div and then adds a class. These both use jQuery methods. The problem is that the .html() method works fine however i can not add the class. No errors result and the class does not get added. What is happening here? Why is the class not getting added to the div?
xargs is widely used in shell scripting; it is usually easy to recast these uses in bash using while read -r; do ... done or while read -ar; do ... done loops.
When should xargs be preferred, and when should while-read loops be preferred?
I have an HTML table with number values. What i need to do is to get all these values and add them together using jQuery.
Any ideas?
Example table:
http://pastie.org/998759
I have created a feature for SharePoint 2007 that has a web part. I have added a custom property to the web part like so:
[Personalizable(PersonalizationScope.Shared)]
[WebBrowsable(true)]
[Category("My Custom Properties")]
[WebDisplayName("ServiceURL")]
[WebDescription("The URL for the Wcf service")]
public string ServiceURL { get; set; }
Along with this web part, I've added a custom page that the web part will have a link to. I would like to reference the web part property from the custom page, but I don't know where these properties are stored. I've tried to access it using the code below, but both property collections don't have any properties stored.
SPFeaturePropertyCollection spProperties = SPContext.Current.Site.Features[this.FeatureGuid].Properties;
or
SPFeaturePropertyCollection spProperties = SPContext.Current.Site.Features[this.FeatureGuid].Definition.Properties;
My question is how can I get a reference to the web part property from other pages?
can someone tell me how to convert apache iis7 mod_rewrite .htaccess file to the equivalent web.config in MS Url Rewriter?
Here is the .htaccess file I have:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
</IfModule>
Hi,
Any one help to to get the extact value from the JavaScript date time utc format. I am using a C# web method which is returning a date and I have to set that date with Timezone.
Thanks
I'm editing a text provided by my client as a LyX file that includes graphics and other files that I don't have. I've "commented out" the graphics by putting in a custom preamble that substitutes the file-loading definitions with macros that just quote their arguments. However, the \includegraphic macro throws up an error in the two tabular environments where it is used, complaining that \endfirsthead was never defined. What is this macro, and why is it interfering with mine?
The preamble:
\usepackage{natbib}
\def\fileloc{/some/path/stylefile}
\newif\iftextproof
\IfFileExists\alifefileloc\textproofalse\textprooftrue
\iftextproof
\usepackage{./stylefile}
%natbib subst:
\renewcommand\cite[1]{{\tt #1}}
%suppress graphics includes:
\def\quotearg#1{\expandafter\string\csname #1\endcsname}
\newcommand\gobbleIG[2][*void*]{{\footnotesize \quotearg{#2}}}
\newcommand\gobbleSF[2][*unnamed*]{{\bf #1}}
\let\includegraphics=\gobbleIG
\let\subfigure=\gobbleSF
\else
\usepackage\fileloc
\fi