AleMonteiro 238 Can I pick my title?

Hi piers, the selector on your attempt to update the ids is not valid.
Try like this:

$('div.innercontainer')
        .attr('set_1', firstset);
        .attr('set_2', secondset); 
AleMonteiro 238 Can I pick my title?

You're welcome.
Just mark as solved when you make it work =)

AleMonteiro 238 Can I pick my title?

Anyway, I played a little with that fiddle and came up with this: http://jsfiddle.net/L4nqhudr/1/

Is that what you want?

AleMonteiro 238 Can I pick my title?

I didn't understand much of your problem... If the jsfiddle does what you want, you can just change it for update 'color' instead of 'background', it should work normally for words.

AleMonteiro 238 Can I pick my title?

What better way to learn than to run apps and see their code?!
Every Android API version has a project name APIDemos, in there you'll find a tons of activities that uses almost every function available in the Android SDK.

Apart from that, what you need to learn depends on what you want to build. I mean, I could post a link to an Google Maps tutorial, but are you going to use Google Maps?
So, before reading tons of tutorials, think of something you want to build and then search the tutorials for it.

Good luck.

AleMonteiro 238 Can I pick my title?

eetigu, just adding IsNull to your own logic it would be something like this:

SELECT 
    SUM((IsNull(receiptDetails.retailprice, 0) - IsNull(receiptDetails.purchaseprice, 0)) * IsNull(receiptDetails.itemcount,0) ) + 
    ((IsNull(customerReceiptDetails.retailPrice, 0) - IsNull(customerReceiptDetails.purchasePrice, 0)) * isNull(customerReceiptDetails.itemCount, 0))
    As Total 
FROM 
    receiptDetails,customerReceiptDetails

And as Jim said, you can use COALESCE instead of IsNull.
The basic differences are: IsNull works only with 2 arguments and the returned type is the same as the default value(int for 0 in this case).
While Coalesce can be used with any number of arguments(it returns the first non null value) and the returned type will be that of first the non null element.

For further explanation when to use IsNull or Coalesce, here's a good resource: http://sqlmag.com/t-sql/coalesce-vs-isnull

AleMonteiro 238 Can I pick my title?

Hi Rustatic. The .NET Framework doesn't allow you to do it directly, but you can add an 'Hook' using User32.dll.

Here are some resources that should walk you trought it:
http://support.microsoft.com/en-us/kb/319524
https://sim0n.wordpress.com/2009/03/28/vbnet-mouse-hook-class/

AleMonteiro 238 Can I pick my title?

Hi all. This is somewhat the equivalent of .NET String.Format(String, Args);

Usages:

'Hello {0}'.format('DaniWeb!');

String.format('{0} {1} {2}', 'Hi', 'Again', 'Good Fella');

String.format('Hello {prefix} {name}', { prefix: 'Sr.', name: 'HeyHeyHey'});

I know there's lots of String.formats out there(some simpler and some more complex), but this is the one i've been using for the past years and it works really well for me.

Remarks: I didn't write this from scratch, couple years ago I put together a couple of simpler sinnepts to make this one. But I couldn't find the sources to give the deserved credits.

Hope it may be helpful.

Cheers!

JorgeM commented: very nice! +12
AleMonteiro 238 Can I pick my title?

altjen, I don't have much more to explain. I never used NSIS and I've only used ClickOnce once, but it's pretty straight forward. If you can install software with 'next next' you can publish it with ClickOnce.

AleMonteiro 238 Can I pick my title?

I can give you, but i'm not logging on much.

But next time use private message to ask for someone contacts =)

In anycase, in my opnion the best way to get well tought and written help is in here.

AleMonteiro 238 Can I pick my title?

Sure do, with NSIS you can program basically anything you want during the setup, and it already has a lot of plugins. I think you'd need this one: http://nsis.sourceforge.net/Check_online_for_Updates

AleMonteiro 238 Can I pick my title?

I think the easiest way is to do it with ClickOnce. You will need an FTP to publish the app in, and an HTTP so your users can download it.

Each time the app launches it'll check for updates on the same path it was downloaded from. So you can just publish another version and relax.

ClickOnce it's really easy to use: https://msdn.microsoft.com/en-us/library/31kztyey.aspx

