I am new to mac, my question is what else text editors can be used to edit Objective-C code except xcode. And which one is the best for productively editing source code?
What is the best way to touch two following values in an numpy array?
example:
npdata = np.array([13,15,20,25])
for i in range( len(npdata) ):
print npdata[i] - npdata[i+1]
this looks really messed up and additionally needs exception code for the last iteration of the loop.
any ideas?
Thanks!
I have a 'n' column table , the first column is a drop down box , on selecting the options from the drop down, the other columns change. For eg: first drop down might need to display a text box and a button , the second drop down 3 text boxes and a button and so on. There is only one row in the table. What is the best solution to achieve this.
with Sincere thanks,
Hello all
I have installed the LogoTool module, but I only want it enabled in the custom theme used for the front end site, not for the Garland theme used in the administrative back end. How do I do that?
Best regards, Egil.
Hi,
I need huffman code(best in python or in java), which could encode text not by one character (a = 10, b = 11), but by two (ab = 11, ag = 10). Is it possible and if yes, where could i find it, maybe it's somewhere in the internet and i just can'd find it?
Hi..
I have get error with the following code and i can't figure it out.
char name[]="tolgahan"
char result[100]="";
strncat(result,name[1],1);
I guess, i need to convert name[1] to string format but i don't now how can i do that.
Please help me.
Best regards.
Hi folks I'm trying to figure out which unit JTS LineString.getLength() return.
for example:
LineString foo = (initialize line string somehow)
foo.getLength() -> 7.025667228118838E-4
Are these Kilometers?, Meters?, Feet?
best regards,
Andreas
Hi
Can anyone please provide specific links which cite the advantages of RPC over other inter process communication models.
Also whether RPC is best suited for TCP/IP or HTML or similar other transfer mediums.
Thanks and in advance.
The Compare method in Linq lets you find by an IEqualityComparer, but I can't find a counterpart method that allows you retrieve an item by the same comparer.
Is this really the best way to do it?
MyItem myFinderItem = new MyItem(keyField1, keyField2);
if (myList.Contains(myFinderItem, new MyEqualityComparer()))
{
MyItem myRealItem = myList.Single(item => new MyEqualityComparer().Equals(item , myFinderItem));
}
(I'm sharing the usage of the IEqualityComaprer with a call to the Except Linq method and I'd like to maintain a single source for equality comparisons)
I have an HTML5 application that requires offline support. I am using a local Apache server for the application, and am trying to figure out what the best way is to simulate offline mode (currently, in Firefox I disable my Air-Port to simulate offline mode, but this is a pain). Any suggestions? I am open to using other browsers if a method exists that doesn't require turning off my Internet.
I have a wordpress site, where on the main page I list the content from more categories.
My question is, is there a plugin where I can paginate the results from a category?I mean something like $this-plugin_paginate('category_id'); or smth?
Best Regards,
Hi,
i have a question, what is the best way to append ints and Strings to build a new String? In the allocation debug tool i see too much allocations if i use the operator +.
But i have tried also with StringBuffer and there are still too much allocations.
Anyone can help me?
Thanks
My staging and production servers are on different servers and domains.
Which would be the best way to deal with external APIs that have a key that relies on domain names?
Is this bad practice and both should be on the same server?
I am currently writing a plug-in framework for my application. I would like to be able to release plugins without having to update my application, and I intend on making the framework available for third party plugins. I am currently running into issues when two plugins ship with identical frameworks. When the plugins are loaded the runtime gets confused because the framework gets loaded twice. What is the best way to mitigate this issue?
Hi folks,
I'll briefly explain what I'm trying to do:
I need to sort a set of content-types within a paginated page. Also I need to add filtering to the page, for example each content-type should have a set of tags and the filter needs to filter through these tags.
This is a basic mockup of what this page consists of:
I'm finding it quite hard figuring out the best way to do it, and if this can be done.
Help would be very much appreciated!!
Talking about javax.crypto.Cipher;
I was trying to encrypt data using Cipher.getInstance("RSA/None/NoPadding", "BC"); but I got the exception: ArrayIndexOutOfBoundsException: too much data for RSA block
Looks like is something related to the "NoPadding", so, reading about padding, looks like CBC is the best approach to use here.
I found at google something about "RSA/CBC/PKCS#7", what is this "PKCS#7"? And why its not listed on sun's standard algorithm names?
After reading http://stackoverflow.com/questions/635483/what-is-the-best-way-to-implement-nested-dictionaries-in-python why is it wrong to do:
c = collections.defaultdict(collections.defaultdict(int))
in python? I would think this would work to produce
{key:{key:1}}
or am I thinking about it wrong?
I would like to add 24 hours to the timestamp for now. How do I find the unix timestamp number for 24 hours so I can add it to the timestamp for right now?
I also would like to know how to add 48 hours or multiple days to the current timestamp.
How can I go best about doing this?
if i search the word in google is "twitter".
google display the first result like the below...
Twitter
Twitter is without a doubt the best way to share and discover what is happening right now.
twitter.com/ - Cached - Similar
Search How To Contest Account Suspension
Blog An API
Twitter_logo_header Twitter Status
More results from twitter.com »
how they can display Search,blog,Twitter_logo_header and etc...
thanks and advance...
If an object holds a unique primary key, what interfaces does it need to implement in order to be collection friendly especially in terms of being efficiently sortable, hashable, etc...?
If the primary key is a string, how are these interfaces best implemented?
Thanks!
Trying to figure out the best way to do this:
Should I do something like:
def index(self):
if request.POST:
u = User(id)
u.setCookie() #All session logic in def setCookie()
Or set the cookie in the controller like:
def index(self):
if request.POST:
u = User(id)
response.set_cookie('session_key', u.session_key, max_age=3600)
Why do it one way or the other? Thank you.
what is the best practice for DOM generation ? passing the full html as response from server or pass necessary values and create dom accordingly from client side ? Please suggest..
This is a subjective question. For those who are Windows developers coding desktop applications, what are the most beautiful or nice looking GUI you have ever seen or built?
Why am I asking this? I'm looking for good models to follow.
See also:
What is the best UI you've ever used?