I want to design a custom Control for Line (vertical or horizontal line)
basic usercontrol is rectangle and not suitable for line
what s your idea about line control?
I am in process of converting Visual Basic app into Python Django. Currently, it has barcode functionality to process sales at a store. Can this be achieved with python django.
Hi folks,
I'm having quite a problem deciding how to serve a few Python scripts.
The problem is that the basic functionality could be generalized by this:
do_something()
time.sleep(3)
do_something()
I tried various WSGI servers, but they have all been giving me concurrency limitations, as in I have to specify how many threads to use and so on.
I only wish that the resources on the server be used efficiently and liberally.
Any ideas?
Am pretty new to ROR. Need help in Rails form validation.
Am using rails 2.3.5
I have a basic validates_presence_of for the fields in the form.
Now when i don't enter field details, i do get an error, but the error is displayed as:
{{count}} errors prohibited this {{model}} from being saved
There were problems with the following fields:
{{attribute}} {{message}}
{{attribute}} {{message}}
Any help will be highly appreciated.
A bit of a basic question but how may I check if a anchor is in the url when I load the page?
For example www.mysite.com/mypage#show
And then in the JavaScript I can go if #show exists do this
Thanks.
I have several uitextfields within a view and I would like to disable the uibutton until all the fields have something entered into them. What's the best way of doing this?
Ideally, I'd like to do some basic validation (make sure all entries are numbers) too.
Hi,
I have these 3 file in my program:
sample1.h (method in sample1.cpp are defined here)
sample1.cpp (all the actual implementations)
demo.cpp (I am using the methods in sampe1.cpp here, and have included sample1.h)
Now, I am using GDB to debug and I know the basic commands like "break lineno." or "break methodname". But, how do I debug the methods written in sample1.cpp?
I tried: break "sample1.cpp:mymethod" but it did not work.
Thanks
Pretty self explanatory question, glad for any answer. For me it doesn't make sense. I don't care about losing information. I just want to concatenate all my lists that inherit IRenderable somehow into a single list and then call IRenderable methods on it.
I have a feeling that this is some basic rule of programming I forgot...
Hi,
I am trying to make a FTP client in c#. I found a class that support basic FTP commands on http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp_members.aspx.
on the list, PORT command is missing.
How do I use PORT command in c#?
I have a basic html form that adds some data to the page using PHP. I want to make this form field a "Price" field. My html is:
<input class="bids" name="comment" id="comment" tabindex="4" />
How can I fix this field so that users can't enter random letters, dollar signs, dashes, or other weird formats. I want the output to be whole dollars. Sorry I'm a complete programming moron. :)
Pretty basic programming question, I know PHP have a function for it, but does the iPhone OS have one?
I want to check if the current indexPath is a value in an array.
PHP Example:
<?php
$indexPath = 3;
$array = array("0", "1", "2", "3", "4");
if (in_array($indexPath, $array)) {
// Do something
}
?>
Does anybody know how to do the same thing inthe iPhone OS?
Usually when you add one (in Visual Basic), it pops up a message asking if you want to enable an option that lets the test access things like private methods etc.
However, I am editing a solution that does not have this enabled. I'd like to enable it so my unit tests will work, but I can't find the setting.
Can anyone tell me how to enable it after the project has been created?
I was wondering if there was a basic tutorial to get me started on coding a FrontRow plug-in / add-on using Xcode.
I searched Google a couple of times, but I haven't found a tutorial on this subject so far.
I'm looking for a Windows network emulator that can emulate the packet-loss & latency characteristics of a 3G wireless network.
I used to use a tool from GIPs that has been end-of-life'd. I've also tried Shunra Virtual Enterprise but found it a bit too basic
Hi All,
I wonder if anyone could kindly tell me how to write the contents of a JTable to a .txt file. I have a basic knowledge of java and know about FileReaders etc, but just don't know how to do something as complicated as this. Thanks-please could you also provide a bit of sample code. Thanks again
Are there any aspects to the C++ programming language where the code is known to be slower than the equivalent C language? Obviously this would be excluding the OO features like virtual functions and vtable features etc.
I am wondering whether, when you are programming in a latency-critical area (and you aren't worried about OO features) whether you could stick with basic C++ or would C be better?
i'm just curious. so i ask this particular question about SQLite. I haven't use this type of database extensively. but care to explain what is the basic different between SQLite and Mysql ?
The reason behind all of this is i just want to know whether it possible to use it to store wordpress data and act as a database ?
Hi All,
I am implementing bluepay payment gateway in my PHP project, I couldn't find any integration document for bluepay, Plaese any one tell me the basic steps for posting data to bluepay, ie in which format i have to post data to "https://bluepay.onlinedatacorp.com/test/bluepaylitetest.asp" Please help me!!!
Hi y'all.
I'm trying to implement a basic WebView containing a SWF file inside. The SWF file plays and apparently works fine. However I'd like to know if there's some way to retrieve an ActionScript variable from my Cocoa application.
Thanks.
I'm an intermediate C developer, trying to get better. I want to make a very basic and lightweight HTTP server with its own scripting language.
Could I use something like Lua for scripting? If not, what?
I don't want to use CGI/FastCGI like Apache does for PHP in most cases, I want my server to natively support my scripting language.
I'm using the WindowsAPICodePack's TaskDialog implementation, but it bugs me that I have to listen to click handlers on its buttons for even the more basic implementations. I'd like to convert/wrap it so that like the old MessageBox it blocks until closed and then returns a value based on what was done. Is there anything I can read for the basics on how to do this? I just have no idea where to even start, as I am admittedly not that familiar with the Win32 underpinnings.
I'm looking for any documentation or definitive information on Ableton's warp feature. I understand that it has something to do with finding transients, aligning them with an even rhythm and shifting audio samples accordingly. I'm hoping to find ways to approximate warping with more basic audio editing tools.
I understand that this is ableton's unique device, really any information about how it works would be helpful.
So...does anyone have any 411?
This is too basic I think, but how do both of these work?
return true; // 1
and
return (true); // 2
Similar: sizeof, exit
My guess:
If return was a function, 1 would be
erroneous.
So, return should be a unary
operator that can also take in
brackets... pretty much like unary
minus: -5 and -(5), both are
okay.
Is that what it is - a unary operator?
I am coding in Visual Basic. I am using a checkbox control. Now depending on its checked property I need to set/unset a bit column in a SQL Server database. Here's the code:
Try
conSQL.Open()
Dim cmd As New SqlCommand("update Student set send_mail = " + _
sendemailCheckBox.Checked.ToString + " where student_id = '" _
+ sidnolabel.Text + "'", conSQL)
cmd.ExecuteNonQuery()
Finally
conSQL.Close()
End Try
The send_mail attribute is of bit datatype. This code is not working.
How do I go about it?