Project BigResource

Since 2005, our team is working 24/7/365 to maintain one of the World's largest resource center for webmasters and programmers. The project comprises a directory of 50,000 Scripts & Tutorials relating a wide range of programming languages from PHP, .NET, ASP and Java to emerging Android & iOS development.

We also maintain an index of over 3 million questions/answers posted over internet relating aforementioned technologies. To learn more about Tracker, click here.

It took us 10 years of hard work to build an index of 3 million plus qualified Q&As by humans, not the bots. Just Crawling and building a database of messages is not an art. The success of this unique project lies in the human editing of these messages by professionals for content validity and definitive solution to various problems to stay focused on the issue & saving time. Compare and see the difference between an original post on a forum and the same edited message added to our index here. No unanswered posts, salutations, lengthy code lines, images, avatars, attachments, closing remarks, reference URLs, signatures etc., just the core issues and solutions to them.

As of June 2014 stats, 50,000 unique visitors/webmasters visit us every day to get benefited from this index. We are working hard and striving harder to provide programmers an unmatchable resource index to their unanswered questions.

Recently Indexed Messages:


GIMP :: Enhance Contrast And Darken Highlights
I'm planning to start using Gimp for editing my photos. However, I've been looking through the functions, and I've also read the online manual. But there are two things I can't find.

1. How can I darken the highlights in a photo?
2. Is it possible to enhance the contrast in more detail than on a general level, e.g. midtone contrast only? ...

Lightroom :: Images Are Not In Order In The Import Dialogue Box?
using lightroom 4.3...  when I import photos, they appear in random order in the IMPORT viewing window.  With pervious versions of lightroom, they were always in order of file name.  It becomes more time consuming to select specific files to import to a file if there are 2 or more jobs on one CF card ( I have photos of my kids skiing mixed up with a portrait session.).  Is there a way to sort the photos (by file name, or time) before import?  I do know how to sort post import. ...

VideoStudio :: Overlapped Buffer Is Full?
"An internal error occurred when overlapped buffer is full."

That is the message I am receiving when I try to make my project into a video or audio file.

I have two audio tracks which have only two effects added to them.

What is wrong? ...

AutoCAD Civil 3D :: Open Channels Or Corridor Storm Network Analysis
As I know we can import and export storm and sewer pipe lines between C3d and SSA. But how about open channels? I am workin on a project which is contain sewer pipes (close sections like circle pipes) and open channels(maybe as corridor in C3d) and some ditches with irregular sectios. it is pretty easy to define assemlies for open channels and ditches in C3d but if we can not pull the in SSA in order to analyze then we need to do the job twise in both software. I've tried to pull my network into SSA. but it just import pipe networks not open channels. is there any way to import them or any other software that can import from C3d and analyse the network? ...

Photoshop Elements :: Activating 12 On One Of Two Computer?
I get a message when opening PE that the triIal version has expired. I never had a trial version. The next screen ask me to sign in and then tells me I am not connected to the web when in fact I am. Next it ask for a  response code which I do have. ...


C :: Finding Most Frequent Symbol With Markow Algorithm
I have such task. There is such alpahbet as {a, b} in markow algorithm concept. So I need to find out which letters (a or b) are more in word "p". If a then to retrieve the word with letter a, if-b-then word with letter "b", if there is equal quantity then 0. How to do it. Where to find such example, at least some clues how to begin. ...

C++ :: Print Multidimensional Array Using Classes?
I am currently trying to write a program, which i able to print a multidimensional array using classes. My problem is, it prints random values, and not the value from the user input.

Here is the Code

[URL] ...

C++ :: Can't Sort Node Based Upon Value
I can't sort node based upon there value to sort nodes on the basis of the Nodes value in ascending order

if(Current_Node->get_value() < Last_Current_Node->get_value())
temp = Current_Node->get_next();
Last_Current_Node->set_next(temp);} ...

C++ :: Open File And Read In Rows To String Vector And Return Vector
I have a cpp app that reads in a number of files and writes revised output. The app doesn't seem to be able to open a file with a ' in the file name, such as,


