« first day (345 days earlier)      last day (1843 days later) » 

4:10 AM
0
Q: Query on returning locally scoped objects in python

overexchangeBelow is the program that returns function type object adder defined in function make_adder. Below is the program that returns int type object whose value is 2 As per the above two diagrams, I see the difference in return mechanism, int type object locally scoped(in f) is returned as copy w...

 
1 message moved from Python
 
 
1 hour later…
5:30 AM
@yash na bhai today Rum and Rum and sad songs .......
 
1 message moved from ASP.NET
 
 
4 hours later…
9:08 AM
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
string yz=Convert.ToString(en.userid2());
con.Open();
SqlCommand cmd=new SqlCommand("insert into downloads values('"+Label8.Text+"','"+Label3.Text+"','"+TextBox1.Text+"','"+TextBox2.Text+"','"+TextBox4.Text+"')",con);
cmd.ExecuteNonQuery();
SqlDataAdapter sda = new SqlDataAdapter("select * from fileusage", con);
DataSet ds = new DataSet();
sda.Fill(ds);
if (ds.Tables[0].Rows.Count > 0)
{
for (int za = 0; za < ds.Tables[0].Rows.Count(); za++)
 
1 message moved from ASP.NET
 
 
1 hour later…
10:18 AM
gist: Create 9-patches simlar to - (UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets, 2012-12-27 20:46:45Z
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.NinePatch;
import android.graphics.Rect;
import android.graphics.drawable.NinePatchDrawable;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

/**
 * User: bgriffey
 * Date: 12/27/12
 * Time: 2:37 PM
 */
public class NinePatchBitmapFactory {

    // The 9 patch segment is not a solid color.
    private static final int NO_COLOR = 0x00000001;

    // The 9 patch segment is completely transparent.
    private static final int TRANSPARENT_COLOR = 0x00000000;

    public static NinePatchDrawable createNinePathWithCapInsets(Resources res, Bitmap bitmap, int top, int left, int bottom, int right, String srcName) {
        ByteBuffer buffer = getByteBuffer(top, left, bottom, right);
        NinePatchDrawable drawable = new NinePatchDrawable(res, bitmap, buffer.array(), new Rect(), srcName);
        return drawable;
    }

    public static NinePatch createNinePatch(Resources res, Bitmap bitmap, int top, int left, int bottom, int right, String srcName) {
        ByteBuffer buffer = getByteBuffer(top, left, bottom, right);
        NinePatch patch = new NinePatch(bitmap, buffer.array(), srcName);
        return patch;
    }

    private static ByteBuffer getByteBuffer(int top, int left, int bottom, int right) {
        //Docs check the NinePatchChunkFile
        ByteBuffer buffer = ByteBuffer.allocate(56).order(ByteOrder.nativeOrder());
        //was translated
        buffer.put((byte)0x01);
        //divx size
        buffer.put((byte)0x02);
        //divy size
        buffer.put((byte)0x02);
        //color size
        buffer.put(( byte)0x02);

        //skip
        buffer.putInt(0);
        buffer.putInt(0);

        //padding
        buffer.putInt(0);
        buffer.putInt(0);
        buffer.putInt(0);
        buffer.putInt(0);

        //skip 4 bytes
        buffer.putInt(0);

        buffer.putInt(left);
        buffer.putInt(right);
        buffer.putInt(top);
        buffer.putInt(bottom);
        buffer.putInt(NO_COLOR);
        buffer.putInt(NO_COLOR);

        return buffer;
    }

}
 
1 message moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
 
 
1 hour later…
user4202350
11:47 AM
0
A: Same CSS Different Look and Feel

Swapnil MotewarYou should be able to target it with CSS using the :disabled pseudoclass. select:disabled{} For IE, it's only supported in version 9. All other modern browsers support it. In older IE versions you can use: select[disabled] { background-color: blue; } But it only allows you to change the back...

 
12:15 PM
Need some help with this question stackoverflow.com/questions/28277062/…
 
1 message moved from Python
 
12:33 PM
@MartijnPieters Thanks for the invitation
 
@DarkAshelin @SecondRikudo thought she was referring to this: i.kinja-img.com/gawker-media/image/upload/… (which is NOT how it ends :P no spoiler)
 
1 message moved from HTML / CSS / WebDesign
 
user4202350
12:48 PM
@Unihedro Regarding that question....
 
user4202350
Is there any other possibility than changing BG?
 
user4202350
@Unihedro Hi Uni...Any Idea?
 
@ShaU Not unless you use a browser.
 
user4202350
@Hey Uni , I dont want to change the Browser. There are hell lot off dependency are there
 
@ShaU Internet Explorer is not a browser.
 
user4202350
12:52 PM
@Smrita Hmmm... something new ......... Ok You are beatiuful
 
user4202350
@Unihedro Hey UNI. Come one Try to Help... I know IE is waste.. but i cant do much about it..
 
user4202350
-4
Q: Same CSS Different Look and Feel

ShaUI am developing a Web Application using JSP/HTML/CSS for front end. In one of the JSP I am using a Drop-down where I am using below CSS style class: .dropDown { color: #FFFFFF; background-color: #9366B4; height: 2px; width: 120px; font-size: 11px; font-weight: bold; } ...

 
@Unihedro
 
10 messages moved from Java
 
1 message moved from JavaScript
 
1:01 PM
guys I need some help. can anyone tell me how to design a chat window like the one they have in Facebook. That sticks to one corner of the brwser and shows the chats. Need help..
Just tell me this can we transfer binary data using the Google Webkit ? I have heard that it is easy developing chat apps with that but can we send pictures and other binary data ?
 
2 messages moved from HTML / CSS / WebDesign
 
 
3 hours later…
3:37 PM
I watched the 'Maze Runner' movie yesterday. Worst acting ever. One of the guy had super pointy eyebrows like a vulcan; he was a dick and died at the end
 
1 message moved from JavaScript
 
 
2 hours later…
5:48 PM
posted on December 14, 2014 by Gabriel Tomitsuka

Welcome, Everyone has it’s idea for an app. Some of the ideas are pretty amazing. But not everyone knows how to put them to work. Some do also hire programmers and spend tens of thousand of dollars for an idea that simply fails. But if you have the time, you will make it. First, you’ll [...] Read More

posted on December 20, 2014 by Gabriel Tomitsuka

Montreus Official Note UPDATE: This note is available on Painless FAQ & Notes section. For a PDF, click here: http://painless.montreus.com/notes/OfficialNote1.1.1Update.pdf Painless Cloud Version 1.1 was a failure. iOS 7 crash and register bug. We want to say sorry for these problems. It won’t happen again. Version 1.1.1 was just submitted with this change log: Added a [...] Read More

posted on December 20, 2014 by Gabriel Tomitsuka

Hello, Here I’ll explain what happened on Painless V1.1 and why did the issues happen: Painless for iOS uses Xcode 6.1 for development, and we use CloudKit.framework for the Upload Documents function(only available on Painless for iOS 8). The problem was that CloudKit is a new framework introduced on WWDC 14 and available as of [...] Read More

posted on December 31, 2014 by Gabriel Tomitsuka

There’s been an increasing demand for a version of Painless Cloud that doesn’t require a mobile OS. So, we decided to do something new. Montreus is today introducing Painless Cloud Web – Beta. It will take a few days until it gets live and fully functional, but wait and see at http://painless.montreus.com/! Here are a [...] Read More

 
4 messages moved from Teenage Programmers Chatroom
 

« first day (345 days earlier)      last day (1843 days later) »