Thursday 21 October 2021

Cosas que un foreEach no puede hacer

 siempre he pensado que son igual. hoy he descubierto que hay al mneos 3 cosas que no se puede hacer  con forEach :

1: la palabra "return" no rompe el loop.

 Piensas que el console imprimira 1, 2 y para?

 no

array = [1, 2, 3, 4];array.forEach(function (element) {
console.log(element);

if (element === 2)
return;

});
// Output: 1 2 3 4
 
 

 


Thursday 10 May 2018

Wipro Jobs Scam

I have been looking for job for a while starting early this year. One of the companies that I applied for was Wipro. it started well, although I was suspicious from beginning on the way they responded to my email. and application. their emails weren't professional and they lack proper spelling, grammar and layout. I'm not saying my English is very good but I can differentiate between bad written and professional email.
it starts simple, like your availability, nationality, willing to relocate , etc.
then, they said: "we are happy to progress further, please do the test. follow the link." tests are simple HR bull crap tests, like attitude tests, and stuff.
meanwhile, consider that the professional emails need to have a professional signature, consistent, and nice footer and subject, but it was not like that in this case.
I knew these and I suspected this couldn't be right, but I decided to go along, since I was not employed but any company, and I was doing some freelance jobs.
then, they asked for another test, Written Test, which I did.
after that, they asked to attend a interview session with one of their senior manager in City Office. normal interview, usual questions.
then, they asked to do a programming assignment, which I did. it made them happy. I never turn down any programming assignments.
Then, Audio/Video interview with one of the "senior" programmer.
questions were not technical, as I would have expected. they were what do you do if you're under pressure, how do you handle multiple jobs, etc. nothing technical.
now, here's come the fun parts. so far, they were cooking you up, oiling you, preparing you.
now they say:
 ...emails excerpt .....

Congratulations for successfully completing the recruitment process with Wipro.

You have been selected for IT graduate engineer position. In order to move ahead with offer letter, we need below documents to proceed with formal offer letter.
·         10th year –Marks card & certificate
·         12th year – marks & certificate
·         Graduation – marks card & Certificate
·         Passport & driving license (if available)
.........
I did. 
then it's waiting game, I contacted them and ask what happened? 
they respond with 
......

We shall share offer letter shortly & shall suggest next step accordingly. 
...another 2 weeks passed...
offer should be released by today.
...another 2 weeks passed...
Team is on job & should be shared tonight.  
 ...another 2 weeks passed, and they sent the offer letter with start date setting for  beginning of next month, which was another 3 weeks. 
Meanwhile, I was going to interviews and applying for other jobs, and I got one and they offered me and I accepted that. however, I decided to play along with these guys to see the end. 
remember I'm already in 1 and half month into this
anyhow, the start day was approaching, BUT the a few days before they sent this: 
....

Thnx .. Shall connect further on date of joining & other formalities.. 
who wrote emails like that? thugs? I responded about the fact that joining date is in the offer letter, but he said we have problems. and they will call later this week to discuss. it was Monday. I responded, no problem, looking forward to it. 
they didn't call. I  mailed them, why you didn't call. they called after...yeah, we have problems, we are working on a new project..blah blah... we start in 2 weeks.
 with thick Indian accent. nothing against Indians but i didn't understand a what the heck he is  talking about.
Then this 
Trust you doing good. We need to extend the date of joining to..another 3 weeks.  Since apologies in case this caused any inconvenience to you.


Plz help with some referrals in case you have some of your friends are interested with Wipro.


Thnx
 Then
Due to certain unavoidable conditions, we need to extend your joining date to first week of .next month (another 4 weeks)... Sincere apologies for the inconvenience caused.


Thnx
so now I'm into this for around 3 months. At this time, I just replying things like, "yes, no problem", "excited to start", blah blah. However, I'm already working but I like this game.
I bet 10 bucks that when next date comes they will extend it anther 2 or so weeks.
I'll keep you updated.
The point is don't fall for that and move along. 
update---------
the date came and the time was set for me to show up in their office.
I was in different city working for different company, but i said yes i'm coming. time approaching but I was not there. they called and emailed but no response. then they said why you didn't showed up. no response from me. then i responded, yes, sorry I changed my mind. sorry for inconvenience. regards. 
then they responded we can afford this kind of last minute behviour, which I didn't replied back.