This is the function that opens the file :

// opens mol file, reads in rows to string vector and returns vector
vector<string> get_mol_file(string& filePath) {
vector<string> mol_file;
string new_mol_line;
// create an input stream and open the mol file
ifstream read_mol_input; filePath.c_str() );

[Code] ....

The path to the file is passed as a cpp string and the c version is used to open the file. Do I need to handle this as a special case? It is possible that there could be " as well, parenthesis, etc. ...

C :: How To Delete All Occurrences Of A Char In A String
I want do delete all occurrences of a char in a given string, but I really don't see my error in the code. Here is how I did it:


char *input = "example_string";
int len = strlen(input);
char *new_line[len];
char bad = 'e'; //the one to delete
int i;
int j = 0;


I get segmentation or bus errors.. And I also don#t understand the warning I get. new_line is an array of chars, and I am trying to assign to it a certain char. ...


Editing Refreshable Data Tables From Web
I have multiple data tables that are linked to a site. My issue is that there are breaks in the data every 15 cells with a row that shows the column categories. I locked my top row so I don't need the recurring column categories at all, but when I delete them and refresh the data they reappear.

How to delete these rows? Could I possibly run a macro that deletes the rows upon hitting refresh? Or is there a simpler way? ...

Calculate Percentage Of Individual Months Between 2 Dates And Populate Different Cells With Results
I want to display the percentage of occupancy for each month for condo rentals.

I have columns with dates that represent bookings throughout the year. check in and check out dates to be more precise. (A1 and B1 for example) and I have columns with months Jan, Feb, etc. (C1, D1, etc. for example)

