i want to send request on Https so do i need to install the SSL certificate as the steps are given for apple push notification
please help me i am new and i have never worked on OpenSSL
In the HTML below:
<a href="link1.php">1</a><a href="link2.php">2</a><a href="link3.php">3</a>
How do I extract link1.php,link2.php,link3.php and push them into an array using regex? (There could be N number of <a> tags in the text)
Is there any way to stick child button element to bottom of parent element when number of child elements vary?
Parent element is fixed height, and could be scrolled vertically in case of child overflow. In that case, button should be at the end of child list, but in case there is no children, or children size don't push parent element to overflow, it should be at bottom of parent element.
Is there pure css solution for this?
Thanks
I have an application containing a variety of view controllers linked together in different ways (Welcome Browse Preview OR Browse Preview OR Settings Splash). The first view controller is presented modally using a navigation controller from a main controller, then the next set of view controllers are added using pop and push.
This works correctly, but I need to be able to define my 'UINavigationBar' and 'UIToolbar' within interface builder, so they still work as expected if they are presented without using a navigation controller. Is this possible? Currently I get this if I try:
I have an array of array in which each array is like:
clusterA gene1 1
clusterA gene2 0
clusterB gene1 1
clusterB gene2 0
I want to produce a file like:
name gene1 gene2
clusterA 1 0
clusterB 1 0
Current attempt:
if (condition) {
@array = ($cluster, $genes, "1");
}
elsif (not condition) {
@array = ($cluster, $genes, "0");
}
push @AoA, [ @array ];
@A0A is my array of array.
I have an array of products that are stored as Strings in this format productname:quantity. The issue I am running into is that if a user adds one product with a quantity of x it is inserted into the array as it should. However, if they then decide to add more of a particular product a new entry is made into the array instead of checking if the product already exists and adjusting the quantity to the new value. oldQty + newQty.
For example this is my array:
["CBL202659/A:1","OUTER9:1","PALLET CARDS:1"]
If I add another PALLET CARDS product it creates a new entry rather than updating the quantity of the existing item to 2.
New array
["CBL202659/A:1","OUTER9:1","PALLET CARDS:1","PALLET CARDS:1"]
I would like the array to end up like this: - updating the quantity
["CBL202659/A:1","OUTER9:1","PALLET CARDS:2"]
Currently this is my code:
I use the split() method to seperate the String where a colon occurs and store the product name and quantity in two seperate variables.
$(".orderBtn").click(function(event){
//Show the order Box
$(".order-alert").show();
event.preventDefault();
//Create the Array
var productArray = [];
//Get reference to the product clicked
var stockCode = $(this).closest('li').find('.stock_code').html();
//Get reference to the quantity selected
var quantity = $(this).closest('li').find('.order_amount').val();
var item = stockCode + ":" + quantity;
var itemCheck = stockCode + ":";
if(quantity == 0){
console.log("Quantity must be greater than 0")
}else{
//If no Cookie exists, create one and add the Array
if ($.cookie('order_cookie') === undefined) {
console.log("CREATE NEW COOKIE");
//Add items to Array
productArray.push(item);
//Add Array to Cookie
$.cookie('order_cookie', JSON.stringify(productArray), { expires: 1, path: '/' });
//If the Cookie already exists do this
} else {
productArray = JSON.parse($.cookie('order_cookie'));//get ref to array
if(productArray.indexOf(itemCheck)!= -1){//It exists so update qty
console.log("EXISTS... updating item: " + itemCheck);
//var index = productArray.indexOf(item);
//var update = productArray[index].split(":");
//var name = update[0];
//var oldQty = update[1];
//console.log(name + ":" + oldQty);
//productArray[index] = item;
}else{//It does not exist, so add to array
console.log("Does not exist... adding new item: " + item);
//Append items onto the Array
productArray.push(item);
}
//Update the Cookie
$.cookie('order_cookie', JSON.stringify(productArray), { expires: 1, path: '/' });
console.log($.cookie('order_cookie'));
}
//Display the number of items in the Array in the Order Box
$('#order_counter').html(productArray.length);
}
});
I suppose the real question I am asking here, is if it is possible to search the array for a subString - containing productname: ??
How to open a text file in android.I am using android 1.5 emulator and eclipse ide.I try to push files to the device emulator.In Eclipse ide android file explorer has the text file and image files in the sdcard.In the Emulator Image files are in the Gallery.How can i see the text file in the android emulator.
I implemented the code to dislay the bar at the top of the stackoverflow screen: http://stackoverflow.com/questions/659199/how-to-show-popup-message-like-in-stackoverflow
What this does is display the div over top of the div at the top of the page. How can I display the new "bar" div and push the others down? Just like StackOverflow does.
I implemented the code to dislay the bar at the top of the stackoverflow screen: http://stackoverflow.com/questions/659199/how-to-show-popup-message-like-in-stackoverflow
What this does is display the div over top of the div at the top of the page. How can I display the new "bar" div and push the others down? Just like StackOverflow does.
Im having a table in which im creating a label dynamically.
'<td>' + '<label for="Name" id = ' + value + '>' + text + '</label></td>'
I want to retrieve the id of the label and I`m doing the following which is not working:
How can I get the Id of the label?
function ReadNames() {
$('#Table tr').each(function() {
NameID.push($(this).find('label').val());
}); }
Hi everyone ..
Iam a absolute Beginner in QT..
i am trying to create window that has only text and one push button when you press it, you will get another window that has menu for program ..
but Unfortunately, i didn't know how can i create new window and connect it with main window!
so, i need to helping you
Hi,
I have a folder for downloads on my server, i want to prevent direct access to that folder so i am makin it pass-protected with htaccess and i will push download with a php script. But i have some questions regarding mkdir and file_exists
Do mkdir and file_exists works good for pass-protected folders ?
and
would i get any error while uploading file to that folder ?
AND
is this a good way of preventing direct access ?
thanks
I've got a server and I want to use Mercurial to coordinate a project. Can I just make a repo, put it on the server, and have everyone else clone it, then push/pull from it? Is there some way to password protect it?
Hi
i tried to implement a servlet with servlet (in tomcat 6) which act as as a proxy (for browser), it takes the parsed url, use apache httpclient to get the result & push it back to the client (browser), with http it works well, doesnt work with https , seems the problem concerns unsupported CONNECT method in servlet-api & servlet even doesn't see the request
is there any solution/workaround for this?
thanx in advanced
How can I call a function once at the end of an each loop.
This alerts 'finished' on each loop, I want it once when the loop has finished.
$(function(){
var imgArr=[];
var lis = $('#gallery li')
lis.each(function(){
imgArr.push(this.outerHTML);
$(this).remove();
alertFun();
})
function alertFun(){
alert('finished');
}
})
Hi
i have a problem with UIPicker, im keeping my Picker in Navigation controller. i want the Picker content to reload whenever the navigation controller push the PickerView.
but the pickerview content maintaining same state in all navigation.. how to change this?
I am looking fr someone to make me two website templates for my site for free.
Here is a quick design of what I want:(Took me 2 minutes in Paint)
http:/ /i50.tinypic.com/33p9aut.jpg (You have to push backspace on the first link to join up the http:/ and the other /)and http://i50.tinypic.com/2qmogoo.jpg
Email me at [email protected] or [email protected] for more information
I am using rails 2.3.16 ruby 1.8.7
For the following line of code I ma getting error as follows:
Code:
ForeignScheduledItem.find(:all,
:conditions => { :foreign_scheduled_item =>
{ :scheduled_items => { :subscription_id => params[:subscription_id] } } },
:joins => :scheduled_item).each { |i| @subscriptions.push(Subscription.find_by_id(i.subscription_id)) }
Error:
ActiveRecord::StatementInvalid (ActiveRecord::StatementInvalid):
Can u please help in this regard.
I have a custom UITableViewCell that loads in a programmatically created UITableView that is pushed from another view onto a UINavigationController, why cant i specify the height of my cells? The other weird thing is that when i push the cell, the didSelectRowAtIndexPath:indexPath method isn't called.
I have a navigation bar which i push 2 navigationBarIems without animation (animate:NO).
I am animating the transition from views, so i don't want those items to animate atomatically. The problem is that when i touch the button from the bar to go to the previous view in the stack, it DOES get animated. How can i change that behaviour?
I would like to have a regular textbox on my form, where the selected text is still highlighted even if you use another control, e.g. push a button.
Does anyone know a way to achieve this (without using a RichTextBox which is not suitable for what I am doing).
Thanks in Advance
I have ComboBox (DropDown one) with 2 items in it ("One", "Onion"). When I type 'on' in combo and push dropdown arrow then the text i wrote automatically changes (item "One" is highlighted in list and text changes to "One").
How to prevent it?