Posts

How to stop procrastination as a remote developer

    Procrastination is one of the biggest challenges for remote developers.  The comfort of home and being around family can sometimes lead you to focus on things that aren’t related to your job. Before you know it, the day is nearly over, and you’re left feeling unproductive and frustrated. If you’re struggling with this, here are a few key tips that I recommend to help combat procrastination. Let’s dive in! 1. Identify What Makes You Procrastinate The first step is figuring out what’s actually distracting you. These distractions can be small or big, and sometimes you might not even realize they’re there—they just blend into the background. Identifying them is crucial if you want to avoid them. Advice : Use an app tracker on your laptop and phone to see exactly where your time is going. This helps make those invisible distractions visible. 2. Create a Dedicated Workspace When you’re working from home, shared spaces can easily become sources of distraction. It’s important...

Basketball in Peru

Image
The basketball in Peru is growing, thanks to the globalization, this beautiful sport is getting more fans and a lot of young players. History In the 70´s and early 80's the peruvian basketball was at his peak, they won some southamerica championships, and played at the FIBA world cup. In the 90's until 2022, basketball had many problems, the worst was the disaffiliation of FIBA in 2021. Nowadays In 2023 the national basketball federation was reborn. They organized the u17 national championship, the national league which is the most ranked competition in Peru. And they are on their way to get their affiliation to FIBA again. There is still no professional league but They are in progress. So far the best leagues are "Liga de Basketball de Lima" and "Liga de Basketball de Arequipa". To summarize, Peru is a growing basketball nation, they need a lot of support to get a better basketball environment. All the help is welcomed. If you want to know more about peruvi...

Difference between software engineering and computer science

Image
Computer Science vs. Software Engineering: What’s the Real Difference? It’s a classic debate in the tech world. While both majors involve staring at code for hours, they approach the digital world from very different angles. If you’re struggling to decide between the two, here is a breakdown of how they actually function in the real world. 1. Computer Science (The "Why") Computer Science (CS) is rooted in mathematics and logic . It’s less about building a specific app and more about understanding the architecture of computation itself. Focus: Discrete mathematics, data structures, and computational theory. The Goal: To find the most efficient way to solve a problem. For example, a CS major might use Big O Notation to calculate the efficiency of an algorithm: O(n log n) . Career Paths: AI Researcher, Data Scientist, Systems Architect. 2. Software Engineering (The "How") Software Engineering (SE) is a branch of engineering . It applies structured principles to the ...

Help us to build a basketball & volleyball court in Lima, Perú

Image
By far soccer is the most popular sport in my country which is Peru. I like soccer but I really love basketball and volleyball, in my country there are poor infrastructure for these sports, my dream is to have a decent basketball/volleyball court in my neighborhood, It would be wonderfull to have a court like schools in US has, I know is very expensive build and maintain that type of courts. I want to start with a basic court, with a basic board and well painted court. I realized I need first a ground available, lucky me there are lands for sale, each of one 55 thousand dollars of 115m2 (16mx6m), I know I would need 5 of those lands to have a basketball court. unfortunately I don't have enough money, I would like to know how to get help and make the dream of a lot of kids and young people true. I am all ears. my people who love basketball

How important is to have a backup - True Story!

During the production of the movie Toy Story 2, an unnamed Pixar employee was doing some routine data cleanup. They wanted to delete some of their files. So they typed this into their command line: bin/rm -r -f *. But they didn't realize that they were running the command inside the server's root folder. Animators knew something was wrong when the files they were working on started vanishing. They rushed over and unplugged the computer. But it was too late. 90% of the Toy Story 2's files had been deleted. The team was going to have to completely restart the $100,000,000 project. Luckily, one of their animators was working from home after having a baby. She had a 2-week old backup of the data sitting on her desk. After she carefully drove her computer to the office, they were able to restore the database.😌

La revolución y la tierra

Image
Here you can watch online the film "La revolución y la tierra", to be able to watch, you just have to comment on this post and leave your email. And then I'll send you a link to watch the film online. The film is good. There are many historic events that maybe you never ever heard. It's very recomendable.

add header image itextsharp c#

Image
I thought that when you set the margins on ITextSharp document, you set also the margin for the header. but then I realized the margins are just the margins, and there is no headers by default on ITextSharp. In order to add a header in ITextSharp, you have to use PageEvent. And implement the class HeaderFooterFDA2, you can rename that class. To avoid header overlaps your content, when there are a lot of content that break on a new page. You have to set an additional margin on the method WriteSelectedRows(), in my case I added + 70 units. I hope It helps you.

imessage an error occurred during activation [solved]

Image
I tried to use iMessage using my apple id, in order to sync my messages to my mac. I tried on my iPhone and my mac, the same error message: an error occurred during activation, please try again later. Also another message shows up when I tried to sign in on my iPhone: I read all the tutorials that are available on internet, but they just give you tons of steps, and no one suit up for my problem, at the end I reached apple support and they fixed my problem. iMessage and FaceTime have other server authentication so apple need to validate your identity, they asked me some things to do, and finally they enable my apple id for iMessage and FaceTime, so now I can use iMessage with my apple id and It is working on my mac too, I enable iCloud for iMessages and now my messages are sync on my mac and iPhone. I hope it helps.

Git pull origin master does not work

 I just updated my git version 2.28.0 , after that I tried to push my new code. But an error show up. I thought it was something related to my proxy, because my company has a proxy. But at the end I found out it was my password of my proxy user. This is the command to set your proxy on git. Run this command on your git command line (gitbash, etc.) git config --global http.proxy http://user:password@myproxy:8080 My password contained this character #.  So I realized that the new update does not allow special characters, so I needed to change my user password, then finally I was able to pull and push to master. happy coding.😁

