Many young programmers think that their bottleneck is typing speed.
After some experience one realizes that it is not the case, you have to think much more than type.
At some point my room-mate forced me to turn of the light (he sleeps during the night). I had to learn to touch type and I experienced an actual improvement in programming skill.…
Hello,
I need to persist a Remote desktop connection across a reboot of a Terminal server. I'm thinking that it would be something like a scheduled task that would run periodically and check the running state of the session and restart it if it's down. BTW, I did check the "Reconnect..." checkbox on the advanced tab of the connection options,…
Hello All,
Recently I've bought some electronic devices (like e.g. Sony Ebook reader PRS-600 or HP PDA IPaq) which are connected to PC using USB ports. These devices have own batteries and they are recharged using USB. However, I am experiencing a problem with Ebook Reader and the similiar thing happens with my PDA (but in this case it's more…
I installed synergy on Windows 7 as server and on Windows Vista as client.
On both I can use polish keyboard using local keyboard.
When I am using remote keyboard via synergy polish characters are not working (I mean in example S + Alt Gr or S + left Alt + left ctrl)
I've used synergy about 1 year ago and I cannot recall that kind of problem…
I have two servers, where
First server 10.100.15.150:
1. one mgm server
2. one ndbd
3. one mysql api
Second server 10.100.15.160:
1. one ndbd
2. one mysql api
When i start all 'parts' of cluster it looks :
Cluster Configuration
[ndbd(NDB)] 2 node(s)
id=21 @10.100.15.150 (mysql-5.1.56 ndb-7.1.17, Nodegroup: 0)
id=22 …
Is it possible to define startup order of the WebSphere enterprise application within EAR (some of descriptor/binding files, META-INF or anywhere else)?
The procedure described in IBM InfoCenter requires using AdminConsole, but I would prefer to set fixed order in the EAR to assert that our 2 EAR's will start in fixed order (one is…
I have two Linux servers (CentOS6) - both are identically configured connected to the same switch with a direct link between them. I only have one external IP that is assigned to eth0 on both servers (connected to the internet switch) with the interface shutdown on server 2.
How can I failover to server 2 if server 1 dies - as…
How to explain Scala's type system to a Haskell expert?
What examples show Scala's advantages?
How to explain Haskell's type system to an advanced Scala practitioner?
What can be done in Haskell that can't be done in Scala?
I have recently rewritten my Core Data driven database controller to use Grand Central Dispatch to manage fetching and importing in the background. Controller can operate on 2 NSManagedContext's:
NSManagedObjectContext *mainMoc instance variable for main thread. this contexts is used only by quick access for UI by main thread…
I have latitude and longitude saved inside a database. I have the bing map loading and I can set the VELatLong using regular values but can't seem to be able to load them from the database. Whatever I try the map just doesn't show at all.
<script type="text/javascript">
var map = null;
var selStyle =…
I can't solve it:
You are given 8 integers:
A, B, C representing a line on a plane with equation A*x + B*y = C
a, b, c representing another line
x, y representing a point on a plane
The two lines are not parallel therefore divide plane into 4 pieces.
Point (x, y) lies inside of one these pieces.
Problem:…
I am connecting to a web service to get some data back out as xml. The connection works fine and it returns the xml data from the service.
var remoteURL = EveApiUrl;
var postData = string.Format("userID={0}&apikey={1}&characterID={2}", UserId, ApiKey, CharacterId);
var request =…
I am converting a large solution from Visual Studio 2008 to Visual Studio 2010. The conversion completes without errors. When I go to build the solution one particular section of the application throws error but it didn't when the solution was 2008.
Error 1 Could not load file or assembly…
scala> val a = Array [Double] (10)
a: Array[Double] = Array(10.0)
scala> val a = new Array [Double] (10)
a: Array[Double] = Array(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Why these two expressions have different semantics?
I have the webform with dropdown list, label and textbox. Like below:
<asp:DropDownList ID="ddlTest" runat="server" AutoPostBack="true">
</asp:DropDownList>
<asp:Label ID="lblTest" runat="server" Text="Some text">
</asp:Label>
<asp:TextBox ID="edtTest"…
Hi!
I am porting some Core data code from iPhone to Mac OS X.
PRoblem is that CoreData Framework on Mac OS X does not have NSFetchedResultsController.h nor NSFetchedResultsControllerDelagete protocol declared.
At least I am not able to force COCOA application to see this class…
Hi Guys.
In some part of my code I need something like this:
$product_type = $product->type;
$price_field = 'field_'.$product_type.'_price';
$price = $product->$$price_field;
In other words I need kind of KVC - means get object field by field name produced at the…
I have Order and Shipment model. Shipment has a foreign key to Order.
class Order(...):
...
class Shipment()
order = m.ForeignKey('Order')
...
Now in one of my views I want do delete order object along with all related objects. So I invoke order.delete().
I…
I'm just switching from Emacs to IDEA and it would be a great help to me if I could use shortcuts like Ctrl-A for jump-to-line-start. etc.
Is this possible?
How to read annotation property value in aspect?
I want my Around advice to be executed for all joint points annotated with @Transactional(readonly=false).
@Around("execution(* com.mycompany.services.*.*(..)) "
+ "&&…
A little is hidden in Qt given splendid documentation.
But given vastness of Qt functionality paradoxically many useful features have been overlooked by me (and reimplemented or work-arounded).
What Qt functions you wish you…
I tried to create abstract turn based Game and abstract AI:
abstract class AGame {
type Player
type Move // Player inside
def actPlayer : Player
def moves (player : Player) : Iterator[Move]
def play (move :…