If you want more control and are willing to learn it, I never used, but heard good things about NSIS: http://nsis.sourceforge.net/Main_Page

AleMonteiro 238 Can I pick my title?

Oh my... I must be getting blind!! Really didn't notice it at all. I've been thinking about this for days and checked a lot of pots! =(
Sorry! ^^

AleMonteiro 238 Can I pick my title?

How do you publish your application?
If you use the Visual Studio Wizard to publish it online, ClickOnce will handle updates for you and your users.

About the connection string and settings, you can just save it in another file(that will not be overriden) and the next time your app launches you can check if that file exists, read it and update the real config file.

AleMonteiro 238 Can I pick my title?

Hi Suzie, It's nice that you decided to focus on a language, and it really saves time when you already got a lot done. But "base classes" are just the tip of the iceberg if you really want structured and reusable code.

Just a quick example of why, in my opnion, base classes are not enough: Imagine that you create an base class that adds DataBase and Log functions to all your WebPages. What happens when you need to create a Windows Form, WPF or Console app? Or even a WebService?

So, before the base class, you need to create your libraries or choose open source ones, and I'd even say: you need both.
Then, you can create base classes that implement those libs in a easy to use fashion way, so you need to write even less code into your custom projects.
And you can go even further by creating templates that already use your base class and alrady display the code that you usually customize in your projects.

I don't know the opnion of anybody else on this, but when using Open Source or 3rd party libs I usually create an class to make a "proxy interface" for it, so it's easier to update it if there's a certain revision that needs code ajustment or even if I decide to change the lib for another one later.

Given my opnion, this is basically the current set that I've been building and using for the last couple …

ddanbe commented: Good opinion +15
AleMonteiro 238 Can I pick my title?

Personally I prefer a tool like Quartz, but you can use a regular timer.

Does Quartz works normally with ASP.NET? I mean, if on Page_Load I set up a timer for 30 seconds, will it be triggered even if the HTTPResponse has already ended? Or it does not let the response end?
Just curious ^^

AleMonteiro 238 Can I pick my title?

I don't think you'd wanna all this trouble, but the only time I worked with chats I ended up creating an XMPP server with Asterisk(Open Source).

It already has those 'Sent, Recieved, Read' status for the messages.
And if you wish you can enable SIP accounts for audio and video calls.

If you got an XMPP server, there's plenty of JavaScript clients ready for use.

The bad side of this implementation, it's the hard work. The server setup is not hard, but it can be trick to enable some codecs for video and audio. And you'd probabbly have to integrate your site account manager with asterisk, I mean, when a new user is created on your site, you'll have to create an XMMP account for him at Asterisk.

Good luck =)

AleMonteiro 238 Can I pick my title?

Hello all.

Today when viewing a post with replies there's two displyed fields that deal with time: Discussion Span and Last Update.

However, when viewing a post without replies yet, there's no display of the date that the post was created.

Maybe I'm just blind and couldn't find it, if that's the case please show me the directions.
But if it really doesn't show, I think it should.

Cheers!

AleMonteiro 238 Can I pick my title?

This is the basics for setting stroke color:

directionsDisplay = new google.maps.DirectionsRenderer({
    polylineOptions: {
      strokeColor: "red"
    }
  });

 directionsDisplay.setMap(map);

 directionsService.route(request, function(response, status) {
    if (status == google.maps.DirectionsStatus.OK) {
        directionsDisplay.setDirections(response);
    }
    else
        alert ('failed to get directions');
 });

But I guess this will set the color for all routs bound to this directionsDiplsay.
Maybe you can create multiple displays.

AleMonteiro 238 Can I pick my title?

To see the real error, you could use:

try
{
    ...
}
catch(Exception ex)
{
//If the message failed at some point, let the user know
lblResult.Text = "Your message failed to send, please try again. Details: " + ex.ToString();
}
AleMonteiro 238 Can I pick my title?

Thanks man! It's seem really usefull. I'll tryit sometime.

AleMonteiro 238 Can I pick my title?

Did you try in an real android device?
For me, even without graphics, simulators were always laggy and slow.

About the graphics itself, I can't say much cause I've never used it.
Good luck.

