I have created a custom sitemap provider that reterives data from databse.I need to dispaly them like it is displayed in http://www.apple.com/sitemap/ .
Please help me .
What do you think is the best way to implement an interactive grid similar to a Sudoku board for a native iPhone application? I did not see an object to fill this need in the SDK.
Should I make a custom control for an individual cell, then initialize as many of them as I need in a grid form?
Any and all comments are welcome.
Thanks!
I am using a custom database (MongoDB) with TG 2.1 and i am wondering where the proper place to store the PyMongo connection/database instances would be?
Eg, at the moment they are getting created inside of my inherited instance of AppConfig. Is there a standard location to store this? Would shoving the variables into the project.model.__init__ be the best location, given that under SQLAlchemy, the database seems to commonly be retrieved via:
from project.model import DBSession, metadata
Anyway, just curious what the best practice is.
I added couple of Text fields on a content type in Drupal - however, only the in-built "body" fields is WYSIWYG editor enabled. I am using FCKEditor as the WYSIWYG editor (installed under the "wysiwyg" add-on. How can I get WYSIWYG editor enabled on custom added field?
If possible I would like to tile an image or MovieClip along a line using the standard moveTo() and lineTo() methods, The lines are directional so need to show something similar to >>>>>>>>>>>>>. The lines can be at any angle, so using drawRect() with beginBitmapFill() isn't an option. Also if possible I would like to have the lines animated.
Is this possible or will it require a custom class?
If I want to update two rows in a MySQL table, using the following two command:
UPDATE table SET Col = Value1 WHERE ID = ID1
UPDATE table SET Col = Value2 WHERE ID = ID2`
I usually combine them into one command, so that I do not to have to contact the MySQL server twice from my C client:
UPDATE table SET Col = IF( ID = ID1 , Value1 , Value2) WHERE ID=ID1 OR ID=ID2
Is this really a performance gain?
Background Information: I am using a custom made fully C written high-performance heavily loaded webserver.
MenuStrip doesn't support using ImageList images.
What are performance issues of this? Are there chances of using too much GDI resources and slow-downs? How many items should be considered acceptable, after which one should implement custom control that draws images from ImageList?
I have a sharepoint 2010 web application with 2 different zones, default zone with windows login (for search crawl), internet with Claims (FBA) for users to login.
I have custom webparts that uses
using (SPSite mySite = new SPSite(SPContext.Current.Site.ID))
using (SPWeb web = mySite.RootWeb)
{ string url = web.Url
I use this url to include to emails etc...
Problem is: when user connects to FBA (extended zone), and goes to the webpart,string url in my code returns the url of the default zone(windows auth) where user should not be touching.
I have different host headers for these zones, any help would be very appreciated.
Update:
fixed it with
using (SPSite newsite =new SPSite(SPContext.Current.Site.ID,SPContext.Current.Site.Zone))
using (SPWeb web = newsite.RootWeb)
{
//do your implementation here
}
Hi,
Is it possible to loop over all the properties and replace all token which correspond to them?
For example, if I have three properties defined, a,b,c, I want to replace all three tokens @a@, @b@, @c@ . I however do not want to set up the filterchain manually as properties may be added/removed later on.
I can accomplish this using a custom nant task, but is ther a way to do this through a build file alone.
Thanks,
I am looking to create a QR code that does the following:
When scanned from inside an application, it dislpays a custom alert, (Ex. "You won $5")
When scanned with a different QR code reader (non app) it goes to a mobile web page that directs the user to download the application.
My main question is: Can you control what happens when a QR code is scanned by a reader that is not your own? (A 'default' action, if you will)
Suppose you want to throw Exception like this:
'Project with the provided ID cannot be assigned.'
and you don't want to write your custom Exception class. What predefined Exception class would you use for this?
(I'm talking about all classes inheriting from Exception)
What is the precise implementation of Enumerable.Range in .Net; preferable .Net 4? Is it a yielded for-loop? A custom implementation (IEnumerable, IEnumerator) or?
I have created an Asynchronous version of Rails 3 that I would like to integrate with a WebSocket implementation.
I am using EventMachine, Ruby 1.9, Fibers and various em-flavoured libraries as documented by the wickedly good Ilya Grigorik.
I have been looking at em-websocket as the handler for WebSocket connections but unsure of the best approach for hooking this into a Rails app.
Ideally, this would work in a similar fashion to node.js with Express and Socket.io - incoming connections should be detected and dispatched to the WebSocket handler or the regular rails stack as indicated by the HTTP headers & etc.
TL;DR
WebSocket handler that plugs into an existing Rails application
Transparently dispatch incoming WebSocket requests to endpoints in the app
I am building an internet site, using my local machine as the development box (I have MOSS 2007 installed).
I have a custom master page, packaged in a WSP, so I may use STSADM on the production server to install it.
I have made some pages via SPD (on my local machine) and put them in the "Pages" gallery.
What is the recommended way to get these pages to production.
Also, is the process the same when I make edits to current pages?
Hi, I wonder if is the Android multi-touch support reliable? I've read it suffers from some problems.
I also wonder, how can I define custom multi-touch gestures? Like: 3 fingers rotate or 3 fingers stay static and fourth is moving.
I've come across some resources (Gestures or MotionEvent on developer.android.com) but nothing states it clearly.
Regards,
Zdenek
I have been given the task of devising a custom forms manager that has a mysql backend.
The problem I have now encountered after setting up all the front end, is how to process a form that is dynamic.
For E.G
Form one could contain 6 fields all with different name attributes in the input tag.
Form two could contain 20 fields all with different name attributes in the input tag.
How would i process the forms without using up oodles of resource.
I've got raw data streams from image files, like:
vector<char> rawData(fileSize);
ifstream inFile("image.jpg");
inFile.read(&rawData[0]);
I want to parse the headers of different image formats for height and width. Is there a portable library that can can read ints, longs, shorts, etc. from the buffer/stream, converting for endianess as specified?
I'd like to be able to do something like: short x = rawData.readLeShort(offset); or long y = rawData.readBeLong(offset)
An even better option would be a lightweight & portable image metadata library (without the extra weight of an image manipulation library) that can work on raw image data. I've found that Exif libraries out there don't support png and gif.
Hi all,
On my iphone app, I have a UITableView in edit mode, containing custom UITableViewCell.
I would like to detect when user has clicked on the left button of each cell (minus circular red button, the one that is animated with a rotation), just before the "Delete" button appears.
I would like to be able to change my cell content in that case...
Is that possible ?
Thanks !
Hi, I am building a site which will require some very limited content management for a client. There are only a few areas of the site which will require the client to be able to update the content themselves.
Would it be better to create a very simple custom admin page for the client to log in and say add a news story etc or would it be best using a fully fledged CMS like Drupal etc which seems overkill to me.
I'm trying to create a PHP daemon that connects to an IMAP server and processes emails as they come in. I have it close to working, but the daemon keeps grabbing the original emails that it finds the first time the daemon is loaded. I believe the reason is because I'm opening the IMAP connection in the parent process. Example below:
if ($imapConnection=imap_open($authhost,$user,$pass) or die())
{
//start daemon
while()
{
//Grab email headers
$imapHeaders = imap_headers($imapConnection);
$count = sizeof($imapHeaders)
//loop the emails
for($i = 1; $i <= $count, $i++)
{
//process the email
//delete the email
}
System_Daemon::iterate(15);
}
}
imap_close($imapConnection);
I'd like to stay away from putting the IMAP connection within the loop. How can I keep the connection to the IMAP server outside of the loop and still get new emails?
I wanted to remove an event listener from main class stage, but i get the error 1120: Access of undefined property stage. How do I actually access the stage?
custom class:
import main;
main.disableVcam();
main class:
public static function disableVcam():void {
trace("disable");
stage.removeEventListener(MouseEvent.MOUSE_MOVE, movevC);
}
Hello, I would like to work with the hierarchyid in a dataset or custom object. I am not sure how to get parents, children, siblings and other functions will the data is in memory. I can do it within the database but once the info is pulled out of the database into a dataset and cached -- how do you work with it then?
Hey guys. If you haven't already seen, Google has the ability to add a custom background image (for better or worse) and I was wondering how to achieve the same fade-in-on-load effect using jQuery.
Any ideas?
Hi all I am using the markitup editor to get the value for one of my fields and storing it a sql server 2008 db. Now I guess the problem is people having script tags and javascript in the editor and injecting malicious scripts and I have my validate input turned false. So can anyone suggest me a way to write a custom validation method that maybe checks for script tags and removes them...or just guide me through the steps i need to do ?...also are there other things also that I should be worried about..?