the thing is, maybe my reaction is not professional but how do you react to a company who just hang you by your neck and say things like " another 2 weeks.." on top of past 2 months. 
anyhow, i didn't hear from them and they definitely wont hear from me.
 



Wednesday 25 April 2018

How to access files in "Trash" folders/files, in Ubuntu

I recently emptied my trash folder in Kubuntu 17.10, however I couldn't removed one folder.
after some digging in, it turned out it's permission issue.
anyway, I came across, a same post in ask Ubuntu,
website. It uses TrashCli to do this in terminal.
here is the steps: (you can check the original post HERE)

  • Install trash-cli: $sudo apt-get install trash-cli
  • Put files in the trash with: $trash file1 file2
  • List files in trash: $trash-list
  • Empty trash with: $trash-empty
 

Saturday 27 January 2018

Upgrade Kubuntu 17.04(zesty) to 17.10(artful arc) - upgrade from 17.10 to 18.04

if you try to update your Kubuntu 17.04, you get error in your terminal, i.e. 404.
" The 17.04 repositories have been closed and withdrawn. That is why you cannot reach them". so to upgrade your 17.04 to 17.10.
you can follow this 17.04 to 17.10

i did following steps to achieve that:
  • update the sources list:   ~$ sudo nano /etc/apt/sources.list 

  • replace every 'zesty' code name with 'artful' code name. 
  • zesty is 17.04 code name and artful is 17.10 code name. 
  •  then issue this command at terminal: ~$ sudo apt update | ~$ sudo apt upgrade
  • ~$ sudo apt dist-upgrade | sudo do-release-upgrade 
    i used 2nd and 4th link as a reference.
    rest are easy.
    good luck
    Useful links:
    • http://au.archive.ubuntu.com/ubuntu/ubuntu/ubuntu/dists/ 
    • https://help.ubuntu.com/community/ArtfulUpgrades/Kubuntu 
    • https://help.ubuntu.com/community/EOLUpgrades#SpecificOlder 
    • https://ubuntuforums.org/showthread.php?t=2382832 
 ---------Update----
the same steps can be followed to update from Kubunto 17.10 to 18.04
replace artful (17.10 code name) with bionic (18.04 code name) and rest of the commands, ad you're set.

Friday 16 September 2016

Some MB2-711 Microsoft Dynamics CRM 2016 Installation Exam Questions

a friend of mine recently passed this exam and he gave the some of questions he remembered
there were more question on email configuration and server configuration, here they are:

  • steps to delete a organization from CRM deployment manager? 
  • minimum rights on Active Directory Domain Controller to install MS Dynamics CRM 2016? 
  • hardware requirements on MS SQL SERVER machine?
  • benefits of server-side synchronization, email router, CRM for outlook client? there were questions on these with different combinations
  • questions on browser compatibility?
  • minimum CRM version to upgrade to CRM 2016?
  • if we have CRM 2011 with update roll-up 12, what is the minimum CRM version so we can update to CRM 2016?
  • where should you run bulk-email? which server role?
  • where bulk delete can be run?
  • type of certificates needed for IFD?
  • how to upgrade Report server extension?
  • benefit of froward mailbox?
  • how folder level tracking works? benefits? how to set up? for each individual user or multiple?
  • questions on version of MS SQL SERVER, supported for different CRM versions? what service pack?
  • questions on email router on-premises and CRM server online/on-premises compatibility? versions?
  • version of ADFS for different kind of deployments? 
 Questions from MS training kit
  • Which service handles data imports?
  • which versions of MS SQL Server are not supported? 
  • does MS SQL Server Reporting Services required for MS Dynamics CRM installation?
  • which components will be installed during MS Dynamics CRM installation is they are not installed?
  • what is the default website URL during MS Dynamics CRM installation?
  • What is report Authoring Extension?
  • which type of reports are available if reporting Extension hasn't been installed?
  • reasons to redeploy MS Dynamics CRM?
  • Tasks that cannot be done in CRM Deployment Manager?
  • how to change trial version to licensed version?
  • how to change organization display name?
  • different scenario-type questions on what is the best option when you are doing migration?
  • what is the best option about  existing MS SQL Server 2012, if we want to upgrade to MS Dynamics CRM 2016?
  • when doing upgrade to CRM 2016, which components can be upgraded to newer versions, which one cannot and needs to be uninstall -> install new version?
  • purpose of email correlation?
  • which features are supported by server-side synchronization but not by email router?
  • which deployment are not supported by server-side synchronization?(CRM2016 on-premise with Exchange online)
  • outgoing emails are being processed for all users except one, using server -side synchronization, what could be the reason?
  • working offline with 2 or more organization considerations and limits? 
  • MS Dynamics CRM for outlook is installed on a computer without offline capability, what should a user do to make offline available?
  • what should admin configure to prevent notes on contacts in outlook being copied to CRM?
  • which setup requires IFD?
  • which features are mandatory for enabling IFD?
  • you need to change the account that is being used by MS Dynamics CRM Asynch Processing Service, what to do?
  • after importing an organization, you are not able to create an email server profile to specify a user name and password, what to do?
  • what to do to delete more than 5000 completed system jobs older than 1 year?
 other advice, which you can find on exam description as well:
  • 48 questions, all multiple choice
  • some questions needs you to choose more than one, two or three choices
  • time is more than enough, so don't be anxious or get panic. 
  • book your exam early, don't waste your time read the material, 2 weeks is enough.
  • passing score is 700, you don't need to aim for higher score, just passing that damn thing is enough, unless you are kind of show off person or like high score...
  •  I might add more if i come across more.
  • these are here to give you ideas. i don't seek any benefit from these.they might help or not, so don't get back on me.
  • good luck.