AleMonteiro 238 Can I pick my title?

It depends in how you organize your uploads. If they're already in year/month folder you can only list them.
If they're not organized, you need to get all the dates of the files to create your list.

Maybe those can help you:
http://php.net/manual/en/function.scandir.php
http://www.sitepoint.com/list-files-and-directories-with-php/

AleMonteiro 238 Can I pick my title?

You can just use the MultiLine option for the TextBox. It'll become like a textarea.

AleMonteiro 238 Can I pick my title?

You can create a personal web site, a company web site, a blog or anything that does not require back-end logic.

AleMonteiro 238 Can I pick my title?

I'd go with High Charts.

It's easy and quite powerfull.

AleMonteiro 238 Can I pick my title?

How can you access depends on where will the files be.
If the files were in the same machine, or even in the same network, and the process running your website on IIS had permission to access the folder, it would be quite easy.
You can set a timer and just use new DirectoryInfo(folderPath).GetFiles().

But there's a problem, running timers on ASP.NET are usually for updating the interface.
I think the best option for cleaning folders or sending uploaded files is to have another sofware(could be WCF, Windows Form, Windows Service, WPF) that will do this as an parallel job.
A Windows Form folder watcher is quite easy to do and I'm certain there's lots of examples on google.

AleMonteiro 238 Can I pick my title?

Hey, if you're stuck in understand the phyton, you should try posting in the Phyton forum for help.

Good luck.

AleMonteiro 238 Can I pick my title?

Hi Nyck, I think your schema it's quite good.

Just some remarks: In the table(s) 'Parts Used/Specified' you don't need to have the Part_Name because you already have the Part_id.

Another thing is that you have two tables for used parts (specified and additional). Instead of having two tables for that, you could have only one table with a bit flag 'Specified'.

I'd like to say that I focused on your schema and description. I did not fully analyse the raw data.

AleMonteiro 238 Can I pick my title?

Why can't you open them?
Which error do you get?
Could you open it before and now can't or you were never able to open it?

AleMonteiro 238 Can I pick my title?

Sorry Niloo, my bad. I tought you wanted to know how to install the SQLLite.
About the driver, I never used, but maybe those links can help you:
http://www.pannix.net/713/ubuntu-php-pdo-and-sqlite-a-first-hurdle/
http://archive.gregk.me/2011/installing-pdo-sqlite3-support-on-ubuntu/
http://serverfault.com/questions/32982/how-do-i-enable-sqlite-on-linux-apache-php

AleMonteiro 238 Can I pick my title?

You still can use sockets with VB.NET. Or you can use WCF Services, IIS Hosted Web Sites or Web Pages.
There's lots of ways of making a client server app with .NET;
You could even write files from one place to another, why not? What doesn't kill, only makes you fat.

AleMonteiro 238 Can I pick my title?

Niloo, we're here to help solve problems and give ideas. Not to google for you.
http://stackoverflow.com/questions/948899/how-to-enable-sqlite3-for-php

I don't even use Linux and I knew it was going to be something with sudo app-get.

AleMonteiro 238 Can I pick my title?

You need to do the maths... how much memory does those sites consume in an desktop browser? You can check it out using developer console in most of the modern browsers.
If you know how much memory each browser use to display the site, you can estimate how much memory it would consume in a mobile browser.
This is only a simplification to express some of the concerns.

AleMonteiro 238 Can I pick my title?

The idea you already have. What do you need help with?

AleMonteiro 238 Can I pick my title?

Oh boy, there's so many things that could go wrong...
The jquery plugins could malfunction, they could not support the devices/browsers you're testing, you could have implemented them wrong, some css rule might be interfering with the plugins and etc.

You need to give more info about your problem. Which plugins are you using? How did you implement? Which one gave the best result?

The best way to get quick solutions is to show your problem. It's easier to identify the problem if we can test it our selfs.
Or at least post parts of the code you're using.

About the pixels instead of '%', it could or could not cause the problem. The plugin can get the dimension of the window, calculate and then set it in pixels, but it would be actually some kind of percentage.

AleMonteiro 238 Can I pick my title?
AleMonteiro 238 Can I pick my title?

Do you have the database installed? What DB are you using? MySQL?
If you are new to PHP and MySQL maybe you should use Xampp.

