Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 20 2020 04:05
    @MadLittleMods banned @johnarthur1
  • Dec 11 2019 23:36
    @MadLittleMods banned @gfhkj
  • Jun 13 2019 17:43
    @rostrander_gitlab banned @habibatify_twitter
  • May 06 2019 21:25
    @MadLittleMods banned @amanmahendra00_gitlab
  • Apr 30 2019 15:20
    @MadLittleMods banned @Baranov1D_twitter
  • Apr 27 2019 05:45
    @MadLittleMods banned @zhonghuacx
  • Feb 19 2019 00:49
    @MadLittleMods banned @Whats-In-My-Vape_gitlab
  • Oct 13 2018 17:05
    @InternetUnexplorer banned @akhilreddy4245
  • Aug 20 2018 13:56
    @InternetUnexplorer banned @JMP2DIS
  • Jun 26 2018 09:23
    @MadLittleMods banned @chinedu69931716_twitter
  • Jun 16 2018 16:41
    @InternetUnexplorer banned @mewovi21_twitter
  • Jun 08 2018 02:57
    @MadLittleMods banned @VPB_COM_twitter
  • Jun 05 2018 23:12
    @MadLittleMods banned @LWSS
  • Jun 04 2018 17:35
    @MadLittleMods banned @Dreamboy6668_twitter
  • Jun 04 2018 17:34
    @MadLittleMods banned @javaaltu1_twitter
  • Jun 04 2018 17:33
    @MadLittleMods banned @alam110
  • Jun 04 2018 17:33
    @MadLittleMods banned @MixedVideo_twitter
  • Jun 04 2018 17:32
    @MadLittleMods banned @Hakmabhai1_twitter
  • Jun 04 2018 17:32
    @MadLittleMods banned @raza_shahjad_twitter
  • Jun 04 2018 17:32
    @MadLittleMods banned @simarjeetsohna_twitter
Julian Gonggrijp
@jgonggrijp
Happy new year everyone!
HuluCder
@HuluCder
asd
Siemienik Pawel
@Siemienik
hi everyone :)
Could I please you to recommend me nodejs model-based framework (model based: for giving model generate admin, restapi, graphql etc) ?
stanliwise
@stanliwise
Hello everyone I am to develop a marketplace, should I use ORM or just use plain mysql query for my database?
1 reply
stanliwise
@stanliwise
i mean database query
Siemienik Pawel
@Siemienik

I've released the alpha version of spreadsheet files importer cli: sxi. More details may be found on the package readme:
https://github.com/Siemienik/XToolset/blob/master/packages/xlsx-import-cli/README.md

(xlsx-import-cli is part of XToolset - set of high level api tools for XLSX files).

Any feedback welcomed, any stars loved :heart: .

