« first day (2588 days earlier)      last day (1730 days later) » 

5:40 AM
i have a question regarding anyone knows jquery here?
 
 
1 hour later…
7:07 AM
morning
 
7:55 AM
morning brother.
 
@ARr0w sup man?
 
working with javascript.
you?
 
@ARr0w trying to fix an issue with that codebase
 
@AndyK that's our life in a nutshell
 
@ARr0w yes, not sure to enjoy that
though
 
8:00 AM
@AndyK its fun when its new and challenging and organized, not when its a junkyard.
 
@ARr0w organized,the missing word
 
welcome @JackBashford
the reason i asked you to join is to ask you something regarding my asked question
 
is it me or before no one was coming to this room and now plenty of power users too?
 
@JackBashford this is what i have made, the  barchart method was quiet big so i removed the code from it.
   var MonitoringTool = function (selector) {
        var elements = document.querySelectorAll(selector);

        if (elements) {

            return new D3Chart(elements);
        }
        return elements;
    }

    function D3Chart(elem) {
        this.BarChart = function() {};
    }
and i'm able to call it as MonitoringTool("#control").BarChart();

as per your exact guidance, but when i made the return type sort of dynamic
it is throwing Uncaught TypeError: MonitoringTool(...).buildBarChart is not a function
 
8:47 AM
@AndyK i just invited him because i needed some help regarding javascript
he left though :(
 
@ARr0w damn
 
9:37 AM
A problem has been resolved before it was raised...
 
Hi
 
@萝莉w what problem
@Code4R7 hi
 
Is it possible to have user roles in postgres per database? I've created separate databases, and connected to them separately. But after the user accounts had been created per database, they are present in both databases...
 
@ARr0w WHERE TEXT LIKE '%abc/2%' can get a result with abc/2*, * means a number.
 
9:53 AM
'%abc/2%' means get any text that has this part matches in it consecutively
for e.g:
yourNameAbc/2Can'tUnderstand = matched
itsStillOkay/2We'llCallYouAbc = Unmatched
 
It isn't possible.. I'm sent back to the drawing table
 
@Code4R7 your database suppose to be "single" instead of distributed databases

that database should carry different schemas (modules)

and each schema should carry tables accordingly
when you query you do mention schema before table name, such as:
select OmgWhat from dbo.TableName
here dbo is schema
you could create a schema and name it UserModule
and create tables on this schema like
UserModule.Users, UserModule.LoginHistory etc...
@Code4R7 am i making sense to you?
 
10:22 AM
Yeah. Also the manual is clear: CREATE ROLE "adds a new role to a PostgreSQL database cluster"
And: "A database cluster is a collection of databases that is managed by a single instance of a running database server."
So roles are shared across multiple databases by design
 
Hi, Need some help in MySQL
I am in a situation where I have to insert a new record only when the previously inserted record is not same as the new one.
Is there anything similar to INSERT ON UPDATE, but only the previously inserted record is considered instead of checking uniqueness in the whole table?
 
If i insert (1,"hello"), i have to check if that is the last row in the table or if it exists?
 
For example, I have a table SERVERS with columns SERVER_ID, COMPANY_ID, STATUS, INSERTED_TIME & LAST_COMMUNICATED_TIME

Unique key is set on (SERVER_ID, COMPANY_ID, STATUS).

Initial data is as follows,

|---------------|---------------|-----------|---------------|---------------------------|
| SERVER_ID | COMPANY_ID | STATUS | INSERTED_TIME | LAST_COMMUNICATED_TIME |
|------------------------ |-------------------------|------------------|-------------------------|-------------------------------------------|
Now, when I try to insert the record (1000, 99, 0) instead of inserting a new value, I want to update the last_communicated_time for the existing record.

But, when I try to insert (1000, 99, 1), I want to insert a new record to the table.

How can I achieve this?
@Zulatin I want to check if "hello" is the last value inserted for "1". If yes, then just update the recent time in another column. Else, insert a new record
@Zulatin "hello" could have already present in the table for "1". But, new record should be inserted only when the previously inserted record and the new record are different
 
10:50 AM
I mostly work in sql server, but it seems like i would use merge to update that way - dont know if thats the same in mysql
 
 
1 hour later…
11:58 AM
@Zulatin will check that option in MySQL. Thanks!
 
 
3 hours later…
2:47 PM
Hi Team, How to update the multiple roles to single db user in azure
like mentioned in theimage
 
 
3 hours later…
5:45 PM
@DeepikaMasilamani INSERT ... ON DUPLICATE KEY
@ARr0w Thanks for the feedback, I fixed the issue by configuring RLA.
 

« first day (2588 days earlier)      last day (1730 days later) »