Json result maxlength

I had to code a page. On this page there will be a button to download around 12300 registers on a txt file. I got Json result maxlength error, It happens because 2097152 characters its the default maximun. In order to set a new max lenght, just add this line on your json result return object. return   new   JsonResult () {    Data = response,    MaxJsonLength = 86753090,    JsonRequestBehavior =  JsonRequestBehavior .AllowGet }; You can set maxjsonlenght parameter, whatever size you want. But it's recomendable to use int32.maxvalue as max size permitted.

Trying to use an SPWeb object that has been closed or disposed and is no longer valid.

when you use: using(SPWeb oWeb= SPContext.Current.Web) { ..... } this cause the error:  Trying to use an SPWeb object that has been closed or disposed and is no longer valid. the solution: try {    SPSite oSite=SPContext.Current.Site;    using(SPWeb oWeb=oSite.openWeb())   {     .....   } }

File does not get updated on the extranet sharepoint 2013

I have a file in the _catalog folder, I modified the file (It is a javascript file), everythind works fine in the web application but in the extranet does not. I was looking for solutions, but I did not find out anything. after a while one colleague helped me with that. I had to publish the file to a major version. here are the steps. The first step is to enter to system configuration, then click over master pages. The second step is to find out our file, finally click on the arrow and click over the option publish to a major version. I hope it helps you.

not being able to create a web application sharepoint 2013

When you are not be able to create a web application. It can be caused by the shutdown time limit in the central administration application pool. The default time is 90 seconds, that means if there is a connection problem (slow connection) with the content database, the web app will not be created correctly. You will see the content database created but not the site collection, and when you wanted to check their configurations in central admin. you will get an error message. To solve this issue, you have to change the default time limit of the central admin application pool to a big number of seconds. after that change you will be able to create your web app. I hope it could help you.

sharepoint app prompting for credentials

After I have configured the app environment, I set up the needed services and other stuff.Then I was trying to test a sharepoint app. I could not do that. when the app is loading, the prompt for credentials appears, and it continues requesting for credentials. I thought I had made a bad configuration, but not. in some cases the feature loop back causes the problem. It is because of the domain configured for the apps, has the same hostname and the feature does not permit that. The solution is to add a value in the register. all the cofiguration is in this page.  sharepoint app prompting for credentials

Restore a site with a different version sharepoint 2013

When you want to restore a site that was created in a previous version, there are some options to restore the site successful.  You can update the sharepoint version in the first environment and then make a backup. but in my case the first enviroment does not exist anymore. in that case, my option was to modify the .bk file. You can modify the file in a editor, like notepad ++.  In the first line of the file the version is written, so when you change that number of version, then you are be able to restore the site. Important: before make any change on your .bk file, do not forget to make a copy of your file. All steps to make this changes are in this page:  restoring a previous version site .

Wsp does not get deployed sharepoint 2013

In some enviroments the sharepoint service (SPTimer ) is not configured in mode automatic, so when you deploy a wsp. It is never going to get deployed, so you have to run a stsadm command. the command is:  stsadm -o execadmsvcjobs. run that command on sharepoint 2013 management shell. after you deployed the wsp solution.

setting up FBA in sharepoint 2013

I was trying to configure FBA in sharepoint 2013, in a extranet. but for some reason I could not configure it well. I was following all the steps. the thing that I failed was to add the lines of the sql provider and the role manager. I have added differents lines in the service token application services and in the web application itself. notice they have the same lines of code. When they have the same code, the fba would be ready. this is a good page to get the correct configuration:  Configuring sharepoint 2013 FBA . and this is another:  FBA configuration Sharepoint 2013 .

Central administration does not work after cloning sharepoint

After the sharepoint environment was cloned in a new server. the central administration did not work neither the other web applications. I was looking for solutions, I tried to run the configuration wizard and try to connect again the central administration with the configuration database. at the beginning it seemed it worked but not. At the end , the solution that works for me was to create a new central administration and try to replicate all the configurations similar to the production environment. If you want to clone a sharepoint correctly, there are some steps you have to follow. this link can help you.  cloning sharepoint 2013 enviroment .

data attribute retrieve method doesn't work

when yo set data attribute html5 using this way: $('#element').data('some-att-name', value);  it doesn't work to retrieve with this method: $("ul").find("[data-slide='" + current + "']"); so you need use the classic method to add a attribute: $('<li>'+name+'</li>').attr('data-name',name); this note appears in small letters in a stack overflow question.

Routing Pattern PUT

I've been follow a tutorial about node js with express framework and mongo db, http://cwbuecheler.com/web/tutorials/2014/restful-web-app-node-express-mongodb/ , but it isn't complete, it miss put routing pattern, to edit users. this is routing pattern PUT. /* * PUT to updateuser */ router.put('/updateuser/:id',function(req,res){   var db=req.db;   var userToUpdate=req.params.id;   var doc = {$set: req.body}   db.collection('userlist').updateById(userToUpdate,doc,function(err,result){     res.send((result===1)?{msg:''}:{msg:'error: '+err});   }); }); module.exports = router; ... these tutorial use mogoskim to communicate with mongo, it was my way. other tutorial has a complete PUT, (editing user), http://garrilla.logdown.com/posts/192327-rest-follow-up-excercise