Home » Web Development » Page 2
i need to print the sum of counters of unread note for more than one if i have 2 or more person
26/4/2016 6:52 am by kranky in Web Development

this code shows to me every student that do not read the notes so I need the counter of these unread to print it how can get the sum of all unread notes ?

 $query=mysql_query("SELECT * FROM students WHERE
echo'<td><b>'.$r['first_name'].'  '.

Android sqlite database query with the columns needed taken from a String[]
26/4/2016 6:52 am by soulcougher73 in Web Development

I have string array with columns I want to select:

String[] columns = {"col1", "col2", "col3"};

The columns might change in the future, but will always be a subset of available columns.

I cannot find a SQLiteDatabase API that lets me pass this array as columns. The only solution I have so far is to just string join the columns with ,<

Trying to post a variable from js to php within a if clause
26/4/2016 6:52 am by glenn1 in Web Development

I am trying to post a variable within a if clause, but the php document is not receiving the variable. Here is some Code:


if(data.details.payment_type =="sofo")    {
    var orderid = data.details.order_id;
    $.post("LinkToPhpDocument.php", { orderidvalue: orderid });



Data Binding for alternative layouts
26/4/2016 6:52 am by Ohio in Web Development

I have faced with an issue with data binding for different layouts. I have layout file for different orientation. For portrait mode:



Android: ThumbnailUtils.createVideoThumbnail return black bitmap
26/4/2016 6:52 am by Colin Henry in Web Development

I am dealing with the thumbnail in Android. Even though I use the function ThumbnailUtils.createVideoThumbnail provided by Android, it gets black bitmap.

I start my research and find out some links:
1/ Thumbnail null
2/ Android ThumbnailUtils createVideoThumbnail return black bitmap

Spring Batch Multiple Processors
26/4/2016 6:52 am by swassbac in Web Development

Can we have multiple processors and single writer to write data in two different tables in spring batch

Update Datalist after a Button is pressed in Android
26/4/2016 6:52 am by br4dz in Web Development

I have a list of T-objects. Each of this objects has a list of S-objects. I want to show the List<S>-data. That for I am using nested RecyclerView.

Since I want to change the data of the S-objects at runtime I use EditText to show and edit the data.

When a button is pressed I want to save all c

How to send complex JSON structure from angular to spring controller
26/4/2016 6:52 am by wcf in Web Development

I've a JSON like below in my angular controller, which i need to post to Spring controller.

var items={"A":"aa",
           "C":{"D":"dd", "E":"ee"}

.success(function(data,status,headers, config){

In my

Inno Setup: Do not install subfolder if it exists already
26/4/2016 6:52 am by Greenman in Web Development

I am trying to package everything in C:AppWeb* into an installer.

If the database sub-folder mysqldata exists, then I do not want to replace these files.

This is my Inno Setup script:

Source: "C:AppWebxampp-control.exe"; DestDir: "{app}"; Flags:    
Source: "C:AppWeb*"; DestDir: "{app}"; Flags: ign

Rails - why I'm getting undefined method `name' for nil:NilClass
26/4/2016 6:52 am by teabagbrewster in Web Development

I'm displaying question by categories and each question has its own number. I made it like this(index.html.erb):

<% @categories.each do |category| %>
     <div id=<%= "box#{category.id}" -%>>
        <h1><%= category.name %></h1>
        <% category.questions.each_with_index do |question, i| %>
            <ul class="question-list" s

Tell me how to send the Json request
24/4/2016 9:44 am by Luxembourg in Web Development

I am sending the json request code give the error Is there any way how to send the json request with authentication.this Code give the Error in filenotfound "http://api.seatseller.travel/blockTicket"
//st = json object

       StringBuilder sb = new StringBuilder();  

Web API Controller POST Request LINQ search through String Array
24/4/2016 9:44 am by oferrer in Web Development

I have the following database structure.


Sorry for the horrible MS Paint Work

I am using .NET Framework 4.6.1 Web API Controller using Entity Framework.

My API Controller handles a post request that receives a structure similar to:

copy a const char* into array of char (facing a bug)
24/4/2016 9:44 am by Mexico in Web Development

I have following method

static void setName(const char* str, char buf[16])
    int sz = MIN(strlen(str), 16);
    for (int i = 0; i < sz; i++) buf[i] = str[i];
    buf[sz] = 0;

int main()
   const char* string1 = "I am getting bug for this long string greater
than 16 lenght);
   char mbuf[16];
   // if I use buf in my code it is leading to sp

XML control layout in StackPanel
24/4/2016 9:44 am by slpnshot in Web Development

I have a lot of elements in my XAML code that i need to switch between visible and collapsed in my main code...

I have tried to create a parent of type StackPanel for all those elements. But now it messes up all the child element positions (it scatters them all over the place).

Is there any way to set that the parent does not control the position of the child and on

Cant fetch variable after submitting the form
24/4/2016 9:44 am by rancherlee in Web Development

The variable $role_id1 is not being fetched in $role_id in $_POST['add sub menu']. I want to store $role_id1 in $role_id and insert into database.Afer i click the submit button the role_id1 is fetching the parent menu but after i click add sub menu the role_id is storing 0 at backend.But i want it to store the vale of role_id1 which is being fetched after i click submit.Suggest any solution

Spark Streaming job get killed after running for about 1 hour
24/4/2016 9:44 am by brainhulk in Web Development

I have a spark streaming job that read tweets stream from gnip and write it to Kafak.

Spark and kafka are running on the same cluster.

My cluster consists of 5 nodes. Kafka-b01 ... Kafka-b05

Spark master is running on Kafak-b05.

Here is how we submit the spark job

nohup sh $SPZRK_HOME/bin/spark-submit --total-executor-cores 5 --class org.css.

Link external JS file with freemarker template
24/4/2016 9:44 am by DeadFred in Web Development

I want to link an external java script file with my freemarker template I used the normal <script type="text/javascript" src="test.js"/> but it didn't work , it works only when I use include which is not what I want . I want to use the js file as external one.

What's different from these two functions using send in python
24/4/2016 9:44 am by RoBo in Web Development

I am learning generator in python,here the functions:

import math
def is_primes(number):
    if number > 1:
        if number == 2:
            return True
        if number % 2 == 0:
            return False
        for current in range(3, int(math.sqrt(number) + 1), 2):
            if number % current == 0:
                return False
        return True
    return False

How to open permanent phones gallery through code on a folder
24/4/2016 9:44 am by Al Velella in Web Development

My app is creating a bunch of pictures and I want to open the folder with the user's gallery app so the user can watch, print, share them, or do whatever he likes.

The standard solution:

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
Uri uri = Uri.parse(folder);
startActivity(Intent.createChooser(intent, "Open fo

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .