I have a database of nouns (ex "house", "exclamation point", "apple") that I need to output and describe in my application. It's hard to put together a natural-sounding sentence to describe an item without using "a" or "an" - "a house is BIG", "an exclamation point is SMALL", etc.
Is there any function, library, or hack i can use in PHP to determine whether it is more appropriate to describe any given noun with A or AN?
I've got code that takes a PIL image and converts it to a ctypes array to pass out to a C function:
w_px, h_px = img.size
pixels = struct.unpack('%dI'%(w_px*h_px), img.convert('RGBA').tostring())
pixels_array = (ctypes.c_int * len(pixels))(*pixels)
But I'm dealing with big images, and unpacking that many items into function arguments seems to be noticeably slow. What's the simplest thing I can do to get a reasonable speedup?
I'm only converting to a tuple as an intermediate step, so if it's unnecessary, all the better.
I have a bit of free time at work and was wondering, what are some hard applications to build but which are not big?
Hopefully nothing which requires specialist knowledge but something nonetheless hard and which will boost my coding/problem-solving skills.
Thanks
I'm looking to compare two varchars in SQL, one would be something like Cafe and the other Café is there a way in SQL that will allow the two values to be compared. For instance:
SELECT *
FROM Venue
WHERE Name Like '%cafe%'
So if there is a venue with the name Big Bobs Café Extraordinaire it would be included in the result set?
Hi,
I have a big problem.
My program must save a Xml file with 3 float value (x, y, z of accelerometer) and a NSString value (name).
How can I do?
Thanks so much
Say I have one class ClassBig with 100 methods inside, and a second with only 10 methods ClassSmall
When I have objects at runtime
ClassBig big = new ClassBig();
ClassSmall small = new ClassSmall();
Does the larger class take up more memory space?
If both classes contained an identical method, does the larger class take longer to execute it?
I'm a big fan of using message queue systems(like Apache ActiveMQ) for the tasks which are rather slow and do not require instant feedback in User Interface.
The question is: Should I use it for other tasks(which are pretty fast) and do not require instant feedback in User Interface?
Or does it in involve another level of complexity without not so much benefits?
Hi,
Depending on the font settings (DPI and such) on the user's computers, I can have text become too big to fit in a button and moves down to the next line (wrap), so if it is a small button that says "Do xyz", it will only show "Do" unless I increase the height on the user's computer, but it looks fine on mine.
Is there any way to force it to stick to original font size?
I would like to make a repo into a sparse repo so people can push to it with out big nasty warnings. I could delete it and clone it again... but perhaps there is a more elegant way?
I want to develop a game in flex to build a building. In canvas i want to spirit into number of squares and place a different type of building in that square(Using click and drag). If small building means its take two square and big building means its take four squares. Please anybody help me
Hi,
I have a big problem.
I have downloed a certificate from apple site.
When I put it into xCode have a warning : "A valid signing identity matching this profile could not be found in your keychain" and can't build the app.
Thanks and sorry for my English XP
I am trying to show a .tif image in matlab and I use these two line of codes
a = imread('C:\Users\sepideh\Desktop\21_15.tif');
imshow(a)
that encounters this warning
Warning: Image is too big to fit on screen; displaying at 3%
In imuitools\private\initSize at 73
In imshow at 262
what is the cause of this warning and what can I do to fix that?
the main trouble is it sometimes doesn't show the image and of course even if it shows the image CPU usage gets high that I can't zoom properly
Is it possible to create collision free hash function for a data structure with specific properties.
The datastructure is int[][][]
It contains no duplicates
The range of integers that are contained in it is defined. Let's say it's 0..1000, the maximal integer is definitely not greater than 10000.
Big problem is that this hash function should also be very fast.
Is there a way to create such a hash function? Maybe at run time depending on the integer range?
I use MS SQL server as a DBMS for my very big corporate DB (with different financial data). And some times my system go down. I don't understand why. What programs/tools I can use for finding process/program/thread, that overload my SQL-server?
Thanks for all answers!
I've heard that Telecoms are the big source of Erlang jobs but I'm not sure how much of a market there is. How likely is it that someone could find a job in Erlang/Haskell if they decided to learn it? In my case I have a lot of programming experience in Java but am tired of Java and want to try something different.
I know this question may well be the silliest question you've herd today, but to me it is a big question at this stage of my programming learning.
Why is the second empty line needed in this Python code? What does that line do?
print 'Content-Type: text/plain'
print ''
print 'Hello, world!'
Grammar? Humor? Style? Use/limitation of big words? This is a subjective question, I know, but it's interesting to me to know what other people find relevant in a witing beyond... you know... the concept.
Hi Everyone
I just wanted to say a big thank you to everyone here as my first ever iPhone app is now in the app store! I couldn't have done it without all the help from everyone here. It's called zigAroute if you want to check it out.
Thanks
Cheryli
My config file is really just a big python dict, but I have many config files to run different experiments and I want to 'import' a different one based on a command line option. Instinctively I want to do import ConfigFileName where ConfigFileName is a string with the config file's python package name in it... but that doesn't work.
Any ideas?
Hi I have big background images 1200 by 1200, what i would like to do is expand the images when the user resizes the browser but constrain it so they never scale any smaller than the original size.
There all lots of scalable bg images out there but none I can find that do this, any help would be appreciated.
I had some very strange problems with GraphicsGrid.
The individual PraphPlot:s looks nice and ok, but the code
GraphicsGrid[{{GraphPlot[{{a -> b, "ab"}, {a -> c,
"7"}}]}, {GraphPlot[{{a -> b, "5"}, {a -> c, "2"}}]}}]
just produces 2 big clots of garbage. If I remove the edge labels, everything works as expected. I am using Mathematica 7.0.0.
I'm developing an iPad application using Core Data, and was hoping someone could clarify something about Core Data.
Right now, I populate my table by making a fetch request for all of my data in viewDidLoad. I'd rather make individual fetch requests in my tableView:cellForRowAtIndexPath:. Can anyone tell me which is more efficient, and why? In other words, is it much less efficient to make lots of small requests as opposed to one big request?
greetings all
i am building a web app(smth like a forums) that will need to send thousands of emails simultaneously i think that it would be such a big load on the app to handle sending the emails, so i want to use another service or framework to handle sending the emails in asynchronous way so that there will be no load on the app, maybe JMS , i don't know, please suggest me a good solution.
I know that C++ has the concept of objects but C doesn't. I also know that pretty much all there is to know about C fits into K & R but the C++ library is vastly more complex. There have got to be other big differences though.
What are the major differences between C and C++?