The problem I run in to is that I can calculate the number of days between the dates and the fraction of the year (*12 to get a monthly value, but I fail to understand how I can break that up so that I can populate each month with a correct percentage of the total term.

E.g. A1=1-jan-2014 and B1=20-jan-2014 is an easy one because it only covers 1 month:
formula: =(YEARFRAC(A1,B1,3))*12 gives me 62,47% which I could just use as is for that month.

So far so good, but when the period covers more than one month or when the months overlaps, I don't know how to break the outcome up into the appropriate months to display the correct percentage for each month in its own column.

e.g. A1=1-jan-2014 and B1=20-Mar-2014 gives me a result of 253% with the same formula.
100% for November, 100% for December and 63% for January, which I could somehow formulate to break up over different Months.

But then it gets more tricky. What if the booking starts on a day other than the 1st of the Month?

e.g. A1=5-jan-2014 and B1=20-Mar-2014
The result of the formula (243%) is correct, but isn't sufficient to put the correct percentages for each month in their respective column.

What formula(s) should I use to break down the percentages to match the correct fraction of each individual month?

I attached an example of what I have so far for your review : test.xlsx‎ ...

How To Count (Equal To) Signs In A Row With Arguments
I'm creating an Excel sheet with statistics for a yearly salary review.

In the document that the managers will fill in there is a column for the employees performance (+, = or -).

I want to use this to compare how much salary raise employees has gotten depending on their performance rating. This is all fin with the + and - just using the regular countifs formula, but when it comes to the = Excel refuses to count them? ...

Selecting A Range Using VBA Code
I have attached a spreadsheet...I'm trying to select Range A1:N16 using VBA code...


When I use this code is only gets A1:N6...: is there anyway to get it to select the range all the way to the end of the data. I tried CurrentRegion and some other stuff but can't get it to work.: The range may go upto line 500 or 3 I just never know. ...

For Statements For Multiple Variables With Similar Names
Basically I have a list that user can select up to 6 values from. I have set them as individual strings.

Public IH1 As String
Public IH2 As String
Public IH3 As String
Public IH4 As String
Public IH5 As String
Public IH6 As String

What I want to be able to do is loop through them and do certain actions. How can I get a for statement to do that.

I tried something like that but it doesnt work. How to get it working I need to do tests on the variable strings and I want to be able to reference them and I'm not sure sure how

For i = 1 To 6
If "IH" & i = vbNullString Then
MsgBox "IH" & i
End If ...


Motorola Droid :: SD Card Damaged Notification
I flashed ChevyNo1's SS 4.8 and the Chevy 1.25Ghz Lv kernel and now Im getting a "SD Card Damaged" notification. I rebooted to the same ROM and Kernel, and I recieved the same message. I just Rebooted to Clockwork in order to flash to a nandroid backup that I had, but there were no backups there..... and when I went to choose a zip file and there werent any there... what should I do?? ...

HTC Droid Eris :: Can't Upgrade From Phone To A Samsung Fascinate
I have had my Eris for 11 months. It works fine except for a minor glitch here or there. I found the Fascinate for online which would extend my contract for another 2 years. ...

Android :: Unable To Download .apk Via Web Browser From Drupal Site
my testers on Droids and Nexus Ones (Android 2.0.1 and 2.1) were complaining that their downloads are failing. Since I don't have an 2.0 phone, I tried it out in a 2.0 emulator, and lo-and-behold, it didn't work. The download shows the indeterminate progress for a second or two, then shows "Download unsuccessful".

Based on what I see in the logs, it is apparent that the server is returning a 404 for the download request from 2.0 browsers. I can download to my desktop and 1.6 phone no problem. The only reason I can think of that the server would return a 404 for a request is that for some reason the credentials or cookies aren't being passed by the download process. Logcat shows: http error 404 for download x....... ...

General :: How To Sync Music Between 2 Android Devices Without PC / Laptop
I own a Samsung Galaxy S4 and a Galaxy Tab 3. I want all of the music from my phone to automatically sync with my tablet. I download to my phone directly and don't want to transfer everything manually each time I download a new song.

I see that Google Music can do this but it's designed for music that is stored on a laptop/pc. I'd rather not do it this way if possible as the whole reason I bought the tablet was to avoid carrying the laptop around.

note that the music is stored on the SD Card and not the handset. Not sure it will make a big difference but I thought I would point it out. ...

HTC EVO 4G :: Compass Application Wildly Inaccurate
I tried using Layar 3 different times in 3 different locations, and each time it showed the locations of things to be completely opposite of where they were supposed to be. So I installed a Compass app and (at least in this room) it seems to be about 90* off. Can anyone else mess around with Layar / Compass app and report their findings? ...


$_POST Array - Get All Posted Fields Which Are Extra_something And Return Each
I need some advanced help with a PHP script. I am submitting a form to a script, which has constant fields ie: price, quantity etc. However, I want to submit extra fields, which are called Extra_OptionName. I have a form, which has price, quantity, itemcode, Extra_Colour, Extra_Size as its fields. It is posted to a php script. I need the PHP script to do, is to get all posted fields which are Extra_something and return each, with the name of the field minus the Extra_ bit.

$option1 = Colour
$option1v = Red
$option2 = Size
$option2v = Large ...

Dynamic PayPal Button Generation - Unsecure?
I am just wondering here.. Aren't the PayPal buttons that are dynamically created, very unsecure, and easily "hackable"?

Like so:

<form name="_xclick" target="paypal" action="url">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="HTML book">
<input type="hidden" name="amount" value="24.99">
<input type="image" src="url">
<input type="hidden" name="add" value="1">

Changing the price of the product is straight forward when you can modify the code with, say, FireBug.

The reason I am asking, is because I might/will start developing an E-Commerce kinda system, where the products can be added in that system, without doing it in PayPal. ...

Validate With Zend_Validate_Date On A Time String
I'm trying to validate a 'time' field using Zend Framework. The docs seem to be pointing out that the following:

$tstarttime = $form->createElement('text','t_start_time');
->setLabel('Start Time')
->addValidator(new Zend_Validate_Date('H:i'));

I've tried this but no luck. Any ideas or alternative ways to validate a time in the format of HH:MM (H:i in php) ...

Unix And Windows Php Script Compatibility
I'm a php novice and am developing a shopping cart application for a
client who is hosted on a unix server. The hosting service requires that
each php file have #!/usr/local/bin/php at the top. When I test these
pages on my developer Windows php installation I get errors because
Windows does not recognize the bang command so it is passed on as
content to the php server.

Any suggestions on hiding the first line from windows while still having
unix see this? ...

Magento CE - Discount On First Order?
Is there any plausible way to give a customer a discount on their first order? I imagine it would require the user to sign up for a free account, which is fine. But after that, I'm stumped. The Promotion feature in Magento doesn't cater for anything like this and Google doesn't find any good leads. ...


Trick Lambda Expression In VB
I know in VB Lambda expressions must return a value and can only have one statement. But in my case I just need to execute a Sub that does not return a value. Is there a way to trick it by somehow returning a dummy value yet still call my Sub? If possible what would the syntax be like? ...

Vs2008: Why Form Is Not Opening
I have a project in VS2008.Net3.5 with a Module1, form1 and form2.


Question: At the beginning I am opening form1 from sub Main(). Now from the menu I am openning form2. In form2 I am clicking Done button to hide form2 and go back to form1. It works fine in the 1st trial. Keeping form1 open for the 2nd time, I opened form2 from the menu. Now when I Click the Done button 2nd time it just hides up everything. Form1 does not show UP. It just exits the whole application. But in my btnDone event, I have ...

How To Recognize Time Past
How do I make my program know that time is passing and interact with it? Currently I'm trying to use a method like this:
Imports System.Globalization
Private Sub CurrentTime_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CurrentTime.Tick
Dim date_info As DateTimeFormatInfo = _
ToolStripLabel1.Text = Now.ToString(date_info.ShortTimePattern)
End Sub

That sets the current time to ToolStripLabel1.Text it looks like: 10:25 PM. Then I made another timer, realizing I couldn't interact with Toolstriplabel1.text because the time contains " : and PM", and this timer does this:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
TextBox48.Text = Val(ToolStripLabel1.Text)
End Sub

Basically it takes the value of toolstriplabel1 which would be "10" it gives a variable 1-12 in accordance with the current time. Then I have another timer that handles the main process, and in My.settings I have a variable:

So I was going to use My.settings.12hourspassed as a variable such as My.settings.12hourspassed = My.settings.12hourspassed + 1 - whenever the time (textbox48.text) goes to 12.
Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
If Val(TextBox48.Text) = 12 Then My.settings.12hourspassed = My.settings.12hourspassed + 1
If Val(TextBox48.Text) = 12 Then TextBox48.Text = "1"
End Sub

The problem is that I cant do textbox48.text = "1" because another timer is making it the value of the current time.. So whenever textbox48.text = 12 it constantly does: My.settings.12hourspassed = My.settings.12hourspassed + 1...

I know that this method completely skips an hour and such.. accuracy isnt all that huge. Any way to tick off whenever 12 hours have passed? and if the program is turned off a way to compare the current date with the date the program turned off at to see how much time has passed while the program is off? ...

Get The Color Of The Top-left Pixel Of The Desktop Window?
I need to get the color of the top-left pixel of the desktop window, here's my
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _Private Shared Function GetDC(ByVal hwnd As IntPtr) As IntPtrEnd


But GetPixel always returns -1. I tried to get it to work using different coordinates (1,1 for example) but no luck. Does anybody know what might be the case?

P.S. Is there any alternatives for obtaining the desktop pixel colors? ...

Sorting Listbox Items Numerically In VB?
I need to sort the items in a visual basic listbox numerically, that is, I have a collection of numbers I would like to be sorted increasingly.

I tried to simply use the listbox's Sorted property, but found that it treated the numbers as if they were strings, that is, it would look at the first digit, then the second, etc. to determine the order. That meant that 13 would show before 5, for example.

I thought of dumping all the numbers into an array, soring the array, and then pushing them back to the listbox, but, honestly, I don't know how to go about the sorting. I figured the array would be useless, since the listbox already acts as a pseudo array. ...