We've all done them, the short fix that will get the system back up and running until we can Do The Right Thing.
What have you marked in your code with the dreaded //Hack comment?
Hi
I have a homework that I can not understand this part of that would you please help me ? thanks
List the average balance of customers by city and short zip code(5 digits of zip code)
I use this code to make my UITableViewCells
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:CellIdentifier] autorelease];
If you're unfamiliar with UITableViewCellStyleValue2, the main text is shown, and then the detail text is shown after it, generally in a different color. However, when I do this, my main text is truncated, if it is longer than a short word. I want to force it to not truncate the main text and show the entire main text, and then the detail text after it. How can I do that?
My client wants a flickr kind of site, but people have to pay for registering .And they can restrict their gallery view. Since its a low budget and short term project, I would like to customize some readily available scripts rathar than starting from scratch. Please suggest abt technology,methodologies to be used. Thanks in advance :)
Do you have any Drupal module (or other solution) to implement a feature similiar to Facebook's Share a Link?
To be precise:
you paste a link
site's preview is generated
title
short excerpt
and a thumbnail of one of the site's images
Short question:
Do any operating systems have a maximum time they can stay running?
Are there things like counters increasing all time that can reach a limit?
Which operating sytems?
View History on an file in a branch show only changes since the branch. I need to go back further -- like how created the file in the first place. I've also tried Sidekicks, and it doesn't seem to show history from before the branch either.
Short of hunting down the file in the trunk manually, is there a way to view a file's history from the time it was added to now following the path in the branch?
For a short time now I have had a problem or pain with the Breakpoint indicators, they do not show, yes I have the margin activated ( small grey stripe down the left side of the margin ). I have uninstalled all extensions, addins etc still no breakpoint indicator I have also deleted the .suo file with no go also. This is a major pain more than anything else. Anyone who has had this problem please help me out.
I have a large tree structure on which several threads are working at the same time. Ideally, I would like to have an individual mutex lock for each cell.
I looked at the definition of pthread_mutex_t in bits/pthreadtypes.h and it is fairly short, so the memory usage should not be an issue in my case.
However, is there any performance penalty when using many (let's say a few thousand) different pthread_mutex_ts for only 8 threads?
I had limited success myself. I was able to hype a few persons about Scala.
But in fact none of them made a meaningful effort to try to switch (usually from Java).
I would like to read both success and failure stories here.
Both long tries and short ones.
My goal is to find ways of presenting Scala to another person, friend, co-worker (not an audience) that will make them want to use this great language.
I often open .aspx file.
I used to do language - j - javascript. every time when I open aspx file
it's really annoying
I like to make short cut or macro.
But I cannot find this menu on Shortcut mapper.
How Can I do this?
I'll make a simple application that will use cryptography with smart cards, I'm studing about, but it's difficult to find a simple example of reading a smart card PublicKey. Where can I find one?
-- update: I'm reading about, looks like pkcs11 is a way, but I still don't have a simple short example
Hi,
I'm trying to make a Tag cloud for every user in own page, I'm using PHP5 and Mysql, My table named "tags" and I want to make a array but in short way. The table like below,
The array can be like
for user1 array={[car,1],[cat,null],[pen,1],[dvd,1],[cd,null]}
Username totaltag tag1 tag2 tag3 tag4 tag5
admin 5 car cat pen dvd cd
user1 1 1 1
user2 1 2 12 1
user3 3 2 10 1
I've never seen a good list of free Java libraries.
What are some of your can't-live-without Java libraries?
Note: to keep this poll as useful as possible, please remember:
Post only one library per answer
We don't want duplicate answers, so before posting check if the library has been mentioned already
When adding a new library, provide a short summary of what it does / why you think it's useful
I'm not sure what to call this, so I'll give an example.
In PHP
1==2 || 2 returns 1 or true
In Ruby
1==2 || 2 returns 2 (The second statement if the first evaluates to false).
Is there any short way to implement similar thing in PHP?
We have a designer creating a user interface for an application. The main window has several QStackedWidgets used for in place panel switching. What I'd like to be able to do is extract each individual panel that makes up each page of the QStackedWidget into it its own .ui file.
Is there an easy way to accomplish this from within Qt Designer, or are there any other tools to help accomplish this task short of redesigning all of the panels in their own .ui files?
Long and short of the story is, whilst reading John Resig's blog (specifically http://ejohn.org/blog/javascript-trie-performance-analysis/) I came across a line which makes absolutely no sense to me whatsoever. Essentially it boils down to
object = object[key] = something;
(this can be found in the first code block of the article I've linked.)
This has proven rather difficult to google, so if anyone can offer some insight / a good online resource for me to learn for myself, I'd much appreciate it.
I want to use mod-rewrite for just one file instance:
www.domain.com/contact
to pull from www.domain.com/contact.php
I used a rewrite rule for all files that look like a directory to do this initially but it messed up some diretory redirects I created so in the short-term, I'd rather just do it for a specific file.
Thanks.
Hallo all,
short question:
Does SSTab1.TabPages.Item(?) start from 0 or from 1? How could I find out which tab corresponds to which item()?
Thanks in advance,
John
Does anyone know of a project / product that has standardized how to access/download x509/SSL certificates over HTTP? I have seen RFC 4387 but haven't found anyone who implements it. Basically, I am trying to setup a key server for an internal application.
So short of implementing my own, does anyone have any suggestions?
this and super are keywords isn't it, then how can we use them for passing arguments to constructors the same way as with a method??
In short how is it that these can show such distinct behaviours??
in OO programming, is there some conceptual pattern, ideas, about handling multiple errors?
for example, i have a method that performs some checks and should return an error message for each error found
['name is too short', 'name contains invalid unicode sequences', 'name is too long']
now, should i use an array of exceptions (not thrown exceptions)?
or something like this is better:
class MyExceptionList extends Exception{
public Void addException(Exception e){}
public Array getExceptions(){}
}
any theory behind this argument will be appreciated!
(this isn't a request about a specific programming language, but a pure theoretical one)
thank you in advance
I'm preparing a short talk for a conference in august and I'm looking for open source projects that are using agile methods internally or have tried them in the past.
My goal is to talk about the things that work well and what won't work and promote the agile methods a little bit, because I think certain agile techniques are a good fit, but don't seem to be that common in real development.
So does anyone know projects that have tried agile methods and techniques before? I'd like to contact them for a few questions.
The man says that case statements use "filename expansion pattern matching".
I usually want to have short names for some parameters, so I go:
case $1 in
req|reqs|requirements) TASK="Functional Requirements";;
met|meet|meetings) TASK="Meetings with the client";;
esac
logTimeSpentIn "$TASK"
I tried patterns like "req*" or "me{e,}t" which I understand would expand correctly to match those values in the context of filename expansion, but it doesn't work.
Thanks.