I may have missed the whole point about protocols but my question is, can protocol be used to say iterate a custom data structure or how println would print the object?
I just started on the .net compact framework. I want to draw a Sudoku field on the screen. So I put down a PictureBox and defined a method for the Paint event:
private void pictureBoxPlayfield_Paint(object sender, PaintEventArgs e)
{
// use e.Graphics to draw the grid, numbers and cursor
}
This works, but you can see as the grid is drawn. So my question is, what is the right/better way to create such a custom control? Is there maybe a way to enable double buffering?
I love Songbird but I was already whether it's possible add an additional column to the Songbird layout, I love categorising my music by dates as well, and find right clicking above the column header to change a little to messy and want even more flexibility.
So here's my mockup of the 4-pane panel library, I think I've made Songbird do this by mistake in the past through a bug. Question is, is this possible?
I have configured syslog server on my linux machine like this
Linux Machine (syslog client) -- Linux Machine (syslog server)
I have configured it and its working properly. Now, the problem is I want to look at the logs located on remote server in a particular directory for example /var/log/host-ip/httpd.log.
One way is that I use ssh for that and then see those logs using commands like tail etc.
So is there any Browser based graphical utility which I can use on my machine in which I just give the remote folder location, ip-address etc. and the software shows me the logs present on that remote server.
Thanks.
I've written a custom plugin for CKEditor--successful on all fronts, save one currently: I can't, for the life of me, figure out how to customize the image on the button in the toolbar of the editor. As I'm a new user, you'll have to click through to see attached image; the highlighted square in the top left should have a pretty picture (like most of the other toolbar items).
Thanks much for thoughts/advice/help.
Isaac
Screenshot: http://imgur.com/ZNNKe.jpg
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've written an Android app wich various abstract classes that perform useful functions. These functions could be leveraged in other apps.
I want to share a class module with another programmer, but I don't want to share the source code. I would like to share a .class file but I'm not sure how to do the following:
Compile an Android .java file into .class
What does the receiver of the .class file have to do to use that .class in their project? (using Eclipse environment)
Thank you very much
Looking for a custom tooltip (typical yellow baloon callout) on click of an anchor tag. The tooltip should appear and remain in view until the cross button on the tooltip is clicked.
Just looking for a tried and tested open source solution. Tried googling this but most of the tooltip [...missing info?...]
Ajax control toolkit has the calloutvalidator which seems like a good choice but is tied up to be used for validation tooltips.
This file appears to be in a binary XML format. What is this format and how can it be parsed programmatically (as opposed to using the aapt dump tool in the SDK)?
This binary format is not discussed in the in the documentation here: http://developer.android.com/guide/topics/manifest/manifest-intro.html
Note: I want to access this information from outside the Android environment, preferably from Java.
I want to incorporate the CallLog feature in my Android project means I want to track Incoming, Missed and Received Calls and their details like Time and Duration of the call.......So kindly If any one has.....help me with the Code in android.............
I also found the built in application named PHONE in the emulator, but don't know how to use/call it in my application....Can I have its source code..so that it can be used in my application....
Thanks...
I used to be able to access websites/files that were stored in the directory
/var/www
I have not used this for a while, but now I have a need to store, media in this directory or in the directory/var/www/images
I noticed that my apache web server wasnt running correctly so I did a complete package removal and then reinstalled, but I am still unable to access a test page inde.html
in the directory /var/www/index.html by going to
http://myipaddresshere/index.html
Is there some initial configuration I need to do to allow me to store HTML and media files in this directory and be able to access them from the browser?
I dont remember having to do anything before.
How do I create a custom Visual Studio 2008 UI designer for a C# file?
For example, when you double click on a DataSet in the Solution Explorer, a UI screen appears that allows you to edit the DataSet, even though it is defined in XML/code (which you can right click and "View Code").
Usually this code is separated from user code in some way, either by region ("Windows Forms Designer Generated Code"), by codegen (".g.cs" for WPF XAML files), or some other means like partial classes.
How do I pass an argument to my custom save method, preserving proper *args, **kwargs for passing to te super method? I was trying something like:
form.save(my_value)
and
def save(self, my_value=None, *args, **kwargs):
super(MyModel, self).save(*args, **kwargs)
print my_value
But this doesn't seem to work. What am I doing wrong?
So I want to create an Android app so it would be registered somewhere in android OS (or just would start on system start) and when phone user clicks on special button on a web page inside a web browser a la:
<a href="myapp://mysettings">Foo</a>
my app would pop up and run using the params sent in that URL.
So how do I do such thing?
I need a tutorial with code!
Hi, I am writing a custom read function for one of the data types in my module. For eg, when I do read "(1 + 1)" :: Data, I want it to return Plus 1 1. My data declaration is data Data = Plus Int Int. Thanks
I need to create a button. And it should have a label on it. I need to write selectors for the button. I tried with CCMenuFont, but I could not add custom label on it or I could not set the size of the button? Can we set the size of the button by using CGRectMake ?
Hi all,
I have an app that performs some calculations based on data arriving on a socket or local user interaction.
I want to show an 'activity spinner' whilst the calculation happens.
spinner = [[UIActivityIndiactorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[spinner setCenter:self.view.center];
[self.view addSubview:spinner];
[spinner startAnimating];
[self performSelector:@selector(doCalcs) withObject:nil afterDelay:0];
This works well, except in the case where the code is run as a result of a message arriving over the network. I'm using http://code.google.com/p/cocoaasyncsocket/ to handle sockets and the code is running in the onSocket:didReadData:withTag: method.
'doCalcs' takes a few seconds. The spinner doesn't appear whilst it's running.
If I change afterDelay:0 to afterDelay:1 then the spinner does appear the whole time doCalcs is running, but with the downside that it takes an extra second. So it seems the code is all correct, but for whatever reason the spinner isn't getting a chance to get on screen before doCalcs runs.
Any suggestions would be most welcome.
I guess this may be a novice question ( Which I am :) ).
While redirecting user to custom error page, for e.g. 404, to tell that page wasn't found, the type of this redirect is 302.
<error statusCode="404" redirect="/Utility/Error404.aspx" />
<error statusCode="400" redirect="/Utility/Error404.aspx" />
Is it possible to make this redirect 301 through Web.config?
Thanks in advance to you all code maniacs.
I have spinner in my application .The spinner have drop down list.I want to take the value of the dropdown list from the database .how can i do this ?
here is my code for spinner with dropdownlist:
ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, selectdefault);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
Just something I'd like to play with, I would like to create a "virtual" file/directory in the File System of Linux or Mac OS X (Not sure if I can share the same code - does POSIX help?), for example /foo and then perform custom code when something is read or written to it.
Similar how /dev/null allows for stuff like
echo "Hello!" > /dev/null
I don't care if it's in /dev, /proc or anywhere else, as said it's mainly something to play with...
I want to put custom scripts/programs in ~/bin on few machines under version control (repository is on a remote server). In the bin/ folders I have many perl/sh/bash scripts, as well as small .c programs. What layout would you use for such repo?
Hi
I want to create panorama view with opengl in android.
Is it possible using spherical view and centering viewpoint at the sphere center to
show bounded image on screen.
will this be good aproch , i havent used opengl but want to achive this effect in android
Am i going in right direction , any pointers for this will be great help .
thanx in advance.
Currently I have a custom module with hook_menu for path 'search'. It's working just fine. However, it couldn't process the request when I access /search?q=something.
How do I do this? I'm using Drupal 6 btw.
Thanks
I have my ubuntu machine at work and I'd like to use remote desktop to work from home. However the remote machine is on a subnet and not directly connected to the internet. I am able to remotely connect through ssh to a server, from which I then ssh to my remote machine. This has been beneficial, however I am currently working on a GUI application so just the command line doesn't work so well. Any ideas?
I have tried using ssh with the -X flag on both sessions, but this doesn't work.
I am trying to connect from Windows Vista through a Mac server (isn't it a great setup?).