1 reply
@stanliwise I answered you on priv message
CRYZAL
@midhulms
how to change a background color of a row which contain a specific word please help i am beginner
addPageContent: function(data)
{
// FOOTER
var str = "Page " + doc.page;
if (typeof doc.putTotalPages === 'function') {
str = str + " of " + totalPagesExp;
}
var xOffset = (doc.internal.pageSize.width);
doc.setFontSize(8);
doc.setFontStyle('normal');
if(y=="l")
doc.text(str,xOffset-120,120);
else if(y=="p")
doc.text(str,xOffset-120,120);
doc.text('Printed Date: '+today, 45,120);
doc.page ++;
}
});
}
var res = doc.autoTableHtmlToJson(document.getElementById(m));
//console.log("res",res);
var clength=res.columns.length;
//console.log("columns.length:",clength);
var fsize;
if(clength>13)
{fsize=10;}
else if(clength>10)
{fsize=10;}
else if(clength>7)
{fsize=10;}
else if(clength<6)
{fsize=10;}
if(PdfType=='Flexible')
{fsize=7.5;}
// console.log("res.columns:", res.columns, "res.data:", res.data, res);
doc.autoTable(res.columns, res.data, {margin: {top: vy+25},pageBreak: 'auto',styles: {cellPadding: 1.5,fontSize:fsize , },fontStyle: 'bold',drawRow: function (row, data) {
currentRow = row;
currentRow.height =30;
var test1=String(currentRow.cells[1].raw);
if (test1 == "undefined")
{
/ count++;
if(count==1)
{
for(var i=0;i<res.columns.length;i++)
{
currentRow.cells[i].styles.fillColor = [255,227,185];
}
}
if(count==2)
{
for(var i=0;i<res.columns.length;i++)
{
currentRow.cells[i].styles.fillColor = [255,193,160];
}
count=0;
}
/
        if((currentRow.cells[0].text[0].includes('Total')) || (currentRow.cells[0].text[0].includes('Average of'))||(currentRow.cells[0].text[0].includes('Minimum of'))||(currentRow.cells[0].text[0].includes('Maximum of'))||(currentRow.cells[0].text[0].includes('Count of')))
{
                for(var i=0;i<res.columns.length;i++)
                {                  
                        doc.setFontSize(10);
                        doc.setFontStyle('bold');
                        doc.setTextColor(0, 0, 0);
                        doc.setFillColor(255,227,185);
                        doc.rect(data.settings.margin.left, row.y, data.table.width, row.height, 'F');
                        var dataval = ($.trim(currentRow.cells[0].raw.innerText).replace(/,/g, " "));
any one please help
Julian Gonggrijp
@jgonggrijp
@midhulms Please put your code in a jsFiddle or a Gist or something like that. Don't post big walls of text in here, it's not readable.
And when you have short snippets of text, use code guards like this:
```js
your.code(here);
```
CRYZAL
@midhulms
ok @jgonggrijp i just want know how to change a background color of a row which contain a specific word
please help
any one please help
CRYZAL
@midhulms

@midhulms

here currentRow is row which given in auto table

var res1 = doc.autoTableHtmlToJson(document.getElementById(m));
var idmm=document.getElementById(n);

        var clength=res1.columns.length;
         var crow=res1.rows.length;

 doc.autoTable(res1.columns, res1.data, {margin: {top: vy+25},pageBreak: 'auto',styles: {cellPadding: 1.5,fontSize:fsize , },fontStyle: 'bold',drawRow: function (row, data) {
        currentRow1 = row;
                currentRow1.height =30;

if((currentRow1.cells[0].text[0].includes('Total')) || (currentRow1.cells[0].text[0].includes('Avg'))||(currentRow1.cells[0].text[0].includes('count'))||(currentRow1.cells[0].text[0].includes('Min'))||(currentRow1.cells[0].text[0].includes('Max')))

{ 1 for(var i=0;i<res1.columns.length;i++) {

                          currentRow1.cells[i].styles.fontStyle = "bold";
                          currentRow1.cells[i].styles.font = "sans-serif" ; 
                          currentRow1.cells[i].styles.fillColor = [243,205,204];                 
                          currentRow1.cells[1].styles.columnWidth="wrap";
                          currentRow1.cells[1].styles.FontSize=30;

                          }

}

},columnStyles: {0: {columnWidth: columnwidthrgroup},},});

got it
i just take all cell in that row thats easy

i just take all cell in that row thats easy
Fintan Moloney
@Josebuendia
Do you need a specific program to connect to a server & its logs? Following this: https://youtu.be/sz_dsktIjt4?t=90 but can't manage to connect to the server over WSL.
Bhupesh25
@Bhupesh25
I have empname and salary column in mongo table and i want to get top five highest salary getters from this table with mongo query.
Aman Agnihotri
@IamNG
getUsers() {
  const fetchPromise = fetch(apiUrl);
    fetchPromise.then((response) => {
  return response.json();
}).then((users) => {
  return this.sharableData = users;
})
}
How can I share this data in my component ?
I am fetching data with promise and I want to use this data in my another component???
javed
@javed01_gitlab
Hi all
There has an issue in code due to eslint can someone help me because I am a beginner.
Julian Gonggrijp
@jgonggrijp

@IamNG If you meant to ask why you can't do

let x = getUsers();

then it's because promises are "viral". Once something happens inside a promise, you always have to take it out with a promise. So you'll have to do

getUsers().then(x => doSomethingWith(x));

or

let x = await getUsers();

Keep in mind that the latter option is only available within an async function, which must always return its result inside a promise. There is really no way to escape promises.

@javed01_gitlab :point_up: 7 januari 2021 19:53
Please ask a question and make sure to include details about the situation you're running into. We can't read your mind.
Shekhar Ramola
@shekharramola
@IamNG may be return the promise as it is and then in the component access the data using .then
Shvetal Gamit
@grshvetal
@jgonggrijp hey sorry for replying late, as only today I have opened the Gitter, but thank you very much!!
Shekhar Ramola
@shekharramola
how do I fix this error? I already put the question mark for the undefined property, not fixed though.
image.png
Julian Gonggrijp
@jgonggrijp
@shekharramola Looks like current is defined but current.description is not. In that case, you can safely assign description.en, but it will end up being undefined, which is probably what database().ref().update() is complaining about.
CRYZAL
@midhulms
how to do row grouping with out group last 4 rows which shows total max avg but in my code group entire table include these rows .please help how to group only my datatable rows ?
waseemosama99
@waseemosama99
This code does not execute properly. Try to figure out why.
function multiply(a, b){
a * b
}
help me
Julian Gonggrijp
@jgonggrijp
@waseemosama99 You're missing a return.
Shekhar Ramola
@shekharramola
Is there any way I can avoid nested loop here?
   if (adGateMissionToDelete.length > 0) {
      const refsToUpdate: any = {};
      for (const firebaseId in adGateMediaRawData) {
        const current = adGateMediaRawData[firebaseId];
        for (const missionToDelete of adGateMissionToDelete) {
          if (current.id === missionToDelete.id) {
            refsToUpdate[`partners/adGateMedia/${firebaseId}`] = null;
          }
        }
      }
    }
Julian Gonggrijp
@jgonggrijp
@shekharramola If adGateMediaRawData[firebaseId].id === firebaseId then yes, you can avoid having a loop within a loop.
Shekhar Ramola
@shekharramola
@jgonggrijp no, they are different. id is inside firebaseId..
it is like
firebaseId - {
id,
....
}
Julian Gonggrijp
@jgonggrijp
@shekharramola In that case you can replace it by two loops where one runs after the other instead of inside the other. This improves the complexity from O(N^2) to O(N log N) in Firefox or O(NK) in other browsers, with K the average number of characters/digits in missionToDelete.id.
You can do this quite elegantly with Set and a little bit of Underscore:
Julian Gonggrijp
@jgonggrijp
const idsToDelete = new Set(_.map(adGateMissionToDelete, 'id'));
_.each(adGateMediaRawData, function(current, firebaseId) {
  if (idsToDelete.has(current.id)) {
    refsToUpdate[`partners/adGateMedia/${firebaseId}`] = null;
    // Maybe you want to do this instead:
    delete refsToUpdate[`partners/adGateMedia/${firebaseId}`];
  }
});
Gabriel Cursino
@gabrielcursino
Marcel Noack
@marcelnoack
I don't know if this is the right place to ask this question but I didn't find any better place to do this, so: I am going to write my Master's Thesis in a couple of months and I want it to be in the web development sphere. So far I only have vague ideas to do something with 'Web Assembly' or something about 'Web Accessibility' but I still don't have any precise topic that is 'scientific enough'. Of course some type of prototype will be built anyway, but if any of you guys have some interesting inspiration or even some experience writing a scientific document in that ecosystem I would highly appreciate it. Thanks in advance
Julian Gonggrijp
@jgonggrijp
@marcelnoack I'm a scientific programmer and I write web applications, so in theory, I know the right kind of thing to possibly answer a question or two. But it all depends very much on what you're interested in. WebAssembly and accessibility are completely different topics. What study program are you inrolled in and what is your supervisor's specialism?
Marcel Noack
@marcelnoack
@jgonggrijp So, I am enrolled in business informatics and my preferable supervisor's specialism is web engineering. I am actually interested in both topics but those are just the two which I thought of first. I haven't done anything related to WebAssembly yet but I know it's purpose, what it is and what it does in general. I still have a couple of months before I am actually going to start writing the thesis, so this might be a good time to do some practice and research (at least that's what I think). I know a little bit more about web accessibility but I find it hard to think of a concrete research topic for the thesis. If it helps you, the partner company where I am writing my thesis is coming from an engineering and business perspective (CAD, SAP) but they are very open regarding my topic of choice.
Julian Gonggrijp
@jgonggrijp

@marcelnoack One thing that comes to mind with regard to accessibility is to perhaps take an open source web application as a case study. You could explore the application, interview users about their experiences, identify usability issues, try to fix those issues yourself, interview users again to evaluate and then draw some conclusions at the end. Depending on how much time you have, of course.

WebAssembly has mostly performance as its selling point. Perhaps you could critically evaluate this; given that JavaScript is already heavily optimized in modern browsers and that modern computers are absurdly fast, does WebAssembly add any value outside of gaming?

Those are just some ideas. I hope I could inspire you a little!

Marcel Noack
@marcelnoack
@jgonggrijp Yes, that definitely helps me. Thank you very much!
Julian Gonggrijp
@jgonggrijp
@marcelnoack Welcome!
Mehdi Rahimi
@matthias1999
How much amazing
this place
emilymmm
@emilymmm6_twitter
Hello guys, I made a project Iconify. It’s an app icons generator. It can create a whole set of icons in various sizes for iOS, Android, Flutter, React Native, Cordova, Web APP, macOS, iWatch, Windows Phone and Quasar. It’s apk downlad for android was just released and this is my first app using flutter. https://www.iconify.pro/ check it out. Hope you like it. It is also available go Google Play Store https://play.google.com/store/apps/details?id=com.focalhot.iconify