pamador out

Tuesday 8 December 2015

Reverse a String in Java

I recently asked about how to reverse a String using java.
there are couple of ways for doing this.
  1. Using StringBuilder or StringBuffer. former one is the newer and it's common now. you can read more about both on StringBuilder and StringBuffer. they are almost doing same thing.
  2. not using option 1...:)by saying that i mean like traversing the given string, character by character and just save it in reverse order from end toward the beginning. 
 Here is the code for both:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package reverseString;

public class Reverse {

 public static String reverseV1 (String input) {
  StringBuilder reversed = new StringBuilder(input.length());
  for (int i=input.length()-1; i>=0 ;i--) {
   reversed.append(input.charAt(i));
  }
  return reversed.toString();
 }
 
 public static String reverseV2 (String input) {
  String reversed ="";
  for (int i=input.length()-1; i>=0;i--) {
   reversed = reversed + input.charAt(i);
  }
  return reversed;
 }
 
 public static void main(String[] args) {
  
  System.out.println ("\"super\" in reverse (using V1): " + reverseV1("super"));
  System.out.println ("\"super\" in reverse (using V2): " + reverseV2("super"));
 }
}

Hope this helps.

Saturday 11 April 2015

How to resize the root partition in Kubuntu 14.10?

you can resize your root directory in following steps:
  1. back up your data first and always since machines fails and you like your data more than anything
  2. have a bootable usb stick with ubuntu on it. i think i have a post about dual booting, you can check that one out on how to create one or a simple search on internet can help you on that.
  3. restart your machine and boot from the bootable usb you have.
  4. be patient
  5. you'll be presented with a window with 2 option : 1- Try ... 2- Install ... (...) means the name of your operating system, in my case is Kubuntu, however the procedure is the same(almost)
  6. choose "Try ..." 
  7. you'll see the desktop
  8. now,  navigate to "System" and execute "KDE Partition Manager". you might have something a bit different in your version, but look for something similar.
  9. while inside the partition manager, you need to make some space next to your root partition, either side is fine.
  10. then you right click on your root partition and select "Resize/Move".
  11. you'll be presented with a window to extend your root partition to the unallocated space that you created in step 9. it can be on left or right side of the root. 
  12. and that's it.
Some Notes:
  • always back up
  • click "Apply" after each change in Partition manager
  • you can also use GParted". almost same procedure
  • unallocated space must be next to the partition you want to extend. 
  • there are some cases which you might need to shrink you "swap" partition or other partition not next to your "root" or the one you want to extend, simple search can help you on that. it's easy.
  • you might damage your GRUB in the process. don't panic.
  • you need to boot from a live cd or bootable usb and execute some command in shell prompt. here is the link for complete explanation Fix GRUB.
I hope this helps, sorry for not including any images. i just wanted to share my experience.