Hello!
That is good analog snoopy.class.php (from php) in C#. i need simple and true control web client to post any data to my sites. in C# i have a lot of troubles with cookies and etc.
Please, help me =)
I am using SQLite for the unit testing and might use it as a database for local development/staging.
The System.Data.SQLite has basically 2 versions: x86 and x64. Correct one should be used for the specific platform.
I have 64 bit Win7, other guys in the team might use 32-bit OSs. The server's platform is not known at this stage.
If I use 32-bit…
I am trying to save a model with it's dependency models being saved.
Model1
has_many :model2, :autosave => true
Model2
belongs_to :model1
has_many :model3, :autosave => true
Model3
belongs_to :model2
I want to save Model1, and have Model2 and 3 save as well. I tried this without and with the autosave feature. What winds…
I have the following field in my class:
private List<String> messages;
Here's the mapping I have:
<field name="messages" collection="arraylist" type="string" container="false>
<bind-xml name="errors" node="element"/>
</field>
This is what I get as a result of marshalling:
…
Disclaimer: absolute novice in Scala :(
I have the following defined:
def tryAndReport(body: Unit) : Unit = {
try {
body
} catch {
case e: MySpecificException => doSomethingUseful
}
}
I call it like this:
tryAndReport{
someCodeThatThrowsMySpecificException()
}
While the call to…
So firefox has a nifty mechanism which will try to autocomplete values in fields when a page is reloaded or the back button is used. Which is great and all except when you have something like a drop-down which when set to a value modifies the page using ajax.
What winds up happening is that the browser…
Hello!
I tried to catch 404 errors like this... But
when i try to load http://localhost:11415/wfwe/wefwe/ - all good work.
When i try to load http://localhost:11415/order/ - fail (with error The RouteData must contain an item named 'action' with a non-empty string value.)
When i try to load…
I created dropdown filter, it's display, but don't worked right. As I anderstand trouble in search() method
view:
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$model->search(),
'filter' => $model,
'columns'=>array(
…
Hi,
Guys, how to route inbound message between different endpoints.
I need to expose the single endpoint that could accept different credentials. I guess, solve this by intercept the incoming message and based on message header then do forward message to appropriate endpoint.
Thanks.
I have the following string:
<script>m('02:29:1467301/>Sender1*>some text message?<<02:29:13625N1/>Sender2*>Recipient2: another message??<>A<<02:29:1393100=>User1*|0User2*|%></B><<','');</script>
N.B. messages are separated by…
Hello!
Is it true that following code adds a XSS vulnerability to some JPS page?
<!-- <%=paramName%>=<%=request.getParameter(paramName)%><BR> -->
It looks like a "leftover debug" and definitely should be removed from the code, but how dangerous is it?
Hello!
In my javascript i want to open URL in new window with this method:
var win = window.open(url...);
How can i check this, not to open the same window and lose all inputted data.
For example, if i opened "www.musite.com/addproduct" URL in new window, input data, leave my work…
I am writing a chatbot using Twisted and wokkel and everything seems to be working except that bot periodically logs off. To temporarily fix that I set presence to available on every connection initialized. Does anyone know how to prevent going offline? (I assume if i keep sending…
Hello!
I want to keep some different data in one cookie file and write this class, and want to know - is this good? For example - user JS enable.When user open his first page on my site, i write to session his GMT time and write with this manager JS state. (GMT time is ajax…
Comparing version numbers as strings is not so easy...
"1.0.0.9" "1.0.0.10", but it's not correct.
Obvious way to do it properly is parse these strings, convert to numbers and compare as numbers.
Is it other way to do it more "elegant"? For example, boost::string_algo...
Hello!
In my WPF project i want to have only one Window - MainWindow and UserControls as working part. I have some little different applications in one, and want to make navigation on top of my MainWindow as buttons. And little applications as UserControl. In MainWindow -…
I would like to do the following:
<% f.fields_for :blind_dates do |bdf| %>
<%= render :partial => bdf %>
<% end %>
Which is cool. The problem is I want to have a link "add another blind date" which will use the same partial, but add a new one…
Who knows a good component for a "calendar control" (NOT date/time picker)?
"Calendar control" means something like Mozilla Sunbird:
Requirements to the control:
- C++;
- Day/Week/Month view;
- Support of several calendars;
- Without MFC dependences;
Nice to have:…
I would like to set a default value in a has_many through association.
Lets say I have three models:
People
Friends
Dogs
A person can request that a dog becomes their friend.
So a person would create an association where friends has an active column = false.
…
Hello!
I'm working on some application which has auto-update function. The implemented idea is simple as following:
- There are some "starter" application which is installed to "Program Files/whatever/...". It's the application which is intended to be started by…
How do I create a partial view that has a form with assigned id?
I got as far as:
using (Html.BeginForm(?action?,"Candidate",FormMethod.Post,new {id="blah"}))
Partial view is used for both Create and Edit so first parameter ?action? will be different. I can't…
In my main template I have the following:
<%= render :partial => "delivery_date", :collection => @brand.delivery_dates, :locals => {:form => f} %>
However when the partial tries to use the form local variable, I get this error
Showing…
I've been having trouble with the latest netbeans ruby ide.
Here is the weird behavior:
"|" = my cursor
some text |here
I try to add a single quote. Expected:
some text '|here
However I get
some text h'|ere
It's worse when there is a linebreak:
…
Hi,
Guys, how to route inbound message between different endpoints.
I need to expose the single endpoint that could accept different credentials. I guess, solve this by intercept the incoming message and based on message header then do forward message…
We have a place in a code of such form:
void processParam(Object param)
{
wrapperForComplexNativeObject result = jniCallWhichMayCrash(param);
processResult(result);
}
processParam - method which is called with many different arguments.
…