Computing

Nested tables? Do you actually mean TreeTables? PrimeFaces is throwing out so many new widgets every 6 months, some old features are just not being improved anymore. Check out their new wisget set in showcases. Also, what is maybe not always the best solution, but often helps, is to develop your own custom widget. It is actually easy to do, and will give you the best understanding of how certain components function. I work with JSF for almost 8 years already, I am a senior dev, and I still manage to find enormous amount of bugs within their framework. Some of them I also reported, which were later turned into features in the new versions.

OperatingSystem:

ProgrammingLanguage:

There is only one universal solution for all the third party libraries in MAC OS, and it's called BREW! :) Check it out. Everything that you can think of is installed by one liner. This is a way you would install it everywhere else (any other linux, windows etc), and is already deprecated if you transfer to mac. From your article, I can conclude that you are a serious and competent developer if you use maven, but also that you are a relatively new to Mac OS. There must be some friends in your circle who are long time Mac OS users, ask them for an advice. Mac OS has some amazing features that you cannot really learn about alone. They concentrate on making your life easier, which is not the case with other operating systems.

OperatingSystem:

You mention it is Sunday, so this must be a home network. 10 devices would place some significant load on it. Apart from trying to disconnect some of them, you can also try to change the WiFi's channel to improve performance. There are apps like WiFi analyzer (Android) for that.

Taggings:

gitignore is very important in many aspects, we also put in some local config files which pointed to some needed data files for the application (linux vs windows have different path seperators for example) to avoid rewriting after every pull the gitignore can be very helpful as long as you remember to forcefully commit a real change

Taggings:

Technology:

It might be considered a hack, but it has its place. Even !important is just another tool in the toolbox. As long as it does its job consistently everything is fine

The solution is to turn the link sharing on, by allowing all link owners to see & edit. Out of some reason, this sharing possibility does not request a paid account.

Taggings:

The solution was to connect an actual android device, or to use a laptop or pc with more calculation capacities.

Technology:

Window.event does not exist in Firefox. Different browsers have different event models. Firefox handles the events slightly different IE and Chrome and for that reason it has not worked. A work-around is to pass the event as an argument to the function:
<a onclick="testfunction(event);">
 //...
</a>

testfunction(e){
 evt = e || window.event;
 //...
}

or use a library like jQuery to avoid dealing with all the differences between the browsers.

Apparently in Rails you need to manually set the MIME-Type of attachments, otherwise their filesize, filetype and other Metadata are not properly recognized by the E-Mail client and images will not be displayed within the html e-mail.
In this case using the hash :mime_type and the corresponding value 'image/png' in the rails controller solved this problem:

attachments.inline["img.png"] = {:data => File.read('img.png'), :mime_type => 'image/png'}

Technology:

You can use the following http headers:
Content-Type: application/pdf
Content-Disposition: inline; filename="filename.pdf"
This ensures that the browser will always display it on the browser window.

Taggings:

Technology:

Pages

Subscribe to Computing