Posts by Bruno Wego • 1,568 points
92 posts
-
6
votes1
answer218
viewsQ: How can I force a directive to work only if it is within a specific directive?
I am trying to make ngPanelHead, ngPanelBody and ngPanelFoot directives need to be within the ngPanel directive, otherwise an error is presented on the console. I tried with require however it is…
-
2
votes2
answers109
viewsQ: How to fix "dancinha" (Flicker) of icons Webfont when doing page Load?
When re-loading a page the icons of a Webfont are loaded only after loading the CSS and this causes a "little dance" in the text. See below for the unwanted behavior of the icon when re-loading the…
-
3
votes3
answers208
viewsQ: How to resolve vertical centralization bug in Firefox?
The code below works perfectly in Chrome 46, Opera 32, Safari 9, but in Firefox 41 does not work, the element gets stuck at the top instead of being centralized. Run the code below: .o-hero {…
-
3
votes2
answers635
viewsA: How do I change the content of a file within an old commit in Git?
I found the answer in Stackoverflow international, it’s quite simple the process: First go to the desired commit: git rebase --interactive b6f925df^ Then change pick for edit in the commits you want…
gitanswered Bruno Wego 1,568 -
2
votes2
answers635
viewsQ: How do I change the content of a file within an old commit in Git?
I have a file that has undergone three changes and commits have been made for each change, I want to change the contents manually of the first commit to correct an unauthorized mention. Is it…
gitasked Bruno Wego 1,568 -
2
votes3
answers586
viewsA: How to apply CSS to HTML element before and after a text?
I made a small modification in @Chun’s reply that ended up serving exactly what I needed: .i--icon { &:nth-child(1) { margin-right: .5rem; } &:nth-last-child(1) { margin-left: .5rem; } } I…
css3answered Bruno Wego 1,568 -
3
votes3
answers586
viewsQ: How to apply CSS to HTML element before and after a text?
Taking into account the HTML code below, is there any way using only CSS to apply different style to the element i before the text and the other element i after the text? <a href="#"> <i…
css3asked Bruno Wego 1,568 -
3
votes2
answers134
viewsQ: BEM methodology and sub-blocks
I’m having doubts about best practices using methodology WELL, see below an example (example with Jade): nav(class='c-ngroup') div(class='wrap') div(class='row') div(class='col-md--2')…
-
1
votes1
answer34
viewsA: Conditional Tags Worpress for mobile devices
Use the function wp_is_mobile(): <?php if ( wp_is_mobile() ) { /* Display and echo mobile specific stuff here */ } ?> This function is present in Wordpress since version 3.4. See more details…
-
3
votes2
answers1843
viewsA: CSS3: Show a hidden div when doing Hover over another div
Fix a simple example in fiddle how you can do this. See below the example source code: figure { margin: 0; } section { position: relative; width: 400px; } section:hover article { visibility:…
-
1
votes2
answers3506
viewsA: Pop up only once per user - Cookies
I made a very simple example of how to work with cookies saving if the user closes the modal and preventing it from opening again: if ($.cookie('modal') != 'false') { $.cookie('modal', 'true'); } if…
-
2
votes1
answer136
viewsA: How to make the menu go to the top using Bootstrap?
A simple way to add this effect is through Javascript, see the example below: $(window).bind('scroll', function () { if ($(window).scrollTop() > 50) { $('.menu').addClass('fixed'); } else {…
-
2
votes5
answers511
viewsA: Problem with footer on mobile sites
Apply to footer absolute position only at higher resolutions using media query: @media screen and (min-width: 768px) { footer { width: 100%; height: 60px; position: absolute; bottom: 0; } } Another…
-
0
votes3
answers115
viewsA: Vertical side menu up to the thin page
To illustrate a menu nav with height: 100%, created in fiddle a simple example how to do html, body { height: 100%; } main { display: flex; height: 100%; } ul { list-style: none; padding-left: 0; }…
-
1
votes1
answer35
viewsQ: How to make the Kendo UI window component close when clicking on k-overlay?
The company where I work uses the components of Kendo UI and I need to have the window component closed when clicking on k-overley (window backdrop), this component is configured to have modal…
-
1
votes1
answer35
viewsA: How to make the Kendo UI window component close when clicking on k-overlay?
The only way I found to solve this problem was by adding the attribute k-on-activate in Directive with a call to a function in the controller: <div kendo-window="ctrl.window"…
-
0
votes3
answers1652
viewsA: How to start a Django project using virtualenv?
I usually use the Generator-Django to Yeoman. To install it use the command below: npm install -g generator-django Create the virtualenv and activate the: virtualenv myproject --no-site-packages…
-
2
votes2
answers2727
viewsA: Change table users Auth Laravel 5.1
First make table name change at config/auth.php: 'table' => 'users', Add the variable $username to the archive app/Http/Controllers/Auth/Authcontroller.php protected $username = 'username'; To…
-
4
votes1
answer688
viewsA: How to print music sheet music in PDF?
Use the Vexflow to mount the sheet music. With the HTML mounted just generate the PDF. It is simple to use Vexflow, first create the HTML element: <canvas width=700 height=100"></canvas>…
-
3
votes1
answer2348
viewsA: Problem with accentuation when generating PDF with dompdf
First try adding the header to PHP: header('Content-type: text/html; charset=UTF-8') If this solution doesn’t work, edit the file dompdf_config.inc.php: mb_internal_encoding('UTF-8');…
-
1
votes2
answers98
viewsA: SSH on Linux Using Ubuntu
I usually copy the public RSA key from my local computer to the authorized keys from my remote server, so just type ssh user@ip to connect directly. To do this run the command below: cat…
linuxanswered Bruno Wego 1,568 -
-3
votes1
answer306
viewsA: Carousel with 2 slide
Using the Flexslider 2 with only 2 images and containing text inside the image, the result would look like this example: http://jsbin.com/jubodi/4/edit?html,css,output It will be necessary to make…
carouselanswered Bruno Wego 1,568 -
0
votes1
answer82
viewsQ: Local email server with graphical interface
During the development of the applications I need to test the sending of emails, it would be great if I could have a local server with a graphical interface, so just configure my application to send…
-
0
votes1
answer82
viewsA: Local email server with graphical interface
The solutions cited below provide an email server with graphical interface, making it easier to test e-mailing applications: Mailcatcher Maildev Fakesmtp I hope I helped :D…
-
2
votes1
answer199
viewsQ: Is there any tool that makes it possible to create an API using my database?
I have a database all modeled and with a mass of data, now I need to develop an application that provides through a REST API this database. I have two development fronts, the frontend and the…
-
3
votes1
answer199
viewsA: Is there any tool that makes it possible to create an API using my database?
The solution to this problem is postgrest. This tool makes the Postgresql database a complete REST API. Using this tool it is possible for your frontend team to continue development work by…
-
2
votes1
answer79
viewsQ: Is there any way to show my local project on the internet without putting it on a hosting?
Several times I need to present to a client a project that I am working locally and it is bad to have to move the project up to a hosting or even update the project every time the client asks to see…
-
4
votes1
answer79
viewsA: Is there any way to show my local project on the internet without putting it on a hosting?
An excellent solution to this problem is the ngrok, this tool creates a tunnel between your local project and the internet by providing a URL for access. It is highly configurable and easy to use.…
-
5
votes1
answer124
viewsA: Difficulty when combining web languages
When I’m going to do a project how I can know what language(s) to use? Your browser only understands HMTL, CSS and Javascript, languages like Ruby, PHP, Python, etc., will generate code that…
-
1
votes1
answer122
viewsQ: How to create a server for private power?
I have several frontend packages developed by my team, all these packages are private and I can’t register them on Bower public repository. It would be possible to have a private server containing…
bowerasked Bruno Wego 1,568 -
1
votes1
answer122
viewsA: How to create a server for private power?
The best solution for this is private-Bower. This solution will provide an HTTP server with a graphical interface for registering private packages. After the release of private-Power just create a…
boweranswered Bruno Wego 1,568 -
2
votes1
answer2508
viewsQ: How to change the Docker subnet?
I am in a network that uses the IP range 172.17.42.1, unfortunately the same as Docker. Because of this I can no longer access my local network because the two networks conflict. Docker IP address…
dockerasked Bruno Wego 1,568 -
2
votes1
answer2508
viewsA: How to change the Docker subnet?
This is a common problem and the solution is simple. First stop the Docker service: sudo service docker stop To see Nat routing information, run the command: iptables -t nat -F POSTROUTING…
dockeranswered Bruno Wego 1,568 -
2
votes1
answer1677
viewsQ: How to create a clean branch without taking the master branch history?
I need to create a clean branch that doesn’t reflect the master branch commits. This branch will be used to provide information about the project on Github through Gh-pages and will never be used to…
-
6
votes1
answer1677
viewsA: How to create a clean branch without taking the master branch history?
First create an orphan branch: git checkout --orphan gh-pages Now remove all files from this branch: git rm -rf . git clean -fdx Add some file, for example README.md: touch README.md git add . git…
-
1
votes1
answer281
viewsA: Is it necessary to use ul and li tags in flexslider?
According to the documentation of flexslider, just change the parameter selector: <script type="text/javascript" charset="utf-8"> $(window).load(function() { $('.flexslider').flexslider({…
-
1
votes1
answer61
viewsA: Software Assembly Tool
One tool that may be useful is the postgrest. This tool turns your Postgresql database into an API, so just build the project frontend and connect it to postgrest.…
software-architectureanswered Bruno Wego 1,568 -
1
votes1
answer92
viewsA: Build javascript modules, how to package files (modules)?
What you are looking for will find in the articles below, examples of how to proceed with the use of Requirejs and the concatenation/minification of it: Optimize (Concatenate and Minify) Requirejs…
-
0
votes4
answers63
viewsA: How to make a slideshow accessible to ringtones on smartphones?
The jQuery has support for touch events, but depending on what you want to do it may be possible CSS-only.…
-
3
votes1
answer425
viewsA: For sale in Themeforest
I was a salesman at themeforest Marketplace for 2 months, I sold my template a lot and took it off the air in the third month, it is very worthwhile but get ready for the support. Many users shop…
-
3
votes1
answer220
viewsQ: Pass HTML element in Jade variable
Below I have a call from a include to an "Alert", I wonder if it is possible within the message variable not to pass pure HTML () and yes a call #[Strong Well done! ] which is most common within the…
-
5
votes1
answer162
viewsQ: Number of revisions per file saved via Git
I have a very specific need, I need to store at most 3 revisions of a PSD file, and every new revision the older one is deleted. You can do this in Git?