Hi,
there is any pastebin-like php open source system without sql? I want to install it on localhost and dont want to backup sql.
edit: Highlighting as much as possible languages (as pastebin.com).
hi my dear friends:
how can we check filetypes (formats such as jpg) without using file extensions before -uploading them- in asp.net with c# ?
i am using vs 2008 + asp.net + c# + TELERIK Controls (RadUpload)
=========================================================================================
imagine that some body change the text file extension to jpg and select in in a upload conrol such as radupload ...
how can we recognize this file is truly jpg or not?
thanks a lot
I've written a CMS which uses the PHP function json_encode to send some data back via an Ajax Request.
Unfortunately, I'm trying to load it onto a server which is running PHP version 5.1, the json_encode PHP function is not available on versions of PHP before 5.2.0.
Does anyone know of a way to encode a PH array as JSON without using the inbuilt json_encode function?
In php how can I access an array's values without using square brackets around the key? My particular problem is that I want to access the elements of an array returned by a function. Say function(args) returns an array. Why is
$var = function(args)[0];
yelling at me about the square brackets? Can I do something like
$var = function(args).value(0);
or am I missing something very basic?
I think every business person would like to have excel UI, however they are forced into using web applications that sometimes look like really bad excel.
Are there any frameworks that help build excel ui without VB? I dont mean framework like POI or JExcel that allows you to generate excel reports.
I am planning on deploying a database to SQL Azure, so I cannot use the SQL CLR. However, I have a need to create an aggregate function -- in my case, I need to STUnion a bunch of Geography objects together. (Azure is expected to support Spatial by June.)
Is there another way to accomplish this, without making use of the CLR, in a query? Or do I have to create a UDF that will take a table as a parameter and return the aggregate?
Could I use NHibernate.Search only with lucene’s index without database? Because I would like to store all data only in my lucene’s index, but I really like features in NHibernate.Search.
In C#, is it possible to decorate an Enum type with an attribute or do something else to specify what the default value should be, without having the change the values? The numbers required might be set in stone for whatever reason, and it'd be handy to still have control over the default.
enum Orientation
{
None = -1,
North = 0,
East = 1,
South = 2,
West = 3
}
Orientation o; // Is 'North' by default.
Hey Friends,
I want to disable the broswer back button without using javascript. So far i have used this coding:
Response.CacheControl = "no-cache"
Response.CacheControl = "private"
Response.CacheControl = "public"
It's working fine in the internet explorer 8 but in case of mozilla fire fox it is not working.pls say same the solution to work in all browsers.
Thanks in advance
With Regards
V.karthik
Hi Fellas,
I am developing an application which requires saving images in the "saved folder" of iPhone Photo album after performing some animations on ImageViews. Is it possible to save the incomplete images temporarily in the iphone application without using database or server side saving technique, so that user can use it for future use and only completely changed ones should get saved in Photo Album? If yes then it would be a great help to get any code or suggestion.
Thanks in advance :) !!!!
Is there a method of accessing an Exchange server that does not have IMAP or POP3 enabled without Outlook? It does not appear that Outlook Express supports Exchange (only IMAP and POP3).
I want to test some new functionality which is part of an internal web app. This new code uses a database connection normally provided by an app server (tomcat).
I do not want to recreate the entire web app on my local machine to test the new code, since I only need to run one function.
Does anyone know how I can 'spoof' a Context, or Datasource, to retrieve the database config, without actually creating a web app instance on a server?
Thanks
Is it possible to check for pressed keys without using the KeyboardEvent?
I have an ENTER_FRAME event setup called enterFrameHandler and I want to check within the function enterFrameHandler if any keys are pressed.
normally when using a KeyboardEvent I could check for keys easily using a switch that checks the KeyCode of the event, but in an ENTER_FRAME event this isn't possible for me.
Is there any other way of checking the keyboard's state within the ENTER_FRAME event?
I use Fastreport 4. I need to print directly to the printer without showing Print Dialog. I've unchecked the ShowDialog in the Print Options, but it keep showing a print dialog. Any help would be very appreciated.
Hi..
By setting the bellow properties we can create the setup file automatically uninstall existing setup and install new setupfile.
DetectNewerInstalledVersion:True
RemovePreviousVersion:True
But each and every setup file we need to change the version property of Setupfile. If it is, it won't through error while installing current setupfile otherwise
it throws error: already installed.
I am looking into how we can create the setup file without changing the version property of existing setupfile.
Thanks.
For a client server application, I'd like to display content with a web browser control with images without writing temporary files to the disk.
I've tried using mht files via documentstream and documenttext, but the web browser control isn't smart enough to recognize mht files.
I would use data URI images, however most computers this will be installed on use IE6 or 7.
Are there any other options for this?
Hi,
I am engaged in a project where i need to how the path bread crumbs to the user like
Home (This is linked to home page) (page name)
like
Home contacts
and in contacts like
Contacts create
Contacts edit
etc.
Is there best practice how to do this in spring without he usage of spring web flow. I am not using spring web flow and simple using the spring MVC
Vaibhav Saxena
Hi,
i am developing one aspnet application in that i am using Sessions. if user login into the application and click on logout here i am closing session.
suppose if the user doesn't click on the logout and he close the browser. how to kill the session when user closed the brower without logout
Regards
kumar
Is there a way to only deploy cube schema, but without processing the cube. It seems in Visual Studio, when yo deploy a cube, by default, it is "Deploy and Process".
The problem is processing takes so much time, and my main purpose is just writing some MDX script and see if it works well against the cube structure. It seems processing whole cube is just over kill. So I ask.
How might one extract all images from a pdf document, at native resolution and format? (Meaning extract tiff as tiff, jpeg as jpeg, etc. and without resampling). Layout is unimportant, I don't care were the source image is located on the page.
I'm using python 2.6 but can use 3.x if required.
thanks
I have a model called MyContainer, which :has_many MyObjects.
I want to delete all the MyObjects in the container without having to delete the MyContainer.
My model does have :dependent = :destroy, however I don't want to have to delete and re-create the object because it is slower.
Something like this does not work:
@obj = MyContainer.find_by_id(10)
@obj.my_objects.delete_all
How can I accomplish this?
Hey everyone,
I need a regular expression to find out whether or not a h1 tag is followed by a h2 tag, without any paragraph elements in between. I tried to use a negative lookahead but it doesn't work:
<h1(.+?)</h1>(\s|(?!<p))*<h2(.+?)</h2>