Hello!
That is good analog snoopy (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 =)
Hello! I'm currently developing a windows forms application with a lot of user controls. Some of them are just custom drawn buttons or panels and some of them are a compositions of these buttons and panels inside of FlowLayoutPanels and TableLayoutPanels. And the window itself is also custom drawn.
I don't have much experience in winforms…
Hi!
We're using some C library in our Java project. Several years ago some other developer which has retired few years ago (as always) has created all the wrappers for us. The wrappers were generated by the swig, but the interface file is lost now.
The basic idea of library and the wrappers for it is following:
There only one function…
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…
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.…
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(
…
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 place.…
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 available…
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 request with…
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 - grid with Big…
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 dynamically to…
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:
- Open source;…
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.
User
has_many…
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…
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…
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…
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…
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…