Since I cannot pre-render all the images in PNGs and real-time image transformation functions are required, namely:
skew
perspective
(like the transform action found in Photoshop)
Which API (CoreAnimation? OpenGL ES?) should I look into? Even better, is there any sample code around? Thanks!
Too bad I don't have a server but a XP to serve some scheduled ruby scripts. So, what's the recommended way (gem/plug-in?) to write logs on Windows XP from ruby scripts?
I receive encoded PDF files regularly. The encoding works like this:
the PDFs can be displayed correctly in Acrobat Reader
select all and copy the test via Acrobat Reader
and paste in a text editor
will show that the content are encoded
so, examples are:
13579 -> 3579;
hello -> jgnnq
it's basically an offset (maybe swap) of ASCII…
For one specific client I have to use PHP. This and this question were 2 years old. I'd like to know is there any update of opinion for year 2010?
My background on web development is mainly rails. I can code in PHP (for example, write a module for Drupal) but never used any PHP framework for any project.
I can see the following potential…
Is it possible to build an application inside in browser? An application means:
1 Where there is connection (online mode) between the browser and an remote application server:
the application runs in typical web-based mode
the application stores necessary data in offline storage, to be used in offline mode (2)
the application sync/push…
Currently I draw a zig-zap line by CGContextMoveToPoint, CGContextAddLineToPoint, and CGContextStrokePath, following touchesMoved events. How can I smooth the edges of the line? Such that when the user draw a circle-like shape, the circle can be more round'ed. The GLPaint example use OpenGL, is that the only way to do it?
What is the unique identifier for an iPhone app?
In the info.plist file, there are keys:
Bundle display name
Executable file
Bundle identifier
Bundle name
If I have already submitted an app on the AppStore before. Then I change some of the keys in the project. Which of the above can be changed freely and AppStore still considers…
I've never understood the need of #pragma once when #ifndef #define #endif always works.
I've seen the usage of #pragma comment to link with other files , but setting up the compiler settings was easier with an IDE.
What are some other usages of #pragma that is useful, but not widely known?
Recently I bumped into a problem where my OpenGL program would not render textures correctly on a 2-year-old Lenovo laptop with an nVidia Quadro 140 card. It runs OpenGL 2.1.2, and GLSL 1.20, but when I turned on mip-mapping, the whole screen is black, with no warnings or errors.
This is my texture filter code:
…
Two models:
Invoice
:invoice_num string
:date datetime
.
.
:disclaimer_num integer (foreign key)
Disclaimer
:disclaimer_num integer
:version integer
:body text
For each disclaimer there are multiple versions and will be kept in database.…
I try to break down the http://stackoverflow.com/questions/2711961/decoding-algorithm-wanted question into smaller questions. This is Part I.
Question:
two strings: s1 and s2
part of s1 is identical to part of s2
space is separator
how to extract the identical part(s)?
example 1:
s1 = "12 November 2010 - 1…
I'm trying to read an Excel file (.xls, I think Excel 2003 compatible) via OleDB, but it fails to get the values for referenced fields.
This is my current test code (please note, this is just part of the class):
Private m_conn As OleDbConnection
Public Sub New(ByVal fileName As String)
Dim connString As…
One client project will be online two months later. One of the requirements changed is to support large files (10 to 15MB per RAW camera file, expected 1000 to 5000 files download per day) download worldwide for their customers. The process will be:
there is upload screen via paperclip to the rails local…
I am working on my first Drupal project on XAMPP in my MacBook. It's a prototype and receives positive feedback from my client.
I am going to deploy the project on a Linux VPS two weeks later. Is there a better way than 're-do'ing everything on the server from scratch?
install Drupal
download modules…
I've got a SQL Server database with the the following tables:
Client (ClientID, ClientName)
SalesAgent (AgentID, AgentName)
Item (ItemID, Description)
Purchase (PurchaseID, ClientID, Price)
PurchaseSalesAgent (PurchaseID, AgentID)
Each purchase is only ever one item to one client but there can…
This question came from looking at this question on Stackoverflow.
def fringe8((px, py), (x1, y1, x2, y2)):
Personally, it's been one of my pet peeves to see a function that takes two arguments with fixed-number iterables (like a tuple) or two or more dictionaries (Like in the Shotgun API). It's…
Debugging a PHP program, is there any add-on/plug-in for browser which I can view sessions variables (those PHP $_SESSION["foobar"] )?
Best if I can change the value in the variables. Thanks!
The following message is shown on everything page of a Drupal site:
"user warning: in /var/www/html/.../includes/cache.inc on line 109"
Please advise how to fix (get rid of) it. Thanks!
Info: User saw that after he deleted a post.
In a form_tag, there is a list of 10 to 15 checkboxes:
<%= check_box_tag 'vehicles[]', car.id %>
How can I select-all (put a tick in every single) checkboxes by RJS? Thanks
I have a table named "Pages" and a table named "Categories". Each entry of the table "Pages" is linked to the table "Categories". The "Categories" table have 5 entries, they are: "Car", "Websites", "Technology", "Mobile Phones", and "Interest".
So each time I put an entry to the "Pages" table, I…
I was shocked when I read this (from the OpenGL wiki):
glTranslate, glRotate, glScale
Are these hardware accelerated?
No, there are no known GPUs that
execute this. The driver computes the
matrix on the CPU and uploads it to
the GPU.
All the other matrix operations are
…
I'd like to do some timezone calculation, using the following API:
NSTimeZone *some_time_zone = [NSTimeZone timeZoneWithAbbreviation:name];
however, I am not sure where to find the supported list of abbreviation names. For example, what is the name for the timezone of Siena Italy?