technology:dsl

  • Writing a #graphql #dsl in #kotlin
    https://hackernoon.com/writing-a-graphql-dsl-in-kotlin-4a74e55e2c49?source=rss----3a8144eabfe3-

    Writing a GraphQL Domain Specific Language (DSL) in KotlinI’ve recently spent some time testing a GraphQL endpoint against a few queries. At the moment I’m keeping my queries as multi-line strings but I was wondering:How hard would it be to build a GraphQL query DSL in Kotlin?I thought this could be a good opportunity to become more familiar with Kotlin DSL capabilities.Here’s what I’ve got so far.A GraphQL DSL in KotlinThe above snippet produces the following result:The GraphQL resulting from the DSLThe main challenges I have faced up to this point have been around supporting:any string to be used as the root field of the query (e.g."allUsers")nested selection of fieldsa map-like syntax for field arguments (I’ve settled for the to method for now)Any String is a FieldAs you can see (...)

    #string-literal #kotlin-dsl

  • Apache #spark — Tips and Tricks for better #performance
    https://hackernoon.com/apache-spark-tips-and-tricks-for-better-performance-cf2397cac11?source=r

    Apache Spark — Tips and Tricks for better performanceApache Spark is quickly gaining steam both in the headlines and real-world adoption. Top use cases are Streaming Data, Machine Learning, Interactive Analysis and more. Many known companies uses it like Uber, Pinterest and more. So after working with Spark for more then 3 years in production, I’m happy to share my tips and tricks for better performance.Lets start :)1 - Avoid using Custom UDFs:UDF (user defined function) :Column-based functions that extend the vocabulary of Spark SQL’s DSL.Why we should avoid them?From the Spark Apache docs:“Use the higher-level standard Column-based functions withDataset operators whenever possible before reverting tousing your own custom UDF functions since UDFs are ablackbox for Spark and so it does not even (...)

    #tuning #apache-spark #big-data

  • Common sense: An examination of three Los Angeles community WiFi projects that privileged public funding over commons-based infrastructure management » The Journal of Peer Production
    http://peerproduction.net/issues/issue-10-peer-production-and-work/varia/common-sense-an-examination-of-three-los-angeles-community-wifi-proj

    Several high-profile incidents involving entire communities cut off from broadband access—the result of natural disasters such as Superstorm Sandy in the Northeastern United States in 2012, to totalitarian governments in Egypt and Tunisia shutting down infrastructure in 2011—have raised awareness of the vulnerabilities inherent in a centralized internet. Policymakers are increasingly interested in the potential of community mesh networks (Harvard University, 2012), which use a decentralized architecture. Still, government agencies rarely fund community WiFi initiatives in U.S. cities. Three grassroots mesh networks in Los Angeles are distinct, however, as both local and state agencies subsidized their efforts. By comparing a public goods framework with theory of the commons, this study examines how government support impacted L.A.-based community wireless projects.

    By examining public investments in peer-to-peer networking initiatives, this study aims to better understand how substantial cash infusions influenced network design and implementation. Stronger community ties, self-reliance and opportunities for democratic deliberation potentially emerge when neighbors share bandwidth. In this sense, WiFi signal sharing is more than a promising “last mile” technology able to reach every home for a fraction of the cost required to lay fiber, DSL and cable (Martin, 2005). In fact, grassroots mesh projects aim to create “a radically different public sphere” (Burnett, 1999) by situating themselves outside of commercial interests. Typically, one joins, as opposed to subscribes to, the services. As Lippman and Reed (2003, p. 1) observed, “Communications can become something you do rather than something you buy.” For this reason, the economic theories of both public goods and the commons provide an ideal analytical framework for examining three community WiFi project in Los Angeles.

    The value of this commons is derived from the fact that no one owns or controls it—not people, not corporations, not the government (Benkler 2001; Lessig, 2001). The peer-to-peer architecture comprising community wireless networks provides ideal conditions for fostering civic engagement and eliminating the need to rely on telecommunications companies for connectivity. Instead of information passing from “one to many,” it travels from “many to many.” The primary internet relies on centralized access points and internet service providers (ISPs) for connectivity. By contrast, in a peer-to-peer architecture, components are both independent and scalable. Wireless mesh network design includes at least one access point with a direct connection to the internet—via fiber, cable or satellite link—and nodes that hop from one device to the next

    As the network’s popularity mounted, however, so did its challenges. The increasing prevalence of smartphones meant more mobile devices accessing Little Tokyo Unplugged. This required the LTSC to deploy additional access points, leading to signal interference. Network users overwhelmed LTSC staff with complaints about everything from lost connections to computer viruses. “We ended up being IT support for the entire community,” the informant said.

    Money, yes. Meaningful participation, no.

    Despite its popularity, the center shut down the WiFi network in 2010. “The decision was made that we couldn’t sustain it,” the informant said. While the LTSC (2010) invested nearly $3 million in broadband-related initiatives, the center neglected to seek meaningful participation from the wider Little Tokyo community. The LTSC basically functioned according to a traditional ISP model. In a commons, it is imperative that a fair relationship exists between contributions made and benefits received (Commons Sommerschule, 2012). However, the LTSC neither expected nor asked network users to contribute to Little Tokyo Unplugged in exchange for free broadband access. As a result, individual network users did not feel they had a stake in ensuring the stability of the network.

    HSDNC board members believed free WiFi would facilitate more efficient communication with their constituents, coupled with “the main issue” of digital inclusion, according to an informant. “The reality is that poor, working class Latino members of our district have limited access to the internet. A lot of people have cell phones, but we see gaps,” this informant said. These comments exemplify how the pursuit of public funding began to usurp social-production principles associated with a networked commons. While closing the digital divide and informing the public about community issues are laudable goals, they are clearly institutional ones.

    Rather than design Open Mar Vista/Open Neighborhoods according to commons-based peer production principles, the network co-founders sought ways to align the project with public good goals articulated by local and federal agencies. For instance, an informant stressed that community WiFi would enable neighborhood councils to send email blasts and post information online. This argument is a direct response to the city’s push for neighborhood councils to reduce paper correspondence with constituents (City of Los Angeles, 2010). Similarly, the grant application Open Neighborhoods submitted to the federal Broadband Technologies Opportunities Program—which exclusively funded broadband infrastructure and computer adoption initiatives—focused on the potential for community WiFi networks to supply Los Angeles’ low-income neighborhoods with affordable internet (National Telecommunications & Information Administration, 2010). The proposal is void of references to concepts associated with the commons, even though this ideological space can transform broadband infrastructure from a conduit to the internet into a technology for empowering participants. It seems that, ultimately, the pursuit of public funding supplanted initial goals of creating a WiFi network that fostered inclusivity and collaboration.

    There’s little doubt that Manchester Community Technologies accepted a $453,000 state grant in exchange for a “mesh cloud” it never deployed. These findings suggest an inherent conflict exists between the quest to fulfill the state’s public good goals, and the commons-based community building necessary to sustain a grassroots WiFi network. One could argue that this reality should have prevented California officials from funding Manchester Community Technologies’ proposal in the first place. Specifically, a successful community WiFi initiative cannot be predicated on a state mandate to strengthen digital literacy skills and increase broadband adoption. Local businesses and residents typically share bandwidth as part of a broader effort to create an alternative communications infrastructure, beyond the reach of government—not dictated by government. Grassroots broadband initiatives run smoothly when participants are committed to the success of a common enterprise and share a common purpose. The approach taken by Manchester Community Technologies does not reflect these principles.

    #Communs #wifi #mesh_networks #relations_communs_public

  • DNSControl is a system for maintaining DNS zones. It has two parts: a domain specific language (DSL) for describing DNS zones plus software that processes the DSL and pushes the resulting zones to DNS providers such as Route53, CloudFlare, and Gandi. It can talk to Microsoft ActiveDirectory and it generates the most beautiful BIND zone files ever. It runs anywhere Go runs (Linux, macOS, Windows). The provider model is extensible, so more providers can be added.

    dnsconfig.js:

    // define our registrar and providers
    var namecom = NewRegistrar("name.com", "NAMEDOTCOM");
    var r53 = NewDnsProvider("r53", "ROUTE53")

    D("example.com", namecom, DnsProvider(r53),
     A("@", "1.2.3.4"),
     CNAME("www","@"),
     MX("@",5,"mail.myserver.com."),
     A("test", "5.6.7.8")
    )

    https://github.com/StackExchange/dnscontrol/blob/master/README.md

  • Failed #Mirai botnet attack causes internet outage for 900,000 Germans

    http://www.dw.com/en/deutsche-telekom-hack-part-of-global-internet-attack/a-36574934

    German security experts have suggested internet outages that have hit hundreds of thousands of Deutsche Telekom customers in Germany were part of a worldwide attempt to hijack routing devices.

    “The BSI considers this outage to be part of a worldwide attack on selected remote management interfaces of DSL routers,” the government agency said on its website.

    Deutsche Telekom said the issues seemed to be connected to an attempt to make a number of customers’ routers part of the Mirai botnet.

    Deutsche Telecom information page:

    https://www.telekom.com/en/media/media-information/archive/information-on-current-problems-444862

    Deutsche Telekom has developed a software update together with the router manufacturers which is offered for download here https://www.telekom.de/stoerung

    #DDoS
    #botnet

    • What was behind this Mirai variant is the exploitation of a #TR-064 protocol vulnerability (CPE WAN Management Protocol, or #CWMP)

      https://www.incapsula.com/blog/new-variant-mirai-embeds-talktalk-home-routers.html

      TR-069 is a widely used protocol many ISPs employ to remotely manage network routers. Its communication occurs on port 7547, to which remote commands are sent. One such command is Time/SetNTPServers, used to synchronize a router with an external time source.

      However, this same command can also be modified to let hackers remotely execute bash commands. Among other things, this enables them to:

      • Open port 80 for remote access.
      • Obtain Wi-Fi passwords.
      • Modify the iptable rules.
      • Inject malware into the device.

  • Islamic State Uses Satellite Internet To Spread Message - SPIEGEL ONLINE
    http://www.spiegel.de/international/world/islamic-state-uses-satellite-internet-to-spread-message-a-1066190.html


    Vers l’Occident compliqué, je volais avec des idées simples... pour paraphraser De Gaulle.

    The answer to this question is an extremely problematic one for Europe, for it is European companies that provide the terrorists with access to the platforms they use to spread their propaganda. It remains unclear whether the companies knowingly do so, but documents obtained by SPIEGEL ONLINE show that they may very well know what’s going on. And the documents show that the companies could immediately cut off Islamic State’s Internet access without much effort.

    If you need to get online in Syria or Iraq, the technology needed to do so can be purchased in the Hatay province — a corner of Turkey located between the Mediterranean Sea and the Syrian border.

    #tic_arabes

    • Most of the satellite dishes going to the Middle East make their way through Rotterdam, the world’s third-largest port. It’s here, among the 12 million containers processed annually, that the satellite technology and modems arrive in Europe. Most of the manufacturers are located in the Far East, with their customers based in Paris, London or Luxembourg.

      A number of distribution firms are involved in the sales chain of the technologies required to obtain satellite Internet access. At the beginning of this chain are the major European satellite operators, led by France’s Eutelsat, Great Britain’s Avanti Communications and Luxembourg’s SES. Among the most popular brands are Hughes by Avanti and, especially, Tooway by Eutelsat. The French company has been in business for years and offers almost complete global coverage with its satellites.

      Distribution firms then buy facilities and satellite capacity from the big companies and resell it to corporate or private customers. They also work together with additional companies like the German firm Sat Internet Services based in the northern city of Neustadt am Rübenberge.

      It’s a lucrative business for company CEO Victor Kühne, who expanded distribution to Turkey a few years ago. His problem is: the market for satellite Internet technology is limited in the European Union because of near blanket coverage of standard broadband Internet connections on the continent. Sales in Turkey are fairly slow too, because satellite connections are more expensive than classic DSL access.

      The satellite operators don’t provide data on the number of customers they have, but there is anecdotal evidence. In Turkey, for example, those seeking to access the Internet using a satellite dish are required to register with the government’s BTK telecommunications authority. According to the most recent data available from the agency, there were 11,000 registered satellite Internet users in Turkey during the first quarter of 2015, only 500 more than the previous year.

      But during 2013 and 2014, alone, Neustadt-based Sat Internet Services exported more than 6,000 dishes to Turkey, customs agency documents obtained by SPIEGEL ONLINE show. It is likely that most of those satellite dishes did not remain in Turkey, and there’s a strong chance a good deal of them ended up in Syria. The Syrian market has a decisive advantage in that there is no alternative Internet access available, meaning prices can be set very high.

      #ISIS #OEI #connectivité #infoguerre

      Possible connections linking Eutelsat with Syria could be particularly uncomfortable for the French government, which indirectly holds a 26-percent share in the satellite operator through the state-owned Bank Caisse des Dépôts.

  • apiary.io — REST API Tools Company
    http://apiary.io/blueprint

    At Apiary we try hard to be as user-friendly to developers as possible. Instead of forcing you to click through a confusing GUI, we designed Apiary around API Blueprint—a custom DSL (domain-specific language) allowing you to quickly describe your API in a way that you can collaborate/version/merge as you’re used to when coding. From this blueprint we then generate API documentation, a debugging proxy and bug reports.

    (via @edasfr)

  • AnonymousSyria
    I uploaded a @YouTube video http://youtu.be/bSnlB9T51SU?a

    لجان التنسيق المحلية في سوريا
    حمص : منع تشييع الشهيد باسل شحادة المصور المعروف عبر قصف حي الحميدية ذو الأغلبية المسيحية الذي ينتمي له هذا الشهيد علماً أن القداس والتشيع كان قد أعلن عنه اليوم
    Homs: Regime forces prevented mourners from participating in a funeral for well-known photographer, martyr Bassel Shahade, martyred during the regime’s shelling in the Hamidieh district, a majority-Christian area. The funeral is being prevented despite today’s call for a special Mass and funeral
    #Syria Houla massacre: ’for hours I heard the screams of women and children, and always gunshots’
    http://soc.li/yXPNqjM

    TelecomixSyria
    DSL and 3G connections are reportedly down in many (if not all) suburbs of #Damascus and in #Homs #Syria.
    HamaEcho
    Not a coincidence that facebook, youtube, twitter are all hit at the same time. 3G is very slow and sometimes don’t work too.

    dimam78
    #Homs neighborhood where funeral of fallen hero Bassel Shehadeh was going to go out was being especially targeted by shelling today. #Syria

    EyesOnSyria
    #Syria #Syrie #Сирия | #EYESonSYRIA Revolution ART | Sheri Samir You left no white paper for us to draw on! عمل... http://fb.me/1ZpaEzaXK