AleMonteiro 238 Can I pick my title?

@Iamthwee, I've tried it once, but I had problems nesting the elements. I was using drag in sort of a tree view, and i wasn't able to make it work at the time.
Maybe I just got bored and gave it up because it was not essential.
Should try again some time.

AleMonteiro 238 Can I pick my title?

The code you posted is not JavaScript nor HTML. What is it? Maybe you should ask in the specific forum.

AleMonteiro 238 Can I pick my title?

Rusty, this workarround will probably only work in Internet Explorer.

AleMonteiro 238 Can I pick my title?

Are you using ClickOnce or Windows Installer?
If you just publish I think it is always ClickOnce, and you can't configure the path, it'll always install in the users appdata folder.

If you want to have a proper setup, you need to create a windows installer.
Maybe this can help: http://support.microsoft.com/kb/821766

Another option, instead of installing, just compile with release mode and copy the release folder. No install, like a zip.

AleMonteiro 238 Can I pick my title?

Centorpe, you current have Windows Form like app.exe, built with VB.NET right? That app.exe can only run at windows with .NET Framework installed. It would probably run at Windows Mobile, but I'm not sure about the new Windows Phone, I think only WPF(Windows Presentation Foundation) apps run there.

Anyway, if you want to make your app accessible for most people you have basically 3 options:

  1. Program a version for each plataform (Windows, Mac, Android, IOS, Linux and etc)
  2. Use meta developomet softwares that genereate codes or executable for various plataforms (I never liked this option, there're lots of plataforms like that but I never used one that worked well for complex apps).
  3. Build an Web App that run in any modern browser.

Option 3 for me it's the best. You create only one app that'll run in allmost any modern browser.

The point is, a web app it's very different from a Windows Form or a Android app. Those two are client apps. With web, you have the server and the client.
So, you could use part of your VB.NET code to create the server side of your web app. But you'll have to create a new interface with HTML, CSS and JavaScript.

You also must bear in mind that in a browser you won't have the same access to the client's machine that you would have with native apps.

If it seems a good option for you, just google VB.NET Web application to get started with it.

AleMonteiro 238 Can I pick my title?

Why can't you log in? What error do you get?
Can you log in from a browser in your desktop/notebook? Can you log in from a browser in your mobile?

AleMonteiro 238 Can I pick my title?

How did you installed you app in the user machine? Usually the app config file would be at the root folder of the installation, right beside the app exe.

Anyway, that's not a good distribution concept. If you need to change the DB connection for each client, you should make your app do it.

AleMonteiro 238 Can I pick my title?
AleMonteiro 238 Can I pick my title?

Yeah... it's kinda hard to understand too... I didn't.
Can't you post your classes or at least the methods you're talking about?

AleMonteiro 238 Can I pick my title?

I'm not sure... but maybe this could do the trick:

SET @session=0;
SELECT  DISTINCT  @session:=@session+1, company_id, user_id 
FROM chats
ORDER BY created_at
AleMonteiro 238 Can I pick my title?

Hi Niloo.

Apart from the language, there's much to be done before start coding.

A CMS can become a monstruous project. So, the first thing I'd do would be to list down all the functionallities that you'll implement at first. 'Simple' doesn't cover it so well.

With the list at hand you can start to build your database schema, to hold all the info you'll need.

Now, with a list of functions and the basic db schema, you can plan your application architecture. It will be ajax based? The server side will be Object Oriented? What's the interface will look like? The interface will be template based? How the editing interface will look like?

With the answers to a few of that questions and a lot of others more, you'll have a clear picture of what you'll need to code. If you don't, you'll at least have enough info to ask for specific help.

If you're in doubt only about the PHP, specially if you're using MySQL, there's lots of projects that genereate PHP CRUD Classes from DB Schema. I guess a couple of them might use PDO. But I'm not sure, it's been a while since I coded PHP.

Good luck.

diafol commented: Good advice +15
AleMonteiro 238 Can I pick my title?

Panjiasmara, as defined at http://www.w3.org/TR/CSS2/page.html
the @page rule don't have a padding property, only margin and size.

If you really want that space, you'll have to use margin and fix the logo another way.